MurphyA/hacker-news huggingface dataset:
by vilunov | 2025-05-30 13:13:18+00:00
Are there any approaches which implement server-side rendered SPAs with Rust? In that case Rust would render the HTML for the first load and server JSON APIs for changes in the SPA. Rendering the HTML is performance-intensive in my experience, using Rust could save up quite some computational resources.

Just serving static files from Rust is not that interesting. It definitely does not sound easier to me, since you are coupling deployment of both BE and FE with no resource optimization to get. Also, since built SPAs are essentially static files, their deployment could be just uploading these files to your CDN.
by fragmede | 2025-05-30 13:13:29+00:00
Realy? Does having flawws really make four better reading? Okay, I'll admit that hurt me to right (as did that) but writing isn't furniture, and other than a couple of tells which I haven't kept pace with (eg use of the word "delve"), the problem with trying to key off of LLM generated content and decide quality, is that you can't tell if the LLM operator took three minutes to copy and pasted the whole thing (unless they accidentally leave in the prompts, which has happened, and is a dead giveaway that no one even proof skimmed it), or if they took more time with it and carefully considered the questions ChatGPT asked them as to what the writing wood (ouch!) contain.

If you made it this far, does having English mistakes like that make really make for better reading?
by Moomoomoo309 | 2025-05-30 13:13:50+00:00
It only takes one time: a woman who sees a man as less than for admitting his weakness makes him never talk about that stuff around women again.

Unfortunately, there are many women who react this way, so the cycle continues. I don't necessarily blame women for this, it's more about the social expectations for men, the moment they violate that expectation and are "punished" for it, they follow it to the letter, because they then know what happens if they don't.
by anton-c | 2025-05-30 13:14:19+00:00
You've really never had an attractive member of the opposite sex show up and the girls/guys get all competitive? I'm wondering how that's possible, it happened multiple times a week - a day even - to me in high school and college. I guess always being in mixed groups meant it was always subtly in play.

5 dudes chilling is a different dynamic than 3 guys 2 girls. People who keep insisting it's about some weird need for men to be offensive don't seem to have ever observed basic gender dynamics.(not saying you are, other responders)
by kypro | 2025-05-30 13:15:02+00:00
Dumb. I was at an old mill recently and was learning about how workers protested when weaving jobs were being replaced by machines and they were losing their jobs due to human weavers being less efficient than the new steam-powered weavers.

This is why business with any financial sense wouldn't pay an artist for artwork anymore because it will be far far more expensive and take longer... Mills which didn't change with the time, according to the guy I was talking to failed and all the workers lost their jobs anyway.

The good news here is that like during the industrial revolution, soon loads of unproductive work will be automated away – coders, artists, accountants, lawyers, etc. And like during the industrial revolution this will result in huge profit increases and competitive advantages for businesses which adopt quickly. This isn't something any company should be sitting on the fence about.

While it's unfortunate people will lose their jobs we should remember that humans are still uniquely qualified for work where human interaction is valued – like service work. It's really only the inefficient knowledge work that will be automated away by AI, like how inefficient factory work was automated and outsourced out of developed economies over the last century.
by AlexeyBrin | 2025-05-30 13:15:32+00:00
How many modern compilers will let you write import std; in a C++ file and build the executable without shenanigans ? GCC 15 still does not let you compile a C++23 code with:

g++ -std=c++23 -fmodules foo.cpp

Without manually generating the std module first. Until all compilers will directly accept the import keyword it won't be adopted on a large scale by regular programmers.
Show HN: Codemap AI: Visualize and explore large codebases with AI
by ilia_khatko | 2025-05-30 13:15:46+00:00
Hi HN!

