News for hackers. Stuff that matters.

ncake

Re:Piano Keys on Saturday July 19, 2025 @06:09PM (#44619881)
Same. I recently tried to find a MIDI keyboard like that for sale and got nothing. Apparently this is what it's called:

https://en.m.wikipedia.org/wiki/Dodeka_keyboard

Re:The Old Computer Challenge on Monday February 06, 2023 @08:02AM (#34676690)
I've been using Raspberry Pi 400 as the main desktop for a few months. The idea was that I'd be more productive without youtube and games. That's not as extreme as the OP setup, but the slowdown and freezes unfortunately outweigh the focus benefits.
Re:Hutter Prize on Saturday October 01, 2022 @10:17AM (#33046714)
"The organizers believe that text compression and AI are equivalent problems."

Are they? Not only interfacing with human-readable media is half of the story, optimizing for size isn't the same as optimizing for context.

Re:Cake – A C23 compiler frond end written from scratch in C on Tuesday September 13, 2022 @07:02PM (#32831261)
Cool. I wish CMake included an option to use a custom preprocessor like this.
Still using one as a daily driver to write code and read articles on. (1gb ram, 1.6ghz, Win 7)

It's painfully slow at browsing some websites, but runs VSCode and all of the dev tools just fine. There's some weird pleasure in knowing that if your stuff runs on that, it will run anywhere.

Re:Nearly half of Mariupol has suffered grave damage on Friday April 22, 2022 @10:25AM (#31121948)
Those Russians who are on your side are very sorry for your tragedy, but don't feel responsible for being born into a dictatorship. And those who aren't, are vocally unashamed for other reasons.
Re:Column – a chartered bank for developers on Thursday April 21, 2022 @04:41PM (#31114907)
If this is a US-only service, it should say so on the website somewhere.

I've also had this experience with e.g. Betterment and Wealthfront. The only way to find out they're US-only is halfway through sign up process, not even anywhere in FAQ's.

I've had the opposite experience, and everything just works once you install the suggested extensions.

For C++ specifically you just need to create a .vscode/c_cpp_properties.json file to tell the intellisense where to find include folders, which defines to assume, and such.

This.

"you've got a syntax error at around here: [the entire query]. go consult the manual or something idk"

Re:C Package Manager on Tuesday March 08, 2022 @05:24AM (#30598407)
I use CMake's FetchContent. It's probably the most universal solution for this out there.
Re:Ask HN: Best alternatives to Google Analytics in 2021? on Thursday December 23, 2021 @01:40PM (#29664943)
I use a script I wrote in an hour, which parses nginx access.log and prints last visitors to a "_stats.txt" file.

It's 90% requests made by bots, so I didn't bother making a UI.

I'll try to explain what I mean. Suppose you want an in game character to change the displayed weapon in their inventory.

Stateful way: your Inventory Manager component iterates through its private array of item entities to mark their model components as shown or hidden, then calls the dependency injected character's avatar component to update its animation state.

Stateless way: you flip an integer in character's struct, and the rendering function does something different.

Unpopular opinion, but I personally think ECS has no place in C/C++ game dev. Every supposed advantage is either curbed by limitations of the language (e.g. serialization) or can be implemented more logically in a stateless manner.
Re:raylib v4.0.0 Released on Wednesday November 10, 2021 @12:26AM (#29171380)
It is a very good library, especially for 2d games. ..Just not 100% production-ready out of the box. Some features are lacking (e.g. no stereo audio) or oddly implemented. (e.g. rlgl primitive-dependent texturing)
Re:Safari Ruined My Tuesday on Tuesday November 09, 2021 @11:32PM (#29171116)
In my brief experience in front-end, I've encountered weird Safari bugs on every single project.

In one case the code failed because the form object there doesn't implement the method to validate and submit. In another, it wasn't sending a form field if it was styled with "display: none;" (had to change to "left: -9999px;"). In another, playing a non-muted video would error out some of the time, if clicking an element wasn't recognized as a user event. In yet another, the mobile version refused to center text inside <button> no matter what. And so on.