News for hackers. Stuff that matters.
Re:Mojo: The usability of Python with the performance of C by pjmlp on Saturday September 23, 2023 @05:09AM (#37621713)
C isn't open source.

To make a conforming C compiler, someone has to buy the ISO C standard (208 CHF), which other folks will then spend development resources in creating C compilers that obey said standard.

The biggest open source compilers, clang and GCC, only keep being up to date with ISO C, because of the money from IBM, Red-Hat, Apple, ARM, Intel, Green-Hills,... place in assigning company resources to work on them.

Re:Mojo: The usability of Python with the performance of C by gnomewascool on Saturday September 23, 2023 @05:45AM (#37621859)
What the OP meant is that there are (multiple!) open source C compilers, which you agree is the case.

Questions about the standard/specification are a different matter:

1. Whether the language has one? (Many languages, both open source and proprietary don't! I believe mojo doesn't have one?)

2. Whether it's available for free (gratis)?

3. Whether it's under a free (libre) license that allows redistribution with modifications?

Re:Mojo: The usability of Python with the performance of C by AlotOfReading on Saturday September 23, 2023 @05:50AM (#37621876)
What development resources is green hills contributing to GCC or clang? As far as I know, they don't actively develop either, aside from selling a completely unrelated compiler that used to be called "gcc" long before the Gnu compiler ever used that name. They also haven't meaningfully participated in the mailing lists under their company name.

In any case, it's my understanding that the C standards have largely been community driven efforts that formalized things already being done by major compilers like Gnu rather than driven by the technical needs of industry the way C++ has.

Re:Mojo: The usability of Python with the performance of C by pjmlp on Saturday September 23, 2023 @09:37AM (#37623098)
Their new compiler is a clang fork, they contribute at least to LLVM.
Re:Mojo: The usability of Python with the performance of C by AlotOfReading on Saturday September 23, 2023 @11:34AM (#37624200)
Interesting, how did you find that out and which product was it for (if you can say)? They recently (as in this year) assured me that the safety certified compiler was home-grown. I'm inclined to believe them given how broken the parser is and how many features it lacks.
Re:Mojo: The usability of Python with the performance of C by pjmlp on Saturday September 23, 2023 @02:04PM (#37625729)
Sorry about that, I typed from head without cross-checking.

I thought having read it somewhere on one of those embedded forums like embedded.com.

Upon further investigation they are still using their own stuff.

https://www.ghs.com/products/compiler.html

Re:Mojo: The usability of Python with the performance of C by benj111 on Saturday September 23, 2023 @06:57AM (#37622109)
> C isn't open source

I would debate that.

1. The C language spec isn't code, open source is only concerned with the code.

2. Philosophically, I would say that if you can write and compile standards conforming c code on an open source compiler, and the standard is freely available then to all intents and purposes C is open. It isn't as if GCC doesn't know what the standard is, it isn't as if they can't describe GCC as a c compiler.

It's like saying a bsd or Linux isn't unix, just because they haven't paid some fee.

Re:Mojo: The usability of Python with the performance of C by flohofwoe on Saturday September 23, 2023 @07:18AM (#37622211)
The C standard really isn't all that relevant in practice though, for instance the Microsoft C compiler had been trailing the standard by about 2 decades until quite recently but this didn't stop people from using it. Also most C code that's written to compile across gcc, clang and msvc most likely doesn't even build with -pedantic on gcc or clang.

(eg in practice C is more like a language family, with an attempt to standardize a common core feature set and syntax as an afterthought and call that a "standard" - it's good that it exists, but it's hardly relevant or even useful for real world projects)

Re:Mojo: The usability of Python with the performance of C by pjmlp on Saturday September 23, 2023 @09:38AM (#37623106)
It is relevant to anyone writing portable code, or requiring certification.