HNHacker News
TopNewBestAskShowJobs

tcfhgj

1,544 karma · joined December 31, 2021

socialist eco terrorist
submissionscomments
tcfhgj··on A 40ms Go garbage collector pause caused by swap
how this relates to garbage collectors
tcfhgj··on A 40ms Go garbage collector pause caused by swap
How does this relate?
tcfhgj··on Ask HN: Why is Ask HN only showing me 14 posts?
maybe you installed a "Hacker news without AI" addon or script?

https://news.ycombinator.com/item?id=49659647

tcfhgj··on A 40ms Go garbage collector pause caused by swap
> Yes, I can, e.g. by implementing deferred deallocation, which is a primitive GC form.

sounds more like a form of manual memory management

tcfhgj··on A 40ms Go garbage collector pause caused by swap
as a programmer you know and you can even control it by designing the appropriate scope and moving between scopes

> You lose nothing when going out of scope with GC.

actually, you don't know

tcfhgj··on A 40ms Go garbage collector pause caused by swap
and yet whether or not other work is being done currently is in your control, thus predictable (unless you chose to give control out of your hands e.g. by introducing two threads racing against each other); same regarding the subset
tcfhgj··on A 40ms Go garbage collector pause caused by swap
a GC still won't run at the end of the scope - it will run at an unknown time and do an unknown* amount of work at the times it is running.

* subset of all allocations until it runs

tcfhgj··on A 40ms Go garbage collector pause caused by swap
if the arc is the last: the data structure is destructed and deallocated + atomic check

if the arch is not the last: atomic check

tcfhgj··on A 40ms Go garbage collector pause caused by swap
no, it is not. A gc won't run at the end of the scope when the reference is droped. And if it runs, the amount of work is unknown.
tcfhgj··on A 40ms Go garbage collector pause caused by swap
the work is predictable and the amount not arbitrary
tcfhgj··on A 40ms Go garbage collector pause caused by swap
> I'm being downvoted, but honestly, is anyone always testing their software while swap is active?

Yes, not only is my system using swap 100% of the time, but I am working on and using an application (Rust) which often is used during a high demand of swap and expected to run reliably.

tcfhgj··on Pixel 11 doesn't yet meet the GrapheneOS security standards and may be skipped
why upgrade every 3 years when there are 7 years of updates?
tcfhgj··on How to speed up the Rust compiler in September 2026
> The #1 thing for the Rust project to do is make Rust faster to compile.

#0 get rid of the orphan rule

tcfhgj··on Coding is not solved
well, depends on how rich you are
tcfhgj··on Writing Efficient C++ Code (2013)
the CCG isn't from the committee, but from Bjarne Stroustrup and Herb Sutter.

Bjarne is often in disagreement with the committee

tcfhgj··on Writing Efficient C++ Code (2013)
are you sure?

https://stackoverflow.com/questions/69444641/c17-stdvariant-...

tcfhgj··on F-Droid 2.0
Fossify Suite
tcfhgj··on Italian parliament votes for return to nuclear energy
how many black holes have been created by particle accelerators in the past?
tcfhgj··on Dutch governments builds alternative for Microsoft based on NixOS
implies for me >50% - instead of >0% as suggested by @ricardobeat
tcfhgj··on F-Droid 2.0
Not to mention the insurmountable amount of ads
tcfhgj··on Dutch governments builds alternative for Microsoft based on NixOS
So far I have broken every Linux distro I used except NixOS.

And if I were to break it, i could just reboot into the previous system snapshot.

And I haven't read 1000 pages of docs - from my experience id doubt it even has that many docs.

tcfhgj··on Dutch governments builds alternative for Microsoft based on NixOS
AI generated code is allowed on Codeberg, but not if it's mostly ai generated
tcfhgj··on Italian parliament votes for return to nuclear energy
Nothing irrational here, already happened
tcfhgj··on Italian parliament votes for return to nuclear energy
you do you
tcfhgj··on F-Droid 2.0
it's beyond me why someone who uses F-Droid would consider an phone from Apple
tcfhgj··on Italian parliament votes for return to nuclear energy
Cancer is the smallest problem when bigger areas become inhabitable, and food inedible.
tcfhgj··on Italian parliament votes for return to nuclear energy
I am pretty sure anyone could make nuclear work by throwing lots of money around
tcfhgj··on Italian parliament votes for return to nuclear energy
If nuclear is such a big cash cow, why is edf in huge debts, state owned and suffering from aged power plants having issues?
tcfhgj··on Android 17 is the first since 3.x to add new APIs without releasing to the AOSP
I am pretty sure I understood quite well.

> Well, go for it, fork and "provide support" to the hardware hostile to non-stock OS, be a hero :)

tcfhgj··on Android 17 is the first since 3.x to add new APIs without releasing to the AOSP
I didn't insinuate hostility of every vendor except Google.
Page 1 of 34Next →