mercurial

Joined 15 years ago

Karma
6,385
Submissions
2,445
Member since
Aug 19
A mercurial software engineer.
View on Hacker News

Recent submissions

Comment · 1 year ago
Short of using a different data structure, I'm not sure how you would get out of that one. The claim was that some of these leaks ("leaks"?) could be avoided by using a language with a GC. As far as I know, most modern languages' equivalent of Vec will do exactly the same thing, GC or not.
Comment · 1 year ago
> the pattern of allocating a vec as pseudo-RAM, using indices as pseudo-pointers, and never freeing anything till the container itself is unused

Are you talking about hand-rolled arena allocation? I don´t see how a GC language would have a different behaviour as long as you also use arena allocation and you keep a reachable reference.

> There's nothing wrong with those techniques per se, but the language tends to paint you into a bit of a corner if you're not very good and very careful, so leaks are a fact of life in basically every major Rust project I've seen not written by somebody like BurntSushi

If I take 3 random major Rust projects like Serde, Hyper, and Tracing, none of which are written by BurntSushi, your claim is that they all suffer from memory leaks?

Comment · 1 year ago
You need to authenticate once. You will get your vaults locally and you will be able to access them without an internet connection
Comment · 3 years ago
IMO, rustc_codegen_gcc is much more reasonable in scope. It also stands a chance of actually keeping up with subsequent Rust releases. I would be surprised if gcc-rs ever achieved any traction. Not to say it's not a fun project, but I can't see it replicating rustc.
Comment · 3 years ago
The culture and ecosystem should definitely be a huge part of selecting a language.
Comment · 3 years ago
Rust has a small(ish) but high quality stdlib. It does not aim to be Python. Like with any language, you have to know the ecosystem in order to be productive.

That said, sure, having a full-featured stdlib can be convenient. It's a matter of trade-offs. Having more content outside of the stdlib allows the ecosystem to evolve organically (and iterate quicker) and select the best approach to a given problem (which... could definitely have been an advantage for Python).

Comment · 4 years ago
> In french you say "Omelette du fromage".

No you don't, that's literally "Omelet of the cheese". You say "Omelette au fromage", which is "Omelet with cheese".

I do agree with your broader point, though.

Comment · 6 years ago
Thanks! This is exactly the kind of mistake that annoys me.
Comment · 6 years ago
Wars are rarely won by single battles. That said, it really depends what period of history you are interested in. If you want to stick to the XXth century, Anthony Beevor regularly produces very readable books on WWII or the period immediately before (mostly concerned with the European theater).

If you are interested in more ancient history, I can warmly recommend Keagan's Peloponnesian War (which mostly draws on Thucydides eponymous masterwork).

Comment · 6 years ago
Hardly. This is in no way a historical treaty.
Comment · 6 years ago
I have no sympathy for right-wing extremists, but EU countries still operate within the rule of law. You cannot deport people who are member of a legal organization, and I don't think there is enough evidence to declare it a terrorist organization.
Comment · 6 years ago
I don't think any of the people they assassinated were even alive at the time of the Armenian genocide, so it's really not comparable.
Comment · 6 years ago
Caesar's biography by Adrian Goldsworthy is excellent, but quite extensive.
Comment · 6 years ago
Works fine here (Denmark)
Comment · 7 years ago
Apparently, the native tribes don't get the right to choose.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton