#Implement a compiler target
1 messages · Page 1 of 1 (latest)
@plush shadow can you share how you're setting up the LLVM target?
If it's just for fun you can fork the project and get hacking 🙂
custom backend in gleam using glance
not hacking the compiler as i do not have the time to learn lifetimes rn
not the lifetimes 
<a'> isn't real it can't hurt you
java is better than rust for 90% of applications and i will die on that hill
have you considered, kotlin
im just making a point kotlin and c# both work
but yes c++ c rust zig are overkill for many things
🧹
"Java gets 75% of the way there with 10% of the complexity"
idk but to answer the original question by @rich heron i parse my gleam using glance as it just does it for me then turn it into an intermediate representation in gleam and then i do codegen to a llvm ir string using that intermediate representation
youd probably want to look at the javascript.rs and erlang.rs in compiler_core, thats where the existing backends are implemented mostly
uhmm okay
You can also check how my fork diverged from main
so yours is like a separate tool
yup i wanted to do it in gleam
dream of self hosting
interesting...
do you have a repo implementing it?
my coding is abbysmall but i can publish it rq
@plush shadow did you see my project (gig) 👀
im going to do a full rewrite as im just messing around
well, don't worry then
oh yeah the code is much better than mine
it was a big inspiration
I guess I'll check Danielle's repo and see which strategy is better
(probably just in gleam tbf, as my rust is pretty... rusty (pun intended))

Me when <'a>
as I said <a'> isn't real!
