HNHacker News
TopNewBestAskShowJobs

rgrmrts

613 karma · joined April 10, 2021

submissionscomments
rgrmrts··on Learn C and build your own Lisp (2014)
BYOL gets criticized, and folks recommend other texts over it, but as someone who has worked through both BYOL and Crafting Interpreters I can say they both provide value.

BYOL is nice because it’s short and quick (you can power through it in a weekend) and gets you some momentum if you’ve never written a basic language.

Move on to something like Crafting Interpreters which is a well thought out book but definitely more of a marathon than a sprint.

rgrmrts··on Microsoft is busy rewriting core Windows library code in memory-safe Rust
What kind of issues?
rgrmrts··on TIL: A tech unicorn spends a minimum of $5M on just software infra costs
There’s a fair amount of “duplicated” costs. For example, if you’ve got a large observability push internally you’re not shutting down the existing system and are likely experimenting with multiple routes. Instrumentation etc takes time so a company might be running multiple services. Eventually the infra teams will decide what to commit to but before everything migrates over there’s a period where developers need to be migrated over (and this can’t be too sudden or you lose productivity).

I think a lot of infra costs are inflated when the company is scaling. I don’t think this is “bad infra teams”, it’s just the cost of smooth transitions to better tech. This has been my experience anyway, on both the implementor side and consumer side.

rgrmrts··on Bitwarden Acquires Passwordless.dev
A new private-public key pair is generated, the public key is your user identifier (sort of), and the private key is stored on your device (browser or phone). You're logging in by proving you have the private key for the associated public key. I think the device may also be storing a mapping from key to service or something? Not sure.

Please correct me if I'm wrong on any of this.

rgrmrts··on MacBook Pro featuring M2 Pro and M2 Max
Fair enough! Yeah, I was using brew as a replacement for something like `apt` or `dnf` on Linux. For example, installing packages like htop, neovim, emacs, etc. For things like Rust I stick with cargo (which is awesome), though I do manage my Go install through nix.
rgrmrts··on MacBook Pro featuring M2 Pro and M2 Max
I used brew for years and it's a fine tool but I found it lacking. It doesn't give you control when you need it, and telling a user that something got b0rked along the way and asking them to start over isn't good developer experience (in all fairness, neither is the current status of the various nix cli's, but trade-offs am I right?). I've lost so many hours because something broke and sometimes it was because one dependency got updated and broke other packages and other times it wasn't obvious what broke, and I would have to start from scratch.

I never used brew to install or manage my python precisely because it gave me so many issues.

rgrmrts··on MacBook Pro featuring M2 Pro and M2 Max
If you're happy with brew, by all means continue using it. If asdf is getting you all the languages and tools you need without issue, by all means continue using it. My comment is just adding some details to the parent comment about nix running well on macOS.

EDIT: I doubt your question is in good faith considering the 'cult' comment, but to answer your question at face value regarding benefit the first one that comes to mind is being able to have multiple versions of the same package and being able to rollback to previous versions if something breaks. This also means you can have package A depend on package B v1, and package C depend on package B v2, and both can coexist. If this is not something that's valuable to you, that's fine too. The other killer feature is being able to install dependencies for a project/repository if it uses nix - just clone, cd, and run `nix develop` and you'll have all the dependencies available.

rgrmrts··on MacBook Pro featuring M2 Pro and M2 Max
Yes! (kind of, I wish `nix install` was a thing)

    # search for a package called `foo`
    nix search nixpkgs foo
    # install package foo, user-wide
    nix-env -i foo
The CLI UX can get better, and I'm fairly sure folks are working on it.

You can also test-drive a package without committing to it, e.g. you want to try the program `cowsay` but only want to use it once:

    nix-shell -p cowsay
    cowsay
    exit
This spawns a new shell with `cowsay` available, and after you exit it won't be cluttering your system packages.
rgrmrts··on MacBook Pro featuring M2 Pro and M2 Max
Fwiw you can use nix (the package manager) and the nixpkgs package repository without ever learning or writing a single line of nix (the language).

