An unofficial, read-only Hacker News reader.

2035 came early (opens external site)

1037 points by setheron 4 days ago | fzakaria.com | 382 comments on HN

View full thread · View on Hacker News

Comment thread (5)

  1. I'm also confused. V8 + Pyodide are perfectly practical, and we built a Python worker MCP on top of it that's used without much pain across many of our customers[0].

    I know that the Pydantic folks also built a similar MCP in the past[1] but abandoned it for "latency" and security/isolation concerns. All those are pretty easy to remedy with a pool of pre-initialized workers and subprocess isolation. Overall, it's one of the easiest ways to ship an easily on-premise-deployable solution like that.

    [0]: https://github.com/EratoLab/code-interpreter-mcp

    [1]: https://github.com/pydantic/mcp-run-python

    Replies (1)
    1. Oh this is neat. Security wise, are these trusted customers? Whats the worse case here? A machine needs to be rebooted? Maybe when I was looking into isolates before (briefly mind you) my security stance was too strict.
      Replies (1)
      1. Our customers all run that within their own Kubernetes setups. The end users that are using it are the organizations employees (that are typically using it via our self-hosted AI chat platform[0]) with the most common tasks just being file manipulation. So there is a decent trust relationship, but the attack model is more of a typical organization-wide cyberattack one, where this shouldn't pose a weak link.

        The worst case would be that any of the isolation mechanisms significantly fails, and concurrent workers can see each others files, e.g. confidential files inside the company. This should be quite hard in the architecture, and barring a bug in our server code require escape from multiple layers of sandboxing, and beyond that would require coordinating timing with the attack target.

        In terms of stability, if a single worker OOMs, that just leads to it being killed. If you were able to get multiple workers to reach high memory usage, the pod will just be OOM-killed by Kubernetes and restarted.

        It's not perfectly resource-preserving if you are running with a pre-warmed worker, but economically it's still a steal. You get functionality for $10-20 of compute a month for ~1000 employees that you would with many alternative providers pay $5-10 _per user per month_.

        [0]: https://github.com/EratoLab/erato

        Replies (1)
        1. You guys do E2E? Or do you have your clients bring their own tokens?
          Replies (1)
          1. Clients bring their own tokens, and the most privacy sensitive clients self-host their models. We are also investing in building out desktop client capabilities to offload simple tasks onto the users machine (as both a privacy and cost saving measure).