#Polymorphik

1 messages · Page 1 of 1 (latest)

runic patrol
#

https://codeberg.org/27/kfs/src/branch/main/polymorphik

An x86 32bit kernel for learning purposes, currently with the very basics implemented (GRUB multiboot & VGA)

This was supposed to just be a simple, follow-the-footsteps kind of project, but where's the fun in that? It's now become a testing ground for building toolchains to compile random languages down to native code. Here is the VGA driver for example:

steady topaz
#

is this python

runic patrol
#

Yup. I'm trying to see how silly I can get by using the most languages I can

#

For now I've got toolchains going for Python, JavaScript, and Lua. Java is in the works, I'm doing my own transpiler but it's semi broken for now

spring mica
#

this is so cursed

runic patrol
#

The Python toolchain is using https://github.com/exaloop/codon to do the heavy lifting, compiling python-like syntax and modules down to LLVM IR, where it gets optimised & preprocessed down to GAS-like x86 assembly

#

Lua is simply using https://nelua.io/, JavaScript (and TypeScript) are compiled to WASM, into an aot compiler which i forgot the name of, and Java is rewritten to LLVM IR via ObjectWeb's ASM bytecode parsing library

hasty carbon
#

you should get matlab to run on it

#

i have yet to see a driver written in matlab

runic patrol
#

Oh god

#

That sounds hillarious but im not sure if that's ever going to be possible

hasty carbon
#

actually they're not identical nvm

#

very close tho and open source

runic patrol
hasty carbon
#

that would be hella funny

runic patrol
#

Here I was thinking that .NET would be the most cursed language we could get running

#

😭

hasty carbon
#

it's not a massive deal but it is not fast

spring mica
#

But they're meh