MurphyA/hacker-news huggingface dataset:
by jerankda | 2025-12-03 08:38:13+00:00
Hey everyone,

I'm a student trying to get deeper into compiler design and language tooling in Rust. As a learning project, I built a complete linter for LOLCODE, because when you need something simple enough to implement from scratch without getting lost in complexity, you naturally pick the most reasonable language available /s

The project includes: • Handwritten lexer (character-by-character, no regex) • Recursive descent parser that builds an AST • Single-pass semantic analyzer • Variable tracking across scopes • Position tracking for precise error messages

I avoided parser generators on purpose because I wanted to understand the full pipeline end to end.

What I'd appreciate feedback on: • Does the parser and AST structure make sense? • Are there obvious Rust mistakes or things that could be written more idiomatically? • Any architectural improvements you'd make? • General feedback on the approach

GitHub

It's also on crates.io and the AUR if you want to try it.

Feel free to contribute :) (for whatever reason)

TL;DR:

Built a LOLCODE linter in Rust . Looking for feedback on the parser/AST design.

KTHXBYE
by HelloUsername | 2025-12-03 08:38:19+00:00
I also recommend about RCT reading/watching:

https://news.ycombinator.com/item?id=44758842

https://news.ycombinator.com/item?id=39792034

https://news.ycombinator.com/item?id=42346463

https://www.youtube.com/watch?v=ts4BD8AqD9g
by tedggh | 2025-12-03 08:38:41+00:00
Usually you don’t buy a whole house when you are 25. You start with a small unit. My first condo was 700 sf which I sold for a good profit and use the money to pay for a bigger condo, about double the size. I then combined the profit of the second home with my wife’s profit from her house which was also small and together we got our first nice house just outside the city, about 15 min commute. We paid around 220 $/sf compared to 600 $/sf for a similar home in the city. Our house is 3X the size of the house I grew up in with my parents and 3 siblings, which was standard size for a middle income American family in the 80s. Not to mention the quality and amenities of our house is so much better than a house from the 80s. Yes houses are a lot more expensive today but only if you are buying in busy urban areas. If you dare to look in the suburbs you’ll find great homes which by square footage have not increased that much in the past 30-40 years after adjusting for inflation. In the city you are competing with everyone else wanting to be able to walk to their favorite brunch place. Cities also have crazy regulations that prevent building affordable homes.
by x3ro | 2025-12-03 08:38:44+00:00
> How can we quantify the penalty faced by consumers in EU with to increased costs due to regulation?

I really hate that everything has to be seen from the consumers' lens, especially the consumer of luxury goods (I'm talking SUVs and the like, cheap cars exist in Europe).

What if we didn't just look at it from the POV from people who buy or want cars? I don't own a car, nor do I plan to. I have to pay for roads, which I understand to an extent. But why should my life be at risk from people wanting to buy SUVs cheaper?

Edit: Also, looking at "cars" without distinction really just obfuscates the real issue. The most dangerous cars (for pedestrians) are the biggest (and sometimes the fastest) ones. Plus most pedestrians die in cities, not on a Highway. So yeah, if you want to drive an SUV in a dense city, then I'm all for making it 10x more expensive for you, because it makes no sense (to me) and puts me in danger :)
by Arkhaine_kupo | 2025-12-03 08:40:05+00:00
> the sentence "LLMs don't think because they predict the next token" is logically as wrong

it isn't, depending on the deifinition of "THINK".

If you believe that thought is the process for where an agent with a world model, takes in input, analysies the circumstances and predicts an outcome and models their beaviour due to that prediction. Then the sentence of "LLMs dont think because they predict a token" is entirely correct.

They cannot have a world model, they could in some way be said to receive a sensory input through the prompt. But they are neither analysing that prompt against its own subjectivity, nor predicting outcomes, coming up with a plan or changing its action/response/behaviour due to it.

