Readit News logoReadit News
tmoravec commented on Ask HN: Best codebases to study to learn software design?    · Posted by u/pixelworm
tmoravec · 10 days ago
There's a free book on this topic: The Architecture of Open Source Applications

https://aosabook.org/en/index.html

Maybe that would be a good start. You can then pick a project to dive in.

As a more specific tip, I've done some hacks in Nginx long time ago and found it quite nice.

tmoravec commented on DeepSeek-v3.1   api-docs.deepseek.com/new... · Posted by u/wertyk
rapind · 12 days ago
Claude's Opus pricing is nuts. I'd be surprised if anyone uses it without the top max subscription.
tmoravec · 12 days ago
FWIW I have the €20 Pro plan and exchange maybe 20 messages with Opus (with thinking) every day, including one weeks-long conversation. Plus a few dozen Sonnet tasks and occasionally light weight CC.

I'm not a programmer, though - engineering manager.

tmoravec commented on Gemini 2.5 Pro Preview   developers.googleblog.com... · Posted by u/meetpateltech
MR4D · 4 months ago
I think an analogy that is helpful is that of a woodworker. Automation just allowed them to do more things at in less time.

Power saws really reduced time, lathes even more so. Power drills changed drilling immensely, and even nail guns are used on roofing project s because manual is way too slow.

All the jobs still exist, but their tools are way more capable.

tmoravec · 4 months ago
How many wood workers were there as a proportion of the population in the 1800s and now?
tmoravec commented on NotebookLM Audio Overviews are now available in over 50 languages   blog.google/technology/go... · Posted by u/saikatsg
ksynwa · 4 months ago
Tangential: Anyone knows a free/cheap service that can turn English text articles into an audio file narrating them? Can NotebookLM do this? I don't want to turn them into podcasts or conversations.
tmoravec · 4 months ago
Eleven Reader works well enough for me on iPhone. Free tier.
tmoravec commented on We asked camera companies why their RAW formats are all different and confusing   theverge.com/tech/640119/... · Posted by u/Tomte
weinzierl · 5 months ago
I always thought camera RAW formats were optimize continuous shooting rates. About being able to linearly write an image as fast as possible.

I don't know the details of DNG but even the slightest complication could be a no-go for some manufacturers.

tmoravec · 5 months ago
The bottleneck is usually in SD card write speeds, however. Sport photographers often skip raw and only use JPG because the files are smaller and as a result, one can take more photos in one burst.
tmoravec commented on C and C++ prioritize performance over correctness (2023)   research.swtch.com/ub... · Posted by u/endorphine
pcwalton · 5 months ago
I was disappointed that Russ didn't mention the strongest argument for making arithmetic overflow UB. It's a subtle thing that has to do with sign extension and loops. The best explanation is given by ryg here [1].

As a summary: The most common way given in C textbooks to iterate over an array is "for (int i = 0; i < n; i++) { ... array[i] ... }". The problem comes from these three facts: (1) i is a signed integer; (2) i is 32-bit; (3) pointers nowadays are usually 64-bit. That means that a compiler that can't prove that the increment on "i" won't overflow (perhaps because "n" was passed in as a function parameter) has to do a sign extend on every loop iteration, which adds extra instructions in what could be a hot loop, especially since you can't fold a sign extending index into an addressing mode on x86. Since this pattern is so common, compiler developers are loath to change the semantics here--even a 0.1% fleet-wide slowdown has a cost to FAANG measured in the millions.

Note that the problem goes away if you use pointer-width indices for arrays, which many other languages do. It also goes away if you use C++ iterators. Sadly, the C-like pattern persists.

[1]: https://gist.github.com/rygorous/e0f055bfb74e3d5f0af20690759...

tmoravec · 5 months ago
size_t has been in the C standard since C89. "for (int i = 0..." might have it's uses so it doesn't make sense to disallow it. But I'd argue that it's not really a common textbook way to iterate over an array.
tmoravec commented on Germany is unlocking billions to supercharge its military at a seismic moment   cnn.com/2025/03/23/europe... · Posted by u/rustoo
c0l0 · 5 months ago
Even if WWIII is not a consequence of all this senseless and reckless militarization, each and every penny spent on it will end up missing dearly for fighting human civilization's real fight of this century: combatting climate change. It's even worse, since this kind of spending will make it even worse.

I'm afraid humanity is blowing it for good with this.

tmoravec · 5 months ago
If Germany is conquered by Russia, there's exactly nothing done to combat climate change. Warding them off gives at least a chance to work on that and some progress.
tmoravec commented on Kill your Feeds – Stop letting algorithms dictate what you think   usher.dev/posts/2025-03-0... · Posted by u/tom_usher
OisinMoran · 6 months ago
I've actually been working on something tackling exactly this for a little while now. It's a social network where you post to your own curated tags, and people can follow any subset of those. So you can post both your "local small town history" and also "important cs papers", and those interested in either or both can follow as they choose. It's alts by default. And to start, it's focused on links.

Reverse chronological is sacrosanct and it will always remain ad free to keep incentives aligned with it being a place I like to spend time. Every tag also has its own RSS feed.

It's still invite-only, but anyone reading this page is obviously a great fit so here's an invite link: https://lynkmi.com/accounts/signup/?invite_code=333ee833-e3d...

tmoravec · 6 months ago
The basic idea with tags sounds very similar to Reddit. Especially with the initial focus on links. Reddit has degenerated into something a bit different, however. Why would your app stay true to the original concept in the face of scaling and financial pressure?

u/tmoravec

KarmaCake day608August 30, 2016View Original