News for hackers. Stuff that matters.
Re:DARPA: Translating All C to Rust (Tractor) by fsckboy on Tuesday July 30, 2024 @03:56PM (#41113477)
in this case it seems to me the hard task that DARPA has chosen is to get me to forget how much they spent on pushing Ada.
Re:DARPA: Translating All C to Rust (Tractor) by woodruffw on Tuesday July 30, 2024 @04:00PM (#41113516)
I can't find any clear references to DARPA (or ARPA) being involved in Ada's development. It was a DoD program but, well, the DoD is notoriously large and multi-headed.

(But even if DARPA was involved in Ada: I think it's clear, at this point, that Ada has been a resounding success in a small number of domains without successfully breaking into general-purpose adoption. I don't have a particular value judgment associated with that, but from a strategic perspective it makes a lot of sense for DARPA to focus program analysis research on popular general-purpose languages -- there's just more labor and talent available.)

Re:DARPA: Translating All C to Rust (Tractor) by indolering on Wednesday July 31, 2024 @12:56AM (#41116486)
Too lazy to look it up, but I'm pretty sure DARPA was involved and certain that DoD contracta prioritized ADA for a long time.
Re:DARPA: Translating All C to Rust (Tractor) by rerdavies on Wednesday July 31, 2024 @03:44AM (#41117138)
Too bored to pass up a challenge to refute somebody who is too lazy to look it up.

I looked it up. DARPA was not involved.

Re:DARPA: Translating All C to Rust (Tractor) by reaperducer on Tuesday July 30, 2024 @04:51PM (#41114021)
in this case it seems to me the hard task that DARPA has chosen is to get me to forget how much they spent on pushing Ada.

You hate jumbo jets, high-speed trains, air traffic control, and satellites?

Re:DARPA: Translating All C to Rust (Tractor) by 9659 on Tuesday July 30, 2024 @04:59PM (#41114084)
Do you know what fear is? Getting in an airplane where the flight controls use NPM.
Re:DARPA: Translating All C to Rust (Tractor) by warkdarrior on Tuesday July 30, 2024 @05:12PM (#41114190)

   npm ERR! install Couldn't read dependencies
   npm ERR! package.json ENOENT, open '/boeing/787-9/flaps-up.json'
   npm ERR! package.json This is most likely not a problem with npm itself.
   npm ERR! package.json npm can't find a package.json file in your current directory.
Re:DARPA: Translating All C to Rust (Tractor) by tracker1 on Wednesday July 31, 2024 @10:59AM (#41119799)
I have enough fears about features in the entertainment system, and that performance options are accessed through that same touch screen UX.
Re:DARPA: Translating All C to Rust (Tractor) by 9659 on Tuesday July 30, 2024 @04:58PM (#41114076)
ada does not require 'pushing'.

once the maturity of the users advances to a sufficient point, then ada is the only solution.

"ada. used in creating reliable software since 1983"

when i first saw ada, i didn't understand the why. now i understand the why, but ada is effectively gone.

-- old fortran / C / Assembly programmer

Re:DARPA: Translating All C to Rust (Tractor) by pjmlp on Wednesday July 31, 2024 @02:32AM (#41116840)
Ada is still around, at a big enough level to keep 7 commercial vendors selling compilers.

Something unheard of, paying for software tools in 2024, who would imagine that.

Re:DARPA: Translating All C to Rust (Tractor) by 9659 on Wednesday July 31, 2024 @08:58AM (#41118826)
it was depressing when RH dropped ada support. sure, it was gcc, but it was so nice to have an ada compiler part of the default gcc installation.

gnat needs money. well deserved. but adoption needs a free, easy to install compiler.

5 years ago i had the pleasure of resurrecting a dead system. it was about 30k of ada, lets call it ada 87 (!). unknown compiler, 32 bit, 68K processor, 16 MB memory, unknown OS.

code was compiling in 2 days, running in 2 weeks. i needed to change from using 32 bit floats to 64 bit floats (seems positional data is a little more accurate in 2020). 1 declaration in 1 package spec and a recompile, and all my positions are good.

i love that language!

Re:DARPA: Translating All C to Rust (Tractor) by ajxs on Wednesday July 31, 2024 @05:29PM (#41123656)
Very cool project! Were you able to build a working 68K GNAT cross-compiler yourself, or did you purchase one from one of the major Ada vendors?
Re:DARPA: Translating All C to Rust (Tractor) by 9659 on Wednesday July 31, 2024 @08:37PM (#41125078)
target was x86_64 / linux. just updated the rpm spec file for the gcc build to enable ada. rebuild and install.

so, changed wordsize, processor, operating system... minimal source code impact.

Re:DARPA: Translating All C to Rust (Tractor) by Avamander on Wednesday July 31, 2024 @05:23AM (#41117586)
Oh, it's around, but laypeople never see those codebases.