Any definition of "Think" that requieres agency or a world model (which as far as I know are all of them) would exclude an LLM by definition.
by cm2187 | 2025-12-03 08:40:06+00:00
Numbers of km driven in the US has increased by circa 10% [1] over that period while decreased in the EU by circa 10% [2]. Add to that in european cities the multiplication of bike lanes, and the permanent manufactured congestion of certain cities. There are many reasons that can explain the movement, and car design is probably a small factor among many small factors.

[1] https://www.bts.gov/content/us-vehicle-kilometers-0

[2] https://www.odyssee-mure.eu/publications/efficiency-by-secto...
by beefnugs | 2025-12-03 08:40:11+00:00
Someone would have to create many testing situations where they trigger each and every sentence from this document. But thats actual engineering and not anything ai people are ever going to spend time and resources on.

If this is in fact the REAL underlying soul document as its being described: then what is most telling is that all of this is based on pure HOPE and DESPERATION at levels upon levels of wishing it worked this way. That just mentioning CSAM twice in the entire document without ever even defining those 4 letters in that sequence actually even mean is enough to fix "that problem" is what these bonkers people are doing, and absolutely raking the worlds biggest investors.

I actually have no sympathy for massive investors though, so go on smarty-pants keep shoveling in that cash, see what happens
by gf000 | 2025-12-03 08:40:24+00:00
As mentioned, the problem with coloring is not that you see the color, the problem is that you can't abstract over the colors.

Effectful languages basically add user-definable "colors", but they let you write e.g. a `map` function that itself turns color based on its parameter (e.g. becoming async if an async function is passed).
by hiduck | 2025-12-03 08:40:34+00:00
Sounds good, but I'm scared that for some other people it's not an improvement since there will always be someone saying that X amount is too much or not enough. But yeah, I could say that 1/4 or 1/5 of coding (or rather, googling of stuff I simply don't know) I do is now delegated to an llm, question is if another person would look at this statement and say something along the lines of "cool, I use it more/less but I'm happy that it helped you/I'm sad that it caused you trouble", I slowly think that we might be discussing kind off the wrong thing. But yeah, numerical/fact based approach doesn't sound half bad even though I have some feeling at the back of my head that it can also be kind off self fulfilling but nonetheless it helps in conveying the message better than what I used before (the I use it a lot/not much/I try to stay in the middle).
by input_sh | 2025-12-03 08:40:53+00:00
It is a tariff thing.

Nobody's under any illusion that this was a good decision, including the people that made this decision. It was just a means to an end, the end being lowering tarrifs on the EU.

There's still quite a few steps between the current state and the dominance of US cars on European streets. It's still an empty promise from the EU side.
by Tor3 | 2025-12-03 08:41:02+00:00
mchusma - the article specifically mentioned that this is about Japanese fonts, and being able to use fonts which look the same as they used to, in the games in question. And that getting other fonts is a) time consuming, b) needs testing, c), and if they look different they're talking about having to re-brand the whole game(s) in question. A big PITA, in any case. They're aware that it's possible to find an alternative, it's just that this is not easy to do quickly, and quickly enough to avoid the $20k penalty.
by jeroenhd | 2025-12-03 08:41:02+00:00
> Every EU politician who tries to subvert car safety should be dismissed and tried for endangering public safety.

The problem is coming from the other side, the Americans are threatening to start a new trade war if the EU doesn't permit their murdermobiles on the European roads.

IMO pedestrian safety should still come above all else, but this is not an initiative coming from some EU representatives who want to own a Cybertruck. Blocking these cars can have impact on the war against Ukraine and the prices of fuel and other import products on the short term.
by messe | 2025-12-03 08:41:48+00:00
> You just accept passing it around in every function

In every function that needs to allocate yes. Sometimes, it'll be stored in a struct, but that's rare. And not every function needs to allocate.

> and now passing around another param for io as well?

Yes. Not everything needs to do Io.

