Better HN
topnewbestaskshowjobs
Log inSign up

unwind

12,408 karma · joined Mar 23, 2009 (17y ago) · 3,225 submissions

Bearded hacker from Sweden. Learned M68k assembly on the Amiga in the late 80s. Compiling C on a 7 MHz CPU was slow. Working as a contracting software developer since almost 10 years, enjoying visiting various parts of the software world.

I hang out a lot on Stack Overflow: http://stackoverflow.com/users/28169/unwind, mainly answering questions about C. I love C.

Submissions

comment 8h ago · link · parent

Not a native speaker but still: it's a pastime [1]. Sorry.

[1]: https://www.merriam-webster.com/dictionary/pastime

comment 1d ago · link · parent

I get a very pompous "blocked by Gandalf". Sorry for visiting your precious page, you olde wizard. :/

Edit: typo fix.

comment 1d ago · link · parent

Do note that while the smorgasbord was intially about sandwiches, it shifted/grew and now typically is a full meal (with "mains" and desserts).

Also it's less common as a term, I guess "buffet" replaced it in a lot of usage.

comment 1w ago · link · parent

Uh it's a cool project for sure even if its getting hard to keep these apart and seems kind of strange to do all that targeted solely on game ... but cool!

This is very confusing to read, though:

What I wrote with Claude: [...] a hand-written runtime

To me you have to pick one or the other. Claude has no hands.

comment 2w ago · link · parent

Why would you ever list steps of a recipe out of order? I haven't been to Canada but none of the recipes I've read this this was posted have you forming the bagels after boiling "the dough". Weird.

comment 3w ago · link · parent

This book is mentioned a lot early in the article, and its effects on people's perception of the industry are discussed.

comment 1mo ago · link · parent

What math error with the building's height? Assuming it's what you quoted, 164 ft converts to 49.9872 m so "50 m" seems excellent as the value to present?

comment 1mo ago · link · parent

It's weird to people familiar with real German, since 'V' in German is pronounced like 'F' in English.

It's like they took a word already from German ("wiener" as in hot dog) and then broke it while trying to make it more German, or something.

comment 1mo ago · link · parent

Uh you're not mixing up Linuses, are you? Haven't watched anuthing from LTT in a while but it sounded suspicious. :)

comment 1mo ago · link · parent

More obvious problems with the code as shown:

- The macros doing arithmetic (KiB, MIN etc) don't put their arguments in parentheses, that is very dangerous.

- The code assumes that int and i32 are the same size.

- Don't cast the return value of malloc(). Please Google this.

I appreciated the use of structs by value, that's a nice design.

I agree there's a risk of overflow in the arithmetic around sizes/alignment, but with a 64-bit `usize` that should be mostly theoretical.

comment 1mo ago · link · parent

Meta: I think the word "Bike" in the title would be helpful, for those few not into 80s kids' things.

comment 1mo ago · link · parent

Fire hydrants don't exist, they're just part of that cool media-pushed picture of some mythological place where things are ... weird and different.

comment 2mo ago · link · parent

Big Clive (a Youtuber from Scotland) often reverse-engineers circuits, resulting in him drawong the schematic in purple sign marker, often while commenting on the virtues (or lack thereof) of the design.

I was just starting to think "doesn't Big Clive visit Edinburgh periodically?" and then OP's suggestion scrolled into view. :)

Sounds like a great video idea for him, really.

comment 2mo ago · link · parent

Awesome, thanks!

comment 2mo ago · link · parent

* [...] some bumpf [...]*

Uh, as in "excessive paperwork", like brochures/leaflets [1] about the new products? Not a native speaker, had a parse error I'm just trying to resolve ...

[1]: https://www.reddit.com/r/EnglishLearning/comments/1hlbxv7/co...

comment 2mo ago · link · parent

Do note that this very cool project does not run on the "default" MiSTer hardware. This board is $250 from AMD.

