For the best experience on desktop, install the Chrome extension to track your reading on news.ycombinator.com
Hacker Newsnew | past | comments | ask | show | jobs | submit | history | cobby's commentsregister

Also Nim requires you to use unique field names across all variants.


This annoying restriction is lifted in Nim 2; see the linked announcement.


Where in the announcement does it say that?


They likely read "overloadable enums" and went "Oh Rust calls their tagged unions enums" so assumed all languages did.


Oh, no, I actually misunderstood cobby's complaint: the field names, yes, those still have to be unique. Which is also a bit annoying, though I've seen discussions about changing it.


> have them unlocked on login via PAM

Could you please share a general outline for configuring something like this?


the Arch Wiki is gonna be your best bet here: https://wiki.archlinux.org/title/ECryptfs

if you can make a /etc/fstab entry for your filesystem, then you can configure pam_mount using the same options as the fstab entry and it should work.

for the actual encrypted filestore, i’m using gocryptfs. it’s a more actively developed alternative to eCryptfs: mostly a drop-in replacement. there’s a lot of options here: dm-crypt over a dedicated partition is probably what a cryptographer would recommend, everything else is making tradeoffs (e.g. leaking metadata like file size/directory entry count) for better UX elsewhere. read the wiki to pick the best for your needs :)

on the off-chance you’re using NixOS, i configure these parts here:

- https://git.uninsane.org/colin/nix-files/src/commit/bcfd8e17... - https://git.uninsane.org/colin/nix-files/src/commit/bcfd8e17...


> but the startup time is pretty bad (there is a 300ms+ delay) for apps.

Someone has told me that this can be solved with asdf-direnv so I am wondering if this is true and I should actually consider using asdf.


First, they were looking if the person is subscribed to specific Telegram channels. It is quite easy to quickly scan list of channels looking for specific logos.

Second, it is supposed to intimidate others and force the to unsubscribe from telegram channels that post alternative view on current events. Hence, effectively blocking people from getting info.


> It’s the regular folks who could wake up from their comfy lethargy and actually protest their government.

The problem is that many of those who use namecheap are already against the regime because they know English, have access to another point of view on actions taken by the regime in Ukraine.

Fucking them up may turn some of them back to the regime because current narrative of the propaganda is "West companies do not care about you and they will do everything in their power to screw you".


Speaking personally, I would not turn back to the regime, that would apply that I liked it once. I never liked it.


> Isn't this going to have some serious economic repercussions for Russia?

Russian economy is in decline since 2014. COVID-19 pandemic has increased its decline even further.

So it seems that the upcoming EU + US economic sanctions will be used by propaganda as the ultimate explanation of the decline. I mean Kremlin actually looks forward to more sanctions in order to have plausible explanation ("we are at war and our enemies made your life worse; we need to stay strong around our leader mr. Putin" shit).


> Russian economy is in decline since 2014.

The vast, vast majority of the growth in US and EU economies since 2014 (really, much earlier than that, though) has been in fundamentally non-productive sectors like finance, real estate, entertainment, social media, and hospitality.

This is all well and good in peacetime, but the GDP calculation changes dramatically when you're on a war footing and need to produce actual tangible things. Russia looks much, much, much better economically than GDP suggests in the context of its ability to produce theater materiel, power that materiel, and man that materiel.

It's going to be a fun day for us when our pathetic "service-based economy" workforce of ad spent optimizers, real estate agents, attorneys, starbucks baristas, ReactJS programmers, UI designers, Buffalo Wild Wings servers, twitch streamers, instagram influencers, and "hustlers" of all kinds get drafted to fight hardened alcoholic roughnecks who've spent the last 20 years actually building things, backed up by Chinese rangefinders, optics, and target acquisition systems.

Good luck to us.


You forgot to add some homophobia to your straw man depiction of the West.


You just depicted your world, not the West.


> How is the bank or Upwork the bad guy here when it is Robin who doesn't want to pay?

Upwork takes: * 3% fee on each payment on the client side; * 20% fee of first $500 earnings with the client; * 10% fee of $500-$10k earnings with the client; * 5% fee of earnings over $10k with the client.

So in this case Upwork took at least 8% of this $12.5k or 1000 USD but I think they took even more. If they don't take risks of fraudulent payments then why do they continue to take a cut in each time?


I personally still use Python because I miss list and dict comprehensions.

I know there is a `collect` macro in `sugar` module but it is nowhere close to the python comprehensions. The code is too verbose and basically is just the same multiline for loop :-(


(on mobile) You could use Nimssequence iterators

[x.name for x in someList if x.age > 5]

Is the same as:

x.filterIt(it.age > 5).mapIt(it.name)

In a way it reads better.


> missing AGE encryption

I am just curious. What makes AGE backend better than GPG one?


As yepguy mentioned AGE is simpler. I can also mention few things:

- It works smoothly with SSH keys (generated from ssh-keygen), which are perfectly recognized by possibly any developer.

- No need for external client, such as GpgWin/Kleopatra for Windows.

- Embed-able in Rust[0] and Go[1] (there are libraries), no need to call `gpg --decrypt ...` from the command line.

- Encrypted files by pass and keys are smaller. I guess it is thanks to ecliptic-curve encryption.

[0]: https://github.com/str4d/rage

[1]: https://github.com/FiloSottile/age


Age is much simpler to use in nearly every way, whether that's interactively (keys are just files!), in scripting, or in implementation.

I'm still sticking to gpg for the foreseeable future, but between age and sequoia[1] I'm hopeful that things will soon be much easier to use.

[1]: https://sequoia-pgp.org/


> I think this or something similar was posted a week or two ago

I believe you are referring to this post https://news.ycombinator.com/item?id=29238700


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search:

HN For You