Show HN: Gsubpy, an interpreter for subset of Python, written in Go
github.com
Show HN: Gsubpy, an interpreter for subset of Python, written in Go
1–9 of 9 posts
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.
Re: Show HN: Gsubpy, an interpreter for subset of Python, written in Go
#2It'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.
Re: Show HN: Gsubpy, an interpreter for subset of Python, written in Go
#3It'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
#4This is based on the interpreter-in-go book by thorsten ball, right? Might want to give a little credit there
Re: Show HN: Gsubpy, an interpreter for subset of Python, written in Go
#5This is based on the interpreter-in-go book by thorsten ball, right? Might want to give a little credit there
Yeah, definitely I should, thanks remind me of this.
Re: Show HN: Gsubpy, an interpreter for subset of Python, written in Go
#6You might also want to take look at Starlark, which has a Go implementation: https://github.com/google/starlark-go
Re: Show HN: Gsubpy, an interpreter for subset of Python, written in Go
#7Another python implementation in golang:
Re: Show HN: Gsubpy, an interpreter for subset of Python, written in Go
#8You 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/
Re: Show HN: Gsubpy, an interpreter for subset of Python, written in Go
#9You 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.