Recent submissions

Comment · 4 months ago
I found it to spiral into complete nonsense a few times when I tested it out, but it's possible that was a bug in the provider
Comment · 5 months ago
It should be pretty mature outside of Wasi. To be fair, there's really nothing that's super mature in terms of Wasi support, except maybe Wasmtime
Comment · 5 months ago
don’t look at the user that reposted the article
Comment · 7 months ago
maybe it implies some amount of "live to work" etymologically, but the word "living" in that context specifically refers to living in the financial sense (the act of living wouldn't really make sense in that sentence)

you live to play video games and watch movies, but you make a living by working

Comment · 7 months ago
Comment · 8 months ago
Optimizations like these are so cool. I love seeing higher level languages take advantage of their high level-ness
Comment · 8 months ago
What do you mean outside of programmer control? What's stopping you from setting the stack size in the linker flags?
Comment · 8 months ago
What’s the downside of SynthID?
Comment · 8 months ago
Obligatory DuckDB solution:

> duckdb -s "COPY (SELECT url[20:] as url, date, count(*) as c FROM read_csv('data.csv', columns = { 'url': 'VARCHAR', 'date': 'DATE' }) GROUP BY url, date) TO 'output.json' (ARRAY)"

Takes about 8 seconds on my M1 Macbook. JSON not in the right format, but that wouldn't dominate the execution time.

Comment · 8 months ago
You’re missing the fact that the compiler isn’t forced to fill every register in the first place. If it was less efficient to use more registers, the compiler simply wouldn’t use more registers.

The actual counter proof here would be that in either case, the temporaries have to end up on the stack at some point anyways, so you’d need to look at the total number of loads/stores in the proximity of the call site in general.

Comment · 1 year ago
Comment · 1 year ago
Maybe, but from the author's description, it seems like the interpretation of intent that they want is to generally give the most information possible to the compiler, so it can do its thing. I don't see why the right high level language couldn't give the compiler plenty of leeway to optimize.
Comment · 1 year ago
> High level languages lack something that low level languages have in great adundance - intent.

Is this line really true? I feel like expressing intent isn't really a factor in the high level / low level spectrum. If anything, more ways of expressing intent in more detail should contribute towards them being higher level.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton