News for hackers. Stuff that matters.

munificent

Re:Toit v2.0.0 on Tuesday November 03, 2026 @11:12AM (#50353844)
I work on Dart.

A fundamental choice you have to make with a new programming language is how compatible you want it to be with existing languages and their ecosystems. Hewing closely to another language allows you to reuse and build on top of all of the code already written in that language. But it also means that you can be forced to recapitulate features from that language that aren't great. Building a new language and ecosystem from scratch lets you make a clean break from those but at the very large expense of having to build a universe from scratch.

TypeScript took the former approach. All of the world's existing JavaScript code is TypeScript too. You can freely interoperate between TypeScript and JavaScript, keep using your existing JavaScript libraries, and incrementally migrate your JS codebase to TS one file at a time.

At the same time, TypeScript inherits much of the dumb stuff about JavaScript. No real integer type, funny scoping semantics (though strict mode mostly addresses this), extreme dynamism that is hard to fit into static types. The latter is particularly important. TypeScript's type system is deliberately not sound in order to be able to mostly statically type JavaScript while allowing many of the weird and complex design patterns from that language. That in turn means that even fully typed TypeScript programs don't get the fully performance benefits of static types. That's the main reason that the TypeScript compiler itself is no longer written in TypeScript: JS is simply too slow because of dynamic typing.

Dart took a much larger step away from JavaScript. It has its own object model and runtime semantics. With Dart 2.0, it has a fully sound static type system and in 2.12 we shipped sound handling of null. Because these static semantics are fully sound, the compiler can take advantage of types to generate smaller, faster code. Performance is complex, but Dart's runtime performance is in the same bucket as Java and C#, which is about as good as a GC language can get.

The cost is that migrating an existing web application to Dart is pretty much a rewrite. It was really hard for us to get any real traction until Flutter came out. With Flutter, users are already accepting that they are writing a new app for that framework, so the hop to a new language was more manageable.

I don't know how AI affects this calculus. AI can make it much faster to automatically migrate a program from one language to another. But I think it also makes human users more conservative about which language they use. Since they aren't writing as much of the code anyway, they may have less incentive to care about using a "better" language.

I agree completely that Hejlsberg is a star and very tough to compete with. I've always thought of programming languages more as offering different ways to solve problems and less about one trying to win at the expense of another. I don't want Dart to beat TypeScript, I just want Dart to be the best it can be for what it is.

Re:We Won't "Just Hang Out" on Thursday October 29, 2026 @03:55PM (#50294875)
> There's something to be said for doing things because they are enjoyable. People cook for themselves because they enjoy the process, not just the meal. I climb mountains because it makes me feel good -- I wouldn't take a gondola to the top even if it existed. The 100m race is not run by motorcycles.

Respectfully, but I think you are not introspecting deeply enough here.

Why is cooking enjoyable? Some of it may be purely the tactile sensation of stirring spoons in goop. I suspect that for most people, much of it is a feeling of accomplishment from performing a difficult skill that creates something of value for other people. It's the joy of being known as a good cook, and the satisfaction of making something for people that they might otherwise have trouble getting. How much fun would cooking be if every street corner had a Michelin-starred restaurant giving food away for free? How much would you cook if none of your friends really cared about the results because they can get better food elsewhere, cheaper?

You wouldn't take a gondola to the top of a mountain because you want to be a person who can climb mountains. How much of that desire comes from purely internal accomplishment versus wanting to be seen as a person who can do that hard thing? And what happens to that drive when no one around you cares?

Anthony Gatto was arguably the world's best numbers juggler for many years. Now he runs a concrete company, because it turns out most people just don't really give a shit about juggling. It's not enough for a task to be hard, it needs to be esteemed too.

> Perhaps we will value eachother on an even more* human level, based on how kind and interesting someone is, rather than their economically useful skills and their bank account.*

How is kindness demonstrated in a world where no one wants for anything? How can someone be more interesting than synthetically generated content created specifically attuned to our personal interests?

I would like to believe that many people will still choose reality and real relationships. But given that candy companies are some of the largest private companies in the world, I know that human nature means many people really will just check out and turn into vegetables.

Humans are like border collies. We need some amount of work and struggle to be psychologically healthy. If AI really does deliver us a post-scarcity life (unlikely, given the infinite greed of many of the elites), then I think a whole lot of people are going to lose their minds.

Re:CNC Stone Carving on Wednesday October 28, 2026 @02:34PM (#50278751)
My cynical take is that architecture has been fully captured by the wealthy elite.

The elites like things the masses dislike as a way to signal their social distances from the masses. By designing a building that conforms to their elite taste at the expense of nearly everyone else who has to look at the thing, it reinforces their power and control over the space.

It's the moral equivalent of buying a beachfront property and blasting noise every morning from a giant PA system just so that everyone trying to just relax on the beach knows who is really in charge.

Re:Dungeon Generation in the Gnomish Mines of NetHack on Saturday October 24, 2026 @01:34PM (#50223360)
I'm glad you enjoyed it. :)
Re:How is music possible on Friday October 23, 2026 @03:00PM (#50213805)
Maybe the engine and the wind is an important part of the sonic experience.
Re:What Is Gridifcation on Friday October 23, 2026 @02:51PM (#50213677)
> Pretty much all of those tracks are 20+ years old though.

I suspect that says more about me as a music listener than about the overall distribution of time signatures. I'm sure there's newer stuff using 6/8 too, but I don't listen to much pop music these days.

Re:Dungeon Generation in the Gnomish Mines of NetHack on Thursday October 22, 2026 @06:03PM (#50201692)
You would also probably like this old post of mine:

https://journal.stuffwithstuff.com/2014/12/21/rooms-and-maze...

Re:What Is Gridifcation on Thursday October 22, 2026 @01:50PM (#50198766)
> Even using a 6|8 would be interesting.

There is a decent amount of pop music in 6/8. I always joke that it's like a hack to making a song better because 6/8 is rare enough that it makes the song sound interesting but common enough to not alienate the listener. It ends up sounding mostly like a hard swung 4/4 but then fills and some melodic lines are just a little bit more rhythmically spicy.

Some examples:

* The Doors - People are Strange

* T. Rex - Hot Love

* Fleetwood Mac - Don't Stop

* Depeche Mode - Personal Jesus

* Marilyn Manson - The Beautiful People

* Green Day - Longview

* Oasis - Lyla

* Blur - Parklife

* Living Things - Bom Bom Bom

* Britney Spears - Womanizer

* Goldfrapp - Strict Machine

* Feist - My Moon My Man

* Gotye - Heart's a Mess

* The Black Keys - Gold on the Ceiling

* Paul Kalkbrenner - The Grouch

Re:Railway Security Disclosure on Wednesday October 21, 2026 @06:43PM (#50188737)
> hot patching will need to itself become fully automated.

Great, even less control over the things we use and more power ceded to corporations.

You can spread it on anything. ANYTHING.
Re:Suicide rates highest ever among middle-aged men on Thursday October 15, 2026 @01:36PM (#50107188)
> Do you think this has changed from say 10 or 20 years ago?

Yes, I do.

The goal is roughly the same: financial security, a good home, as much of a family as one cares to raise.

But for basically my entire life as a middle-aged American, there was a well-lit path to that goal:

1. Do good in high school.

2. Go to a university and get some four year degree. Obviously some degrees are duds, but basically any of them was considered a worthwhile investment.

3. Get a white collar job doing something intellectual. Make a decent salary at a stable company. Change jobs periodically as needed.

Now:

1. Doing well in high school is still important, but it is very easy for kids to get good grades using AI while not actually learning anything and not realizing they are setting themselves up for hardship.

2. College is so expensive now that determining which college and which degree is actually a sound financial investment is very hard. An 18 year-old-kid is being asked to make a financial choice with life-long consequences at a point when they have none of the expertise about their long-term goals to know what to do.

3. AI will very likely eliminate many of these jobs. People will be competing for fewer and fewer jobs and who knows what on your resume will actually help you stand out? Also, most of the blue collar jobs are already gone, either automated away (ag) or moved overseas (manufacturing).

There was also a sense in the US that even if the government wasn't great, it was at least functional and a source of relative stability run by somewhat mature adults. That is clearly no longer the case at the federal level.

Re:Suicide rates highest ever among middle-aged men on Thursday October 15, 2026 @01:30PM (#50107115)
> I'm sure some sociologists have written this already, but it seems to me that the people who commit suicide aren't those who are miserable and have few options. It's those who have lots and lots of options, but all options lead to unacceptably bad outcomes.

People don't all commit suicide for the same reasons. Durkheim's book Suicide which in some ways created the idea of sociology itself categorizes four types of suicide.

Re:Suicide rates highest ever among middle-aged men on Wednesday October 14, 2026 @04:22PM (#50094561)
Because it's highly relevant, I'm going to paraphrase a comment I made last week:

I think a big part of the problem is that middle-aged men are at the apex of their expectations to be successful in the eyes of society, and we are living through a period of time where success is very hard to define, much less attain.

There is a name for this in sociology: anomie [1]. Émile Durkheim coined it in his book Suicide, written not too long after the Industrial Revolution.

In times of great change, the set of norms and rules that we take for granted as an organizing principle of our lives get uprooted. It's as if all of the pieces and tokens and rules of the board game we played our whole lives are swept off the table to make room for a new game, but the new game has not been set up yet. In that interim, we all feel a sense of unease. It is our turn to move, but we don't know the rules of the game or what moves to make. We feel intense pressure to play the game well, but don't know how.

In the past, these transitions have ended and society has generally returned to some sense of stability. A new board game gets set up, new pieces doled out, we learn to play the new game. I hope we get to that point with AI soon, but the revolutions seem to keep coming faster and faster.

I think for a lot of men, it feels like just at the time when we should be able to rest on our laurels a bit after having worked so hard to play the game society told us to, the rules have been ripped out from under us and any sense of security going forward is lost. We feel too old to learn the new rules of the game in time to play well, but not old enough to be able to abstain from playing.

It's a psychologically very difficult time.

[1]: https://en.wikipedia.org/wiki/Anomie

Re:Suicide rates highest ever among middle-aged men on Wednesday October 14, 2026 @04:17PM (#50094481)
Call me crazy, but I'm pretty sure from my understanding of human history and primate evolution that "long-term sexual/romantic partner" is, in fact, one of the basics.
Re:TV4 postpones show after AI agent erases edited material on Wednesday October 14, 2026 @01:44PM (#50091776)
My brother works in video production and I have some (very outdated at this point) history in that area.

* Video files are absolutely huge compared to basically every other domain. Just dealing with media is not trivial in the way that we take for granted in software. It's easy to fill terabytes for a production. Just copying stuff around can be a noticeable logistics problem. People still mail hard drives.

* A lot of people working in video production are there to be artistic creators and are not very technical. They are often extremely skilled at producing beautiful work using specific tools, but they often don't have the computer fundamentals we presume.

* Unlike the software world which increasingly a small number of very large companies who can invest heavily in centralized processes and tools, the video world still has a lot of small companies.

* Margins are very narrow and many of these small businesses are barely scraping. Production gigs can be very feast-or-famine.

Put all that together, and it's not at all surprising that a lot of productions don't have the backup discipline you would expect.

Re:Show HN: XY Music Notation on Tuesday October 13, 2026 @04:26PM (#50078188)
So many software nerds get nerd-sniped into trying to invent their own music notation. I have almost succumbed to that temptation myself. Someone should make a version of https://www.mcmillen.dev/language_checklist.html for this.
Re:A Visual Intro to Complex Numbers on Tuesday October 13, 2026 @01:28PM (#50075413)
We should call them "diternions".
Re:'AI' Is Not a Tool by Rich Hickey on Tuesday October 13, 2026 @01:18PM (#50075289)
I don't know if "helped art" is a well-defined concept because it depends on a notion of "better" or "worse" art which is itself famously poorly defined.

If all you wanted was a reasonable facsimile of a family member, then photography made attaining that object dramatically cheaper. Prior to photography, almost all of images of people are of fabulously wealthy and powerful people because they were the only ones who could afford a skilled painter making their portrait. After photography, most people could afford a daguerreotype.

The impact on fine art is much more complex. I think probably all you can say definitively is that the timeline where photography exists produces very different fine art paintings because the incentive structure and the implications are different in a world with photos. But better or worse? Impossible to say.

Re:'AI' Is Not a Tool by Rich Hickey on Monday October 12, 2026 @06:33PM (#50064017)
I think a camera is an excellent tool for producing photographs. It is a shitty tool for becoming a better painter.
Re:Thinking will become a hobby on Monday October 12, 2026 @06:25PM (#50063919)
How could we ever reach a post-scarcity society when people like Elon Musk have infinite greed?
Re:Terence Tao: Math 2.0 [pdf] on Monday October 12, 2026 @02:04PM (#50060319)
> My take away is that the field needs to get it through their heads that their old problems are no longer ambitious, and that their job in the short term is to find the new frontier.

This may be true. But people should also be allowed to grieve the loss of important pillars of meaning in their life.

Re:US Suspends Visa Program for Tech Firms Including Microsoft on Thursday October 08, 2026 @03:35PM (#50010886)
This flat claim only makes sense when you consider foreign employees to only participate in the US economy through their employment.

But they are in fact full-fledged human beings living physically in the United States. They are buying groceries, paying rent, getting their haircut.

Once you realize they are fully participating economic actors, it is much less clear whether they are a net positive or negative.

Re:Living off-grid: Hundred Rabbits on Thursday October 08, 2026 @10:51AM (#50006513)
Not connecting to the power grid is completely unrelated to whether or not you are connected to other people.

Devine and their partner are very community oriented and socially connected.

> Don't you think they should give you an option not to present them to you, given that you don't watch them?

Yes, I certainly do! The fact that YouTube still tries to get me to watch Shorts every few weeks is 100% a user-hostile choice. Seems like basically every app these days does that kind of shit. It makes me sad, but it's pretty clearly in the set of things I can't change, so I try to just be mindful of the serenity prayer and accept it.

Of all of the various online services, YouTube is the one where I feel I get the most value in return for paying for premium. 90% of my video and music consumption is through YouTube, and it's all ad-free. (Well, except that so much of hobby YouTube is implicitly all ad because the video is about some piece of hobby gear, but that's sort of the nature of the beast.)

I've never watched a YouTube short.

My recommendations are all very well aligned with my interests. The trick here is to go through your watch history and delete things that are leading the recommendation algorithm astray. I am ruthless about that.

Re:Accountability mechanisms can be joyful on Tuesday October 06, 2026 @01:15PM (#49981385)
There's a failure mode here.

For this incentive to work, you have to only send your partner songs that you have earned through accountability. Otherwise, you can not do the thing, but still send your partner a song.

For the carrot to work, you have not also give yourself unlimited access to carrots. Which means for the most part, it still functions sort of like a stick.

You have to deprive yourself of the privilege of sending your partner a song in order to motivate yourself to earn it back.

This is the general problem with these kinds of gamification schemes. They can work, but they do require the self-discipline to not let yourself acquire the goal without doing the thing.

Re:The future of independence is interdependence on Monday October 05, 2026 @01:31PM (#49967825)
> Social stuff is messy and exhausting, you don't want to invoke it every time you need to take trash out or fix a leak, if you can avoid it;

I think it's a lot less exhausting when it's a skill you use often. The problem is that modern society and technology allow us to solve 99% of our problems alone so those social muscles are deeply atrophied for many people.

Re:AI Makes Me Sad on Saturday October 03, 2026 @09:08PM (#49949560)
> If it isn't, then the only option would be becoming an activist no?

It certainly wouldn't hurt! I think a lot about how many people in the US would be willing to be artists barely making ends meet if doing so didn't also mean losing access to healthcare.

> But, maybe those are the only two things you see because you're putting the end goal way too high... as in being a renowned novelist to take one example, instead of someone with some following.

Yeah, I agree that it's important to set your sights lower. You can be a successful novelist without being the next J.K. Rowling.

But power laws and the way word of mouth works iteratively within social media is a merciless popularity engine. The best way to get popular is to be popular. There is a positive feedback loop that consolidates most attention on a small number of winners.

You can still find your niche (my two books did!), but it's hard. And finding a niche small enough to not get dwarfed by the superstars but large enough to be a sustainable source of income is nearly impossible. Almost every creative has a day job these days.

Re:AI Makes Me Sad on Friday October 02, 2026 @04:50PM (#49938465)
Good question. It's been over twenty years at this point, and we skimmed a lot of texts in the classes I took. The one that actually stuck with me was Erving Goffman's "The Presentation of Self in Everyday Life", but I don't know how much that would still resonate.

Emile Durkeim's "Suicide" is famous in sociology because it helped kick off the entire field of study. It was, I think, one of the first works to consider how a profound individual action (suicide in this case) might be largely determined by the surrounding social structures.

I don't know what a good introductory book would be.

Re:AI Makes Me Sad on Friday October 02, 2026 @12:43PM (#49935627)
When I went to college for CS, I was on a scholarship that required I keep my GPA. To have a little insurance for that, every semester I took a random extra easy intro class. That way, if I was bombing a hard class, I could drop it to keep my GPA while still being a full-time student.

One semester, I took Intro to Sociology and it was a revelation. I ended up completing all of the courses required to get a minor in sociology within a couple of years. I dropped out before I ever got close to finishing my CS major.

I wish more people knew sociology. It affects our lives more directly and profoundly than possibly any other science, but it's mostly unknown by the masses.

Older »