News for hackers. Stuff that matters.
Re:Webbol: A minimal static web server written in COBOL by rdimartino on Friday October 03, 2025 @11:23AM (#45464025)
I'd love to learn more about what `CALL "socket"` is doing. CALL is for running subprograms, but it's not clear to me where "socket" is?

I've thought about a COBOL webserver before, but didn't get beyond reading the GnuCOBOL FAQ that mentions it's possible with CGI https://gnucobol.sourceforge.io/faq/gcfaq.html#id1126

I'm definitely going to dig into this project more later. This is very neat!

Re:Webbol: A minimal static web server written in COBOL by samus on Friday October 03, 2025 @11:32AM (#45464135)
Could simply be the `socket` system call.
Re:Webbol: A minimal static web server written in COBOL by jmsdnns on Friday October 03, 2025 @12:37PM (#45464855)
yep, it calls the external c function. same with setsockopt, bind, and listen further down.