NHacker Next on Rails
  • top
  • new
  • best
  • ask
  • show
  • jobs
login
GuidelinesFAQListsAPISecurityLegalApply to YCContact

Hacker News on Rails, powered by React on Rails Pro. Open the source on GitHub by ShakaCode.

Commit 06fc0df

Rendered at 09:04:44 GMT+0000 (Coordinated Universal Time) with Rails + React on Rails RSC.

Laravel for COBOL (github.com)

471 points by choult 1d ago | 168 comments

kev009 1d ago
I can't remember ever particularly laughing about anything on HN, especially simply reading a headline, but this got me.
dv35z 1d ago
Maybe this can get another laugh for you...

COBOL DotNET:

https://marketplace.visualstudio.com/items?itemName=GTSoftwa...

pygy_ 1d ago
What about http://www.coboloncogs.org/HOME.HTM
jamesfinlayson 1d ago
> NetCOBOL for .NET provides exciting opportunities

> .NET Framework 4

malfist 1d ago
To some of us around 3.5 is the new fangled .NET
jamesfinlayson 1d ago
I'm over here in .Net Framework 4.5 - held back by needing to support some old stuff.
aforwardslash 1d ago
I've worked with NetCobol in 1999 :) It was even worse than it sounds.
rbanffy 17h ago
If I am to work on COBOL code and ISPF, I would demand a real 3279G or 3290 terminal.
pjmlp 23h ago
You are outdated,

https://www.rocketsoftware.com/en-us/products/cobol

pjmlp 23h ago
COBOL has kept up with times, it even does OOP nowadays, and has modern IDEs as well, for example,

https://www.rocketsoftware.com/en-us/products/cobol

hans_castorp 22h ago
I always thought the object oriented version of COBOL would be called "ADD 1 TO COBOL"
refactor_master 19h ago
They have a testimonial from “Engineer II”?
pjjpo 21h ago
Ditto
sgalbincea 1d ago
This says more about the types, scale, and purposes of the systems you have worked with more than anything else. COBOL professionals will be eating well for years to come my friend.
kev009 1d ago
I'm not laughing about COBOL. I own several S/370 through z114 mainframes.
all2 1d ago
I've always wanted to play with a mainframe.

Can I... have some access for a few weekends? I'd like to how fast we can get an open weights model running. :D You know, for science.

asalahli 1d ago
You own mainframes??? May I ask what you do with them?
kev009 1d ago
Computer collection for historical research and preservation
plzrun 1d ago
Pretty sure they’re laughing at the juxtaposition of Laravel and COBOL.
Sharlin 1d ago
But how many of those COBOL professionals are COBOL+Laravel professionals?!
kmoser 1d ago
When I look for a COBOL professional, I require them to have at least 70 years of experience.
julian_t 1d ago
If you can wait, I'll be there in 17 years...
nullata 1d ago
I started off in IT maintaining a legacy cobol system and had to modernize it. This is traumatizing but really funny too
mortar 1d ago
I’ve just started down this path (modernising legacy COBOL not starting IT), any tips?
nullata 15h ago
1. If you are dealing with migrating off of CICS and u need a quick and easy way to understand what goes where, i think there used to be a good mapper for BMS and CPY on gh that would make your life much easier. For me this was over 10 years ago so maybe there's better tools now. 2. Always check encoding and lf on every single file. 3. If someone else setup the compiler options 15 years ago and u don't know all the options, treat it like a hot potato. 4. Assuming db2 is involved by default - for older versions setup a cron job to scan and deal with deadlocks and alert you of transaction queue state. Always assume HADR never works. Always make daily IXF exports on the MOST important tables - its faster than full or incremental restores. 5. In AIX smitty is your friend 6. COBOL is usually actually awesome until you have to parse and investigate what record is faulty on 3.6M lines transient file because there is an extra positional NULL character on a record that came from the database, since most of these files are positionally delimited. With AI nowadays you should be just fine, be patient, I believe in you. Live long and prosper
pjmlp 23h ago
Updating to newer standards, if the compiler support is there, maybe?

