Hacker News new | past | comments | ask | show | jobs | submit login

Congrats for such a nice acknowledgement of your work. While looking at their other project I am curious that the author has decided to invent their own memory safe language currently implemented as transpiler to C++ written in Rust. Why not to just use Rust as their system language. I can imagine potential nightmares when debugging such concoction.



> While looking at their other project I am curious that the author has decided to invent their own memory safe language currently implemented as transpiler to C++ written in Rust. [...] I can imagine potential nightmares when debugging such concoction.

Compatibility with C++ is required at this point in time to interface with the thousands of lines of C++ code that have already been written. Assuming that everything will be written in Jakt at some point, then one could look into making more grave changes without having to care about compatibility (including maybe skipping the C++ part alltogether).

> Why not to just use Rust as their system language.

Rust has been evaluated, but discarded (mainly, iirc) due to it's approach (or lack thereof) for OOP. Also, the whole "we want to make things ourselves" thing.


There was a video in which Andreas explained in detail what problems he had with Rust. I agreed with a lot of them.

It should be noted that most of the SerenityOS umbrella is written in modern C++ (modern enough that you may very well need to compile a compiler to build the project). Rust and C++ can interoperate, but the process isn't exactly user friendly.

The goal of the language, as I understand it, was to make working on the rest of the Serenity projects more pleasant and safe. Even modern C++ has some annoying footguns but rewriting the entire system simply wasn't an option.

As such, jakt compiles to C++, specially C++ that interoperates with a lot of SerenityOS code, and doing that from Rust code would probably be a much worse experience.


IIRC it was just the bootstrap compiler that was written in Rust, these days Jakt is written in Jakt.


The jakt compiler has been rewritten in jakt.

Rewriting it in jakt is now a thing!


> written in Rust

What? From my knowledge Jakt is written in C++ and Jakt itself, not Rust.

Sure the first implementation was written in Rust but it was quickly replaced when Adreas took over the project.


How do they debug Jakt code? I mean other than dumping things to screen which is not very pleasant experience.


It is transpiled to C++.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: