#ZetaLang: a JIT-compiled, low level language focused on performance, type safety & Dev productivity

27 messages · Page 1 of 1 (latest)

sacred terrace
#

https://github.com/Voxon-Development/zeta-lang/

I've got big plans for this language guys :D

Currently the code is made in Rust, and uses the Cranelift toolkit for fast compilation.

I'll be able to optimize the generated IR later

You can check more (such as what is done and the current issues) about it on github!

GitHub

New generation of JIT like you've never seen. Contribute to Voxon-Development/zeta-lang development by creating an account on GitHub.

harsh musk
#

Hello, I don't intend to gloss over the rest of your work, but do you mind linking me where exactly the "this is where I am JITing stuff" code is?

sacred terrace
#

further into the language though I'll be implementing my own IR that I can optimize and then send to cranelift to compile to machine code and stuff

harsh musk
#

thanks, and gl with the project

sacred terrace
elfin marsh
#

looks super interesting! I'm keeping my eye on this :)

sacred terrace
#

Speaking of; I finally finished another feature of OOP

public class Vec3f(x: i32, y: i32, z: i32) {
    public multiply(self, by: i32) {
        x *= by
        y *= by
        z *= by
    }

    public x(self): i32 {
        return x
    }

    public y(self): i32 {
        return y
    }

    public z(self): i32 {
        return z
    }
}



main() {
    let vec3f: Vec3f = Vec3f { 1, 1, 1 }
    vec3f.multiply(3)

    let sum = vec3f.x() + vec3f.y() + vec3f.z()
    println_int(sum)
}
sacred terrace
real kite
#

This is very cool!

#

I used to be very interested in programming language design and compiler/interpreter/VM development as well when I was younger.

sacred terrace
sacred terrace
#

now I am rewriting a new compiler to compile AST into my own IR

#

which i can optimize however i like

#

then i'll convert my old compiler to compile from the new IR

sacred terrace
#

I organized the code by a ton

#

:D

sacred terrace
#

Hey guys :D I have implemented event loop (which is not used for sync functions)

heap allocations
My own stack

And also ability to run methods

And also I can compile more stuff to my own bytecode
When I get bytecode actually compiling properly and even executing I'll work on language level fibers (coroutines ig) then I'll work on making importing and ffi

onyx fox
sacred terrace
#

Thanks

sacred terrace
onyx fox