Better HN
topnewbestaskshowjobs
Log inSign up

jn6118

173 karma · joined Nov 24, 2020 (6y ago) · 7 submissions

Submissions

comment 2mo ago · link · parent

Interesting, but would make for a much stronger article with a proper discussion of performance, backed by measurements.

This would allow the reader to better weigh the balance of code damage against any gains in performance.

Unless I missed it, it just seemed to be hinted at, but not presented.

comment 8mo ago · link · parent

This article really resonates with me and I'm somewhat relieved to see someone else feels the same way.

I love physical books for general reading and will often buy both physical and ebook format for technical books to get the best of both worlds.

I now cannot stand print-on-demand books and, like the author, I can spot them very quickly. The quality is abysmal, and I might as well be printing them myself at that point.

I too used to default to Amazon, as the price was often about 30% cheaper. However, I've come to realise that you get what you pay for. In the UK, I just buy from Waterstones or local bookshops, as then I can trust that it has likely come from the publisher or at least can inspect in advance.

I am never buying a book from Amazon again.

comment 1y ago · link · parent

I was surprised there was no mention of OpenMP in the discussion of shared-memory parallel programming in C.

OpenMP is a lot easier to work with (and is more concise) than pthreads. It is introduced using pragma directives (so you can maintain serial and parallel versions in the same code). It includes support for many common parallel patterns (e.g. distribution of array based and task-based calculations) and makes the synchronisation easier (or automatic). It also gives you powerful control over work sharing to reduce load imbalance, etc.

It's available in most common C and C++ compilers and many other accelerated programming solutions wrap the API (e.g. you can use OpenMP within a Cython module, called from a Python script).

comment 2y ago · link · parent

Another freak accident where the halo undoubtedly saved a life is Zhou's crash off the start at Silverstone 2022: https://youtu.be/B2XHq9d4OWI?feature=shared

comment 3y ago · link · parent

I quite like the XKCD visualisation of this - eating one banana == 2 small blue squares.

https://xkcd.com/radiation/

comment 6y ago · link · parent

Looks like a dot means "most recent post for user".

For those with only a single post, these users will have dots.

For those with multiple posts, only the latest ones retain the dot.