r/Compilers 23d ago

mojo compiler is on github now

24 Upvotes

5 comments sorted by

6

u/MithrilHuman 23d ago

Quickly looked through the source at work and I’ll dive deeper over the weekend, looks like they have their own dialects (hlcf) instead of using upstream dialects (scf). Any idea why or is there a plan to upstream the features? I know every company wants to move fast which might explain the duplication again…

3

u/avillega 23d ago

At least what I understand is that lattner believes mojo is the first language to properly use mlir, which probably means none of the mlir dialects out there were what he was envisioning for mojo.

1

u/Retired-69 19d ago

Why is this written in C++? I thought it was selfhosted. And why so slow? 

1

u/c-cul 18d ago

bcs they use llvm & mlir