Python to SPIR-V Translation

I started working on Spirthon. This far I got a SPIR-V encoder and decoder in the repository. I don't quarrantee I complete this project. Though my rationale to start the project could be interesting:

So that motivates to writing a shader language compiler. Why translate from pythons bytecode rather than from an unique language? The inspiration comes from languages that have been embedded and used inside an another language in some way:

When I was writing an interpreter in rpython, I noticed that I mostly wrote code that generated the repetitive parts of my software, rather than even trying to code it all myself. Writing it was beneficial in python even if the source bytecode was required to be restricted.

Also, I have wanted to write such a translator since I tried out RPython.

Similar posts