News for hackers. Stuff that matters.
Re:The World Depends on 60-Year-Old Code No One Knows Anymore by IshKebab on Sunday December 03, 2023 @05:13PM (#38511253)
In fairness I imagine an LLM could maybe transpile to more idiomatic code. For example when you transpile FORTRAN to C you get a load of +1s and -1s everywhere to deal with FORTRAN's 1-based indexing. An LLM could avoid that.

But I agree, it doesn't make sense to risk bugs just for that.

Re:The World Depends on 60-Year-Old Code No One Knows Anymore by dun44 on Sunday December 03, 2023 @05:52PM (#38511603)
You could do it with a trivial C macro instead.
Re:The World Depends on 60-Year-Old Code No One Knows Anymore by wokkel on Sunday December 03, 2023 @07:12PM (#38512172)
I have the pleasure of supporting a transpiled rpg (system i) to Java codebase. Shit that's come up: almost everything is a global. State machine are used for crud logic which is implicit in the rpg runtime and explicit in the Java codebase. Magic constants all over the place. Magic blobs of screen configuration mapping. Transpiling and directly supporting the transpiled codebase is basically masochism.
Re:The World Depends on 60-Year-Old Code No One Knows Anymore by IshKebab on Monday December 04, 2023 @02:27AM (#38514564)
The classic HN "trivial" :-D