You should try reading some idiomatic Zig code. Ghostty would be an example (as would much of the Zig standard library).
by arghwhat | 2025-12-03 08:41:53+00:00
To be fair, parking illegally and/or disrespectfully is not a problem with the vehicle type but with the driver and lack of local enforcement. People also block footpaths, roads and parking spots in Polos and similar smaller vehicles, and plenty of workers cause issues with their regular european cans and pickup trucks. A favorite of mine being small roads with perpendicular parking spots, with an extended Mercedes Sprinter parked so that both footpath and road is restricted.
by Ylpertnodi | 2025-12-03 08:42:15+00:00
> I can only conclude that anyone who drives an American-size vehicle in these places is a masochist. It cannot be fun.

US soldiers/DOD etc PCS'd to EU manage (not always well).

And, us EUians get the advantage of seeing just how disgracefully oversized US cars and trucks are.

Aside: No yellow indicators? I'd rather US red ones than the 1"x3" mini-yellow-indicators that are becoming more common.
by signa11 | 2025-12-03 08:42:24+00:00
this is just _excellent_

```

I would conjecture that this is another manifestation of the NP-completeness wall that slammed symbolic AI, causing the first AI winter. It's always possible to turn an NP-complete algorithm into one that runs quickly, if you don't mind that it fails to generate any output if you hit a timeout. The transformer equivalent of this is generating plausible, wrong, hallucinated output in cases where it can't pattern match a good result based on its training. The problem, though, is that with traditional AI algorithms you typically know if you've hit a timeout, or if none of your knowledge rules match. With transformers, generating wrong output looks exactly like generating correct output, and there is no way to know which is which.

```
by netsharc | 2025-12-03 08:42:25+00:00
Huh, but this is a terrible comparison.. the cars in both unions have been made the same, of course they cost similarly. In other words the US buyers partially pay for the R&D cost to keep to EU standards. And the US population also get the EU regulated-safety requirements (although only partially, since the US also allows Cybertrucks to drive around).

A comparison would be comparing a car that can ensure the survival of their passengers, proven with test crashes, vs e.g. Chinese-made cara for the local market that have terrible crumpling when crash-tested..
by CalRobert | 2025-12-03 08:42:42+00:00
I once had a Volvo wagon with a rear-facing third row, but I don't think anything like that has been made for over 30 years.

You're right though, if we hadn't moved to the Netherlands, we'd have bought something like that too, to make sure we'd win in any crash. Luckily we do, indeed, use an Urban Arrow instead.

Ironically I can hold more kids on the Urban Arrow than I could in my last car - 4 small kids can ride on the bike (3 in bucket, one on a seat on the back), plus the rider of course.
by Ferret7446 | 2025-12-03 08:42:46+00:00
You say that like inequality is a problem. If so, there's a really easy way to solve it: nuke the planet back to the stone age.

Personally, I'd rather have inequality if it means everyone can live a peaceful life. Let the rich have their yachts or whatever.

I don't see why the increased productivity provided by AI won't make things better, given that all of the ills of the world are caused by scarcity: that is, insufficient productivity.
by leobg | 2025-12-03 08:42:53+00:00
Agree with your points. Trucks are a tragedy of the commons kindof thing. I just dislike that you’re singling out Cybertruck. It’s not bigger than the Doge Ram, F150 or a Hummer.

Big trucks happen to be a popular market in the US. If you build cars in the US, you’ll have to serve that market. Even more so if your goal is to prove that an EV can be anything that an ICE can be, and more.
by johnnyanmac | 2025-12-03 08:42:57+00:00
>Ignoring AI, how different is it now from 10, 20, and 30 years ago?

Ignoring AI, there is simply more competition and less human interface in the process to begin with. 10 years ago, you'd throw maybe dozens of apps and study interview trivia (this was right before the "leetcdoe era" so not even that). 20 years ago you'd probably just wander around a career fair and stumble into your career. 30 years ago you were as close to shaking your managers' hand for a job as you'd ever be in the modern tech industry.

10 years ago, a reference from nearly anyone in the pipeline to the hiring manager guaranteed at least a look see at you. Now it's a 50/50 at best. "who you know" may not be enough anymore.And now career fairs are 90% advertising firms instead of actual talent aquisition.

