Source code for Mojo is on github
Whatās that supposed to mean?
It all sounded nice until they mentioned āAIā (presumably artificial intelligence). Suppose they need to drop some buzz words in these days.
That seems to be related to Nvidiaās hardware for doing AI.
I think that was one of the big drivers for Mojo, actually.
I think the idea of Mojo was that AI people know Python, but they want it to be faster. Thatās why Mojo is Python, but faster.
As a remarkā¦the ada frontend to gcc, gnat, has been cross compiled successfully for a while; it just has not been packaged yet.The forum thread about it is here https://discuss.haiku-os.org/t/ada-compiler/1663
Is Nim available for Haiku yet?
Nim 2.0.8 is in the depot, but iirc there are still some issues with it, canāt hurt to try though
I see there are bindings for Swift, Kotlin and C in Dart Native. C++ appears to be out of the question, so what would it take to make Swift bindings for Haiku?
Well,get the language up and running on Haiku first, I suppose. A start has been made in a GSoC project but that was two years ago and Iām not seeing Swift in the repos.
It is a swiftly evolving language (see what I did there?) so that project is probably badly out of date by now.
@return_0e maintains the port which is on 5.9, please see here
It looks like we need a new recipe. I tried using the experimental recipe on HaikuPorts for swift_lang-4.1.0~git.recipe and it failed to build because of a NoneType encountered in a Python script somewhere. Also, the Swift 5.9 linked in the previous post is 64-bit only. Is 32-bit even still supported by Swift? A debug build takes 16 Gigs or more so at best, it would need a cross-compile. I suppose there would be similar issues with Dart and its Flutter framework as well.
Not a compiled language, but I recently learned about the scripting language umka, which is meant to be embedded in C/C++ programs.
What sets it apart from other scripting languages is that itās statically typed and shares the same types as C, making data interoperation pretty simple.