News for hackers. Stuff that matters.

clifflocked

Re:Google's Rust Style Guide on Wednesday October 21, 2026 @04:29PM (#50187166)
> Considering that it's been 54 years, and we've yet to find any human being, any at all[1], who can write C without UB

Undefined behavior does not mean that a language is useless. C is quite nice to write as an abstraction over assembly, and I highly recommend writing C code and thinking about (and checking) what assembly it compiles into.

Also, it is possible to verify that the types of UB that you are referring to do not occur: see the seL4 project, which provides machine-checked proofs for an OS kernel that no execution can reach a state that is undefined by the language specification.

Re:Suicide rates highest ever among middle-aged men on Wednesday October 14, 2026 @04:31PM (#50094703)
> and there's no point to it. Anything I write will be outdone in 2 seconds by someone else.

That's OK, you don't have to be the best at any one thing. The important thing about any hobby, be it programming, skateboarding, or playing the piano, is that you feel personal satisfaction in doing it, not in the reactions of people to your work. Your enjoyment of a hobby should never be based on whether or not people like it, or even whether or not they want to use the thing you created. If you feel that a project that you are working on could be summed up in a single prompt that can be given to an LLM, then your job is not to work on the project directly, but rather to find what makes what you are doing unique. It doesn't even have to be technically interesting or bring any new ideas to the table, just the fact that somebody has put in effort into making something (regardless of completion or quality) gives it value.

Re:The C ``Clockwise/Spiral Rule'' on Friday July 31, 2026 @02:45PM (#49127091)
> we all know this, it makes sense, there's no reasonable alternative

There absolutely are reasonable alternate ways to represent ordered data that don't involve templates. The way that C does it makes sense in most cases, and if you are looking at something that you cannot understand, you are looking at bad code.

> "Declaration follows use" immediately goes out the window when faced with typedeffed types being used as the base type

Typedefs are an abstraction. If you create a typedef, it is usually because you only want to handle the data as a whole, passing it to helper functions that remove the typedef. Also, declaration of use does not break down with typedefs:

    typedef char *(*fn)(int, char *);
    fn my_fn;

    char *s = (*my_fn)(0, ""); // Proper use
> "Declaration follows use" is the type level equivalent of taking off your socks before taking off your shoes because that's the order in which you put them on.

Please give me an example of some C code where this is the case.

Re:Poll: How often do you check "newest"? on Friday May 29, 2026 @11:37AM (#48324588)
See /active
Re:Linux 7.1 Removes Drivers for Bus Mouse Support on Friday April 24, 2026 @11:26AM (#47891570)
If anyone is curious, here is the actual commit that removed the drivers: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
Re:Framework Laptop 13 Pro on Tuesday April 21, 2026 @05:21PM (#47854648)
Re:Steam Machine on Thursday November 13, 2025 @05:00PM (#45921190)
This is not true, at least around where I live. Gigabit ethernet(which is gigabit for only the downloads, and <50 mbps for upload) is 110$ per month. Comcast is the only internet service provider who offers speeds over 50 mbps. So I make due. If I want to download a 40gb game, I take a break. I read a book, or eat dinner. It works itself out, and I can play my game.
Re:Nvidia buys $5B in Intel stock in seismic deal on Thursday September 18, 2025 @04:30PM (#45294631)
I feel as though you are measuring tokens/s wrong, or have a serious bottleneck somewhere. On my i5-10210u (no dedicated graphics, at standard clock speeds), I get ~6 tokens/s on phi4-mini, a 4b model. That means my laptop CPU with a power draw of 15 watts, that was released 6 years ago, is performing better than a 5090.

> The 5090 is 10x faster but only 6-8x the price

I don't buy into this argument. A B580 can be bought at MSRP for 250$. A RTX 5090 from my local Microcenter is around 3250$. That puts it at around 1/13th the price.

Power costs can also be a significant factor if you choose to self-host, and I wouldn't want to risk system integrity for 3x the power draw, 13x the price, a melting connector, and Nvidia's terrible driver support.

EDIT: You can get an RTX 5090 for around 2500$. I doubt it will ever reach MSRP though.

OAuth exists and can be used to confirm someone's identity by linking their Google account.