News for hackers. Stuff that matters.
Re:Show HN: Gsubpy, an interpreter for subset of Python, wri... by manfre on Friday April 21, 2023 @07:18AM (#35652169)
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.
Re:Show HN: Gsubpy, an interpreter for subset of Python, wri... by yi_xuan on Friday April 21, 2023 @07:35AM (#35652285)
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, wri... by wepple on Friday April 21, 2023 @07:41AM (#35652319)
This 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, wri... by yi_xuan on Friday April 21, 2023 @08:06AM (#35652507)
Yeah, definitely I should, thanks remind me of this.
Re:Show HN: Gsubpy, an interpreter for subset of Python, wri... by lima on Friday April 21, 2023 @08:51AM (#35652942)
You 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, wri... by pineapple_sauce on Friday April 21, 2023 @03:11PM (#35658573)
Re:Show HN: Gsubpy, an interpreter for subset of Python, wri... by lima on Saturday April 22, 2023 @02:30PM (#35669555)
Same thing, different implementation language :)

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

Re:Show HN: Gsubpy, an interpreter for subset of Python, wri... by samanator on Friday April 21, 2023 @08:58AM (#35653047)
Another python implementation in golang:

https://github.com/go-python/gpython