Just an idea.

jmspring 1d ago
Maintaining and modernizing takes patience, but isn't a bad skill / experience to have.
andrew-v 1d ago
Let’s not forget we already have COBOL on Wheelchair

https://github.com/azac/cobol-on-wheelchair

macherm 1d ago
Coding Agents Can Develop COBOL Systems: Evidence from a Human-Guided Multi-Case Study https://inria.hal.science/hal-05743207/
rc_kas 1d ago
I've been waiting 20 years for this project. It has finally arrived!
tonyedgecombe 1d ago
Only 20? More like 65.
pluc 1d ago
His dates were reset 26 years ago
dapperdrake 22h ago
Lol
pmkary 1d ago
We all laughed right, but isn't it crazy that a whole laravel can be built overnight just for a 30 second laugh? And BTW, call me crazy but COBOL looks really nice for developing laravel... snippets are nicer that the other languages...
retwakm4 20h ago
COBOL would not have caught on like it did in its' particular domain if it didn't have certain advantages and a good design. It wasn't what academic mathematicians and computer scientists (to the extent they existed at the time) preferred, and so there was a cultural divide, but it was definitely something that somebody automating basic office functionality might prefer when the alternative is the extreme opposite and doesn't even handle strings. So the business adoption, considering the alternatives, is a no-brainer. I would've chosen COBOL if I was in charge of the computing center for our app developers back in the day if I was a high up guy back in the late 60s but most like would've been S/370 so in the 70s...when the languages took off in place of assembler for everything important in user app development (systems programming continuing for a long time to use different languages).

And on modern mainframe environments, which I happen to be quite experienced with, it's still serving its purpose in that domain specific language way, while many developers and systems programmers have always used other languages and tooling.

