Xorathena's comments

Xorathena | 2 years ago | on: Has there ever been an attempt to create a high/low level language pair?

...like the past few decades of Python/Ruby/Node/etc wrapping C-ABI libraries from any language?

https://docs.python.org/3/extending/extending.html

https://nodejs.org/dist/latest-v20.x/docs/api/n-api.html#nod...

https://docs.python.org/3/library/ctypes.html

https://swig.org

When using Zig functions and structs on the low side there are some nice opportunities for making the low/high interface more automatic at comptime, especially when you're jointly compiling (your Zig code + a Zig-based Python interpreter + your Python code) together into one WASM blob.

Disclaimer/public-commitment-to-getting-it-released: I've written most of a Python interpreter in Zig as part of another project. (just the basics — won't be big and professional like CPython.) I'll reply here eventually when it's done, available as FLOSS, and ready to say "high-low".

Xorathena | 2 years ago | on: Patrick McKenzie (patio11) on navigating complex systems

> all choices in life have trade-offs

> I invite them to attempt writing a few million words. It will give one a very considered view on one’s own style.

That it will! I recently went from [not writing many documents] to [writing a ton of documents], and it turbocharged my reflecting-on-style background process.

Thanks again for your documents over the decades!

...and as a quote in HPMOR put it:

> Apparently people who were in books actually sounded like a book when they talked.

page 1