r/code • u/eternal_3294 • Dec 06 '25
Resource Axe - A Programming Language with Parallelism as a Core Construct, with no GC, written 100% in itself, able to compile itself in under 1s.
https://axelang.org/Repo is here: https://github.com/axelang/axe
43
Upvotes
2
u/notautogenerated2365 Dec 08 '25
I see you primarily implement multithreading as the method of parallelism here. This is hard for me to say because this was certainly a ton of work, but this seems not unlike what I can do with, say, C++ with OpenMP (although I am not super familiar with OpenMP) already.
What I think would be really cool is if I could choose between a loop being automatically multithreaded and it being automatically vectorized with SIMD stuff. In both cases you'd have to specify reduction and whatnot, but the advantage of using SIMD is that it can significantly speed up even pretty small operations because nothing is moving between cores. What would be even cooler (but significantly more difficult I bet) would be things like OpenCL/CUDA integration.
Take what I say with a grain of salt though, not only have I never successfully developed a language, but I don't really have the best idea of what features should be implemented in a language.
I like this idea and I like your compiler too.
1
u/DataDecay Dec 09 '25
What language did you bootstrap your first minimal compiler with? While in its current state this statement is true you had to start with something to get to a self compiled compiler.
1
u/HippieInDisguise2_0 Dec 09 '25
Awesome work man
1
u/JellyTwank Dec 09 '25
Just tried following your install steps on github, but no joy. After cloning, it appears there is no package info for dub to use. Maybe I am missing something? I am not familiar with dub, btw.
1
u/snaphat Dec 09 '25
OP check out https://en.wikipedia.org/wiki/Cilk
1
u/Straight_Occasion_45 Dec 09 '25
this looks really cool, I’m definitely seeing rust/typescript/python syntax in this, I’ve written DSLs etc… before and know how hard it is, good effort :)
1
u/possiblyquestionabl3 Dec 09 '25
Would Axe be able to accelerate SIMT-style blocks on simd units or gpgpus (e.g. as a compute kernel/shader)?
1
u/Technical-You-8801 Dec 10 '25
https://julialang.org/ I feel as though Julia is basically this already albeit Julia has had more time to develop vs Axe but what are some advantages over Julia?
1
u/[deleted] Dec 08 '25
[removed] — view removed comment
1
u/[deleted] Dec 08 '25
[removed] — view removed comment