Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Show HN: EthosLM - Turn a sentence into a Minecraft city (github.com/chaitbuilds)
    —discuss
  2. Show HN: Jobless Joke Language (JJL), a Brainf***-inspired esoteric language (github.com/ghetea-patrick)
    —discuss
  3. Show HN: Claude on a 2007 Nokia 6300 (Java ME app, TLS 1.0, private CA) (github.com/emir)
    —discuss
  4. MiMo-v2.6-Flash: on intelligence/price Pareto frontier (artificialanalysis.ai)
    1comments
  5. Dynep: Real-time GPU spot market across 31 cloud providers (dynep.com)
    —discuss
  6. Flock seeks to have security researchers' map of Flock cameras taken down (tomshardware.com)
    —discuss
  7. Hello Hnu
    1comments
  8. Against Political Realism (xd1.dev)
    1comments
  9. The accidental history of 3000, 8080, and other port numbers (smarmelling.com)
    —discuss
  10. ReBirth RB-338 (wikipedia.org)
    —discuss
  11. AI in hospital billing adds nearly $1B in extra costs (bcbs.com)
    —discuss
  12. Halo: An open-source, self-modifiable, agentic operating system (gethalo.dev)
    —discuss
  13. Appeals Court Lets The Pentagon Designate Anthropic a Supply-Chain Risk (wired.com)
    —discuss
  14. Life Forge – Autonomous Flight Simulator for AI Agents (github.com/zariffromlatif)
    —discuss
  15. Joby Completes First-Ever Autonomous Flight Across the United States (jobyaviation.com)
    —discuss
  16. Joplin (joplinapp.org)
    —discuss
  17. I was impressed by Jev, please explain why I shouldn't be
    4comments
  18. I made a website that automatically tracks API specs (trackapi.uk)
    —discuss
  19. For states seeking to rein in license plate cameras, New Hampshire is a model (newhampshirebulletin.com)
    —discuss
  20. Don't couple your Go code to GitHub (iain.rocks)
    1comments
  21. The Aesthetic Problem of Namespacing (gingerbill.org)
    —discuss
  22. Milestone: Write app from scratch rather than manufacturers software (bytestone.uk)
    1comments
  23. Show HN: Turn a UniFi Protect relay and sensor into a smarter garage door (garageopener.app)
    —discuss
  24. How Pink Is Pink Noise (ev12183725.substack.com)
    —discuss
  25. Creating a Reverse Outline (wisc.edu)
    —discuss
  26. AMD Posts the Full EPYC 9006 SKU List: 31 Venice Parts From $700 to $14,904 (storagereview.com)
    —discuss
  27. Is this what SW eng has come to
    3comments
  28. Test Post (example.org)
    3comments
  29. Ask HN: What's the most inspiring media you've consumed in the last 5 years?
    —discuss
  30. The Illusory Dunning-Kruger Effect and Reciprocal Fits (jslandy.com)
    —discuss

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

4 pointsby 4h agodeveloper.hpe.com
2 comments
2h 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?

2h 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.