4 comments

  • incognito1244 minutes ago
    If you&#x27;re interested in not reinventing the sandbox for LLMs, consider Judge0: <a href="https:&#x2F;&#x2F;judge0.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;judge0.com&#x2F;</a><p>I have absolutely no relation to the project except for the fact that I went to the same Uni as the creator.
  • networked30 minutes ago
    Hey simonw, if you&#x27;re reading this, you should check out <a href="https:&#x2F;&#x2F;github.com&#x2F;dbohdan&#x2F;starlark-python" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dbohdan&#x2F;starlark-python</a>. It&#x27;s an AI port of starlark&#x2F;java to pure Python inspired by your work. theanonymousone might want to give it a look, too.<p>The project was inspired by <a href="https:&#x2F;&#x2F;github.com&#x2F;simonw&#x2F;micro-javascript" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;simonw&#x2F;micro-javascript</a> (a C-to-Python port of MicroQuickJS) and Simon Willison&#x27;s quest for sandboxed Python. Not only that, but I used the Claude Code transcript he published to generate a playbook the porting agent then followed. I wrote up the port at <a href="https:&#x2F;&#x2F;dbohdan.com&#x2F;starlark-python" rel="nofollow">https:&#x2F;&#x2F;dbohdan.com&#x2F;starlark-python</a>.<p>I considered whether to port MicroPython, PocketPy, or a Starlark implementation to Python. I ultimately stuck with Starlark because it was designed for untrusted code and had a conformance test suite. This looked about as optimized for agentic coding as a problem could get. While Starlark is more restrictive than MicroPython or PocketPy, I consider my needs for configuration and safe scripting currently satisfied (see #users in the README).
  • tmaly56 minutes ago
    I am trying to think of a use case for this.<p>I was thinking the client side WASM version would be useful as a platform for beginners to practice a subset of Python in.<p>I can&#x27;t really think of any good WASI use cases.
    • theanonymousone19 minutes ago
      For me it is a tool I avail to an LLM so that it can provide correct answers to a certain category of questions, instead of hallucinating nonsense.
  • theanonymousone2 hours ago
    P.S. I was casually searching for &quot;sandboxed Python&quot; for an experiment I&#x27;m working on, and reached this article that was published &quot;today&quot;. Very nice coincidence! Thanks.