Matt Fysh via llvm-dev
2020-Aug-29 10:57 UTC
[llvm-dev] JavaScript implementation of LLVM primitives (Value, Block, etc)
Hi there, I'm working on a new language but not at all proficient with C/C++... I was wondering if there was an experimental-ish implementation of LLVM IR in JavaScript which would allow me to use the LLVM primitives to build an IR, and then write an IR interpreter in JS. The reason I'm looking to use javascript is that I'll be able to move faster and explore a large backlog of ideas quickly, before committing them to the language spec. Does something like this exist? If no, are there alternatives where someone with no C/C++ knowledge can quickly explore and prototype language ideas? I'm particularly interested in use-def chains, coroutines, and to a certain extent - type safety. I'm also interested in tracking produced values over multiple executions, and in later executions using the same value without computation if it has shown to produce the same value consistently. Is this something in the LLVM ecosphere currently, or is this more of a higher-level concept? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200829/0cf79e92/attachment.html>
George K via llvm-dev
2020-Aug-29 13:56 UTC
[llvm-dev] JavaScript implementation of LLVM primitives (Value, Block, etc)
Hello Matt, I found this https://github.com/MichaReiser/llvm-node , however i am not sure of its status. If you are familiar with Python, there is llvmlite: https://github.com/numba/llvmlite Some llvmlite material here: https://eli.thegreenplace.net/2015/building-and-using-llvmlite-a-basic-example/ https://eli.thegreenplace.net/2015/python-version-of-the-llvm-tutorial/ About the IR interpreter, there is lli: https://llvm.org/docs/CommandGuide/lli.html George On 29-08-2020 12:57, Matt Fysh via llvm-dev wrote:> Hi there, > > I'm working on a new language but not at all proficient with C/C++... > I was wondering if there was an experimental-ish implementation of > LLVM IR in JavaScript which would allow me to use the LLVM primitives > to build an IR, and then write an IR interpreter in JS. > > The reason I'm looking to use javascript is that I'll be able to move > faster and explore a large backlog of ideas quickly, before committing > them to the language spec. > > Does something like this exist? If no, are there alternatives where > someone with no C/C++ knowledge can quickly explore and > prototype language ideas? I'm particularly interested in use-def > chains, coroutines, and to a certain extent - type safety. > > I'm also interested in tracking produced values over multiple > executions, and in later executions using the same value without > computation if it has shown to produce the same value consistently. Is > this something in the LLVM ecosphere currently, or is this more of a > higher-level concept? > > Thanks! > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200829/59456dfc/attachment.html>