My introduction was to use nix instead of brew and ignore the whole "declarative configuration" aspect. It took me a while to get comfortable enough with that part of the ecosystem, but that's irrelevant to my point.

Give nix a try, use it like you'd use brew. Ignore the declarative configuration stuff for a bit.

rgrmrts··on A Letter from _why (2005)
I just wrote some Ruby for a side project after ~7 years. The language is still fun, ecosystem is good, and things have progressed nicely. I never worried about "Ruby is slow" because I never used it at the scale/for software where it mattered much. That said, it's much faster now!

Give it a shot again. I really enjoyed doing so.

rgrmrts··on Ask HN: Are you thinking about quitting?
Not permanently, but yeah. I quit ~6 months ago. Made enough to support myself for a while and needed to take a break and focus on health.

Last few months I've started taking on small amounts of work and considering looking for full-time employment again in a few months.

No regrets - my health has improved.

rgrmrts··on My list of favorite secure messaging apps
The author is simply sharing their preferred messaging apps, and they describe the criteria used. Sure it's not an objective in-depth security analysis or a result of professional audits but it's also not claiming to be those things, right?
rgrmrts··on AMD Claims New Laptop Chip Is 30% Faster Than M1 Pro, Up to 30 Hours on Battery
12th gen has had issues on all machines. Linux has added a lot of improvements and things generally work fine now, but it's not as out-of-the-box as 11th.

Take a look at https://frame.work/linux

This is probably as close to officially supporting linux as I can think of. I do agree that shipping with linux would be a good addition.

rgrmrts··on AMD Claims New Laptop Chip Is 30% Faster Than M1 Pro, Up to 30 Hours on Battery
Both ubuntu and fedora work well out of the box. Several other distros work well too. Are you suggesting they ship a linux distro by default?
rgrmrts··on DragonFly BSD 6.4
Ah, my bad -- I misread the 'or' as 'and'. Agreed, lack of n/ac/ax has been an issue! Especially when cloning large repos I didn't realize how much I take >500mbps on wifi for granted.
rgrmrts··on DragonFly BSD 6.4
Have you tried iwlwifi?
rgrmrts··on Poll: What's the best laptop for Linux these days?
I'm in the market for a new linux laptop again too. I primarily use a 2019 Macbook Pro which I like, but would like to be back on linux on laptop.

I bought a Framework (11th gen intel) when it was first announced but ended up returning it:

  - small battery, despite heavily tweaking and running a very barebones setup I was running out of battery very quickly
  - though I loved 3:2, 13.5" was too small for my preference
  - macbook trackpads are still better
After returning that I ended up buying a Dell Precision 5560 (also 11th gen intel), but ended up selling that as well:

  - I made a mistake and got the 1920x1200 screen and it's awful
  - trackpad, again
Otherwise the Dell is pretty good. Decent battery life, great linux compatibility, good performance and build quality.