So, I think a very common misconception (although an understandable one given how much press it's got) is that mainframes = most or all of the code is in COBOL when it is almost certainly the opposite, most or all of the code that makes up the system is in C, PL/X, Assembler, or C++, like any system of the time would naturally evolve language-wise.

As far as user code goes, they've supported Java for over 20 years and Python and C/C++ and REXX (like 80s Python) for quite a while and are working on Rust,...so it is not exactly a language desert for developers. Getting forced into that job to "update a bunch of old COBOL" could be the opportunity of a lifetime to end up being the SME on a critical system in a modern language.

pmkary 4h ago
It is really interesting, because I've been in this industry for at least 17 years or so by now and my exposure to COBOL was always the maintenance jokes and very basic boring code snippets that made me think it is a very basic version of a language that would be evolved into the modern ones. And so all of these deprived me of the chance to actually see its beauty. (and I had no reason to be drawn to it). So now I see these "satirical" snippets and I'm anything but laughing at them.

And the even more stranger part is that no one offered a commet like this in all these years...

geraneum 1d ago
It’s not crazy. Naturally you can’t stay perpetually over excited and overstimulated about something.
pmkary 4h ago
What I meant was something different. Previously to convey a joke you would write a few lines at most, then creating memes got easy and people began making more and more complicated jokes. It is crazy that the whole laravel was simply made just to be a satirical joke here. This is not a world I can navigate.
pjmlp 23h ago
This misses out on the COBOL improvements throughout the decades though, we are now on COBOL 2023, with all the goodies like OOP.

https://www.iso.org/standard/74527.html

erdesigns 1d ago
At first i thought this was a joke, but having a look at the github repo i'm actually impressed..
jetter 1d ago
I was actually betting on Laravel Lean...
dapperdrake 1d ago
Proof or it didn't happen...
TIPSIO 1d ago
Not sure if this is a joke or serious...

But I kind of agree with Taylor Otwell's tweet "languages are becoming an implementation detail" [1].

I see the big winners for this new era AI coders, vibe-coders, non-devs, whatever, will be integrated platforms.

Like basically I am looking at it like:

- System Prompt : Laravel :: Skills : Laravel Cloud

Not sure if that's what he meant, but it seems to make sense people will just point a bot somewhere and keep it all safely contained in one spot (with smart opinionated convention).

Just not sweat the small details and then let it actually build the app as Laravel minded folks would just with your requirements.

[1]: https://x.com/taylorotwell/status/2127833915755000011

AlecSchueler 1d ago
From the top of the README:

> Laravel for COBOL is an unofficial, satirical project.

acomjean 1d ago
Laravel is a confusing bunch of sub projects.

But they do try to help the AI programer use it.

https://laravel.com/php/ai/boost

I’m not sure how much this custom mcp server helps, but it probably can’t hurt.

stef25 1d ago
> Laravel is a confusing bunch of sub projects

Skill issue. You have the framework and then in the footer of the website you see other parts of the ecosystem, the end.

pjmlp 23h ago
I have been around long enough, started with computers in 1986, anyone that has lived through 4 GL dream, saw this coming when the LLM became good enough to generating code, we are moving into 5 GL languages.

If you do any iPaaS low code/no code programming with agentic runtimes, it is already the case that English is the only programming language, beyond connecting tools and a few boxes for the various kinds of prompt types.

This time around, the famous Japan project has gotten a successor,

https://en.wikipedia.org/wiki/Programming_language_generatio...

https://en.wikipedia.org/wiki/Fifth_Generation_Computer_Syst...

jt2190 1d ago
Web version:

https://laravel.com/blog/a-letter-to-the-laravel-community

WD-42 1d ago
If you can't tell if this is serious you are the target of the satire.
TIPSIO 1d ago
Should have clicked but transpiling via Opus/Fable makes this barely satire
raddan 1d ago
This is just the wrong take. Programming languages, but especially modern ones, offer dramatically different guarantees. That foundation affects the way programs are built, the speed and thriftiness of their implementations, and how they fail. Some languages help you think while others help you optimize. These are not differences that LLMs can paper over. Writing good software remains difficult.
artiomleo 22h ago
I write Laravel for a living and the benchmark table is my favourite part. Is the p99 result real though? ~700 ms for one Laravel route on a VPS sounds like PHP running without OPcache, or on the dev server.
pratzc07 1d ago
I was literally thinking about this yesterday someone will make a joke work out of this
mmmuhd 1d ago
I missed Laravel PHP FR, hoping to get some kind if project that will make me actually write PHP and use Laravel.
jnpnj 1d ago
Almost clean.. I feel all confused.
fsmedberg 1d ago
Give the developer a price! :D
evereverever 1d ago
Didn't they just announce this for Rust?
thephyber 1d ago
Are you asking us to explain the joke?
devNoise 1d ago
and then the day after there was a beta port for golang.
dalemhurley 1d ago
Taylor should release a Laravel standard.
jv22222 1d ago
Well done! Very much worth the cost of the tokens! lol
fitsumbelay 1d ago
this is great
jszymborski 1d ago
> You focus on your ideas. Your agent focuses on the implementation. Someone else can focus on maintaining it.

I love it.

chilmers 1d ago
> Understanding the codebase - Not on the roadmap
utopiah 1d ago
"We believe that developers should never be limited by their choice of programming language, their understanding of the underlying technology, or the long-term maintainability of their applications."
wiseowise 1d ago
You laugh, but somewhere someone unironically thinks like that.
dapperdrake 22h ago
It is ironic. Looking in from the outside.
leokennis 1d ago
I started my career as OPS engineer supporting a COBOL application on IBM mainframe.

Just by reading the code it was trivial to figure out 90% of what a program did. The weird “grammar” and surrounding tooling, middleware, OS and hardware made it so that you needed 20 overpaid dinosaurs telling campfire tales from the trenches of yore for the other 10%.

jamesfinlayson 1d ago
I worked with a guy years ago who had to do some COBOL stuff after the overpaid COBOL guy was finally let go, and he said it was easy enough (though the thing he was working on was pretty low risk - just a small business that I suppose decided to adopt computers ridiculously early for its industry).
dapperdrake 1d ago
And of course, understanding the problem domain...
deegles 1d ago
to be fair the agent will be doing half of the idea work. and the maintenance
chuckadams 1d ago
The CLI for it is called "cobtisan" ... should have called it "cobbler" and written it in JCL.
all2 1d ago
I only know what JCL is because my parents would talk about work over dinner.

Thank you, kind sir.

Roscius 1d ago
We need Laravel for Brainfuck - I can't understand why this wasn't the first port.
jerf 1d ago
https://github.com/garyburgmann/laravel-brainfuck

From the linked https://github.com/pihedy/laravel-for-laravel-ports .

Roscius 1d ago
Ask and ye shall receive!
staticshock 1d ago
i hope that it is through this kind of tinkering that we eventually discover that LLMs are unexpectedly good at maintaining dense, unreadable codebases better than those optimized for human consumption, permanently bifurcating LLM-owned codebases from human-owned ones and becoming oracles that divine structure & intent from the underlying gobbledygook.
eptcyka 1d ago
Dunno, all Claude does is pepper my code with Uncle Bobisms and things only Clean Architecture zealots would deem acceptable. Maybe this is Anthropic trying to stay relevant - produce code only their brainfucked agents understand?
FranOntanaya 1d ago
Laravel on Inform 7 would be something bizarre.
e12e 1d ago
I've started Google Neon researching the feasibility of "Lesuire Suit Laravel".
larodi 1d ago
we need to understand that all languages are obsolete now, and the new assembly for agents is yet to arrive.
fitsumbelay 16h ago
Oh it's there, friend. CHeck out the GitHub page and the other laravels that were built
mesrik 1d ago
I'm bit surprised that Laravel for INTERCAL wasn't yet suggested. Not that I'd be looking to use it if someone did it.

https://en.wikipedia.org/wiki/INTERCAL

dapperdrake 1d ago
The programmer was insufficiently polite.
pseudosavant 1d ago
Love this satire. Laravel for COBOL is completely ridiculous, and yet only slightly more absurd than Laravel for Rust or Go. What is next? Laravel for VB.Net WebForms?
dapperdrake 22h ago
Laravel for Ruby
kyleee 1d ago
Laravel for the Little Schemer?
t1234s 1d ago
I'm guessing PHP has overtaken Ruby as this is not satirically called "COBOL on Rails"
PontifexMinimus 1d ago
There was a COBOL on Cogs. http://www.coboloncogs.org/INDEX.HTM
nix-zarathustra 1d ago
It's a reference to the recent release of laravel go and laravel rust.
orthoxerox 1d ago
Should've called it Caravel.
tonymet 1d ago
Niña, the router

Pinta, the session manager

Santa Maria , the active record

eithed 1d ago
Looking forward to either Laravel for Doom or Doom for Laravel, whichever comes first
donatj 1d ago
I just need to point out that I totally called it yesterday!

https://x.com/donatj/status/2128197876962722179

shoo 20h ago
At $prevjob, the path for requests from our backend to hit a mainframe 'endpoint' was something like

  backend (trendy language) --http-->  API mangler (nodejs) --http-->  IBM z/OS connect == mq ==> 'endpoint' (COBOL)
But, supposing we'd had Laravel for Cobol back then, we could have consolidated & simplified the architecture to:

  backend (Laravel for COBOL) --http-->  API mangler (Laravel for COBOL) --http-->  IBM z/OS connect == mq ==> 'endpoint' (COBOL)
misterderpie 1d ago
This must be a peak troll response to https://news.ycombinator.com/item?id=50733083
dapperdrake 1d ago
But the troll is transaction safe.
emersonrsantos 1d ago
> Terminal

> Any. IBM 3270 for the authentic experience

Lies, it does not support 3270 data streams, just a protocol (?) intended for hypertext (???)

herodoturtle 1d ago
> Ship confidently. Understand optionally.

Genius >_<

martinjc 1d ago
Anything that detracts from taylor getting a new lambo, i'm on board with.
the_real_cher 1d ago
72 columns, as nature intended
cantalopes 1d ago
I envision laravel on pregnancy test next

It's something like doom for web frameworks

mring33621 1d ago
Do FORTRAN next!
kergonath 1d ago
https://github.com/wearetherobots/laravel-fortran

:D

There’s also a TI-83 version. I don’t know whoever did this but they are absolute heroes.

gpvos 1d ago
Laravel Forth: "Full-stack development. Literally."
dapperdrake 1d ago
Finally we have covered both COBOL and Fortran 77 punch cards.
roywiggins 1d ago
It's no Caché Server Pages[0], but I see a promising future.

[0] MUMPS web framework

pampa 1d ago
Is that a thing? My first job 30 years ago was with a MUMPS database. But it was air gapped. And the sun workstation that wasn't had only perl. And perl was way more readable.
roywiggins 13h ago
I don't know if it had any real use, but it is and/or was a thing:

https://docs.intersystems.com/latest/csp/docbook/DocBook.UI....

cryptos 18h ago
Finally COBOL programmers got a clear migration path! Congrats!
0x23alfonso 1d ago
honey, where is my AS400
troupo 1d ago
After Ruby on Rails broke onto the scene there was no end of rewrites and similar projects like Coldfusion on Wheels and Cobol on Cogs.

This feels similar :)

