Hare
-
If I were going to write an O/S, I'd use C++. Sure, maybe much of an O/S doesn't need objects, templates, and exceptions, but it's good to have them at hand when using them is appropriate. I can see why going down those ratholes is something that the designer of a "close to the metal" language chose to avoid. But because of that, pass.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.It seems to me that organizing the code by objects, even if they were
static
, which is essentially the equivalent of C code, would be a great help. Andnamespace
s too!Our Forgotten Astronomy | Object Oriented Programming with C++
-
Anyone see this: [Heresy: Hare programming language an alternative to C • The Register](https://www.theregister.com/2022/04/26/hare\_c\_software)? Looks interesting, I wonder if it will gain any 'traction'.
Paul Sanders. "Life is a minestrone" - which I take to mean that it's full of different bits and you should try to savour them all. I think that's pretty neat, I like that analogy. And if you don't mind, here's a quick plug for my little one-man business. Follow the link if you're interested in ripping your vinyl collection: www.alpinesoft.co.uk. Thanks.
I don't think so, you know what they say,
They:
Hare today, gone tomorrow...
I'll get my coat.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
-
If I were going to write an O/S, I'd use C++. Sure, maybe much of an O/S doesn't need objects, templates, and exceptions, but it's good to have them at hand when using them is appropriate. I can see why going down those ratholes is something that the designer of a "close to the metal" language chose to avoid. But because of that, pass.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.Greg Utas wrote:
If I were going to write an O/S, I'd use C++
I have a very vague and fuzzy memory that there were plans to rewrite some version of Unix in C++. This would probably have been back in the days of the old ["cfront"](https://en.wikipedia.org/wiki/Cfront), and I think the effort collapsed under the additional weight of the technology as it was then. It would be interesting if that effort had succeeded.
Keep Calm and Carry On
-
Greg Utas wrote:
If I were going to write an O/S, I'd use C++
I have a very vague and fuzzy memory that there were plans to rewrite some version of Unix in C++. This would probably have been back in the days of the old ["cfront"](https://en.wikipedia.org/wiki/Cfront), and I think the effort collapsed under the additional weight of the technology as it was then. It would be interesting if that effort had succeeded.
Keep Calm and Carry On
Maybe that was in the day where templates, exceptions, and RTTI had enough overhead that Embedded C++ didn't support them. Their overhead is probably still too much for a toaster, but they shouldn't be a problem in most of today's systems.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
It seems to me that organizing the code by objects, even if they were
static
, which is essentially the equivalent of C code, would be a great help. Andnamespace
s too!Our Forgotten Astronomy | Object Oriented Programming with C++
Forgot about namespaces. Yes indeed.
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing. -
I don't think so, you know what they say,
They:
Hare today, gone tomorrow...
I'll get my coat.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
Yes, do :)
Paul Sanders. "Life is a minestrone" - which I take to mean that it's full of different bits and you should try to savour them all. I think that's pretty neat, I like that analogy. And if you don't mind, here's a quick plug for my little one-man business. Follow the link if you're interested in ripping your vinyl collection: www.alpinesoft.co.uk. Thanks.
-
Greg Utas wrote:
If I were going to write an O/S, I'd use C++
I have a very vague and fuzzy memory that there were plans to rewrite some version of Unix in C++. This would probably have been back in the days of the old ["cfront"](https://en.wikipedia.org/wiki/Cfront), and I think the effort collapsed under the additional weight of the technology as it was then. It would be interesting if that effort had succeeded.
Keep Calm and Carry On
-
Anyone see this: [Heresy: Hare programming language an alternative to C • The Register](https://www.theregister.com/2022/04/26/hare\_c\_software)? Looks interesting, I wonder if it will gain any 'traction'.
Paul Sanders. "Life is a minestrone" - which I take to mean that it's full of different bits and you should try to savour them all. I think that's pretty neat, I like that analogy. And if you don't mind, here's a quick plug for my little one-man business. Follow the link if you're interested in ripping your vinyl collection: www.alpinesoft.co.uk. Thanks.
Were I to learn a new language, it would likely be D. Unfortunately, my boss wants me to learn Python. :sigh:
-
Did they also try to rewrite the Linux kernel? Linus Torvalds on C++[^]. :-D
"In testa che avete, Signor di Ceprano?" -- Rigoletto
There were dozens of Unixes before Linux! I remember one gathering of representatives for different Unix variants (I didn't participate - I was still a student then) when it was remarked that they were missing one variant: There were 31 of them. Then someone pointed out that computer guys love to start counting from zero, so 31 is actually a rounder number than 32 :-) My memory is not able to date this, relative to the arrival of C++. Maybe C++ wasn't a viable alternative at that time. But quite a few of those 31 Unix variants lived for many years after C++ became popular - a few are alive even today. It took quite a few years for Linux to grow from a "toy
-
Did they also try to rewrite the Linux kernel? Linus Torvalds on C++[^]. :-D
"In testa che avete, Signor di Ceprano?" -- Rigoletto
There were dozens of Unixes before Linux! I remember one gathering of representatives for different Unix variants (I didn't participate - I was still a student then) when it was remarked that they were missing one variant: There were 31 of them. Then someone pointed out that computer guys love to start counting from zero, so 31 is actually a rounder number than 32 :-) My memory is not able to date this, relative to the arrival of C++. Maybe C++ wasn't a viable alternative at that time. But quite a few of those 31 Unix variants lived for many years after C++ became popular - a few are alive even today. It took quite a few years for Linux to grow from a "toy" clone to become even a significant competitor to the non-FOSS Unix variants, and even longer to become the dominant *nix. I, too, have heard about these proposals to rewrite Unix (not Linux) in C++. It is so long ago that Linux was far away from the dominance it has today. Another thing is that although we may be entertained by Linus' rant, this style of arguing (which is not atypical for the source ...) is part of the reason why Linux was not taken to be a "serious" OS in its first years. (Note that the rants are 15-18 years old.)
-
There were dozens of Unixes before Linux! I remember one gathering of representatives for different Unix variants (I didn't participate - I was still a student then) when it was remarked that they were missing one variant: There were 31 of them. Then someone pointed out that computer guys love to start counting from zero, so 31 is actually a rounder number than 32 :-) My memory is not able to date this, relative to the arrival of C++. Maybe C++ wasn't a viable alternative at that time. But quite a few of those 31 Unix variants lived for many years after C++ became popular - a few are alive even today. It took quite a few years for Linux to grow from a "toy
Duplicate (truncated) post? Enjoyed the full version.
Paul Sanders. "Life is a minestrone" - which I take to mean that it's full of different bits and you should try to savour them all. I think that's pretty neat, I like that analogy. And if you don't mind, here's a quick plug for my little one-man business. Follow the link if you're interested in ripping your vinyl collection: www.alpinesoft.co.uk. Thanks.
-
Duplicate (truncated) post? Enjoyed the full version.
Paul Sanders. "Life is a minestrone" - which I take to mean that it's full of different bits and you should try to savour them all. I think that's pretty neat, I like that analogy. And if you don't mind, here's a quick plug for my little one-man business. Follow the link if you're interested in ripping your vinyl collection: www.alpinesoft.co.uk. Thanks.
I did, by accident hit some key (don't know which one) that took me away from the 'Reply' page. So I hit 'back' (aka. Alt-Left) to get back to continue editing without noticing that the unfinished entry had been posted - not until you point it out. I could delete the unfinished entry, but that would leave your reply orphaned. So I leave it in. I have made worse blunders :-)
-
Did they also try to rewrite the Linux kernel? Linus Torvalds on C++[^]. :-D
"In testa che avete, Signor di Ceprano?" -- Rigoletto
Hope not!
Paul Sanders. "Life is a minestrone" - which I take to mean that it's full of different bits and you should try to savour them all. I think that's pretty neat, I like that analogy. And if you don't mind, here's a quick plug for my little one-man business. Follow the link if you're interested in ripping your vinyl collection: www.alpinesoft.co.uk. Thanks.
-
Did they also try to rewrite the Linux kernel? Linus Torvalds on C++[^]. :-D
"In testa che avete, Signor di Ceprano?" -- Rigoletto
Hope not!
Paul Sanders. "Life is a minestrone" - which I take to mean that it's full of different bits and you should try to savour them all. I think that's pretty neat, I like that analogy. And if you don't mind, here's a quick plug for my little one-man business. Follow the link if you're interested in ripping your vinyl collection: www.alpinesoft.co.uk. Thanks.
-
Did they also try to rewrite the Linux kernel? Linus Torvalds on C++[^]. :-D
"In testa che avete, Signor di Ceprano?" -- Rigoletto
CPallini wrote:
Did they also try to rewrite the Linux kernel [in C++]?
Hope not!
Paul Sanders. "Life is a minestrone" - which I take to mean that it's full of different bits and you should try to savour them all. I think that's pretty neat, I like that analogy. And if you don't mind, here's a quick plug for my little one-man business. Follow the link if you're interested in ripping your vinyl collection: www.alpinesoft.co.uk. Thanks.