Hacker News

Show HN: Secure Execution of AI-Generated Code Locally on macOS/Linux MicroVMs

Hacker News - Thu, 05/22/2025 - 1:34pm

Built a Rust project that lets you securely run untrusted/AI-generated code in lightweight VMs. Spins up in milliseconds, runs on your own infra, no containers. And it works on Macos and Linux.

Python, Rust, and TypeScript SDKs are available now so you can spin up vms with just 4-5 lines of code. Run code, plot charts, tear down VMs programmatically with no complex setup.

Early days though. Thoughts appreciated if you're building dev tools or AI agents that need proper isolation without performance headaches.

Comments URL: https://news.ycombinator.com/item?id=44064461

Points: 1

# Comments: 0

Categories: Hacker News

Ask HN: What makes a programming language great for code generation?

Hacker News - Thu, 05/22/2025 - 12:54pm

At the moment, it seems programming language popularity might be the best indicator of whether an LLM will be proficient at generating working code (e.g. Python, JavaScript, Java, C). However, it seems plausible to me that languages which require the least amount of extra reasoning (and/or tokens?) could allow LLMs to produce working code more often. For instance, I would imagine immutability to be easier for an LLM to "reason" about than local mutability. The same could be said for strict formatting, explicit types, concise syntax, etc. By that reasoning I might expect functional languages to be particularly good targets.

Is there any evidence supporting these ideas? Should there be (or are there already) languages developed with LLMs in mind? Will we see developers pushed more toward languages that LLMs are more proficient at?

Comments URL: https://news.ycombinator.com/item?id=44063967

Points: 2

# Comments: 0

Categories: Hacker News

Show HN: Breakout Game – Smash a Brick, Read a Post

Hacker News - Thu, 05/22/2025 - 12:50pm

Hi HN,

I was already building a breakout game[1] just for fun, but then I thought—what if the bricks were news? So now, every time you smash a brick, you get a post and have to decide: read it or toss it.

The idea came from realizing I skim through news way too fast, often skipping things that don’t immediately interest me. This was my way of slowing down and giving those overlooked posts a fighting chance.

Give it a try!

I also wrote a short post [2], detailing the physics behind the game. I spent quite a bit of time just fine-tuning the bounce logic: adjusting angles and adding random variations to make sure the movement feels just right.

[1]: https://github.com/neberej/breakout

[2]: https://nabraj.com/blog/breakout-game-physics/

Comments URL: https://news.ycombinator.com/item?id=44063921

Points: 2

# Comments: 0

Categories: Hacker News

Pages