Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Astra for Law(openai.com ↗)
    351comments
  2. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    71comments
  3. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    150comments
  4. Goose: 1.16x faster than C++ and 1.12x than safe Rust, while memory safe(github.com/aardappel ↗)
    16comments
  5. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    136comments
  6. Wax motor(wikipedia.org ↗)
    48comments
  7. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    196comments
  8. Telstra outage: The night a network decided the year was 2006(netnod.se ↗)
    2comments
  9. Alibaba releases Qwen 3.8 Omni Flash(qwen.ai ↗)
    4comments
  10. Flet 1.0 – Build cross-platform apps in Python(flet.dev ↗)
    34comments
  11. Diplodocus, Long Thought Exclusively American, Turns Up in Spain(sci.news ↗)
    19comments
  12. I Put Nam A2-Lite Inside an iRig HD X(playtaurus.com ↗)
    discuss
  13. More than 100k people in Japan are now aged 100 or older(bbc.com ↗)
    118comments
  14. CrowdSec Source Code Leak(crowdsec.net ↗)
    38comments
  15. How Uber Protects Against Retry Storms(uber.com ↗)
    23comments
  16. The most important product decision is what you don't build(liamnugent.me ↗)
    17comments
  17. Infinite-Parameter LLMs: Generating and Adapting Weights from Live Data(arxiv.org ↗)
    34comments
  18. Why I didn’t sign the Fields medallists’ letter(gowers.wordpress.com ↗)
    309comments
  19. Rate limits on GitLab.com are changing(about.gitlab.com ↗)
    106comments
  20. How do we prevent mathemathics from devolving into the Medieval Era of secrecy?(mathoverflow.net ↗)
    55comments
  21. CCC invites all model citizens to 40C3(ccc.de ↗)
    180comments
  22. TSMC revealing details about next gen A14 node(mapyourshow.com ↗)
    34comments
  23. The American Religion of Self-Storage Facilities(newyorker.com ↗)
    339comments
  24. Zettascale (YC S24) Is Hiring ASIC/FPGA Engineers to Build Chips for ASI(zscc.ai ↗)
    discuss
  25. Landing the Space Shuttle – A Flying Machine and the Thrill of a Lifetime(eaa.org ↗)
    4comments
  26. Running Ubuntu on the Lenovo IdeaPad Duet(vhaudiquet.fr ↗)
    25comments
  27. Show HN: Snapdrop: Instantly share files between devices. No setup, no signup(snapdrop.me ↗)
    19comments
  28. Show HN: Share your AI Setup, Learn from others(mysetup.ai ↗)
    101comments
  29. Launch HN: Skillsync (YC W26) – AI chat sessions made portable across agents
    48comments
  30. Computer Reset, Dallas(dfarq.homeip.net ↗)
    2comments

Goose: 1.16x faster than C++ and 1.12x than safe Rust, while memory safe

26 pointsby 1h agogithub.com
16 comments
45m agoHN ↗

What does Goose change about memory management ?

26m agoHN ↗

A lot - title could probably use editing. The language has no heap, only stack memory, so the only deallocation is returning from a call stack frame.

2m agoHN ↗

How big is the stack? Too often large data will blow the top and destroy adjacent stacks in multi-thread environments. Are memory barrier fences used to check against overflow?

2m agoHN ↗

If I am reading it correctly, the compiler creates N bump allocators per function - where N is (I'm guessing at this point) determined by liveness or similar.

34m agoHN ↗

Goose looks familiar like C or Rust, and is built on one idea: there is no heap

So it looks like it restricts the memory management to 100% scope based. I expect that makes a lot of designs for programs not translate to it as well as they fit in Rust or Java (for example). There are a bunch more constraining design choices they list further down:

- Nothing ever moves

- ... A string, an array of strings, a record with variable-size fields and an array of those records are each one contiguous block with no pointer in it

I'll have to look a bit deeper to decide if it's feasible to write many things in this language.

17m agoHN ↗

What kinds of things do you think might not translate well?

14m agoHN ↗

Not the OP, but I'm thinking about like closures?

Say you wanted to make a Node.js framework with callbacks that react to an event. The callback might be a closure that captured some of its surrounding variables. At that point, any of the captured variables are not trivially stack-allocated.

You might be able to do something similar to what Rust does with moving though.

12m agoHN ↗

You could predefine your event handlers within your context, then call 'enter framework' and pass your event handlers as arguments. this is continuation passing style

14m agoHN ↗

You could write everything if you refactor to continuation passing style

31m agoHN ↗

I am researching a similar idea but which allowed moves if the compiler was able to fix the resulting structure, but mine will probably stay a small side project for a long time.

10m agoHN ↗

Faster than C++ is always a head-turner. Curious what "magic" enables that with memory safety.

6m agoHN ↗

So much Claude text. I'm sure this is great (I did a bunch of stuff with/to aardappel's lobster, years ago, and it was pretty tidy, and quite easy to work with), but: Claude's writing makes my brain melt.

It's a no from me. I'm sorry.

6m agoHN ↗

I'm always fuzzy on this, so 116% faster or 16% faster? The benchmarks suggest 16%.

2m agoHN ↗

116% would be 2x which will break the laws of physics. 16% is possible if you're not allocating heap memory, which I believe is the main selling point here.