tinypy icon indicating copy to clipboard operation
tinypy copied to clipboard

Is this dead?

Open ghost opened this issue 6 years ago • 9 comments

Last commit 2009, yet there are much more recent issues.

ghost avatar Mar 18 '18 09:03 ghost

I'm curious too 🤔

devkaiwang avatar Aug 14 '18 06:08 devkaiwang

I had this exactly the same idea over a shower. Some google landed me here. Looks unmaintained indeed. Wonder how much it will take to give this some Python 3 flavor.

rainwoodman avatar Jan 04 '19 06:01 rainwoodman

Non-toy, Python3-flavored spiritual successor of tinypy is https://github.com/micropython/micropython .

However, it would be nice to fix up this repo, so it worked out of the box.

pfalcon avatar Feb 03 '19 09:02 pfalcon

Well, @rainwoodman seems to be doing quite a lot of work in his fork: https://github.com/rainwoodman/tinypy

pfalcon avatar Feb 03 '19 09:02 pfalcon

Indeed. The general direction is to make it easier to hack on and set the background such that hacks will naturally land into the right places.

I am in the middle of several things -- it was fun, but time has been scarce. May I bug you from time to time on issues?

  1. Reorganizing the API. I added a layered structure: basic data structures (tpd), language services (tp), and python interface (tpy). I am trying to kill all the cyclic dependency between layers. This may have broken several extension modules.

  2. Switch to meta to dispatch all methods. This would allow subclassing of all builtin classes, and extending the builtin classes (think of jQuery alike) without modifying the VM.

  3. disabling import from file; only support importing from existing fully qualified module names, which are associated with code objects by some other mechanism. The idea is to avoid a big, fat standard library that needs to be carried with the interpreter, and will also remove file-system dependency from the core vm.

Other to do list is a new testing framework; an audit of the code on thread safety is also on my list; adding an Exception class; and probably eliminate setjmp/longjmp, if that's possible at all -- how do you see this?

A binding to a tensor library could be nice.

rainwoodman avatar Feb 03 '19 19:02 rainwoodman

@rainwoodman, Good plans list, thanks, I'm sure people interested in tinypy will find it useful.

May I bug you from time to time on issues?

I assume you address to "wider tinypy community". I'm sure it will respond. In the meantime, let me ask a question from my side: what's your motivation for doing all those non-trivial, effortful things to tinypy?

pfalcon avatar Feb 04 '19 17:02 pfalcon

I am not so certain about the size of the audience. There isn't much space left, especially given the neither language nor the extension API is compatible with Python or lua.

A good candidate as a hobby or a place to learn about how to build languages, but I don't see much more beyond these.

rainwoodman avatar Feb 10 '19 23:02 rainwoodman

@rainwoodman Please see this - http://mruby.org/

devkaiwang avatar Feb 15 '19 07:02 devkaiwang

Thanks.

I wonder how they are doing the tests -- it smells like they are using mruby as a ruby extension, then assert the output of the extension module. But this would mean if the target system doesn't have ruby tests cannot be run there.

rainwoodman avatar Feb 17 '19 06:02 rainwoodman