I’m a solo technical founder and just launched the first public version of Codemap AI (https://code-map.com) - a tool to help developers instantly understand large codebases.

Codemap AI currently:

- Parses large codebases (Java for now)

- Generates interactive relationship diagrams

- Lets you chat with an AI about your code

- Lets you chat with dev agents (developer clones) about code changes

- Tracks security issues and project statistics

- Helps with onboarding, debugging, and documentation

I built this because I’ve personally spent weeks trying to understand unfamiliar and legacy code in large projects. My goal is to make codebases as explorable as possible - like having a "Google Maps" for your code.

At this stage, it’s not a live SaaS - I have a landing page and a demo video here:

- Landing page: https://code-map.com

- Demo video: https://youtu.be/kMy-zwsApxI

Would love feedback from the HN community:

- Does this solve a real pain for you?

- What features would make it indispensable?

- Any suggestions for improvements or integrations?

Thanks — happy to answer any questions!
by ednite | 2025-05-30 13:15:50+00:00
Great discussion. From my understanding, Joel Spolsky pushed back against devs wanting to leave the industry due to cost-center culture and outsourcing.

In today's context, AI is triggering similar feelings of displacement, burnout, loss of meaning, self-doubt and so on.

For others, AI opened many doors.

In my opinion, we are reliving the same fears in a new form. I think this flashback can prove that it's just a question of adapting. It isn’t just history repeating, it’s setting the stage for reinvention. Thanks for sharing.
by idiotsecant | 2025-05-30 13:15:56+00:00
I'm not sure how it's a personal attack, it would be like someone who bakes bread for a living saying that the tolerance of products doesn't really matter, compared with a machinist who knows exactly how much it can matter. It's quantifiably true that serious QA is a thing, your industry just doesn't have it. If you choose to turn that into a personal attack I think that says more about your internal state than it does about the actual post I made.
by ninkendo | 2025-05-30 13:15:58+00:00
> the typical Rust coder may be even worse because of the missionary fervor and 'holier than thou' attitude

Anecdata, but the number of times I actually encounter these missionary Rust coders (the RIIR types) is utterly dwarfed by the number of times I hear people complaining about them. The memes making fun of the insufferable rust evangelists are at least 10x as prevalent as the evangelists themselves.
by tpmoney | 2025-05-30 13:16:07+00:00
> Humans don't listen to one another and nod unthinkingly. They criticize and validate relentlessly. Friends aren't mistaken for oracles. We have learned to not trust one another, except when one is speaking from deep experience and expertise in a given domain.

Do we though? I think a quick jaunt through any of the “-o-spheres” or “-tubes” of the internet would quickly disabuse someone of the idea that we default to not trusting other people. Even before the internet, “urban legends” are effectively “mass social hallucinations”.
by itishappy | 2025-05-30 13:16:37+00:00
> The product is about manual drawing. It’s difficult to imagine where would you insert the AI in that process.

Microsoft Paint has AI these days.

https://support.microsoft.com/en-us/windows/use-image-creato...

> And maybe a smart strategy?

It's a brilliant strategy, IMO. Maybe not to take over the whole industry, but to carve out a loyal niche. Are there many other top-tier creative apps that take such a clear position?
by sanex | 2025-05-30 13:16:57+00:00
While I agree that we should procreate, I disagree with the entire premise of this post.

I have always been garbage at the visual arts. Art classes in school were my worst class every year, I just could not get the pictures in my head down on to paper. I accepted that I just wasn't "creative". This mentality persisted through my school years and I ended up getting a business degree because it's not "creative". I was miserable. Eventually saw the light and got into web dev. I believe this is a creative pursuit, and the issue is the medium. Everyone is inherently creative and the general act of creation is one of the most fulfilling things you can do to occupy your time.

As a web dev AI allows me to be creative in my ideas and prompting, generating pictures that I would otherwise not have the ability to create myself. Before you say I'm taking the job of graphic designers, I assure you none of these uses would have ended in me spending any money or even someone else's time if AI image gen didn't exist. AI lowers the bar for people to pursue the act of creativity in a medium they otherwise struggle in.
by skeeter2020 | 2025-05-30 13:17:04+00:00
>> a good reminder that it's a pretty simple universal tool interface.

That's because it's not really doing anything new. MCP is a land-grab by one company, quickly supported by the rest as they desperately work to abstract and supplant with their own "protocols". Welcome to the era of thin veneers that add little but complexity over what we already had.
by spookie | 2025-05-30 13:17:41+00:00
Well, there is a clear line between a handmade filter and AI. But this is clearly AI since it relies on a filter optimized via automated training on images.

I think we are in agreement, I have used more descriptive wording to just clearly indicate what I consider as a filter.

(Edit: yeah, looking at the image I can see it clearly takes some artistic liberties. Even on the dragon.)
by gjm11 | 2025-05-30 13:17:56+00:00
Why?

I emphasized "lot" because presumably the training data for a high-end model like Claude includes literally millions of books, far more than any human being has read even a few pages of.

To me, "Claude has read a lot of books" would read pretty oddly here. I suppose the idea would be to contrast with the (hopefully few) books it's written to date, but I can't think why the emphasis would be called for.
by EGreg | 2025-05-30 13:18:05+00:00
Wow. I used to correspond with Leslie Lamport years ago (about his Buridan's Principle papers, etc.)

Today I went to his website and discovered a lot about TLA+ and PlusCal. He still maintains it: https://lamport.azurewebsites.net/tla/peterson.html?back-lin...

I must say ... it would make total sense for a guy like that, who brought mathematics to programming and was an OG of concurrent systems, to create a systems design language that's used at AWS and other industrial places that need to serve people.

I wish more people who build distributed systems would use what he made. Proving correctness is crucial in large systems.
by p_l | 2025-05-30 13:18:22+00:00
If I wasn't virulently anti-helm I'd probably help maintain it, as it is I treat Helm as necessary evil but never write any charts ^^;

Another idea I just had yesterday, and which I've seen partially executed by others, was serverless Vault/OpenBao - the tricks I've seen used various FUSE filesystems, but I wonder if an S3-compatible backend couldn't be added one day :)
by 1718627440 | 2025-05-30 13:18:23+00:00
> most of the world actually doesn't have any address and the governments have no plans in place to solve this

I thought we were talking about a situation, where there is no system already in place? Either there is no postal service, so this will be bootstrapped as well, if people care about mail, or there is already. In the latter case, they either have a system, in which case there would be in fact an address system, so it is irrelevant for the current consideration, or they don't. While I don't know how this state is supposed to exist, streets signs from randos would be an improvement so, why wouldn't they adopt it?

Also in case the local authority doesn't care anyway, you only need to convince your local delivery guy who lives next door and faces the same problem.
by furyofantares | 2025-05-30 13:18:49+00:00
When I was a parent of a newborn I was shocked at how good my hearing for a fidgeting baby became.

Then I realized I was also getting a number of false positives, and eventually I noticed that I felt a sort of constant tax of, well, the kid was just always on my mind. Just always some sort of background simulation of what might be going on in the other room, not at the forefront but almost always running.

So any little noise would quickly fit some imagined scenario involving the kid, and I'd be on my way to her as soon as she woke up and made the smallest noise - or any time the house creaked.
by mschuster91 | 2025-05-30 13:19:17+00:00
> It's much more expensive to build and maintain a vast network of roads, sewage, water, power lines across a huge area servicing fewer people. You don't need skyscrapers to build a denser city, you live in Germany so you are aware of that.

We already have built all that infrastructure over the last millennia. We have roads everywhere, we have water and power everywhere, and 99.99% are attached to a sewer mains. That's the fucking point. We have more than enough housing, it's just the basic infrastructure like 5G and fiber internet that drives people away from the rural areas, caused by politicians thinking "we don't need 5G on every cow pasture" (yes, literally, that was an actual quote).
by NickC25 | 2025-05-30 13:20:27+00:00
>That's what makes faith rather hard at times and often requires meditation.

Faith. Key word, faith. There is no reason for faith, because you're placing faith and (fleeting) hope that some dude in a desert a few thousand years ago found the ultimate way to interact with (his understanding of) humanity's creator, if we even have one. What makes you so 1000000% sure that this guy's understanding of the supernatural is correct? You're assuming that there actually is some omnipresent being that manifested existence, and that same being actually divinely created humanity on purpose, and not only that, gave humanity free will, and not only that, also simultaneously loves and hates you, and will condemn you to eternal hellfire if you don't worship him enough. Oh yeah, according to some, he's got a son too, born of humanity but with magical powers.

Faith. Come on.
by bandoti | 2025-05-30 13:20:30+00:00
The thing that pops in my mind on misplaced AI integrations is: Copilot on Microsoft Word—infusing the caret with that God-Awful, purple Copilot “call to action.” Intuitively it makes sense to add AI capabilities to a writing program, but enough is enough. At this point it’s an insult on our collective intelligence.

If you ask me, keep the AI in a new, separate program.

Generative AI has a distinct workflow that is unique and the UX patterns will likely be different than traditional workflows. For instance: the generate, reject-or-accept loop.

I’m wondering how many people just copy and paste from their chat agent and simply ignore the other integrations (with respect to consumer products).
by shinycode | 2025-05-30 13:20:35+00:00
Actually LLM exists in the first place because creative people like him wrote down their thoughts. If no human ever wrote anything, LLMs wouldn’t be able to generate anything would they. Now because LLM are rehashing on human content the feeding value for us is less important. What would be nice is an LLM that writes a book that spans accros authors of different fields to aggregate and consolidate knowledge, saving us the time of reading all the books
by squidbeak | 2025-05-30 13:22:11+00:00
This is an important point. Modern man is conditioned to find purpose through employment. The notion of the heroism of work isn't as cartoonish as it was in communist societies, but it's implicitly there - in the centrality of work to every part of culture and customs like that go-to ice-breaker, "What do you do?" The psychological shift of moving past that will be every bit as challenging as the economic adjustments of full automation.
by flohofwoe | 2025-05-30 13:22:27+00:00
Because there may still be shared pointers in the wild holding a reference to the object and the last of those will call also attempt to call the destructor.

With an explicit deinit() method you'd basically get an object that's in an deinitialized, but not destructed state (quite similar to the state a moved-from object is in), the object still exists in memory and can react with proper errors to attempts to access.
Ask HN:How AI/MCPs can be useful?
by CafeRacer | 2025-05-30 13:23:14+00:00
I have been writing commercial code for over a decade an been exposed to things like coding, architecture, devops, team management, etc.

I've recently tried that AI vscode alternative (not windsurf, another one popular, forgot the name).

Sometimes code completion is a-okay, most of the times it'd produce a lot of code that I'd spend more time understanding than actually writing it. Sometimes when I expect completion to occur, it just doesn't. And I mostly rely on snippets and vscode auto-completion anyways.

It's a-okay for writing repetitive test code, however, I also noticed that if I set-up my framework well, then I can copy/paste most of the stuff and AI auto-completion does not add a lot of value.

Granted, I'm using claude as a search engine – it's pretty decent as a standalone app and gives good information to work with. It helps me understand unfamiliar APIs/frameworks/concepts quicker. Anyone takes away claude, I can live with RTFM.

I've recently tried connecting MCPs with claude desktop. It's cute that it can fetch stuff, or populate a local db or whatever. These seems to be gimmicks.

My question is – how can I really make MCPs and AI more useful for software development / team management processes? Can you share stories of how you use AI to really improve workflows?
by phkahler | 2025-05-30 13:23:25+00:00
>> Why not give the top limb 64 bits and the other four limbs 48 bits each, then?

I think one goal is to use 5 64 bit registers to do 256 bit math. That means using 256/5 = 51.2 bits of each word. That's probably some kind of ideal if you want 256bit math, but not optimal if you're writing a generic big-int library. In the old days you'd want to use exactly one byte for the carry(s) because we didn't have barrel shifters to do arbitrary bit shifts efficiently. In that case I'd use 56 bits of the 64 to get nice byte alignment.

This is all quite relevant for RISC-V since the ISA does not have flags.
by bjrosen | 2025-05-30 13:23:33+00:00
It's happened to me in exactly that way. There was a stopped school bus and it showed no signs of stopping before I intervened. The other FSD failure is not understanding no right turn on red. It stops for the red light, waits until there is no traffic and then goes as if it was an ordinary red light. That's less serious because it's not dangerous like passing a school bus but it's illegal. Aside from those two things FSD has been almost perfect. It drives better than a human, it's very comfortable but 13.2.x isn't ready for unsupervised.
by incomingpain | 2025-05-30 13:23:46+00:00
Lets pretend a tech was replaced by AI.

The MBA has an idea of a new business app coded in rust.

How long will it take for the mba to have AI describe how to ssh into the linux server?

How long until they get beyond:

use std::net::{TcpListener, TcpStream};

use std::io::{Read, Write};

use std::thread;

It's completely unreasonable to think AI is replacing people.
by jokethrowaway | 2025-05-30 13:24:04+00:00
Dropping the static files on a CDN (eg. cloudflare pages) is pretty straightforward, cheap (and free), and doesn't impact your backend in terms of complexity or performance.

Your usecase can be useful for "local web applications" where you ship a binary and you get a local webui - but at that point, why not just build a Tauri app? (not electron as you would be shipping an extra browser instead of reusing the system one)
by redman25 | 2025-05-30 13:24:42+00:00
Gemma-3-12b-qat https://huggingface.co/google/gemma-3-12b-it-qat-q4_0-gguf

Qwen_Qwen3-14B-IQ4_XS.gguf https://huggingface.co/bartowski/Qwen_Qwen3-14B-GGUF

Gemma3 is a good conversationalist but tends to hallucinate. Qwen3 is very smart but also very stubborn (not very steerable).
by lopatin | 2025-05-30 13:24:58+00:00
And just a tip for who may be intersted: Claude Opus with Extended Thinking seems to be very good at converting existing code into TLA+ specs.

I've found multiple bugs for personal Rust projects like this (A Snake game that allowed a snake to do a 180 degree turn), and have verified some small core C++ components at work with it as well (a queue that has certain properties around locking and liveness).

I tried other models but kept getting issues with syntax and spec logic with anything else besides Opus.
by raincole | 2025-05-30 13:25:25+00:00
As a (I dare to say) rather advanced hobbyist digital painter, I don't want generative AI. I want a good image search engine + database.

When I say "a woman looking outside from her seat on a train" I don't want it to generate such an image for me. I want it to literally give me existing images that more or less fit the description, with full credit. If it's from a movie I'd like to know the movie's name and timestamp and the actor's name and everything.

I know the difference between referencing and plagiarism. And if I'm going to cross the line, at least I know I am the one who makes this decision and takes the legal risk. With the current generative AI I don't even know who holds accountability. Likely nobody, or worse, an unaware me.

This is why I think the copyright law is very broken. If someone made the database I described above, their pants, house and first-born would be sued off. But I'd argue it's a not just more useful, but also more ethical product than generative AIs.