1,834 karma · joined Jan 1, 2021 (5y ago) · 341 submissions
comment 11mo ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
For this first implementation, I don't see anything ever added to the queue. Am I missing something? New task is added to the queue if the queue is not empty only, but when the queue is empty the task is executed and the queue remains empty so in the end the queue is always empty?
comment 1y ago · link · parent
comment 1y ago · link · parent
Figuring out which program prevents sleeping is the easy part - there are tools that show that, and you can also usually just brute force it by killing programs one by one.
Then comes figuring out why a system claims to be sleeping but isn't (e.g. the fan is still spinning). Usually this is because of the Modern Standby/S0 crap and in many cases there isn't a solution because the BIOS removed support for S3.
The other class of issue is after sleeping the system won't wake up, or wake up randomly, or wake up with random glitchy graphics/sounds/etc.
Sleep is easily Windows's most bug-ridden area.
comment 1y ago · link · parent
comment 1y ago · link · parent
Kinda reminds me of this quote
https://www.usenix.org/system/files/1311_05-08_mickens.pdf
> There will be rich debates about the socioeconomic implications of Helvetica Light, and at some point, you will have to decide whether serifs are daring statements of modernity, or tools of hegemonic oppression that implicitly support feudalism and illiteracy.
comment 1y ago · link · parent
https://semianalysis.com/2025/01/31/deepseek-debates/
They cite themselves as the source, and throughout the article are just a bunch of "We believe...".
Am I missing something?
comment 1y ago · link · parent
On the other hand, there is no way to measure the "effectiveness" of TDD as compared to not using it.
I'm sorry that you feel that strongly about it but that certainly seems like zealotry to me.
comment 1y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
https://news.ycombinator.com/item?id=18442941
To quote part of it
> Oracle Database 12.2.
> It is close to 25 million lines of C code.
> What an unimaginable horror! You can't change a single line of code in the product without breaking 1000s of existing tests. Generations of programmers have worked on that code under difficult deadlines and filled the code with all kinds of crap.
> Very complex pieces of logic, memory management, context switching, etc. are all held together with thousands of flags. The whole code is ridden with mysterious macros that one cannot decipher without picking a notebook and expanding relevant pats of the macros by hand. It can take a day to two days to really understand what a macro does.
> Sometimes one needs to understand the values and the effects of 20 different flag to predict how the code would behave in different situations. Sometimes 100s too! I am not exaggerating.
> The only reason why this product is still surviving and still works is due to literally millions of tests!
comment 2y ago · link · parent
comment 2y ago · link · parent