comment 2mo ago · link · parent

I like your idea of a wild night out!

Note to others: that tester board looks fairly passive, i.e. I don't see (mention of) a microcontroller to talk to the chip that high-powered cables must have. So I guess it's somewhat limited in the number of things it can check?

comment 2mo ago · link · parent

Meta: isn't it still 2026 pretty much globally? When did we switch from only labelling older articles with their year?

comment 2mo ago · link · parent

Meta: the loss of the word "up" from the title also does not help in its parsing.

comment 2mo ago · link · parent

Very cool, even though it's limited to Makita LXR at this point.

I think the home page is LLM-aided, the design looks very familiar and wording like

[...] no software to install, nothing to set up. Plug in an Arduino, flash the firmware [...]

gives me pause. I am an actual embedded software engineer, and I would not classify finding, wiring (with resistors!) and flashing a microcontroller board as "nothing to set up".

comment 2mo ago · link · parent

As someone without musical ear but a healthy respect for makers of instruments of all kinds, this was a great article!

I tend to think that the bar for building e.g. a small synth is like those by mitxela [1], with a tiny microcontroller running C on the metal.

Then the author here uses multi-threaded Python to schedule notes and do millisecond-length powering of 30+ solenoids and make thousands of people feel it's a proper instrument?! Wow!

[1]: https://mitxela.com/projects/silly_synth

comment 2mo ago · link · parent

Presumably small FPGA boards, like the $47 one in the linked article

Small boards have less I/O pins than larger boards typically, and small/cheap FPGA chips on small boards are also more limited than larger, more expensive parts.

Edit: precise price.

comment 2mo ago · link · parent

Cool! Couldn't see an obvious publishing date, but the Github repo and comments imply this lacks a "(2015)" tag.

Edit: syntax.

comment 3mo ago · link · parent

I'm firmly in camp dad joke, but since Ü is a German letter that is not part of the Swedish alphabet, may I suggest you learn how to say RÄKSMÖRGÅS and update the joke?

The patched version might even work on some Swedish-speakers if you nail the pronounciation! :)

comment 3mo ago · link · parent

To reiterate on another comment that would make no sense to Swedish speakers. Å is a distinct letter, with a different and unique vowel sound. It is in no way "a slightly different kind of A".

Your suggestion sounds a bit like spelling Apple like AIILE and using the circles to form a cool infinity symbol. Or something.

comment 4mo ago · link · parent

Wow this is really cool!

Epic to see that it has "No Man's Land" [0] and really really weird feeling to read the readme. No idea why it's listed as a "17 Bit" title though, perhaps they distributed it at some point but they certainly were not involved in creating it. Source: I wrote it. Fun times.

Edit: formatting.

[0]: https://amigafreeware.downer.tech/17bit/17bit/1423

comment 5mo ago · link · parent

Nah I'm still against repeating the type name all over the place, and the cast adds nothing good imnsho.

comment 5mo ago · link · parent

Meta: a space is missing in the title.

Since this is one of the bugs, I always recommemd writing

    game->boardPieces = swAlloc(sizeof(ThingHandle*) * row * column);
Like this instead:

    game->boardPieces = swAlloc(sizeof *game->boardPieces * row * column);
It's not 100% better, but it cuts out a few tokens which helps readability and moves the significant asterix further left where I think it's easier to spot.

comment 5mo ago · link · parent

Meta: confusing typo in title. Mods , please fix penciN -> penciL. Thanks.

comment 6mo ago · link · parent

Can you elaborate on how it detects and signals if it runs out of output buffer space? I couldn't see how the amount of available space was even communicated to `fc_enc()`.

Also there some "C icks" (to me, I'm very picky and used to know the standard awfully well from answering many SO questions) that you might want to look into. The two I remember now are the casting of `void` pointers from allocation functions, and (worse) the assumption that "all bits zero" is how a NULL pointer is represented.

12345
108