Better HN
topnewbestaskshowjobs
Log inSign up

nlehuen

227 karma · joined Dec 4, 2010 (15y ago) · 49 submissions

Submissions

comment 3d ago · link · parent

Not to worry, there is a 278 page book about initialization in C++!

https://leanpub.com/cppinitbook

(I don't know whether it's good or not, I just find it fascinating that it exists)

comment 2w ago · link · parent

Yeah indeed too late for me!

Web installers should check for the presence of this bootloader and nudge people into installing it first.

comment 2w ago · link · parent

I have purchased one and it has been a whole lot of fun.

Just want to share a warning that you should be careful when playing with custom firmwares. https://thefirmwarehub.com for instance makes it super easy to flash the device straight from your web browser and try a bunch of new exciting stuff...

... however it also makes it extremely easy to brick your FM-1. Just mistakenly close the browser tab while firmware flashing is going on and poof, the poor thing is gone.

Apparently I managed to put it in a state where soft recovery (some key combination to put the device in re ouvert mode) is not available and it requires special hardware methods (the FM-1 Transporter method).

Not gonna lie, that is another kind of fun, and I got the hardware delivered today so I'll be at it soon, but in the meantime not much music was done.

Caveat emptor!

comment 3w ago · link · parent

The Google internal equivalent to cron has a ? placeholder in the scheduling spec syntax letting the scheduler deterministically pick an arbitrary valid value within the field range. So ? 2 ... will pick any minute between 02:00 and 02:59 (and I suspect any second within that minute). The value is derived from a hash of the job definition, so overall this spreads the cron load within the hour.

Obviously cron jobs are not all equal in terms of load and duration, and hours are not all equal in terms of usage, but that still helps prevent trivial spikes similar to the one mentioned in the article (disclaimer: I'm not aware of a recent counterfactual experiment proving this, but that seems a fair assumption).

comment 3w ago · link · parent

Yeah, worth checking the TOSes:

https://developers.google.com/youtube/terms/developer-polici...

https://developers.google.com/youtube/terms/developer-polici...

Understandable: creators often update their video metadata (title, description etc.) or make public videos back to private or unlisted, and it is in their own right to do this.

Third parties that copy data will cache stale versions even when the creator doesn't want to share them anymore. Seems fair that YouTube doesn't condone this.

comment 1mo ago · link · parent

I refuse to let knowledge about Calvinball-level grotesque rules about quoting and escaping in bash encumber my mind.

comment 1mo ago · link · parent

> readable C > return uu____0;

If readability is the selling point, why not go the extra millimeter and add a heuristic so that this variable is named return_value for instance?

comment 3mo ago · link · parent

Call it "Computing Science". There, problem fixed!

comment 3mo ago · link · parent

While they were at it they should have explored whether those kings were actually the cause of those global climate events. You never know, with enough slicing, dicing and p-hacking you can get interesting conclusions :)

comment 3mo ago · link · parent

I purchased Turbo Pascal 3 for Amstrad CPC 6128 with my pocket money back in 1989(?). That was 1000 FF back then (~275€ today) so quite a big sum for a teenager. My dad took pity on me and funded 50% of it. Best investment ever!

Learning Pascal after Locomotive Basic was night and day. And the speeeeeed! I could finally compute 320x200 Mandelbrot set renderings in reasonable amounts of time (few minutes IIRC).

I still have the disk & manual somewhere, as well as a couple related books. And for whatever reason Ctrl-K Ctrl-W still haunts my mind.

It's really mind boggling that the entire thing (CP/M + IDE + compiler + libraries) fit on one side of a 3" floppy disk (<180 kB).

comment 3mo ago · link · parent

French video explaining how one particular telemarketing scam works in France:

https://youtu.be/1HoU17dIEos?is=8giBMS_TRJEvmzM3

I'm really curious to see what impact the new law will have on this scourge.

comment 4mo ago · link · parent

Please reconsider this comment. Calling one side superior and the other side insects really doesn't help with the discussion, and dehumanizing a whole swath of people really has dark consequences.

comment 6mo ago · link · parent

This song is a wonderful >24 minutes psychedelic trip and reading lyrics on genius.com is missing out a lot

You can listen & watch it on https://youtu.be/JQ2pTamaqQ4?is=T8TaqnsHRx0rqGyZ for instance.

comment 6mo ago · link · parent

I think it's implemented now. Last time I transferred from one Android phone to another, I connected them with an USB cable and the new phone prompted me to enter the old phone's PIN. I was confused why, I guess that's the reason?

The old phone's screen was OK though, and I don't remember if I had to use it to initiate the transfer.

comment 6mo ago · link · parent

https://halupedia.com/spatial-bowel-movement-observatory

comment 6mo ago · link · parent

I'm having a blast adding new seeds :)

https://halupedia.com/fcuk-spellchecking-society https://halupedia.com/characterization-of-the-reluctant-peng...

comment 6mo ago · link · parent

Looks like some single quote escaping issue? I suspect the first link to be "Archduke Ferdinand VII's Bureau of Non-Demographic Surveys" and the apostrophe breaks the link.

comment 6mo ago · link · parent

This is excellent, congrats!

FYI I manually created this page and some link markup looks malformed: https://halupedia.com/list-of-uninhabited-countries

19.

Python Is Dead(calebfenton.substack.com ↗)

16 points · by nlehuen · 7mo ago · 11 comments

comment 7mo ago · link · parent

The SQL query they replaced was extremely cringe and amateurish ("let's sprinkle DISTINCT until all those pesky redundant rows that come from our inefficient KV metadata schema go away"). The fact they did not acknowledge that and somehow blame it on SQlite made me stop reading on the spot, and be very worried for whoever depends on their products.

comment 8mo ago · link · parent

See also: writing a design doc before writing code :)

comment 8mo ago · link · parent

> Diary entries get a path: diary/2026/march/03/

Date paths should use at least a double digit numerical index so they are naturally ordered when sorted lexicographically. Numbers also give you i18n for free (assuming Gregorian calendar of course, but it seems that's what this non configurable tool does here).

comment 10mo ago · link · parent

And just like that, you find yourself implementing a compiler (specs to plan) and a virtual machine (plan to actions)!

comment 10mo ago · link · parent

Actually there are π(N) ~ N / ln(N) primes less than N per the Prime Number Theorem, so π(2 ^ 160) ~ 2 ^ 153.2 - this only drops 7 bits. So that does increase the odds of collision but much less than what I expected!

comment 10mo ago · link · parent

I came here to write that :-)

comment 1y ago · link · parent

There are at least some in the Paris subway, including one that went at 12 km/h but was decommissioned in 2011:

https://en.wikipedia.org/wiki/Moving_walkway#Trottoir_roulan...

comment 1y ago · link · parent

I initially thought that this space was encumbered with parents but Gemini Deep Research says the main patent expired in 2018: https://docs.google.com/document/d/1GmWGZMe_cjszV5eEegeFiWXK...

comment 1y ago · link · parent

China is west of the USA.

comment 1y ago · link · parent

Not to worry, there is a 278 page book about initialization in C++!

https://leanpub.com/cppinitbook

(I don't know whether it's good or not, I just find it fascinating that it exists)

comment 1y ago · link · parent

Holy cow, I created my account in May of 2007. What a different world we live in now.
12