Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
evmar
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
evmar
10d ago
I think the Rust feature you’re looking for regarding recompiling the standard library is called “build-std”, that should be enough for you to search for it. (For similar reasons you also need that flag if you are trying to use Rust to buil
2.
▲
by
evmar
11d ago
In my own journey of discovery I found https://cheats.rs/ very helpful, and in particular its "memory layout" section has visualizations. (No affiliation with the site, just a happy reader!)
3.
▲
by
evmar
20d ago
Totally agree. I saw the idea of “Internet Kessler syndrome” recently and I can’t stop thinking about how it captures this.
4.
▲
by
evmar
1mo ago
I did some exploration of this idea in a followup build system! See https://neugierig.org/software/blog/2022/03/n2.html . (It's not really production-ready.)
5.
▲
by
evmar
1mo ago
Thanks for saying this! I am close enough to it that I mostly remember all of the bad decisions I made that are now unfixable, haha.
6.
▲
by
evmar
1mo ago
Yes, I don’t remember the details but vaguely remember that CMake tends to group things together that could in principle be made more parallel, as you mention with generates files in a library. On the other hand if build2 makes it easier fo
7.
▲
by
evmar
1mo ago
[Ninja author here] Nice post, cool to see the deep dive! I also appreciate the details on how they produced their numbers. As they observe, Ninja gets to be fast mostly by cheating: it avoids a lot of work by saying many things are just o
8.
▲
by
evmar
2mo ago
If you imagine Google's job is to present useful information, these blogs that are maximizing cash while simulating usefulness are exactly the sorts of things I would hope Google to want to filter out. (I don't think Google's
9.
▲
by
evmar
3mo ago
A better solution might be to use https://github.com/evanw/polywasm to run the original wasm in place.
10.
▲
by
evmar
3mo ago
One thing I sometimes think about when I think about text layout problems is how the text we use also has a bunch of complexities that we can take for granted. Think of variable width characters and kerning and ligatures and hyphenation and
11.
▲
by
evmar
3mo ago
Thanks, I'd love to add them! Do you have a good source for this data? I did a quick look at the site you linked above and I'm not sure whether it has numbers for GDP or landmass for these regions.
12.
▲
by
evmar
3mo ago
I was curious about comparisons like the ones you're making between US states and EU countries and made this little app, maybe you'll find it useful! https://evmar.github.io/states/
13.
▲
by
evmar
4mo ago
This is my second emulator, and in my first I picked a name more like that and regretted it. A thing I now appreciate about emulators is that it's common to increase scope -- like this one already supports non-wasm output, and I am ti
14.
▲
by
evmar
4mo ago
Thanks a lot for this, I will put it on my list to investigate. I've gone in circles a few times with how to think about image buffer management because I also support DirectDraw, which is designed to be backed by accelerated graphics,
15.
▲
by
evmar
4mo ago
Wow, thanks for the link, that is perfect timing! I submitted my post and my own feedback on the discussion: https://github.com/WebAssembly/shared-everything-threads/dis...
16.
▲
by
evmar
4mo ago
[post author] I looked into this API but wasn't sure how to make good use of it. I may have misunderstood, maybe you could help! The doc you linked has two forms of use, sync and async. For sync: it seems the idea is for the worker to
17.
▲
by
evmar
4mo ago
Gosh, I think that means even when your code is wholly running on workers (where you would be able to use the atomic wait mentioned in the comment), it still will busy loop, doesn't it? At least it's within the allocator and not
18.
▲
by
evmar
4mo ago
One nice tool for analyzing maps as a tree is as a dominator trees. I wrote a bit about it here: https://neugierig.org/software/blog/2023/07/dominator.html
19.
▲
by
evmar
4mo ago
The translator I made is only hobbyist quality, but I just have a big table that says “if you indirect jmp to address X then the associated block is at location Y”. This is slower than a direct jmp (which doesn’t use the table) but also ind
20.
▲
by
evmar
5mo ago
Do you have any notes or other artifacts from your recompiler? I’d love to learn more.
21.
▲
by
evmar
5mo ago
Yes, I agree that there is little harm in gathering too much code. I have tried out just scanning data memory for values that refer to addresses within the region marked as code and disassembling from those points, as well as scanning the i
22.
▲
by
evmar
5mo ago
Slow progress is fine, it took me like two years to get where I got! (Not that I was working on it full time or anything, but also there were just many false starts and I had no idea what I was doing...)
23.
▲
by
evmar
5mo ago
Looking through Wikipedia at least, it's not exactly clear to me. They have separate pages for 'binary recompiler' and 'binary translation' that link to each other, and the latter is more about going between archit
24.
▲
by
evmar
5mo ago
[post author] I went down some similar paths in retrowin32, though 32-bit x86 is likely easier. I was also surprised by how much goop there is between startup and main. In retrowin32 I just implemented it all, though I wonder how much I co
25.
▲
by
evmar
5mo ago
It depends on what results you’re expecting! Relative to an interpreter, even the simplest unoptimized translation of that code is already significantly more efficient code at runtime. In the post there is a godbolt link showing a compiler
26.
▲
by
evmar
5mo ago
I see, I might be confused by the terminology. "clobber" to me suggests intentionally trying to throw away cached results (clobbering what you have), but it sounds like you might just use it to mean builds where you don't ha
27.
▲
by
evmar
5mo ago
I’m not too familiar with Firefox builds. Why are clobber builds common? At first glance it seems weird to add a cache around your build system vs fixing your build system.
28.
▲
by
evmar
6mo ago
To be honest, it's not clear to me why other systems are not faster. Ninja is relatively straightforward but also not too clever. Now that I think about it, I did write more about some of the performance stuff we did here: https:
29.
▲
by
evmar
6mo ago
[ninja author] My first post about Ninja goes into this: https://neugierig.org/software/chromium/notes/2011/02/ninja....
30.
▲
by
evmar
6mo ago
[ninja author] I did some thinking about this problem and eventually revisited with what I think is a pretty neat solution. I wrote about it here: https://neugierig.org/software/blog/2022/03/n2.html
More ›