News for hackers. Stuff that matters.

program_whiz

Re:Handles are the better pointers (2018) on Tuesday November 03, 2026 @12:35PM (#50355177)
there are serious downsides to this, its a tradeoff and I wouldn't say they are "better pointers".

First, you're obviously paying indirection tax on EVERY lookup. In addition, you're also paying (somewhat trivially) the generation counter tax (assuming you want any kind of safety).

Next, you have the complexity, hopefully you are making type-safe versions of all these indices so you can't just use an aribtrary index into any kind of array right? Ok well that means now you have double the types (one index type per pointer type). Ok maybe not the worst, just a lot of boilerplate everywhere.

Next, you have the issue of resizing your memory array. You now are in "write your own garbage collector" land. You want to consolidate 50% of the memory that is free? Well you need to move every index to the new compacted range (expsensive), or manage a free list (potentially double the memory requirement, and way more complexity, cache coherence issues, etc). Do your memory lists grow indefinitely? Do you need to think about having separate lists for short lived and long lived (generational GC style)?

Then there's the issue of object pools. You want your data to live in arrays. Do you put all objects into one master array? You lose cache coherence / iteration speed, and type safety (unless you really bloat and start adding type info to every entry). If you use different arrays for each you might end up with dozens of arrays, one per type, and also their free lists. Now you're in "collection pointer hell".

Of course, you could just wisely use pointers...

Re:Egoless Mathematics in the AI Era on Tuesday November 03, 2026 @11:24AM (#50354023)
Yes, we should apply this same reasoning to AI and the companies that produce it, since they claim its the future. All that matters is truth, no valuations, no profits, not IPOs. All that matters is uncovering the truth and having the best models -- so the AI companies should just release everything for free, and not hope for notoriety as a result.

After all, its hubris and greed that drive us to expect recognition, success, and validation for our work. We should expect selfless dedication by releasing all model weights, training algorithms, and AI research publicly. All AI researchers merely check the work of benevolent AI which writes the code and trains the models, their role is merely to supervise this process while writing applications for grants to pay their stipend.

feel better man, you probably weren't in the running unless you already had an amazing resume, top-tier schools, connections, etc. They have 10,000x applicants for positions, they are probably hard filtering on harvard, MIT, Stanford, etc. They are very far from "we just need someone who is good enough at coding". Its more like harvard where they have 3x total open slots of people with 4.0, perfect SAT/ACT, and extra curriculars. That's why its down to "culture fit" and "gut feel" (e.g. connections).

Now if you already have those things (top-tier school, connections, world-class experience on resume), you can probably still and a cushy overpaid position somewhere, just look for somewhere else they are lighting money on fire.

maybe not. There could be mass unemployment and all the big dogs could also lose from the buildout while smaller players (non-public) take over. It could be a lycos / yahoo / google situation where there was no "winner" to invest in during the initial dotcom crash, and there was large-scale disruption all the same.
Re:GPT-5.6 Sol can beat Factorio on peaceful mode on Saturday October 31, 2026 @04:32PM (#50319877)
One limitation of these type of demos (and similar with Minecraft, etc) is that: 1. Putting into "peaceful" mode makes response time a non-factor 2. These models have read and have access to every guide and video ever published on the subject. Most humans, especially on first play, learn game systems and interactions from scratch, then develop novel strategies and plans and "hypothesis test" their way into beating the game.

This is still impressive compared to where we were a few years ago, and being able to synthesize all existing information about a game and then play it to completion in a semi-realistic setting is great.

At a quick glance someone might mistake this for "brilliant AI solves Factorio", when in reality, given a similar but different game where it wasn't gifted all the information or training data (e.g. massive videos and screenshots) it might fare terribly (as others have pointed out in comments).

Re:Anthropic S-1 on Monday October 26, 2026 @11:12AM (#50245152)
this suffers from the same prisoner's dilemma we already see at play. Any player can defect and in theory capture a "trillion dollar market". Once they IPO, then their service is to maximize (short term) shareholder value. Saying "we reject all the billions in recurring subscription revenue because we are hoping all AI providers will do the same, therefore creating a moat" isn't going to go over well.
Re:Rewriting a Commercial Engine in Jai on Sunday October 25, 2026 @12:54PM (#50233579)
Yeah I wrote some metaprogramming stuff, but to me it felt like run a python script and use python AST to manip the program. Its basically just a program that runs and has hooks into the compiler steps and the code.

This left me feeling like "I wish I had decorators and annotations" from other languages, not a way to write arbitrary compile-time code. The use case for that is so rare, and kludgy, that I don't think its worth it.

Now it did shine with basic hygenic macros, which felt useful and solid. Its basically how C macros should have been done originally (a function that emits code at compile time). However conventions like $Code where a bit jank imo, again felt like using someone's home-spun scripting language, rather than a well thought out solid design, versus something like Rust's Syn.

I know Jon Blow hates "design by committee", as he is so much smarter than others, but honestly a lot of this felt like listening to any sane reviewers would catch this stuff. I mean really basic stuff like #cast which reads like a compile-time macro/pragma, but its actually a runtime cast? Or mixing casing conventions, underscores or not, etc. Names of modules are all over the place, it just feels like one dude trying to make a half-baked lang over a long period while being distracted doing 20 other things.

How about everyone just ignore this completely until OAI meets publication standards? Having a bunch of people reading and revising these proofs is just going to be used to train the AI to further displace mathematicians. Collective action problem, but just saying "these proofs are indiscernable and won't be accepted" should be permitted.

A human mathematician that turned in this kind of unreadable detritus wouldn't get published, and they would be laughed away.

This is just getting unpaid volunteers to wade through the AI slop, and refine / correct it for them (assuming there are no major errors).

Re:Rewriting a Commercial Engine in Jai on Sunday October 25, 2026 @12:00PM (#50232999)
Agreed, its just his idiosyncratic styled language for doing so. Like I said in another comment, using it for any other purpose feels like using Unreal Engine for anything but 3d first person shooters. You're going to have a bad time if you're making a 2d mobile-first puzzler. And that's why I don't see it gaining much traction (probably in the neighborhood of gdscript, haxe, or verse).

If you are making custom game engines, Jai has some conveniences (especially if you don't use any libraries or care about docs, ecosystem, community, etc). And if you really like "roll your own" with a dash of "everyone thinks I'm nuts but I'm just that much smarter", its perfect. Its one step above "I wrote my own scripting language".

Re:Rewriting a Commercial Engine in Jai on Sunday October 25, 2026 @09:32AM (#50231399)
Somewhat, in terms of macro munging vs actual templates and other conveniences yes, however its still very possible to have unsafe memory operations and to accidentally create unexpected behavior. They have their own footguns in some ways, for example Jai's use of arenas can be tricky in more complex programs (e.g. you stored a value with a reference or array, the arena expired). Great for games, bad for most normal code.

Hence why I say, if you are doing complex / multi-threaded code, good luck to you.

This is why the GC and memory safe languages have mostly taken over. They have even more ergonomic syntax, and none of the footguns. You can still do all the normal pointer casting / abuse type stuff in most of these languages too.

Re:Show HN: Steal My Bitcoin on Sunday October 25, 2026 @09:06AM (#50231136)
Besides, someone is probably watching so they can learn how to pick up $15,000 whenever they find it! I'm most certainly not going to tell them.

Hillarious how people are like "I don't want my AI agent to do this hack, because people are probably watching the server, so they will see what the agent outputs." Hah, they can also prompt an agent for less than $500 to find out (also the CVE is public info).

Re:Rewriting a Commercial Engine in Jai on Sunday October 25, 2026 @08:35AM (#50230895)
There is a contingent of people that truly believe this, and I feel like that is what is motivating a lot of these "better C" languages. For me, those languages always leave me realizing I need to implement my own v-tables in 2026.

God help you if you are doing multi-threaded with closures and callbacks, web programming, something high level like ML, etc. I feel like the thesis statement of Jai starts with "Ok, so lets assume most programmers are trying to program custom game engines...". True for a very limited set of people, but makes it very painful to use generally.

Its the same feeling you get trying to use Unreal for anything except 3D first person shooters. Its possible, it just doesn't feel very good, and you start to see all the quirky assumptions of the framework.

Re:Rewriting a Commercial Engine in Jai on Sunday October 25, 2026 @08:28AM (#50230843)
Yeah I'm sure there are some people who just want C with better syntax and faster compile times, for them I think it could be fine (assuming they don't need well tested 3rd party libs, an ecosystem, documentation, portability, or robust tooling).

I just meant as my general purpose goto language, I couldn't add to the roster. C++ is already filling that niche for me (except with all the aforementioned benefits), python for scripts, C# for a solid GC lang, there's just no place for a scrappy quirky lang with lots of sharp edges and no value propostion.

I'm just not sure why you would choose _this_ language for those needs. There are like 10 new langs that are all trying to be "the next C" and they all kinda suck (Jai included). I dunno, for me none of them had the same kind of feeling that you get from the really top-tier languages, they all felt like "we took C and solved these annoyances" not "we had a fundamentally new vision".

Re:Rewriting a Commercial Engine in Jai on Sunday October 25, 2026 @07:23AM (#50230455)
The whole "LLVM has made programming langs easy" is a joke, unless your language is just a syntax wrapper over C-like functionality (so those saying such things are kind of telling on themselves).

Having really sophisticated memory management, type checking, semantics, safety guarantees, etc. is not at all trivial. The only part that has gotten easier is syntax => AST => machine code, but that is probably 10% of a PL if you want it to do something people will actually use.

Of course Jai "is fast" (meaning it has none of those things), so obviously LLVM is 90% of the work (just translating AST into LLVM calls). Yes, you can do this with AI in an afternoon, no its not useful to anyone. The real work of making a usable, interesting, useful language is not diminished, and it has little to do with the syntax => AST => LLVM part of the compiler.

Said another way, no one is choosing C, C++, Python, or Java because they are "easy ways to get generate machine code". They choose them because they have: superior semantics (design, memory management, portability etc), 3rd party libraries, frameworks, debuggers, ecosystem, documentation, support, standard library, etc.

Re:Rewriting a Commercial Engine in Jai on Sunday October 25, 2026 @07:17AM (#50230421)
My comment on Jai is that it is a language with some conveniences, but ultimately no strong reason to favor it. Similar to zig, odin, and others, its basically just C with some syntax conveniences.

It has some design choices that I appreciated at first, but are really strongly suited to a particular way of writing games, and I wouldn't call it general purpose (those same design choices are very limiting in other domains).

I do appreciate compiler speed, but ultimately I bounced off of it because the slight improvement in syntax doesn't justify losing massive tooling, libraries, docs, support, etc.

The language is also quite quirky in its conventions, which I think is due to Jon Blow's style, but which can feel quite odd to anyone who has a wider breadth of programming (than just custom game engines).

Also of course, any contributions or suggestions are met with the typical JB politeness and charm :)

All the flaws people mention here, are simply because you just don't get what a genius he is, those are actually features!

Re:Kimi K3.1 Pro and K3.1 Pro Highspeed on Friday October 23, 2026 @03:42PM (#50214331)
first time? Welcome to the irrational SV investor world. Its about hype, perception, politics, perceived future returns, not actual market fit and the proven viability of a technology. Its pets.com, myspace, and NVIDIA pumps because people want to 10x the money now.

Everyone and their dog has been saying its a bubble, there is no moat, this is all known techniques being scaled (very inefficiently) onto increasingly expensive hardware clusters at exponential cost, etc.

this is the key. Of course, investor-owned utilities will try to charge as much as they can to maximize return on capital. The major question is "do we want to maximize return on capital in our utilities?". I would argue the answer is no since providing utilities is a public good and facilitates all other activities in the society, and forms natural monopolies.
Re:Chain of Thought for Humans on Thursday October 22, 2026 @08:05AM (#50194194)
Reframing "talking through the problem", "taking notes", and "sketching the problem" as "Chain of thought". Its interesting, I wonder if people did the same reverse anthropomorphizing of their own characteristics in the era when we conceptualized the brain as water in tubes or clockwork?

I suppose this is where "gears turning" and "screw loose" come from, vestiges of that time. It will be interesting once we emerge from our current attention sequence model fever dream what vestiges leave a lasting imprint in the parlance.

this isn't an unexpected take from someone who is rich and famous for being a "math explainer". If you make your living explaining other people's proofs, then it makes sense to say "don't worry about _how_ the math gets done, you can still explain it, or supervise it." It will be interesting to see how he would react if his channel was overtaken by AI that was RL trained to produce 3b1b content, and produced better content than him, at a faster pace, so he lost his viewership. Then would he be satisfied with: "ok but now you can oversee a machine to make your videos, its not like 'making explainer videos' is inherently meaningful".

Same with programmers. The craftsmen feel the hit, the people that just saw it as a job and/or code as an obstacle to making a product say "what's the big deal, code was just a tool all along".

The end state is that more and more activity will consolidate to fewer controllers because of capital costs. Eventually the "makers" will be outcompeted by the few companies holding all the robots / AI swarms (at which point the other crabs in the bucket will say "told you so"). Sure you could create a startup, at which point your idea is instantly replicated (assuming it wasn't already thought of by millions of agents). Then you're merely facing the huge marketing, name recognition, and production ability of the megacorp versus your one unknown idea for the "factory" you "manage".

That's what's missing from the "factory manager" discussion -- how well can you compete with a Toyota factory? You're free to create your own factory right now. And just wait for the regulatory capture...

Re:How to make System 1 LLMs show System 2 competencies? on Saturday October 17, 2026 @08:52AM (#50130681)
And when you think, how do you know which word will appear next in your mind? Or does your system 2 thinking seem to emerge as a spontaneous stream of words/thoughts?

I actually think that AI has little to do with the brain / human intelligence, but in this regard, human thinking is also spontaneous, where the next thought just seems to emerge from the combined effect of all inputs to your brain (including the memory of recent thoughts).

Re:Butlerian Jihad on Saturday October 17, 2026 @07:33AM (#50130148)
The good news about this navigation is that the best course for almost any journey is just "straight line", with a minor deviation here and there. Its funny, but due to the emptyiness of space, even in our solar system, if you just pick a random direction, you likely won't hit anything. Trace a line to pluto from earth, and its clear 99.99999...% of the time if its not behind the sun. So the mentats maybe don't have such a tough job :)
Re:Market selloff, rising rates test AI data centre deal boom on Thursday October 15, 2026 @01:55PM (#50107486)
Assuming the NASDAQ / S&P aren't gamed into listing these at offering price to game the system into putting ~10% of people's retirement into a junk stock on day 1.

"Buy the index" isn't a solution for human influence and corruption, there are people in control of what goes into the index too.

Re:Redesigning Source Control at Anthropic on Wednesday October 14, 2026 @09:49AM (#50087784)
Haha, that's a good one. Perhaps we should coin a new phrase: "dog shitting", where a company eats its own dog shit before inflicting it on their users. :)
Re:Redesigning Source Control at Anthropic on Wednesday October 14, 2026 @09:48AM (#50087770)
Did you hear the stats on the claude code leak? there were multi-thousand line for loops with hundreds of conditional / if statements written in typescript. Its insanely difficult to decipher. At this point "mess that only AI can understand" is what they have and must continue building upon.
Re:Redesigning Source Control at Anthropic on Wednesday October 14, 2026 @09:45AM (#50087722)
Anyone fool can write code that runs, but only frontier AI can write code that just barely runs.
Re:Why aren't AI companies being charged for hacking? on Monday October 12, 2026 @11:16AM (#50057660)
this, people need to just focus on "computer program did thing". Its irrelevant how complex the program is. If I write a worm "for testing" and then it escapes my system and does massive damage, that's possibly a negligent crime, despite it being "too complex to understand" or "having its own motives".
Re:I'm sorry, but you still have to think on Monday October 12, 2026 @10:54AM (#50057307)
Its the same as with luddites / textiles, people proved they were willing to accept far worse quality because "automation". People have a strange cognitive bias it seems. When they know a person has done something, the scrutinize and correct. When its a machine / automated, or the price is low enough, it gets hand-wavy.

People here often say "we can't set rules, because imagine how hard it would be to follow them at scale". That same strange cognitive bias applies here. Somehow the "push a magic button and it works" and "of course it can't do it just as well as a person every time" kind of take over.

Imagine if many tech issues like access to pornography, corporate ad tech, violent/racist material, AI slop, etc. were all just armies of people doing it (like google / X actually just had a person curate your results really fast for every search). Of course people would be outraged at the quality, but its "automated" so no one questions.

Similarly, if AI was just a giant outsourced coding firm with 10M programmers that could write you a slop app in an afternoon for $1, people would be complaining at how idiotic it is, and how inferior to regular devs. But instead, the "machine bias" takes over and people try to forgive the shortcomings.

there is something in the human psyche that badly wants to replace itself with a machine, despite it spelling our own undoing, and often resulting in worse outcomes along the way. I suppose the whole "make a tool" drive has been wildly successful overall, but this is probably the required downside to such an innate drive.

Like have you seen the 3d printed houses? They are the uggliest, shittiest houses in the world, but somehow the lure of "yes but we can build them in 24 hours" seems to somehow get people interested. If a human made one of those dung heaps they would be pillaried as a village idiot, and rightly mocked, but somehow because "machine do thing", we should get excited about excreted dung beehive houses...

Re:I'm sorry, but you still have to think on Monday October 12, 2026 @10:19AM (#50056830)
That was the point of the article, it's not easy at all. You can't just write Ruby in Rust literally unless you want untyped bags of key value pairs and virtual functions everywhere. The languages have different fundamental semantics and there are many non trivial decisions, including and up to, total architecture change.

For example, in ruby some kind of stringly typed reflection utility might Dry out code. In Rust, that might mean writing a trait over some subset of types and a macro helper, but would require careful dosing work.

Letting the LLM decide is the approach in question and the author was pointing out how spectacularly it failed to translate a complete, human designed system.

Re:GPT‑6 and Intelligent UI for everyone on Wednesday October 07, 2026 @04:20PM (#49998262)
Honestly it feels like AI companies are still searching for the killer idea that will attract the general public (beyond "be my AI bf" or "better google").

Getting a UI that explains the parts of a bike is ok I guess, but isn't it simpler to get an actual breakdown? Google "parts of bicycle breakout" gets tons of useful images instantly.

Getting a specialized app to split a bill? It was already trivial to put in a calculator if we cared to go item by item on the bill. Having to provide names and tag every item as I go is just more work. Usually real people just go $total divide by 5, I had more, let me chip in an extra $10.

Same with booking travel and wedding plans, these aren't things people would even delegate to a trusted friend usually, much less a one-off request to an AI bot or custom UI.

Most of the useful tasks it can do right now are research, technical question/answer, coding. In terms of "build a flexible ui that solves real-world problem", if existing mobile app isn't useful in this arena, then its unlikely a completely custom UI will do the job.

That said, I've done a few small ones like a quick one to practice alphabet of a foreign language, or prototyping a web game, and the like. But ultimately its nothing that is worth trillions of dollars.

Yes but people doing research will be asking LLMs to review many papers prior to their reading most likely. If more humans come to understand the findings of these papers, then its good right?

I guess on a theoretical level, if you had a button which would create breakthroughs in a field, but you yourself couldn't understand it, would you push it? I would because otherwise the field may not discover it, and others will be able to understand the breakthrough.

Older »