Metaprogramming

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
User avatar
dponyatov@gmail.com
Posts: 5
Joined: Fri Jun 14, 2019 8:44 am

Metaprogramming

Post by dponyatov@gmail.com » Fri Jun 14, 2019 9:19 am

Good day

What tutorials or samples should I consult first, if I want to implement my custom language extension or DSL?

Is it possible to do it using only metaprogramming in ready to use uPython system without hacking the interpreter core and recompile?
I mean things like using deep reflection, dynamic function generation by bytecode custom compiling, maybe some debugging facilities, manual garbage collection control, etc.

I want to try uPython interpreter used as a runtime system looks like Smalltalk interactive environment or something like that.

PS: LLVM is not in view now, but maybe much much later, especially cross-compiling
(uPython on embedded Linux device + external Cortex-M devices as slave i/o modules).

Post Reply