talideon 1d ago
Gimme Laravel for TinyBASIC!
forgotpwd16 1d ago
Finally, web development made fun again. Although, I'm more of a COBOL-on-Wheelchair guy myself.
kirugan 1d ago
What a troll!
iguana_shine 1d ago
When are they porting it to Ruby?
dapperdrake 1d ago
We need a vibe coded COBOL environment in Ruby for porting Laravel COBOL.
phplovesong 1d ago
Laravel seems to be the joke of the week.
dapperdrake 1d ago
With NPM hitting one trillion monthly downloads we need Laravel for JS. (Then with a Javascript run-time shoehorned into Ruby, we can have Laravel for JS for Ruby.)
waynecochran 1d ago
Did they patch the Y2K bug in this version?
dapperdrake 22h ago
We are in the year 1926, so modulo 100, the answer is "yes".
vpaulus 1d ago
OMG, Laravel ports are getting out of hands
catigula 1d ago
It’s a good meme sir but Laravel is truly awful if you’ve ever had the displeasure of using it.
tsuru 1d ago
wow. I guess it's poetic for T. Otwell's creation to come full circle back to Cobol.
andrewshadura 1d ago
Coming up next: Laravel m4.
lproven 21h ago
I read this and softly whimpered "oh gods..."

I met Eric Allman a couple of years ago. I told him how his program badly bent my brain 30Y ago, and got his autograph.

