Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Show HN: Chrome extension where Jev decides if each post/video/page is worth it (github.com/plusminushalf)
    —discuss
  2. Advancing Private AI Compute with secure, server-side memory (deepmind.google)
    —discuss
  3. Ask HN: Did you install Emacs out of nostalgia rather than usefulness?
    —discuss
  4. Show HN: An MCP-enabled cross between Twitter X Bumble BFF X ChatGPT (druggie.org)
    —discuss
  5. The Mars Delusion (noemamag.com)
    —discuss
  6. LiveMaply – Real-time website visitor analytics and live chat (livemaply.com)
    —discuss
  7. My Server Was Hacked (gowtham.dev)
    —discuss
  8. Show HN: swe-mux – A terminal multiplexer for coding agents optimized for mobile (github.com/jatoran)
    —discuss
  9. Ultima Online Retrospective (4.5 hour documentary) [video] (youtube.com)
    —discuss
  10. Show HN: A goal tracker that looks like a 1983 terminal, drawn in Swift (apps.apple.com)
    —discuss
  11. Northstar Browser (apps.microsoft.com)
    2comments
  12. The Tragic Alley of the LLM (nikotak.com)
    —discuss
  13. ChatGPT and Perplexity agreed on only 1 in 4 local business recommendations (clicksdynasty.com)
    —discuss
  14. Show HN: TinyAIArena watch AI agents battle it out (tinyaiarena.com)
    2comments
  15. Show HN: MacUp – keep CLI tools up to date from the menu bar (patriciobcs.com)
    —discuss
  16. Trump Set to Roll Back Biden-Era Auto Fuel Economy Standards (bloomberg.com)
    —discuss
  17. How Fast You Age During 40s May Predict Memory Lapses in Your 50s (nautil.us)
    —discuss
  18. Tyndall Effect (wikipedia.org)
    —discuss
  19. Ask HN: Allow agents access to cloud files with least privilege
    2comments
  20. How JWT Authentication Works (medium.com/koukyosyumei)
    —discuss
  21. US Military disables ad trackers amid concerns over troops' safety (taskandpurpose.com)
    1comments
  22. Getting Banned from NT for Apple Silicon Project for Booting Windows on Apple M6 (twitter.com/acelogic_)
    2comments
  23. Current ways of developing AI agents contribute to degradation of oversight (arxiv.org)
    1comments
  24. postmarketOS Rebrand: Nura (nura.eco)
    —discuss
  25. EU urges UK to raise tariffs on Chinese cars to avoid 'made in Europe' barriers (ft.com)
    1comments
  26. DOE releases national quantum computing roadmap (fnal.gov)
    —discuss
  27. The Normalization of Inexplicable Failures (ihatethefuture.com)
    1comments
  28. I Gave My Life over to Meta's A.I. Agent and Was Blown Away (nytimes.com)
    —discuss
  29. We Outsourced the Verb (yesigiveafig.com)
    —discuss
  30. Show HN: High-performance, zero-dependency charting engine for Svelte (bonguynvan.github.io)
    —discuss

Pig: Pi in Go, a port that plans on keeping up

4 pointsby 3h agodeveloper.hpe.com
2 comments
1h agoHN ↗

    I wanted that same harness as a single native binary, with no Node.js requirement and the option to compile my extensions in.

This is maybe one level of "why", but why is this something one wants? What was the theory of how it would improve on the original? I hear a lot about single native binaries these days. Native is fast, right? One of something is simpler, right? I don't know, though...

    On its last run (Linux x86_64, 1 CPU, 10 runs), pig --version had a median
    of 21.5 ms against 300.3 ms for Pi 0.87.1, and peak memory was 24.6 MiB
    against 101.5 MiB.

Benchmarking --version just tells you how fast each program does nothing, which isn't really a useful measurement when both programs are meant to run continuously.

    And a harness spends most of its time waiting on model streams, tool
    processes, and the terminal, which is the kind of concurrency Go handles
    with less ceremony than most languages

I'm not sure that Pi actually suffers in this area. Highly concurrent software involving a lot of I/O is already NodeJS's strong suit.

Under the "why" section, there's a graphic showing Pi in gray and PiG in green, but the Pi option still looks better to me.

This is a significantly more complex design, staying (nearly) Pi-compatible while offering an extension SDK in several languages, as well as the runtime orchestration needed for all these different Go, TS, Python and Rust processes that are running.

It might have a better memory profile, but it's not clear what scaling problems this solves that make maintaining a full rewrite worth the trouble.

Plus, if you keep using even one TypeScript Pi extension, it doesn't actually rid you of Node. If the implied argument is that Node brings a minimum memory cost, the PiG's overall memory profile is arguably comparable with, maybe even a little worse than Pi's.

    Try PiG if a native binary, shareable Piglets, or extensions in Go, Rust, or Python solve a problem you have.

I want to hear more about the problems PiG has solved for the author. The only real problem the piece explicitly describes is that usage-based pricing is coming soon. If the usage billing concern is real, why essentially lock yourself into recurring payments on keeping pace with Pi? And why add so much complexity on top?

1h agoHN ↗

You are kidding, right? The JavaScript ecosystem is a garbage dump of infinite dependencies. I refuse to install any random projects that use it. This fact alone is more than enough reason to justify this effort, as I am hardly the only developer that feels this way about it.