HackerTrans
TopNewTrendsCommentsPastAskShowJobs

aapoalas

no profile record

Submissions

Garbage collection is contrarian

trynova.dev
68 points·by aapoalas·6 माह पहले·23 comments

The Diary of a Datum (2005) [pdf]

dominoweb.draco.res.ibm.com
2 points·by aapoalas·10 माह पहले·1 comments

comments

aapoalas
·20 दिन पहले·discuss
Really cool to see Zig have strong support and a stable financial status <3
aapoalas
·27 दिन पहले·discuss
Ooh, cooll to hear you got some uptake on the call for formal methods help! Or did you end up figuring it out on your own? Either way, looking forward to the followup!
aapoalas
·पिछला माह·discuss
Oh, I was just watching this yesterday and got a little re-energised about getting back to more active development of my DoD JS engine! Thanks!
aapoalas
·2 माह पहले·discuss
Beyond just quite possibly being slop, this is also sloppy and confused: complaining that C++ cannot remove features because they live in the stdlib forever while listing out a bevy of features that got deprecated and then removed is just oof.

Also, fun fact: Rust cannot remove anything from std once stabilised, presumably forever. Take this with a slight grain of salt, I haven't vetted this thought myself, but it's what I hear from Rust project people and I've just been in the project all-hands for three days.

Rust does partially have an easier time since it eg. does not guarantee the ABI of various std types like Vec (although the size and alignment are probably guaranteed at this point), and with 1&mut XOR N& providing local reasoning and isolation you get to change internal details easier.
aapoalas
·2 माह पहले·discuss
This bug was already reported very soon after the merge.
aapoalas
·2 माह पहले·discuss
They have a PR (~~closed by GitHub bot as AI slop, ironically~~ this was wrong info, it was apparently closed by Jarred himself as it missed a conversion or some 20 Zig files to Rust) to remove the Zig code.

I guess the answer is "no".
aapoalas
·2 माह पहले·discuss
Regarding the architecture documentation you have up on tsz.dev, one thing that jumped out to me was the use of the per node typed side pools. A semi-recent talk[0] had benchmarked this and found it to be a deoptimisation: he couldn't explain it, but an audience member suggested it is likely because an AST is not generally very type-homogenous in its visit order. After a CallExpr node the next node to visit is probably not a CallExpr but more probably an Identifier etc, so storing the node "extra data" in separate pools makes them more likely to be cold in cache rather than hot.

In Nova JavaScript engine[1] I've done exactly as you've done and split objects into typed side pools (I call them "(typed) heap vectors") but in a JavaScript engine my _hypothesis_ is that the visitation patterns are much more amenable to this: an Array, Set, or Map is more likely to be homogeneous than heterogeneous, and therefore a loop over the contents is likely going to hit the same side pool for each entry.

[0]: https://www.youtube.com/watch?v=s_1OG9GwyOw [1]: https://trynova.dev/
aapoalas
·2 माह पहले·discuss
"They're your feelings and no one else has the right to how you should feel about them."
aapoalas
·3 माह पहले·discuss
Remember to be careful with looping lest you create an ikikieriö.
aapoalas
·3 माह पहले·discuss
Would kernel huge pages possibly have an effect here also?
aapoalas
·5 माह पहले·discuss
I may have not properly read the paper that said "This is not a visa, you should apply for a visa using this paper"...
aapoalas
·5 माह पहले·discuss
I have very fond memories of Kansai airport. First time I went to Japan I ... Uhh, I didn't have a visa despite going there for exchange.

The Kansai airport immigration office uttered a lot of "oohs" and "eehs", but they came through and in less than 45 minutes my appeal for deportation was accepted and I was granted a 1 year student visa. Always makes me happy when I pass through there :)
aapoalas
·5 माह पहले·discuss
You and me both; never change you beautiful bastard of a language <3
aapoalas
·5 माह पहले·discuss
If you want to take a look at some of the "big drivers", the Project Goals[1] is the right place. These are goals proposed by the community and the language developers put together, they are not explicit milestones or must-haves, but they do serve as a guideline to what the project tries to put its time and effort on.

[1]: https://rust-lang.github.io/rust-project-goals/
aapoalas
·5 माह पहले·discuss
He is the Rust project lead, and the Rust project has been doing quite a bit of user, adopter, and non-adopter interviews over the past few years.
aapoalas
·5 माह पहले·discuss
It's also been ridiculously slow for a month or two now :/ not a good time to be working on some relatively intricate performance optimisation with DevTools taking 1-4 seconds to even start the performance recording.
aapoalas
·5 माह पहले·discuss
I was sitting behind you as you wrote this comment.

I just wanted to tell you that.
aapoalas
·5 माह पहले·discuss
F.ex. they didn't do postgresql and other DBs separately but instead just had a databases room.
aapoalas
·6 माह पहले·discuss
Monkey's paw: you get your wish, but so does someone who wants RAII and single-use-malloc to be left behind as a leaky and bad abstractions.

We all happily march into a future where only arena allocation is allowed, and when the arena is overfull it can only be fully reset without saving data. Copying still-used data out if it before reset is not allowed, as that's a copying half-space garbage collector. Reference counting is of course not allowed either as that's also garbage collection. Everyone is blessed...?
aapoalas
·6 माह पहले·discuss
I aim to displease!