dapperdrake 22h ago
But can it be configured correctly ;)
fraywing 1d ago
waiting patiently for Laravel for fortran and then Laravel for assembly
jerf 1d ago
Fortran: https://github.com/wearetherobots/laravel-fortran

Assembly: https://github.com/Dava96/laravel-assembly-x86-64

Unless you prefer Apollo Guidance Computer assembly: https://github.com/matalaweb/laravel-agc

Or direct machine language: https://github.com/xNiicki/laravel-binary

From: https://github.com/pihedy/laravel-for-laravel-ports

dava96 1d ago
Oh hey its my repo!

This has really grown legs lol

jcmfernandes 1d ago
Lunar landings per framework... I died.
forgotpwd16 1d ago
Ah, there's some backstory here. So, Laravel published official Rust/Go versions (?!) and community answered with equally ridiculous "Laravel for X" implementations.
dapperdrake 1d ago
Better ones are stuff like Laravel for Ruby.
nprateem 1d ago
> This is an unofficial parody. The features, CLI, and benchmarks below are fictional

In case you're autistic or just too stupid to work that out for yourself.

dapperdrake 1d ago
Bear in mind that COBOL and Fortran 77 have incompatible 80 column punch card layouts.
fraywing 1d ago
Laravel for punch cards would be a massively missed April fools opportunity next year!
tortilla 1d ago
How about Rails instead?

