Alternative programming languages

Source code for Mojo is on github

What’s that supposed to mean?

1 Like

It all sounded nice until they mentioned ā€œAIā€ (presumably artificial intelligence). Suppose they need to drop some buzz words in these days.

2 Likes

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

2 Likes

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 :slight_smile:

1 Like

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

1 Like

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.

2 Likes