RetroFed Forums
Your home away from modern life.
The PHP part never gets old
Post Reply
AuthorMessage
Kangae_Hishiryo scribe.disroot.org Kangae_Hishiryo@scribe.disroot.org
Joined: 2026-04-13
#52 · Quote Reply

In Horse64:

import horses from horses.horse64.org

func main {
    var my_horse = horses.Horse(color="brown")
}

And in Horse64 Root:

import horses from horses.horse64.org

func main -> bool {
    var my_horse <- horses.Horse
    my_horse.init("brown")
    if failed(my_horse.init) {
        return no
    }

    defer my_horse.destroy()

    my_horse.run()
    if failed(my_horse.run) {
        my_horse.stop()
        return no
    }

    my_horse.stop()
    if failed(my_horse.stop) {
        return no
    }

    my_horse.eat("hay")
    if failed(my_horse.eat) {
        return no
    }

    return yes
}
4
Kangae_Hishiryo scribe.disroot.org Kangae_Hishiryo@scribe.disroot.org
Joined: 2026-04-13
#53 · Quote Reply

Python: from horses import Horse my_horse = Horse(color="brown") There. Done.

In Nim:

import horses

let my_horse = Horse(color: "brown")   
2
Y|yukichigai kbin.earth yukichigai@kbin.earth
Joined: 2025-12-25
#54 · Quote Reply

What's the biggest hurdle to porting old systems written in COBOL to newer languages? Besides the glaring conflict of interest for you.

Mostly it's two things:

  1. COBOL is very good at some specific things that other languages can't do as well. Not that other languages do them badly, not at all, but COBOL is absurdly efficient for certain operations. You need to do basic math operations on millions of rows of data every minute? COBOL can do that easily. Many other languages can get close to that speed - maybe a few seconds off - but COBOL is often used in environments where a hundred millisecond delay can mean everything breaks. Are there other languages which can match that speed? Absolutely. Are they any of the languages every company wants to upgrade to? No.

  2. COBOL's best practices are sometimes the literal opposite of what every other language expects, especially when it comes to optimizing code for efficiency. You ever seen Evaluate, COBOL's equivalent of a switch statement? Rather than being used to Evaluate a variable to check its values, its most commonly used to "EVALUATE TRUE" and then use the WHEN clauses (basically case statements) to check statements or variables that you want to be true. That can be converted to another language directly, yes, but it absolutely will not be efficient best-practices code. Most likely you're going to need someone - not an AI, not an automated process - to do one-off rewrites to keep the code performance the same. As it is I have never seen any automated tool (LLM or otherwise) convert COBOL without falling victim to this issue.

There's also a third issue in that COBOL has some specific minor capabilities that other languages just do NOT, or not to the level of flexibility and efficiency COBOL has. The most common one is COBOL's "88" picture type (variable) definitions. Think of it like being able to set an automatic evaluation on a variable that returns true if the condition is met, e.g. the variable "05 WS-ERROR-STAT PIC X." with an 88 of "88 FATAL-ERROR VALUE 'F'." would mean you could check "FATAL-ERROR" anywhere in your code to see if the value of WS-ERROR-STAT has been set to "F". The thing is, this is done basically for free (resource wise) as part of allocation, and furthermore it can be used to get or set, i.e. "SET FATAL-ERROR TO TRUE" will change the value of WS-ERROR-STAT to "F". You can also use 88s for ranges, e.g. "88 ANY-ERROR VALUES 'F' THRU 'N'.", though you can't use them for set operations that way.

Bottom line: there's nothing that perfectly recreates its efficiency, the specific way it performs efficiently, and some of its more esoteric capabilities. Anything still running COBOL probably depends HEAVILY on one or all of these things.

12
Kangae_Hishiryo scribe.disroot.org Kangae_Hishiryo@scribe.disroot.org
Joined: 2026-04-13
#55 · Quote Reply

HTML runs Doom.

Doom runs Doom

4
d41 startrek.website d41@startrek.website
Joined: 2023-06-17
#56 · Quote Reply

All right. Sorry if that came across the wrong way: I wasn't actually trying to complain, I just used the meme because I noticed the low resolution. I don't know if I'm getting too old for this crap, but back in the day, that meme used to pop up all the time as a response to low-resolution images. ^^

On the boost app there's a tiny HD button you can click that should sharpen things up a bit.