https://punchcard.lol/

gpvos 1d ago
Laravel on actual rails!
pampa 1d ago
to far in the future, there will be no internet by then (extrapolating from the crypto fearmongering over the last few days)
fortran77 1d ago
They do agree on columns 73 to 80. Both compilers ignore them.
dapperdrake 1d ago
Column 7 will pose real issues.

Also, there was a story of red string taped to a CRT to mark off column 54, because some COBOL environments silently dropped code in columns 54 through 72.

Best `colorcolumn` setting I ever added to `.vimrc`

dkdbejwi383 1d ago
COBOL's last gleaming
Surac 1d ago
finialy some real memory safe computer language. not those hipster bs like rust
johnofthesea 1d ago
Hipster Rust? Rust is so 2022.
rpmisms 1d ago
"Can it implement laravel?" is the new "Can it run doom?"
jimbob45 1d ago
Why would you ever choose PHP these days? It’s never been the most performant, secure, ergonomic, or flexible.
selfsimilar 1d ago
Are you familiar with "Worse is Better"? https://en.wikipedia.org/wiki/Worse_is_better
lproven 21h ago
> Are you familiar with "Worse is Better"?

Yes, of course, but it wasn't meant to be a challenge!

jimbob45 1d ago
In a young industry with shifting standards, I'd agree, but nobody is hacking together sites on the fly anymore. If time really is the most important factor, then you'd just vibe code it and at that point, why pick Laravel?
selfsimilar 1d ago
Your initial comment was asking about PHP, which I think follows the "Worse is Better" model much better. Laravel is an obvious successor to Rails and is a great toolset for rapid development and stands shoulder to shoulder with Rails or any other web development framework.

But I don't understand what you mean about "young industry". Web dev is constantly evolving and no one has been hacking together sites on the fly in decades. Tools like Rails and Laravel exist because they provide really sensible defaults and great tools for routing, API, and give a decent MVC implementation out of the box. These building blocks help humans and agents to work at a level of abstraction that helps regardless of who's doing the work.

But Laravel is not really that much different to any other framework other than being dead easy to deploy (thanks, PHP) and probably one of the most popular which makes it an easy target for critique and satire.

Perz1val 1d ago
Because you have a team that's experienced with it and everything else the company has is also php. The same reason as with everything really
pampa 1d ago
or the rails web studio got outbid by a bottom feeding php/laravel studio by a very wide margin and your boss went with it no matter how hard you resisted!
withinboredom 1d ago
Considering PHP is written in C ... it's actually quite performant. It's the frameworks and abstractions that make it quite slow.
choult 1d ago
... such as Laravel.
dapperdrake 22h ago
The "s" in NUL-terminated means "secure".
withinboredom 22h ago
PHP doesn’t use null terminated strings. PHP strings are binary safe. Extensions on the other hand may do that, those are made by random people on the internet.
dapperdrake 19h ago
C standard library uses NUL-terminated strings. Avoiding them is work.
defrost 19h ago
... like linking to a non standard C string library. Super hard (well, not really), but Acceptable in the 80s.
martinjc 1d ago
Flexible? What do you find not flexible with php? You can extend the language however you want.
dapperdrake 1d ago
Even to add security.
SolarNet 1d ago
Pretty sure they were saying the same thing about COBOL 30 years ago.
matt3210 1d ago
now do python and c++
biosboiii 1d ago
Feels like a parody of the latest Laravel Rust/Go releases.

I thought these were very cool :)

thephyber 1d ago
It is satire, yes.

It helps to read the link before you comment.

behnamoh 1d ago
can we be serious for a minute?
gpvos 1d ago
Okay, but only for a minute.
vpaulus 1d ago
Sir, it’s HN…