>Perhaps we're just seeing many companies realize it's easier to be stricter about who they hire?

if you look at the hiring numbers, you see that hiring globally is in fact not slowing down. That's a bit of a tangent, but that may give a clue to the whole situation here.

Today you may not even get a human to see your resume after 100 job apps. It's not just brutal but a solitary experince. No feedback to improve upon, no advice to take.
by charcircuit | 2025-12-03 08:43:11+00:00
>Users thinking e2ee is possible when you chat with an ai agent.

It shouldn't be any harder than e2ee chatting with any other user. It's just instead of the other end chatting using a keyboard as an input they chat using a language model to type the messages. Of course like any other e2ee solution, the person you are talking to also has access to your messages as that's the whole point, being able to talk to them.
by wisty | 2025-12-03 08:43:12+00:00
I think music is more universal than you suggest (or people may think you're suggesting).

Trying to classify things as music is a normative approach - saying what music should be. There's always exceptions to rules, as you point out, and people will always disagree and find exceptions.

The article is a descriptive approach - it studies what people think music is.

You can treat music as information. If it's not information, it's just noise.

Sometimes it has a low information density. People like to sing along to stuff they recognise. Sometimes it has higher density - a surprise bit of syncopation or an unusual note. Music is a variation in pitch and rhythm (etc) that is boring enough (in the context of the priors) to be familiar, but not too boring.

OTOH look at how tone poems flopped. There are patterns that are naturally easier to learn - rhythms (in the article) and maybe scales and harmonies (though this is clearly a bit more complex - not every culture has the old Mesopotamian diatonic scales that the Pythagorians formalised). But like Chomsky theorised with grammar, there might be defaults (or a range of defaults) that humans are naturally drawn to as the priors.
by neom | 2025-12-03 08:44:12+00:00
I was just talking to JChris Anderson about Strudel last week, he forked it, adding "snaps" where users can snapshot their work allowing for the creation of multi-layered songs, added a "vibe" tab so anyone can easily update the code with pompts, and a few other changes.

Here's the fork on GitHub: https://github.com/VibesDIY/strudel

Here's a preview of what it would look like when merged: https://strudel.use-vibes.com/

Here he is playing around with the preview: https://www.youtube.com/watch?v=0oJhnkWDafM
by verdverm | 2025-12-03 08:44:40+00:00
ChatGPT is losing their brand positioning to Google, Anthropic, and Chinese Open Source

Altman knows this and why he called code red. If OpenAI hasn't produce a fully new model in 1.5 years, how much longer can they hang on before people will turn to alternatives that are technically better? How long before they could feasibly put out a new model if they are having issues in pre-training?
by bayindirh | 2025-12-03 08:44:46+00:00
I mean, they're battling with DDoS all the time. I follow their account on Mastodon, and they're pretty open about it.

I believe the correct question is "Why they are getting DDoSed this much if they are not something important?"

For anyone who wants to follow: https://social.anoxinon.de/@Codeberg

Even their status page is under attack. Sorry for my French, but WTF?
by myvoiceismypass | 2025-12-03 08:45:21+00:00
It is explained in the very link you provided:

> From a technical perspective, as someone who had previously been merging the MR's from that author, there are also a number of technical reasons we'd slowed down on merging them and started rejecting more of the MR's - most notably it becoming increasingly obvious that the MR's were untested and breaking things. Many of the MR's already have technical objections in them to the changes, and many have no benefit other than refactoring the code to make it easier for future changes he had planned, but now will not contribute to us, so would cause code churn and risk for no remaining reason.
by tubthumper8 | 2025-12-03 08:45:36+00:00
What do you mean by "failing tests", are you talking about runtime code? TypeScript erases all types at compile so these wouldn't affect tests. Unless you meant "compile errors" instead.

I've noticed LLMs just slap on "as any" to solve compile errors in TypeScript code, maybe this is common in the training data. I frequently have to call this out in code review, in many cases it wasn't even a necessary assertion, but it's now turned a variable into "any" which can cause downstream problems or future problems
by littlestymaar | 2025-12-03 08:45:40+00:00
> Yea - if you want a paranoidly-sandboxed, instant-start, high-concurrency environment, not just on beefy servers but on resource-constrained/client devices as well, you need experts in V8 integration shenanigans.

To be honest, that sounds more like a pitch for deno than for bun, especially the “paranoidly sandboxed” part.
by victorbjorklund | 2025-12-03 08:45:40+00:00
I think it's hard to say for sure that it's only the safety regulations on the car that that have resulted in these reductions, and by contrast those increases in the US. There are so many other things not related to the regulations on the car. My guess for example is that us have a lot less bike roads than europe does and traffic rules are not affected by the regulations on the cars and so on. for sure European European car regulations are probably better than American ones from a safety perspective. but I think it's hard to to say that without them we would have an increase, it would have a smaller reduction.
by wongarsu | 2025-12-03 08:46:01+00:00
The US has been like that for a long time. But Western European and American interests were well aligned for a couple decades. First the whole WW2 business. Then Western Europe needed funds for rebuilding and a strong deterance against further expansion of the Soviet Union, while the US felt threatened by the idea of communism. Then in the early 90s we had a couple years where we had common ground in commercializing and integrating post-Soviet states.

During the Bush and Obama eras Europe was at least important as a staging ground for war in the Middle East, but the US wants to get away from putting boots on the ground there.

But now most of the common ground is gone, and the gloves are coming off
by rixed | 2025-12-03 08:46:03+00:00
Quite commonly required by law in Europe; but often times not implemented very seriously by hosting providers, but Germany seems to be an exception.

I remember a time in France for instance, about 15years ago, it was mandatory to provide your ID when bying a mere prepaid sim card. No seller would actually check, and a coworker of mine who used to work for one of the largest french telcos at the time told me that once they ran some stats over the customer database and noticed that most names where from popular comics and TV show. They laughted and moved on. These days, the seller would at least ask for some ID.

aka circling the cattle.
by messe | 2025-12-03 08:46:39+00:00
The function being called has to take into account thread safety anyway even if it doesn't do IO. This is an entirely orthogonal problem, so I can't really take it seriously as a criticism of Zig's approach. Libraries in general need to be designed to be thread-safe or document otherwise regardless of if the do IO, because a calling program could easily spin up a few threads and call it multiple times.

> What if this function was designed with synchrony in mind, how do you prevent it taking a penalty guarding against a threaded version of IO?

You document it and state that it will take a performance penalty in multithreaded mode? The same as any other library written before this point.
by shrubby | 2025-12-03 08:46:42+00:00
Yup.

I'm looking this via the lens of moral development where:

Pre-conventional level is the narcissist me-me-me level, that seems to dominate the geopolitics and tech.

Conventional is most of us as the sheep. This level follows the loudest crowd that right now is the pre-conventional.

Post-conventional is the few that can do standalone thinking and morals.

Most conventionals can though understand the difference between and also the outcome we're headed to with the pre-conventional human gods, but we need to build the normalcy for the post-conventional ones together and make it structural.

My hunch is that first step could be to start the discussion on what is excessive on personal level. Consumption, wealth, political power.

Something like Mamdani or Polanski have showed, only more blunt. The majority of people are waking up that the current trajectory means the end of the world and extinction after the short period of accelerationist-dystopian hellscape.
by nottorp | 2025-12-03 08:47:12+00:00
I doubt the average citizen in the Netherlands can afford EVs at current EU prices either.

And at the rate car prices are increasing for no good reason, I doubt the average EU citizen will be able to afford a car in the future.

The EU does need to find a middle ground between mandatory safety features that are unaffordable and free for all pedestrian killing machines.

And protectionism ain't it. It will only increase the prices for domestic cars until the likes of VW have to close up shop because no one can afford what they're peddling any more.