News for hackers. Stuff that matters.
Re:Ladybird: A new cross-platform browser project by zamadatix on Monday September 12, 2022 @10:48AM (#32811152)
I wonder if it'll stay C++ because of momentum or switch to the aforementioned home grown memory safe Jakt like much of the rest of Serenity is expected to.
Re:Ladybird: A new cross-platform browser project by JZerf on Monday September 12, 2022 @01:05PM (#32813255)
This is something I want to know too. C++ certainly has some issues like pretty much every programming language does but in the original article Andreas mentions that he wants to make a cross-platform browser and cross-platform, portable applications is one of the areas where C++ can excel. If they end up switching to Jakt, I fear this will greatly limit the platforms that Ladybird can run on.
Re:Ladybird: A new cross-platform browser project by Beyley on Monday September 12, 2022 @01:33PM (#32813794)
Jakt transpiles to C++
Re:Ladybird: A new cross-platform browser project by JZerf on Monday September 12, 2022 @09:41PM (#32819794)
That's kind of interesting that it currently transpiles to C++. I have a suspicion though that using C++ as an intermediate language will probably often result in lower performance, higher memory usage, make debugging more complicated, etc... than if it was compiled directly to a lower level language like assembly or LLVM IR. If I'm right about that, those wouldn't be very good characteristics for a programming language that you intend to make a complex web browser in.

In zamadatix's reply to your message he said that C++ is only being used to bootstrap the language and that it's certainly not the plan to require C++ forever. I imagine if Jakt thrives, he will be right and Jakt will probably start compiling into a lower level language instead. If they do target a lower level language though, I imagine this will result in Jakt being less portable than C++ which has been around much longer and is more established.

Re:Ladybird: A new cross-platform browser project by zamadatix on Monday September 12, 2022 @09:05PM (#32819508)
Only to bootstrap the language, it's certainly not the plan to require that forever.