1,063 karma · joined Jul 28, 2020 (6y ago) · 251 submissions
comment 4d ago · link · parent
2.
GraalVM fixed the java4shell bug in September(github.com ↗)
2 points · by knuckleheads · 6d ago · discuss
comment 1w ago · link · parent
comment 1w ago · link · parent
https://breakneck.powderworks.dev/
It's not done yet nor do I have enticing numbers to show, but I think in a few weeks Breckneck Rust will be someplace nice. For big changes such as getting all crates in the same process, I've been having Claude develop and use a mass static code rewriting tool. So instead of having an agent go and found all the places where LOCAL_CRATE_ID is defined and used, a query finds it and then rewrites can target it and it's surroundings.
My hope is that mass code rewrites are more acceptable to the compiler team, in that they can author, review and debate the rewrites ahead of time without any time pressure. Listening to the team, there were things they might want to do/try (dropping memory, all crates in one process), but the changes are so comprehensive that to do them by hand is effectively a stop the world process. With mass code rewriting tools, it should be possible to rerun the rewrite on main whenever, and as well, any work that others have going on in pr's can likewise be transformed without any impact. This way takes a bit of coordination, but not years and years of it.
Similarly, it's not clear that any of the big changes are actually worth it yet. Maybe dropping memory is a meh, or compiling all the crates at once is not that big a win. I can run this on nightly and keep up to date with what's going on there while experimenting with weird stuff, without wandering out into the wilderness with a hard fork. Maybe there's a way to 100x perf on the other side, and if a pathway can be shown to get there in theory via agents, then the team can find their own path there that fits their attitudes around use or none use of agents and we all benefit. Exciting times!
comment 2w ago · link · parent
I received no less than 20 automated low effort email about this post, telling me about how they had added my project to their website, and how they wanted to help me promote it. All I had to do was sign up for their service, create an account, verify that everything looked good on their prefilled out post, etc. I tried this for one of the emails to see what would happen, and at the very end, they say, oh, we have a queue of several hundred projects right now actually, but if you want to jump to the front it only costs $28, limited time offer, just for you!
I had one nice conversation with somebody otherwise, they were also pitching a sort of lead gen sales thing built on AI but more hand made? Unclear, but it was a cute back and forth. On the whole an interesting experiment, though not one I'll be repeating again anytime soon if I can help it.
comment 2w ago · link · parent
Ur has some pretty good static analysis and code rewriting tools hidden inside of it that'll get documented later on. These tools have been developed in tandem with a static mass rewrite of some core parts of the Rust compiler. It's very much not done, but it's made pretty good progress towards putting all crates in one process, dropping memory after a crate is done compiling, and full incremental support across all commands. Here is a literate program that explains why, how and which changes are being made (I haven't read all of it myself yet, lots still changing). Aiming to have this out by end of the month.
11.
Show HN: Professionally maintained Tree-sitter compatible WASM grammars(powderworks.dev ↗)
1 points · by knuckleheads · 1mo ago · discuss
comment 1mo ago · link · parent
Some things take time to learn to enjoy. I've bounced off things in the past several times before I started to really enjoy them later on. I'd like to think my experience with media is not just a random walk through whatever is in front of me and that I can direct that experience, at least a bit.
14.
Endgame: Singularity(emhsoft.com ↗)
2 points · by knuckleheads · 1mo ago · discuss
comment 1mo ago · link · parent
comment 1mo ago · link · parent
comment 1mo ago · link · parent
comment 1mo ago · link · parent
comment 1mo ago · link · parent
There is an .early-rmeta file that is generated that contains the result of type checking the outer part of the functions (arguments, returns) that is then passed down to all the other dependencies that can use it and get a "headstart" on their work. -Zearly-metadata is the flag for Rustc here to turn that on. It also needed to learn how to swap the real metadata in for the early stuff that it was previously using, once the real stuff showed up.
Rustc needs to be able to pause and resume at certain points and Cargo needs to be know how to look for and react to that, which is what -Zheadstart does for Cargo. So there's some changes job_queue that happen to there. I haven't checked this directly yet, but my understanding is that it doesn't kill the process, it just has it sit and wait, which normally would occupy a slot, but doesn't any longer. ---
So not a cache, just being able to pause and start work and better utilize the available slots.
24.
Emitting metadata early makes building/checking Rust up to twice as fast(github.com ↗)
157 points · by knuckleheads · 1mo ago · 43 comments
comment 1mo ago · link · parent
^ run setup and give it a whirl. Will send to Rust compiler team when I have some pr's up etc.
comment 1mo ago · link · parent
comment 1mo ago · link · parent
Headstart on codex-rs (16 cores, clean builds, median of 3 alternating off/on pairs):
off on saved
cargo check 383.8s 277.1s 28%
cargo build 530.7s 330.8s 38%
check, -Zthreads=8 220.0s 190.5s 13%
build, -Zthreads=8 317.3s 249.2s 21%
Not helpful for compilation yet, but it's something :)comment 1mo ago · link · parent
comment 1mo ago · link · parent
I view this as speculative execution/compilation and just throw out any errors from a crate that depended on another crate that ultimately errors out. It has the same outcome (same errors are printed in both cases) you just have a chance of having totally wasted some cpu time (that was otherwise just sitting around though).