News for hackers. Stuff that matters.
Re:DARPA: Translating All C to Rust (Tractor) by sam0x17 on Tuesday July 30, 2024 @12:39PM (#41111122)
speaking of hard, the DOE actually funds a project that has been around for 20+ years now (ROSE) that involves (among other things) doing static analysis on and automatically translating between C/C++/Cuda and even high level languages like Python as well as HPC variants of C/C++. They have a combined AST that supports all of those languages with the same set of node types essentially. Quite cool. I got to work on it when I was an intern at Livermore, summer of 2014.

and it's open source as well! http://rosecompiler.org/ROSE_HTML_Reference/index.html

Re:DARPA: Translating All C to Rust (Tractor) by andrewflnr on Tuesday July 30, 2024 @11:43PM (#41116237)
> a combined AST that supports all of those languages with the same set of node types essentially.

I can't believe that works at all. I'll take a look for sure.

Re:DARPA: Translating All C to Rust (Tractor) by sam0x17 on Wednesday July 31, 2024 @01:01AM (#41116508)
Most of what they use it for is static analysis, but the funding comes from its ability to translate old simulation code to HPC-ready code. I think they even support fortran IIRC
Re:DARPA: Translating All C to Rust (Tractor) by seren on Wednesday July 31, 2024 @03:30AM (#41117087)
I have already seen legacy projects that were designed using Rational Rose, but for some reason I thought it was only a commercial name, not an actual system. Thanks, I learned something today !
Re:DARPA: Translating All C to Rust (Tractor) by andrewflnr on Wednesday July 31, 2024 @02:37PM (#41121976)
Your first instinct was more correct, that's definitely a different thing. :) https://en.wikipedia.org/wiki/IBM_Rational_Rose