Better HN
topnewbestaskshowjobs
Log inSign up

Lucretia9

114 karma · joined May 18, 2017 (9y ago) · 90 submissions

https://github.com/Lucretia/
Submissions

comment 1y ago · link · parent

That's why Toyota moved to Ada, because their C or C++ software caused crashes.

comment 1y ago · link · parent

Pattern matching is in all functional languages, afaik.

comment 1y ago · link · parent

Ada has ranges and subtypes.

  type Angles is 0 .. 360;
  subtype Acute_Angles is range Angles'First .. 90;
Subtypes can be used with the parent type without conversions.

Pascal only has subranges, iirc.

comment 1y ago · link · parent

c is the new BASIC.

comment 1y ago · link · parent

FYI, re the ranges in rust, you can do a range minus 10 in Ada, I use it in my SDL2 bindings.

comment 1y ago · link · parent

If the price is not on the website, you can't afford it.

comment 1y ago · link · parent

Your first point cancels out your fourth.

comment 1y ago · link · parent

Ada has the concept of Pools, the heap is one of the pools, you can define your own.

comment 1y ago · link · parent

Pretty sure Java in vscode and android studio places block names after }'s because it's hard to read otherwise.

comment 1y ago · link · parent

You talk about C and C++ yet call Ada "ancient," C from 1969 and C++ from 1979.

Whereas Ada's first version is from 1980 and first standardised version (different to 1980) in 1983. Yeah, "ancient."

comment 1y ago · link · parent

GetIntoGamedev is not old, he's in his 20's. The issue is, is that people are not prepared to trying something if it doesn't look like C or C++.

comment 1y ago · link · parent

What are the options required to build an android gcc these days?

comment 2y ago · link · parent

Look at the "Linking" section https://github.com/ada-game-framework/sdlada

I'm looking into getting it all automated through pragma's and gpr's.

comment 2y ago · link · parent

Alire is a frontend to the toolchain, including gprbuild, it just handles grabbing the projects as well.

comment 3y ago · link · parent

An Ada image with zero use of Ada.

comment 3y ago · link · parent

Don't know why you think that, I learnt some COBOL using microfocus' compiler on a pc at college, it was fine.

comment 3y ago · link · parent

Put in a pistorm and the new roms.

comment 3y ago · link · parent

The books are all available now, archive.org and other places including this one which is also hosting the wip RKM https://www.retro-commodore.eu/rkrm-wip.

comment 3y ago · link · parent

Use AmigaE, far nicer than C. Never tried Chris Handley's "Portabl E" compiler.

comment 4y ago · link · parent

Yeah, I remember seeing that years ago, shame it's not open and only win/mac.

comment 4y ago · link · parent

I didn't say it was.

https://blog.adacore.com/a-modern-syntax-for-ada

comment 4y ago · link · parent

The joke was on AdaCore's website.

comment 4y ago · link · parent

Maybe a bit like this? https://github.com/Lucretia/orenda/blob/master/samples/modul...

comment 4y ago · link · parent

You can use any version of gnat to build this - https://github.com/Lucretia/sdlada

comment 4y ago · link · parent

> That is exactly the barrier Ada needs to overcome

No, this is the barrier people need to overcome. Readable is good.

comment 5y ago · link · parent

The thing about this would be that it likely still compile with zero changes, if the source were available.

The code could easily be converted to later Ada versions and use C.Pointers where necessary (triple pointers), but void * are easy enough to handle now with an access to null record with convention => C.

comment 5y ago · link · parent

He was complaining of no destructors in Ada, when there are.

comment 5y ago · link · parent

It was designed by Jean Ichniah and his team, but he was the main designer.

You don't have to use the entirety of the language, you can use pragma Restrictions to get the compiler to ensure you don't use certain features. Some features don't even work for really tiny devices. Even tasking can be done one small systems, like a Z80, for example.

123