Better HN
topnewbestaskshowjobs
Log inSign up

dhooper

326 karma · joined Aug 23, 2013 (13y ago) · 81 submissions

www.danielchasehooper.com
Submissions

comment 10mo ago · link · parent

www.danielchasehooper.com

comment 1y ago · link · parent

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!

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Good suggestion. Updated.

comment 1y ago · link · parent

Thanks CyberDildoNics!

comment 1y ago · link · parent

I use whatever the equivalent is on that OS.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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!

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

(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.

11.

I made a real-time C/C++/Rust build visualizer(danielchasehooper.com ↗)

417 points · by dhooper · 1y ago · 89 comments

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

feel free to call it a "levelwise-allocated pile"

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

The assignment is intentional. The union changed to a struct

comment 1y ago · link · parent

Thanks, this post is about C.

On some projects you must use C.

comment 1y ago · link · parent

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

comment 1y ago · link · parent

This is addressed in the footnotes. casting is not the core of the type safety. Read the whole article.

comment 1y ago · link · parent

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)

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

Please try to enjoy each Gemma tuning equally, and not show preference for any over the others
123