Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Four AI Giants Agreed to Slow Down. Four Subscribers Sued Them for It (mrkt30.com)
    —discuss
  2. Starcraft Brood War self-play RL bot beats strong human [video] (youtube.com)
    —discuss
  3. Show HN: Scalable subagents with reusable teams and interruption recovery (github.com/ringlochid)
    —discuss
  4. Ask HN: Anyone elses OpenAI and Claude API keys mysteriously leaked last night?
    —discuss
  5. An update on Angular's TypeScript 7-powered Compiler (angular.dev)
    —discuss
  6. An SR-71 Blackbird Has Vanished (Updated) (twz.com)
    —discuss
  7. Show HN: Born after 26 Sept. 1983? You may never have existed (stanislas-petrov-1983.surge.sh)
    1comments
  8. Entropy-Based Guided Collaboration in Heterogeneous LLM Multi-Agent Systems (arxiv.org)
    —discuss
  9. Tell HN: AGI Is Here
    1comments
  10. Memory on the Harness Level (dhravya.dev)
    —discuss
  11. An Italian Logistics Company Moved from Windows to Linux (itsfoss.com)
    —discuss
  12. Binomial Coefficient Coincidences (johncarlosbaez.wordpress.com)
    —discuss
  13. Roth IRA Savers Are Hacking 529 Accounts into a Wealth-Building Tool (bloomberg.com)
    —discuss
  14. U.S. Rebukes Australia over Proposed Limits on Social Media Algorithms (nytimes.com)
    1comments
  15. Microsoft Abandons Personal AI Chatbot Race with Copilot Reboot (bloomberg.com)
    —discuss
  16. Show HN: Vitals – A Mac activity monitor that thinks in apps, not processes (vitalsmac.com)
    1comments
  17. Allow Carriers on Planes (jefftk.com)
    —discuss
  18. Lost Egypt Volumes 1–3 (19th CE) (uchicago.edu)
    —discuss
  19. Not Everyone Can Code (funcall.blogspot.com)
    —discuss
  20. ReAnchor, a Jev Optimizer in DSPy (cmpnd.ai)
    —discuss
  21. A Jevlike using an escalation model to route between a classifier and an LLM (yogthos.net)
    —discuss
  22. SpaceX-Focused Pentagon Contracts Leave Rivals Feeling Squeezed (bloomberg.com)
    1comments
  23. First Principles Thinking (sunilsadasivan.com)
    —discuss
  24. The US stood alone in dismissing AI safety concerns at the UN (semafor.com)
    1comments
  25. Benchmarking Jev, Laya, and five open models under three stresses (github.com/gazelle93)
    —discuss
  26. ASML says it sold 'absolutely nothing' in Europe in 2026 (tomshardware.com)
    13comments
  27. Does Georgism Work? Five Years Later (astralcodexten.com)
    —discuss
  28. 30 Years of Backwards Compatibility in a Development Tool Since 1993 (visualneo.com)
    —discuss
  29. Tell agents the why, not just the how (seangoedecke.com)
    —discuss
  30. What happens when you analyze your favorite college football team like the CIA? (cultivatelabs.com)
    1comments

Platform-Independent SIMD in Go

83 pointsby 2h agogo.dev
20 comments
2h agoHN ↗

This feature opens many doors for optimizing low-level performance in Go projects, that are already running multicore. IIRC there aren’t a lot of languages with built-in std lib support for SIMD and variants. Love the way Go is trying new stuff lately.

1h agoHN ↗

Vectorizing computations has been Matlabs secret sauce.

1h agoHN ↗

Does matlab these days do stuff like JIT operator fusing to avoid memory roundtrips and take advantage of FMAs?

1h agoHN ↗

Besides the usual C and C++, we have Java, .NET, D, Zig, Julia, Swift, Rust.

So yeah, also appreciate having Go in the group instead of manually having to write Assembly.

However not many languages adopt ways to manually write SIMD, because most of us have no idea how to write good SIMD code in first place, I surely don't.

1h agoHN ↗

Even with languages that adopt ways to manually write SIMD, it’s mostly left to library maintainers rather than application developers.

I work for a C++ timeseries database startup that leverages SIMD about as much as we possibly can, and except for some extremely rare places we just use libraries.

44m agoHN ↗

Yeah, that is what I have heard from some NVidia folks as well, like Bryce Adelstein, use the libraries as much as possible, and leave the kernels for experts.

However even then, it depends on how the libraries API surface looks like.

58m agoHN ↗

With AI I'm pretty sure SIMD will be easier to integrate when necessary.

41m agoHN ↗

But it’s not necessary at all, the whole point is that these utility libraries bring you more elegant code that work on all platforms without having to pollute your codebase with SIMD intrinsics.

Unless this was tongue in cheek, because this is in fact a problem with AI that it degrades your codebase in these types of ways.

1h agoHN ↗

Oh this is great, it was one of my biggest bugbears about Go since you almost always have to link C/C++ code to get the appropriate performance.

The one negative I'd say is that often autovectorisation is 'good enough' and this doesn't really tackle that gap.

1h agoHN ↗

As a first step, it might be possible to write a linter rule that rewrites suitable numeric loops to SIMD. There are already rules to rewrite several loop types, so that should be doable.

1h agoHN ↗

The poor Assembler and the unsafe package forgotten in the corner.

While reaching out to CGO is the easier way, it doesn't mean it is the only tool available in Go.

1h agoHN ↗

FWIW, there is some pretty substantial autovectorization work that is already in-flight for the Go compiler.

There's a CL stack here:

https://go.dev/cl/791740

It's hard to make predictions with an open source project, but my personal guess is some flavor of it will land (including it is already demonstrating good results without an enormous level of code complexity in the compiler and without overly slowing down compile speeds), but I guess we'll see.

It's being driven by an external contributor who has landed some good changes in the past to the Go compiler. (I think the autovectorization work might be part of their PhD or other academic research, but not sure.)

54m agoHN ↗

The problem with Go isn't performance but with the C/C++ interop overhead, even with the "30% less overhead" from a few updates ago which isnt true for 99% of cases, it isnt enough

53m agoHN ↗

Already using this for foreground estimation of cutouts in my project, around 30% speedup over non-SIMD, but the algorithm is probably not very optimised yet.

27m agoHN ↗

This is why I love Go. Nobody was asking for this, but they took the time to do it right and continue to Push go as a memory safe, high-level systems language.

12m agoHN ↗

Go is in no way automatically memory safe. It's up to the programmer to write memory safe code with it.