I'm leaning towards trying out the X1 Carbon Gen 10 but I'm unsure if I'll like the 14" screen. I've also looked at the X1 Extreme but unsure about battery life (I don't need the Nvidia graphics, though I guess I could just disable that and use Intel). The Star Labs Starfighter looks great on paper but there are no videos or reviews of the production units yet and I'd like to wait and see a hands-on first.

rgrmrts··on Ask HN: LastPass Alternatives
I'm not a security expert or cryptographer so take with a grain a salt, but I've been trying to understand what flawed architectural decisions LastPass made, and based on the critiques I've seen by some security/cryptographer folks (on Twitter, mostly) it does seem that 1Password is less vulnerable. It seems the key derivation, number of rounds, and unencrypted metadata (e.g. the website associated with the credential) are factors that made LastPass more vulnerable.

AFAICT, 1Password encrypts all metadata, their key derivation is stronger, and the use more rounds. Their security whitepaper [0] goes into a ton of detail. I'm more comfortable with my choice in 1Password (I previously used LastPass years ago, and need to rotate some old passwords that were still in LastPass).

[0]: https://1passwordstatic.com/files/security/1password-white-p...

rgrmrts··on John Carmack Leaves Meta
Full memo is reproduced here https://archive.vn/Lmu9g
rgrmrts··on Elephants born without tusks in ‘evolutionary response’ to poachers (2021)
I also would not be surprised if bullets are easier to acquire than poisons and sedatives. Along with the delivery mechanisms.

AK-47s and their ammunition are abundant in many parts of the world. I don't think the same is true for dart guns for large sedative darts.

EDIT: I don't know what weapons poachers are using, so AK-47 is just the first thing that came to mind. They maybe use higher calibre weapons?

rgrmrts··on NixOS 22.11 “Raccoon”
I'm running NixOS on a Dell Precision laptop. I'm really happy with it!

Like the other reply suggests, I'm using ZFS and it's built-in encryption.

rgrmrts··on Ethereum Proof-of-Stake
Ah, thanks. How does the forked chain reconcile with the rest of the network once the networks sync back up?
rgrmrts··on Ethereum Proof-of-Stake
Heres my understanding of it: committee assignment is random, as in baked into the protocol, similar to how a validator is selected for a block (i.e. randomly).

While only one validator creates the block, others create attestations which I understand as duplicate work done to check the chosen validators produced block.

If an entire country goes down, those validators fall out of the active set and assuming some majority is still active they'll produce and verify blocks.

Incorrect state is rejected by the majority, and the minority is punished (slashing their stake).

Full disclosure, I'm not an expert - just an enthusiast interested in these protocols. Would love for someone more knowledgeable to correct my mistakes. I'm also not arguing for or against anything here.

rgrmrts··on Give up GitHub: The time has come
Does Github give users a toggle to opt-out of being in the copilot training dataset?

I feel like that would be a decent compromise for folks not down with their code being used in copilot.

rgrmrts··on Crystal's Interpreter (2021)
What's a good starting point for someone to study that? Specifically going from an interpreter to a compiler automatically. Are there any special considerations before implementing the interpreter? I'm vaguely familiar with RPython which I think delivers on that.

For context: I'm just a hobbyist interested in PLs and want to learn more about JITs, I found Crafting Interpreters super helpful for a lot of foundational knowledge.

rgrmrts··on The new and upgraded Framework Laptop
I would buy a 15/16” version of this in a heartbeat :) I really hope another chassis with a larger screen is in the cards for framework!
rgrmrts··on Ask HN: How do you manage – and remember to manage – your to-do list in 2022?
Turns out, I don’t do a lot :) I keep the list very short.

Sometimes the back log does grow and I won’t copy everything over into today, and just mark the previous things I didn’t do with something attention grabbing.

rgrmrts··on Ask HN: How do you manage – and remember to manage – your to-do list in 2022?
I tried every todo app and personal organization and management system I could think of over a few years. I eventually gave up and moved to a nice notebook and a decent pen (Leuchtturm and Muji ballpoint pens) and haven’t looked back. I write the date every morning and start a new “section”, copy over anything from the previous day that doesn’t have a “check” mark, and write any new things I think I might need to get done. This has made a huge impact on me getting things done, both at work and in my personal life. It’s a stupid simple method and the only one I’ve stuck with.
rgrmrts··on Acute inflammatory response via neutrophil protects against chronic pain
Supplements are the only thing I haven’t really tried yet (beyond changing my diet to something less “inflammatory” and adding things like turmeric to my diet). Willing to give anything a try, so I might add on some supplements too. Couldn’t hurt! (I think.)
rgrmrts··on Acute inflammatory response via neutrophil protects against chronic pain
Interesting tip, thanks! I generally try to go for a few walks a day, and try not to sit or stand for too long at my desk.
← PreviousPage 3 of 7Next →