Live data from Hacker News

Show HN: Gsubpy, an interpreter for subset of Python, written in Go

github.com

1–9 of 9 posts

Show HN: Gsubpy, an interpreter for subset of Python, written in Go

#1
Recently, I write an interpreter for subset of Python using Go. I haven't seen source code of CPython, all is just written according to my understanding of Python so there may be some unusual things. Hope you can play fun with it. Any suggestion is welcome, glad to get some feedback.

Show HN: Gsubpy, an interpreter for subset of Python, written in Go
github.com

Re: Show HN: Gsubpy, an interpreter for subset of Python, written in Go

#3
post #2

It's such a small subset that it would more accurately be described as a scripting language with syntax similar to python for single file scripts.

For now, it's indeed too small subset, more features will be added later though, I want to make sure all the code that gsubpy can interprete can be intepreted by CPython. So, the a subset of Python is the most accurate name I can think of right now.

Re: Show HN: Gsubpy, an interpreter for subset of Python, written in Go

#9
post #6

You might also want to take look at Starlark, which has a Go implementation: https://github.com/google/starlark-go

Not sure how they compare, but: https://github.com/facebookexperimental/starlark-rust/

Same thing, different implementation language :)

Starlark is used in a number of production systems so there's good support.