News for hackers. Stuff that matters.

dhooper

Re:Ask HN: Could you share your personal website here? on Wednesday January 14, 2026 @02:09PM (#46621062)
www.danielchasehooper.com
Re:How I bypassed Amazon's Kindle web DRM on Thursday October 16, 2025 @09:58PM (#45612656)
I've always wanted it to work this way. However it'd only work if you had a case with the magnetic cover to turn on the device. Otherwise someone would pick up their un-cased kindle with the page lock screen, start reading, and then get confused when they tried to turn the page and nothing happened — the device would still be off!
Re:I Made a Realtime C/C++ Build Visualizer on Friday August 15, 2025 @11:40AM (#44913745)
I used the term "early access" when I should've used "private beta". The sign up is just for me to have an email addresses to send the private beta when the next update goes out, and I'll follow up for feedback. Nothing sinister is happening.
Re:I Made a Realtime C/C++ Build Visualizer on Thursday August 14, 2025 @09:11PM (#44907589)
Good suggestion. Updated.
Re:I Made a Realtime C/C++ Build Visualizer on Thursday August 14, 2025 @04:29PM (#44905318)
Thanks CyberDildoNics!
Re:I Made a Realtime C/C++ Build Visualizer on Thursday August 14, 2025 @02:59PM (#44904243)
I use whatever the equivalent is on that OS.
Re:I Made a Realtime C/C++ Build Visualizer on Thursday August 14, 2025 @02:52PM (#44904160)
I'll be sending out the a macOS version to another wave of beta users after I fix an outstanding issue, if you sign up (at bottom of article) and mention this comment I can make sure you're in that wave.
Re:I Made a Realtime C/C++ Build Visualizer on Thursday August 14, 2025 @02:39PM (#44904023)
Thank you! Yeah it can be used for any type of program, but I haven't been able to think of anything besides compilation that creates enough processes to be interesting. I'm open to ideas!
Re:I Made a Realtime C/C++ Build Visualizer on Thursday August 14, 2025 @02:33PM (#44903960)
OP Here. Thats an interesting idea. What The Fork knows all the commands run, and every path they read/write, so I should be able to make it estimate build time just by looking at what files were touched.
Re:I Made a Realtime C/C++ Build Visualizer on Thursday August 14, 2025 @02:28PM (#44903892)
(OP here) Thanks!

My call with the Mozilla engineer was cut short, so we didn't have time to go into detail about what he found, I want to look into it myself.

Re:A Fast, Growable Array with Stable Pointers in C on Wednesday August 06, 2025 @05:39PM (#44818170)
1. The image at the top of the article makes it clear the segments aren't contiguous

2. iterating a 4 billion item segmented array would have 26 cache misses. Not a big deal.

Re:A Fast, Growable Array with Stable Pointers in C on Wednesday August 06, 2025 @04:13PM (#44817139)
feel free to call it a "levelwise-allocated pile"
Re:I write type-safe generic data structures in C on Monday June 30, 2025 @11:00PM (#44430171)
Not sure what you mean by that, but if you're trying to imply that C is not relevant: https://www.tiobe.com/tiobe-index/

Plus an article about C was at the top of hacker news all day today.

Re:I write type-safe generic data structures in C on Monday June 30, 2025 @07:48PM (#44429139)
The assignment is intentional. The union changed to a struct
Re:I write type-safe generic data structures in C on Monday June 30, 2025 @04:55PM (#44427768)
Thanks, this post is about C.

On some projects you must use C.

Re:I write type-safe generic data structures in C on Monday June 30, 2025 @04:53PM (#44427751)
msvc 19.39 is the first to support it, which I mention in the article. You can confirm it didn't work up through 19.38 in godbolt [1]. I don't use Visual Studio, so I don't know what version of that first started using msvc 19.39

[1] https://godbolt.org/z/M7zPYdssP

Re:I write type-safe generic data structures in C on Monday June 30, 2025 @03:24PM (#44426913)
This is addressed in the footnotes. casting is not the core of the type safety. Read the whole article.
Re:I write type-safe generic data structures in C on Monday June 30, 2025 @02:49PM (#44426578)
Author here. It's worth noting that no work is being done in the macros of my article, they compile down to a normal c function call which you can step through in a debugger.

There is little benefit in monomorphizing the implementation of a data structure like a linked list where its behavior doesn't depend on the contents of the data it contains (compared to, say, a max heap)

Re:I write type-safe generic data structures in C on Monday June 30, 2025 @02:46PM (#44426545)
Author here. Binary heaps and linked lists are different use cases. A binary heap must read the data you put in it to store it correctly, but a linked list doesn't. If I were writing a generic binary heap, maybe I would weigh my options differently. I mentioned this in the footnotes.
Re:I write type-safe generic data structures in C on Monday June 30, 2025 @02:03PM (#44426164)
Author here. Not quite. The key idea is about using a union to associate type information with a generic data type. Type casting a function is not the only way to use that type information. I discuss that as well as the C23 changes in the footnotes and the "typeof on old compilers" section.
Re:My A11 Journey on Friday June 20, 2025 @11:10AM (#44328478)
This is a great example of why replacing the middle of a word with numbers is a bad idea. it makes the word less accessible.
Re:Fine-tune Google's Gemma 3 on Thursday March 20, 2025 @07:03AM (#43421646)
Please try to enjoy each Gemma tuning equally, and not show preference for any over the others
Re:Stupid Smart Pointers in C on Monday March 17, 2025 @07:52PM (#43394082)
This is the way
Re:A New Sudoku Layout with 81 Uniquely Shaped Cells on Friday March 14, 2025 @10:29PM (#43369393)
Options are almost never the right solution
Re:A New Sudoku Layout with 81 Uniquely Shaped Cells on Friday March 14, 2025 @10:27PM (#43369387)
It doesn’t reset underneath them.
Re:A New Sudoku Layout with 81 Uniquely Shaped Cells on Friday March 14, 2025 @01:51PM (#43365164)
Bottom right corner, to the right of the 5.

I just updated the app to tell you how many cells are blank. If it's less than 4, it'll select them so you see where they are.

Re:A New Sudoku Layout with 81 Uniquely Shaped Cells on Friday March 14, 2025 @12:54PM (#43364538)
When the whole thing is solved it says "you did it". You missed a cell.
Re:A New Sudoku Layout with 81 Uniquely Shaped Cells on Friday March 14, 2025 @11:43AM (#43363719)
"These layouts are generated from Voronoi Diagrams"
Re:A New Sudoku Layout with 81 Uniquely Shaped Cells on Friday March 14, 2025 @11:42AM (#43363702)
The improvement needed is to have a human construct the puzzles and lay out run lines, cells, and groups more tastefully than a program can.

Older »