HNHacker News
TopNewBestAskShowJobs

Lucretia9

114 karma · joined May 18, 2017

https://github.com/Lucretia/
submissionscomments
Lucretia9··on Clearing up Myths about Ada
I went to Bradford, learnt Ada there because Andy Wellings, I think it was him, or the other guy, used to work there before moving to York.
Lucretia9··on Clearing up Myths about Ada
Oh, so all my smart pointers I have written in Ada don't finalise when Finalize is called, by the runtime?
Lucretia9··on Clearing up Myths about Ada
It is a core language feature as of Ada95. Ada, unlike most other languages generates calls into the standard library to implement complex features, controlled types and tasks are two such features. And no, I don't mean generating simple calls to compiler intrinsics.
Lucretia9··on Clearing up Myths about Ada
But when you're coming from an open source perspective, or just expect tools to be free, like they mostly are for other languages (and should be imo), then those other vendors don't matter as you cannot afford them anyway and AdaCore becomes the only vendor, you can't afford gnatpro either btw.
Lucretia9··on Exploring the Amiga – Part 1 (2018)
I learnt m68k on an Amiga 500+ in a week, it's a decent assembly language which a lot of CPU manufacturers could learn a lot from.
Lucretia9··on Gnat 2021 GPL Community Edition Ada 202x compiler released
Correction, GMGPL.
Lucretia9··on Gnat 2021 GPL Community Edition Ada 202x compiler released
> If it is an Ada implementation, why wouldn't they call it Ada rather than alang?

A serious lack of imagination, re clang, flang, etc.

Lucretia9··on Gnat 2021 GPL Community Edition Ada 202x compiler released
FSF GNAT hasn't been MGPL for years, not even sure which version, but I think it's before 4.9.4. FSF GNAT is GPLv3 with linking exception.
Lucretia9··on MIPS Becomes RISC-V
Hopefully, they'll release the cores as OpenMIPS like OpenSPARC did.
Lucretia9··on Giving Ada a Chance
and then and or then are shortcut operations, not the same as && and ||, those are and and or.
Lucretia9··on Giving Ada a Chance
Both those links are the same, btw.

I can see why it's no longer used, with all those modes! But another language with ranges. Also has module inheritance.

Lucretia9··on PipeWire: The Linux audio/video bus
Is that X11 or Wayland?
Lucretia9··on Giving Ada a Chance
It should autocorrect as the female name Ada, my phone does.
Lucretia9··on Giving Ada a Chance
Most languages just go with machine size "types" and no strict typing on those. I've not seen any other languages do what Ada does. I've got my project to do so though.
Lucretia9··on Giving Ada a Chance
> Oberon is case-sensitive and all keywords are all caps. I was curious to see it because I like Object Pascal/Delphi, that was the most distracting part of the language coming from Delphi standards.

Yeah, it's horrible to see and worse to type. I took Oberon-2's grammar and changed it to a more Ada like one for a project I'm working on.

Lucretia9··on Giving Ada a Chance
Australians with Dental Austrians.
Lucretia9··on Giving Ada a Chance
> Heh, I must say way, impressive GitHub. You the original author of the OSDev wiki’s barebones Ada tutorial?

Thanks. Yes, you can tell because it doesn't show as a fork on my gh and it should show on the wiki who wrote it.

> Off topic, but have you ever heard of CHILL? It’s a language from the ITU designed for telephone switches (like Erlang) but is supposedly very similar to older Ada standards.

Yeah, heard of it, that is all though.

Lucretia9··on Giving Ada a Chance
Yeah, ranges and modular types for me, without them data modelling is hindered severely.
Lucretia9··on Giving Ada a Chance
All caps haven't been a part of the language since Ada83, go check the follow up spec, Ada95. Maybe you're thinking of Niklaus Wirth's languages, the Modula's and Oberon?
Lucretia9··on Giving Ada a Chance
Or Australian...
Lucretia9··on Giving Ada a Chance
Apply to nVidia or Toyota then, they have new projects.
Lucretia9··on Giving Ada a Chance
>I love Ada, unfortunately it’s real world use seems to be relegated to old legacy code. I’d like to use it a little more on the side, but I also need to keep my priorities focused on realism, which sadly means ignoring Ada and learning something like C++ which seems unapproachable from any angle.

Oh, my github must be ancient then!

> Ada also seems to have a weirdly negative rep in many circles it seems. I recall looking around for an Ada compiler for a moderately popular platform and came across and old thread where people didn’t give any options but instead just joking about how the OP was interested in such a terrible language. Maybe it’s the Pascal/Algol type syntax?

That stems from the hatred from the people working at the DoD at the time who'd never even seen the language.

Lucretia9··on Giving Ada a Chance
You can write massive programs without a pointer in sight. If you have to import any C, then it's made a lot worse. You're better off doing memory mapped register type stuff in Ada.
Lucretia9··on Giving Ada a Chance
I was at uni in 1995, they used gnat 3.15p.
Lucretia9··on Giving Ada a Chance
A lot of Universities and company's were bribed by Sun to start using Java.
Lucretia9··on Giving Ada a Chance
Square brackets are coming, so you'd have to use ('A')
Lucretia9··on Giving Ada a Chance
Ada 2012 allows you to define gaps, this is my best example I have available https://github.com/Lucretia/sdlada/blob/master/src/sdl-video...
Lucretia9··on Airbus Chooses GNAT Pro Ada for Development of Unmanned Aerial System
BASIC / Basic isn't a person's name.
Lucretia9··on Airbus Chooses GNAT Pro Ada for Development of Unmanned Aerial System
> Sure, but that was just one example that stuck in my head from using Ada 30+ years ago. I also remember one of my project partners threatening me with bodily harm because I wanted to change a name, and it was going to ripple through his modules

Sounds like a psycho to me. If you change the name of a variable in any language it will ripple through other modules.

With Ada, in his modules, he could've done this:

    Old_Name : Type_Name renames New_Name;
Lucretia9··on Airbus Chooses GNAT Pro Ada for Development of Unmanned Aerial System
>Back in 1990, on the other hand, you wanted to strangle a language that made you ripple a domain change of 0..255 to 0..65535 through all the code by hand. EVERYWHERE.

If you're using hard coded constants instead of actual constants, you deserve the pain of changing it everywhere.

    Something_Lower  : constant := 0;
    Something_Higher : constant := 255;

    type Something is range Something_Lower .. Something_Higher;

Is how you do it. Changing the higher value to 65535 or anything else won't ripple.

Now, you do that in C, you've got hardcoded magic numbers all over the place and the compiler would've just silently compiled without warning. Have fund debugging that mess.

← PreviousPage 2 of 3Next →