2
yxc999 lemmy.ml yxc999@lemmy.ml
Joined: 2026-08-02
#57 · Quote Reply

horses was last released in 2024, and can only run on python up to 3.12. horses depends on iron-making, that is up to date. That means the current version of iron-making depends on python &gt;= 3.14, and that all the versions prior to 2025 were taken offline due to a CVE where if you run the library as root in a web backend that uses the make_nail function, people can open your barn doors witho...

thanks, I hate it

2
gnuplusmatt reddthat.com gnuplusmatt@reddthat.com
Joined: 2023-10-28
#58 · Quote Reply

Rust builds a unicorn

10
j_z feddit.nu j_z@feddit.nu
Joined: 2025-07-01
#59 · Quote Reply

Is it a dig against C# only being good when using it from F#, i.e. OCaml for .Net or am I overthinking this?

4
muhyb programming.dev muhyb@programming.dev
Joined: 2023-07-05
#60 · Quote Reply

Rust builds a unicorn

ho-rs

10
ohshit604 lemmy.halstead.host ohshit604@lemmy.halstead.host
Joined: 2026-07-18
#61 · Quote Reply

As a non-programmer, TIL Java and JavaScript are two different languages.

10
BCsven lemmy.ca BCsven@lemmy.ca
Joined: 2023-06-17
#62 · Quote Reply

As a non-programmer, TIL Java and JavaScript are two different languages.

Person1: I built a script in Java.

Person2: So Javascript?

Person 1: NO!

14
Nowtayneicangetinto thelemmy.club Nowtayneicangetinto@thelemmy.club
Joined: 2026-07-17
#63 · Quote Reply

As a non-programmer, TIL Java and JavaScript are two different languages.

When JS was being developed, Java was all the rage and it merely was riding it's coattails. At the time of its creation it was nothing like Java either.

8
ElDuderino lemmus.org ElDuderino@lemmus.org
Joined: 2026-08-13
#64 · Quote Reply

Is it a dig against C# only being good when using it from F#, i.e. OCaml for .Net or am I overthinking this?

I don't know. I thought it was a dig with certain C# dev products trying to mimic how other technologies behave, like WebForms.

2
Null42x86 lemmy.world Null42x86@lemmy.world
Joined: 2026-09-04
#65 · Quote Reply

you could say that it aged well

6
merc sh.itjust.works merc@sh.itjust.works
Joined: 2023-06-09
#66 · (edited) Quote Reply

C: You build a horse. Well, it's not really a horse, but it can do almost all the essential horse-things. It's incredibly fast and compact. Your horse is named "Blue\0\0\0\0\0T~31wsXEi]DiMGW8mh^3". Oh, and now someone else owns it.

6
nibbler discuss.tchncs.de nibbler@discuss.tchncs.de
Joined: 2025-03-07
#67 · Quote Reply

horses was last released in 2024, and can only run on python up to 3.12. horses depends on iron-making, that is up to date. That means the current version of iron-making depends on python &gt;= 3.14, and that all the versions prior to 2025 were taken offline due to a CVE where if you run the library as root in a web backend that uses the make_nail function, people can open your barn doors witho...

I'm really having trouble recognizing if @marcos@lemmy.world started talking bullhoreseshit, or if the post by @Diplomjodler@lemmy.world is the first to be just trolling...

1
GreenKnight23 lemmy.world GreenKnight23@lemmy.world
Joined: 2024-09-21
#68 · Quote Reply

ruby: you built a horse that builds a horse to build your horse. your barn is too small. it crashes. everyone is dead.

4
GreenKnight23 lemmy.world GreenKnight23@lemmy.world
Joined: 2024-09-21
#69 · Quote Reply

When JS was being developed, Java was all the rage and it merely was riding it's coattails. At the time of its creation it was nothing like Java either.

the only thing they have in common is how insufferable it is to develop with them.

4
ulterno programming.dev ulterno@programming.dev
Joined: 2024-11-12
#70 · Quote Reply

Rust builds a unicorn

It is perfect and will run for a million years.
Dodges all traps and jumps over all ditches whether you see them or not.
But you are already too old to ride it.

1
FenrirIII lemmy.world FenrirIII@lemmy.world
Joined: 2023-12-05
#71 · Quote Reply

The LISP parentheses are not equally balanced. There are more ( than ).

Oh god, I'm getting PTSD. So many parentheses

1
Post Reply Page 2 of 2   Goto page « First 1, 2
Back to top