example of how it works with recursion: https://ziglang.org/documentation/master/#Compile-Time-Expressions …
-
-
This Tweet is unavailable.
-
This Tweet is unavailable.
-
Replying to @TheGingerBill
I think an important question you have to consider is: will it be theoretically possible for compile-time executed code to crash the compiler? In Zig it's not (except for compiler bugs); in Jai it is (even if Jai had no bugs) The Jai way gives more power. Perhaps too much power
1 reply 0 retweets 0 likes -
Replying to @andy_kelley @TheGingerBill
I don't know how Odin is currently designed, but I highly recommend having "Odin IR" as an implementation detail of compile-time code execution. Here's an example of Zig IR: https://gist.github.com/andrewrk/63efb801b1509973776dc3beaf1059cc … note that in the 1st pass the IR is type-agnostic
0 replies 0 retweets 1 like -
This Tweet is unavailable.
-
This Tweet is unavailable.
-
Replying to @TheGingerBill
I'm jealous. I'd love to have the self hosted compiler be pure, and fast, like
@Jonathan_Blow's proof of concept. Sadly, I need the state of the art optimizations and debug info support that LLVM provides. It would take me a lifetime to keep up with the LLVM community.0 replies 0 retweets 0 likes -
This Tweet is unavailable.
-
This Tweet is unavailable.
Any particular link/paper here you would recommend?
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.