stark-lang / stark-old-experiment

[Obsolete] - Development repository of the language, compiler and runtime
MIT License
74 stars 0 forks source link

Runtime targets? #1

Open iamcarbon opened 7 years ago

iamcarbon commented 7 years ago

Have you given any thought to having this language be higher level and compile down to multiple runtimes (i.e. clr / webassembly/ llvm).

Also, curious what language you plan to start with to bootstrap things?

Looking forward to seeing this projects progress!

xoofx commented 7 years ago

Sorry, completely missed the notification for this question.

Have you given any thought to having this language be higher level and compile down to multiple runtimes (i.e. clr / webassembly/ llvm).

The primary target is LLVM. Webassembly should be hopefully supported without too much trouble using Emscripten. For the CLR, that would not be really interesting, because it would have to work a bit like Emscripten: generating IL code that would contain the whole runtime of Stark - gc + handling of stark objects...etc. and allocate big chunk of unmanaged memory to represent the Stark runtime layout, without using a single managed object/Framework from .NET (meaning almost zero interop scenario with the .NET world). Like Emscripten that is in a different category, because its final purpose is to allow your program to run inside a browser (note: it is not really meant to expose your program as a library), while for .NET, there is nothing like this...

Also, curious what language you plan to start with to bootstrap things?

C#

Looking forward to seeing this projects progress!

👍