‹ BackHN Continuity

Thread

Rpi – a Rust rewrite of the Pi agent, 10× faster startup

8 points · 10 comments · bigfishhk

Loading the complete thread in the background. This saved snapshot is available now. Refresh

  1. vincent-uden · · focus · HN ↗
    This kind of invalidate the pitch of Pi, the self-modifying harness. You can't use the Pi extensions I'm assuming...

    Without a plan of your own for extensions this is comparing apples to oranges. My Pi startup time is dominated by loading extensions and skills, and I don't even have many to begin with!

    (It seems like there is a pluging API judging by the Github repo. That wasn't linked in the comments by the time of my writing)

    1. bigfishhk · · focus · HN ↗

      [dead]

    2. dv_dt · · focus · HN ↗
      I wonder about adding a plugin shim for webassembly, or a Rust crate with integrated V8 engine (Bun?)
      1. vincent-uden · · focus · HN ↗
        I mean, kinda same. I've asked it to write skills but that is about it. And skills dont require this. But I do use other peoples extensions.
        1. dv_dt · · focus · HN ↗
          I suppose one potential drawback is that the visibility of the logic of a plugin is inherent in the pi ts extensions, and unless it's shipped with the rpi (pi-rust) extension, it may not be the same.
          1. bigfishhk · · focus · HN ↗
            There is a tool named Docs that guides users on how to use RPi and how to write extensions. RPi has a plugin ABI to support extensions.
    3. krishverma_2010 · · focus · HN ↗

      [dead]

  2. voidUpdate · · focus · HN ↗
    That name won't be confusing at all
  3. bigfishhk · · focus · HN ↗
    github repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;bigfish1913&#x2F;pi-rust" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bigfish1913&#x2F;pi-rust
  4. syrusakbary · · focus · HN ↗
    Nice!

    This is great. A few days ago we were able to enable running Pi fully in the browser (and in the iPhone). Demo here: <a href="https:&#x2F;&#x2F;wasmer.sh&#x2F;?example=pi" rel="nofollow">https:&#x2F;&#x2F;wasmer.sh&#x2F;?example=pi

    I&#x27;d be curious if we could compile Rpi to WASIX (<a href="https:&#x2F;&#x2F;wasix.org" rel="nofollow">https:&#x2F;&#x2F;wasix.org) and get it there as well!

  5. MarleTangible · · focus · HN ↗
    The table corrected:

      Metric          rpi (Rust)   Pi (TypeScript)   Difference
      --version       17.5 ms      169.5 ms          9.7x faster
      Cold start      17.7 ms      189.5 ms          10.7x faster
      RSS when ready  12.0 MiB     91.5 MiB          7.6x smaller
      Install size    21.8 MiB     ~385 MiB          ~18x smaller
  6. Zeeshan_02 · · focus · HN ↗
    How would you handle a co-founder whose commitment appears to have changed?
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.