HackerTrans
TopNewTrendsCommentsPastAskShowJobs

csjh

no profile record

Submissions

A Tale of Three WebAssembly Runtimes

csjh.blog
3 points·by csjh·2 months ago·0 comments

comments

csjh
·13 days ago·discuss
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
csjh
·2 months ago·discuss
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
csjh
·2 months ago·discuss
don’t look at the user that reposted the article
csjh
·4 months ago·discuss
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
csjh
·4 months ago·discuss
Wasm is explicitly not designed for interpretation (https://arxiv.org/abs/2205.01183)
csjh
·4 months ago·discuss
Optimizations like these are so cool. I love seeing higher level languages take advantage of their high level-ness
csjh
·4 months ago·discuss
What do you mean outside of programmer control? What's stopping you from setting the stack size in the linker flags?
csjh
·4 months ago·discuss
What’s the downside of SynthID?
csjh
·5 months ago·discuss
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.
csjh
·5 months ago·discuss
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.
csjh
·3 years ago·discuss
I believe that's at least part of what the GC proposal is moving towards.