News for hackers. Stuff that matters.

ufo

Re:Lula wins election after final votes tallied on Sunday October 25, 2026 @09:52PM (#50238116)
Senate is very right wing.
Re:Teal – A statically-typed dialect of Lua on Sunday October 18, 2026 @07:33PM (#50146596)
For sure, but 0-based indexing often goes hand in hand with half-open intervals [0,n). One might even argue that a special way to access the "last index" is as unergonomic as just typing "length - 1"
Re:Teal – A statically-typed dialect of Lua on Sunday October 18, 2026 @03:33PM (#50144503)
I find that in practice the amount of +-1 is about the same for zero-based and one-based indexing. Each has situations it is better suited for. For example, iterating a list backwards is nicer with one-based indexes.
Re:Teal – A statically-typed dialect of Lua on Sunday October 18, 2026 @09:37AM (#50140999)
A good example of a large Teal codebase is Luarocks, the Lua package manager: https://github.com/luarocks/luarocks/tree/main/src/luarocks
Re:Things to know if you get cancer in 2026 on Thursday October 15, 2026 @02:14AM (#50099882)
Indeed, there are some cancers with a hereditary predisposition. But they are quite rare and such genetic counseling is usually only indicated when there is a family history of the disease.

For the vast majority of cancer patients, generic testing means somatic testing for tumor markers.

Re:Things to know if you get cancer in 2026 on Thursday October 15, 2026 @02:05AM (#50099827)
One of the most annoying things we cancer patients go through is when well-meaning people advise us to pursue miracle cures, diets and treatments. Please don't do that. To make an analogy, imagine if you were grieving at a funeral and someone came up to you and told that it's gonna be alright because they recently watched a documentary about necromancy on Netflix.
Re:Things to know if you get cancer in 2026 on Wednesday October 14, 2026 @07:59PM (#50097360)
Genetic tests for cancer are a different kind of genetic test. They test the tumor itself for mutations that are present only in the tumor, not in the rest of the body.
Re:Greg Kroah-Hartman – Security in the LLM Age [video] on Friday October 02, 2026 @08:33PM (#49940283)
They often were able. Fifteen bugs claimed by mythos were bugs that were already fixed, which the model plagiarized from git history or the kernel mailing list.
Some researchers and journals publish peer-reviewed work on arxiv; it serves as a stable archive that won't be plagued by link rot or paywalls.
Nuclear Gandhi is an urban legend though. Turns out there was no such bug back in Civ 1.
Re:EVE Online moves to Python 3 on Saturday August 29, 2026 @01:24PM (#49491602)
What happened with the stackless python? Did they get rid of all the stackless stuff?
In fact, that's how Lua itself came to be. They started with a simple configuration language and added more and more features until at some point they decided to rip the bandaid and turn it into a proper programming language.
Re:AI Mania Is Eviscerating Global Decision-Making on Sunday July 19, 2026 @07:40AM (#48967194)
Just this past week, I have had to answer two surveys, from different sources, asking how I use AI in my work. Both had a "choose all that apply" checkbox, and, funnily enough, neither allowed me to select zero options. "This question is mandatory". :)
In math, the utility lies in the proof itself. A novel proof of a hard problem usually comes with new insights and abstractions that help solve even more mathematical problems.

To go with your analogy, mathematicians care more about the source code of the program than about the result of the program. But I'm afraid that we will see things change with the increase of vibecoded proof slop. A black box proof is not as useful, even if it is correct.

Re:Applied Category Theory Course (2018) on Saturday July 04, 2026 @01:17PM (#48787040)
The part in the beginning about Galois Connections is very worth learning. It has countless applications.
European banks offer the credit, but the payments infrastructure currently goes through US companies. The first step is to get those payment processors out of the picture.

In Brazil, which is further along in the transition to digital cash, PIX already supersedes debit cards. Some banks already offer deferred PIX payments, wherein the merchant receives the money right away and the buyer pays their bank later, with interest. The central bank is also developing a "pix with guarantee", which will compete with credit cards: payment would be agreed to be settled at a later date, with the bank guaranteeing that the merchant will receive the money.

Re:Midjourney Medical on Thursday June 18, 2026 @03:57AM (#48582231)
Wouldn't help much.

* Some kind of scans, like CT scans, use ionizing radiation and should not be done too often. * Looking at only imaging scans it is often impossible to tell apart a cancer and a benign growth. (More invasive tests would still be required, which was what the parent posters were warning about)

Re:Correlated randomness in Slay the Spire 2 on Tuesday June 16, 2026 @04:13PM (#48561354)
One important kind of seeded run are the daily challenges, where everyone gets the same seed once a day (like Wordle)
Re:Correlated randomness in Slay the Spire 2 on Tuesday June 16, 2026 @04:09PM (#48561276)
They want two players with the same seed to have a similar gameplay experience in terms of challenges encountered.

For this reason they want to isolate the RNG that procedurally generates maps, card rewards, shop contents, from other RNG streams such as the RNG used by random enemy attacks in battles, random event outcomes, etc.

One example of the wonky things that are possible when there is a single RNG stream is speedrunners manipulate the RNG state. For example, in Super Mario 64 they can jump in place to produce dust clouds that advance the RNG state until it is in a favorable position.

https://www.youtube.com/watch?v=MiuLeTE2MeQ&t=476

Re:Changing How We Develop Ladybird on Friday June 05, 2026 @05:22AM (#48410053)
In the post, the ladybird maintainers say that they trust pull requests less than they used to, because many pull requests are authored by AI now. A big pull request no longer signals that the submitter put in a lot of work into it and it's committed to developing and maintaining quality code.
The article has a section covering this. According to them, finding Haskell talent is not difficult, the bigger problem is onboarding them into the company coding style because Haskell developers come with strong opinions.
Re:WASM is not quite a stack machine on Tuesday April 28, 2026 @07:58AM (#47933259)
As you said, it's more like CPU stack frames. In a register VM all instructions can read and write to any position in the stack frame. In a stack VM, most instructions only read and write to the top but they are often combined with LOAD and STORE instructions, which can read and write to any position in the stack frame.
Re:WASM is not quite a stack machine on Tuesday April 28, 2026 @05:41AM (#47932289)
The author seems to complain about a lack of stack manip expressions like dup and rot, but at least for me that's what I would expect from an average programming language stack machine. Even Java, which does have those instructions, doesn't use them --- reuse happens via local variables.

The way I see it, the difference between register and stack vms is all about the instruction encoding. Register VMs have fatter instructions in exchange for needing fewer LOAD and STORE operations. Despite the name, register VMs also have a stack.

Re:Highlights from Git 2.54 on Thursday April 23, 2026 @08:45AM (#47875095)
We do run the linter on CI as well, but I think our comitters would get faster feedback if they ran those checks locally.
Re:Highlights from Git 2.54 on Thursday April 23, 2026 @08:06AM (#47874767)
I have always had this problem with hooks and new contributors: since hooks don't run by default if you just clone the repository, my open source projects get many PRs from new contributors that did not run the linting and commit hooks. I understand there's a security reason for this but what workflows have worked best for you to get everyone to run the hooks? And do you think the new config-based hooks can help new contributors?
It can also happen if the person has some disease that affects the liver, which in turns lowers how much of the drug they can take.
Re:LÖVE: 2D Game Framework for Lua on Monday April 06, 2026 @05:39AM (#47658741)
That EWD is one if my pet peeves. Dijkstra makes an unfair comparison because he lists plenty of examples where 0-based indexing is more convenient but ignores the equally numerous situations where 1-based is more convenient. For example, iterating backwards over an array is much better in an 1-based world.

I like the argument that 1-based is better for indexing and 0-based is better for offsets: https://hisham.hm/2021/01/18/again-on-0-based-vs-1-based-ind...

There's a little bit of far side on the right of the picture.
Re:Recursive Problems Benefit from Recursive Solutions on Saturday March 14, 2026 @08:21AM (#47375944)
Tail call optimization optimizes the situations where the recursion doesn't actually need any stack space, but I think the parent poster is asking about situations that aren't tail recirsive.
Re:Recursive Problems Benefit from Recursive Solutions on Saturday March 14, 2026 @08:20AM (#47375931)
It's indeed very mechanical and some programming languages can do it for you.

I think you're mainly asking for heap-allocated stacks. Some languages always use the heap for stack frames instead of the native stack and can set the stack limit as high as there's memory available.

You might also want to look into stackful coroutines, which allow one to pause the execution of a recursive function and switch to another function. This can provide you with multiple call stacks, which is another reason people sometimes choose to use write explicit stacks.

Older »