21,270 karma · joined Nov 23, 2012 (14y ago) · 6,736 submissions
blog: https://rtpg.co
email: raphael at above domain
comment 7mo ago · link · parent
Universal hot reload is really a messy beast though. For every "yeah we can just reload this without re-init'ing the structure" there's another "actually reloading causes weird state issues and you have to restart everything anyways" thing.
I've found that hot reloading _specific targetting things_ tends to get you closer to where you want. But even then... sometimes using browser dev tools to experiment on the output will get you where you want faster than trying to hot reload clojurescript but having to "reset" state over and over again or otherwise work around weirdness.
I think this flow works well in Emacs though because you're operating on an editor. So you can change things, press buttons, change things, and have a good mental model. Emacs Lisp methods tend to have very little state to them as well (instead the editor is holding a bunch of exposed state).
Meanwhile React (for example) has _loads_ of hard-to-munge state that means that swapping one component for another inline might be totally fine or might just crash things in a weird way or might not have anything happen. Sometimes just a full page refresh will save you thinking about this
comment 7mo ago · link · parent
It's a shame that other scripting languages that theoretically have the capabilities to do this don't do this (looking at you, node! Chrome dev tools are fine but way too futzy compared to `import pdb; pdb.set_trace()` and "just" using stdin)
I do also use Emacs, and with Emacs Lisp `trace-function` means you can very quickly get call traces in your running instance without having to pull out a debugger and the like. Not like you can't trace functions with `gdb` of course. But the lowered barrier to entry and the ability to do in-process debugging dynamically means you just have access to richer debugging tools from the outset.
comment 7mo ago · link · parent
A perhaps more interesting use case is the utsunomiya light rail. Utsunomiya has a density of around 1200/km^2.
What they ended up doing was building a new tram with exactly one line. The main thing they did was make sure the tram comes frequently, including off peak.
End result is people rely on the tram line and the tram is making good money, being operationally profitable (still gotta pay back construction costs of course).
Utsunomiya is obviously not exactly greater LA, but Utsunomiya has on average 2.25 cars per household[0]. It has traffic issues and people feel the need to own a car. And yet the tram line is finding success because transportation is a local issue, not a global one!
You can solve for transportation issues in crowded areas. Few reasonable people are lamenting that you don't have a train between madison, WI and Chicago every 15 minutes. Many are simply lamenting that even at a local level PT in many places is leaving a lot on the table despite there being chances of success!
Smaller focused PT has proven itself to work time and time again, and compounds on other PT projects in the area.
[0]: https://www.pref.tochigi.lg.jp/english/intro/overview.html
comment 7mo ago · link · parent
The company itself was based in mainland China less than 12 months ago.
comment 7mo ago · link · parent
As a data point I'm reading some series I enjoyed the first 2 volumes of. I just picked up the next 7 ones because they were there and each of em were ~$5. Wouldn't have done that if they were $30, and I'm not guaranteed to get to the end!
comment 7mo ago · link · parent
Walking around in an Australian bookstore at least I am still a bit flabbergasted by how everything is printed to be huge, everything a slightly different size, lots of paperbacks with glossy covers etc.
Not that I think this is a "cost of materials" thing in itself. But it all compounds on itself to where now a bookstore is huge to have just some random nonsense, and people will probably buy 2 instead of 3 books.
I agree that books are probably not "too expensive", I just wish that the mass market paperbacks would be smaller more straightforward and less of a precious little item.
To anyone interested in this stuff and in Tokyo(... well, Saitama), the Kadokawa Culture Museum [0] is ... probably the biggest building commemorating a publishing house in the world? The pictures don't do it justice, the building is ginormous.
But in it there's a bit of a (corporate approved) history of Kadokawa built into the museum. Their core thing that found them success: standardising a small pocketbook format for printing their books, having almost everything print to that size, with the same font etc, and selling it at a low enough price that college students could buy more books than they could ever read.
Printing all your cheap stuff in A6 sizes mean you can have a _loooot_ of books at home before worrying about much.
comment 7mo ago · link · parent
The first (and maybe even second) usage of a gnarly, badly thought out pattern might work fine. But you're only a couple steps away from if statement soup. And in the world where your agent's life is built around "getting the tests to pass", you can quickly find it doing _very_ gnarly things to "fix" issues.
comment 7mo ago · link · parent
Are you working more on operational stuff or on "long-running product" stuff?
My personal headcanon: this tooling works well when built on simple patterns, and can handle complex work. This tooling has also been not great at coming up with new patterns, and if left unsupervised will totally make up new patterns that are going to go south very quickly. With that lens, I find myself just rewriting what Claude gives me in a good number of cases.
I sometimes race the robot and beat the robot at doing a change. I am "cheating" I guess cuz I know what I want already in many cases and it has to find things first but... I think the futzing fraction[0] is underestimated for some people.
And like in the "perils of laziness lost"[1] essay... I think that sometimes the machine trying too hard just offends my sensibilities. Why are you doing 3 things instead of just doing the one thing!
One might say "but it fixes it after it's corrected"... but I already go through this annoying "no don't do A,B, C just do A, yes just that it's fine" flow when working with coworkers, and it's annoying there too!
"Claude writes thorough tests" is also its own micro-mess here, because while guided test creation works very well for me, giving it any leeway in creativity leads to so many "test that foo + bar == bar + foo" tests. Applying skepticism to utility of tests is important, because it's part of the feedback loop. And I'm finding lots of the test to be mainly useful as a way to get all the imports I need in.
If we have all these machines doing this work for us, in theory average code quality should be able to go up. After all we're more capable! I think a lot of people have been using it in a "well most of the time it hits near the average" way, but depending on how you work there you might drag down your average.
[0]: https://blog.glyph.im/2025/08/futzing-fraction.html [1]: https://bcantrill.dtrace.org/2026/04/12/the-peril-of-lazines...
comment 7mo ago · link · parent
I have been unpleasantly surprised by several programs outright crashing when not being able to send telemetry data consistently. Though this has usually been when the connection is a bit odd and it is able to send through _some_ stuff but then crashes when it fails later.
comment 7mo ago · link · parent
- Sometimes your test code expects time to be moving forward
- sometimes your code might store classes into a hashmap for caching, and the cache might be built before the freeze time class override kicks in
- sometimes it happens after you have patched the classes and now your cache is weirdly poisoned
- sometimes some serialization code really cares about the exact class used
- sometimes test code acts really weird if time stops moving forward (when people use freezetime frozen=true). Selenium timeouts never clearing was funny
- sometimes your code gets a hold of the unpatched date clsss through silliness but only in one spot
Fun times.
The nicest thing is being able to just pass in a “now” parameter in things that care about time.
comment 7mo ago · link · parent
I lived real downtown in Tokyo and my street was like "1.5" lanes wide (if cars were coming in both directions one basically needs to pull over and stop). I could just walk in the middle of the street. There was no sidewalk. No street parking of course. Cars would drive down at 15km/h or whatever, and slow to a crawl if people were in the street.
Straight lines are efficient walking routes, and ... well... that might involve just crossing the street directly! Every layer of grade separation gets in the way of that.
End result of all of this is less pavement to maintain, slower drivers (-> safer!), good walking and cycling conditions, etc etc etc.
comment 7mo ago · link · parent
I do have the impression Tokyo is getting similar dynamics to the rest of the world on this front: builders don't care where the money is coming from and so if money from outside the country can get buildings built they're happy.
A friend of mine moved into a sold-out Yokohama tower mansion recently... and despite the bike and car parking being fully booked even more than 6 months in it was _quite_ empty. I have a feeling a lot of people are buying into the market expecting to get easy rental money and not really seeing it.
comment 7mo ago · link · parent
Things that make systems more understandable to the LLMs ... usually make things more understandable for humans as well. Usually.
The biggest issue I've found is that vibed up tooling tends to be pretty bad at having the right kind of "sense" for what makes good CLI UX. So you still have awkward argument structures or naming. Better than nothing though
comment 7mo ago · link · parent
So it sounds like in the end you need to pay 10k JPY per queue + an extra bit of money to wire it all together. Maybe with Twilio you can set up something similarly fire-and-forget but "I explain to Docomo once how to set up my phone tree" sounds nicer than "I set up a twilio... thingy".
I'm sure somebody out there has at least considered being the layer over Twilio that just offers some of these straightforward services... but... toll-free numbers on Twilio cost 27 cents a minute in Japan. Sounds real close to that 33 yen.[1]
[0]: https://www.ntt.com/business/services/voice-video/freedial-n...
comment 7mo ago · link · parent
If you work this way you're "always" in a WIP state. And if you switch to another spot you won't lose your work, cuz it's persisted.
The end result if you work like this is you don't need stashing, since you get "free" stashing in your commit tree, which is more likely what people want (and if it's not... rebasing is easy so just move the node/`jj duplicate` it!)
`jj edit` exists but I think it's just not what people want in the default case at all. In exchange: rebasing "just works", stashing is not a thing to think about, and you don't lose your work
comment 7mo ago · link · parent
https://jellyfin.org/docs/general/post-install/transcoding/h...
The jellyfin DB itself is unfortunately sqlite instead of being DB agnostic. Maybe you could hack together something such that only one node handles writes and everyone else handles reads... if getting multiple cheap nodes gets your more bandwidth. I have to imagine that jellyfin fairly quickly stops being in charge of the media stream directly.
But yeah I think the transcoding and the size of your data pipe is the only "hard" part. The DB read/writes themselves are going to not be an issue (I think)