frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Webbol: A minimal static web server written in COBOL

https://github.com/jmsdnns/webbol
37•simonpure•1h ago

Comments

pantulis•1h ago
Now we are one step closer to fully realize the vision of Cobol on Cogs

http://www.coboloncogs.org/INDEX.HTM

nonethewiser•1h ago
It's interesting to see just about every line in the code commented. Makes you re-examine the assumptions made when people say "the code should be self documenting."

Namely, that the code will be read by someone who knows the language. And arguably that the code should be capable of being "self-documenting." Although perhaps people well-versed in COBOL would argue COBOL can be, and I just don't know it.

wrs•41m ago
See commit d9a5e3e, “Added comments to the code to help curious folks understand what each line is doing”.
samus•21m ago
I heard people at a bank claim that COBOL code is basically natural language and thus self-documenting. I almost laughed out at that.
jrmg•59m ago
I know this is a ‘joke’, but it sparked in me actual questions that I am sure some folks here will know the answers to:

What are the security guarantees with writing in COBOL? Like, does COBOL allow out-of-bounds memory access? How does it compare to C or Rust as far as allowing ‘accidental’ security lapses?

leakycap•27m ago
> Like, does COBOL allow out-of-bounds memory access?

Modern COBOL compilers will catch this with an error; if you do manage to compile and run, you'll get a runtime error or immediate crash.

> How does it compare to C or Rust as far as allowing ‘accidental’ security lapses?

COBOL has reference modification that can easily be purposefully used to reference memory outside the bound of the original data you target. It isn't memory safe, it's just very restrictive so many errors/misuses get weeded out during compiling.

evnu•26m ago
I wondered about that as well while looking into the http handler. I think a missing space between method and path overruns the buffer (haven't tried running it though).
pelagicAustral•49m ago
See also:

Cobol on Cogs: http://www.coboloncogs.org/HOME.HTM

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

tuveson•45m ago
People say “pick the best tool for the job” and then refuse to pick COBOL for their COmmon Business Oriented probLems
dardeaup•11m ago
They don't refuse to pick COBOL, they refuse to consider COBOL.
john-tells-all•45m ago
I thought I could program in any language. But: that Cobol project makes Assembly language look clean and elegant.

I applaud Jms Dnns! This project really makes you think.

neoeno•42m ago
Love to see fixed format mode in use :)

For those who are unaware — you can use COBOL in two modes: free mode and fixed format mode.

Fixed format mode is (afaik) the original, based on punch card affordances, and specifies specific columns for specific purposes:

* The first 6 columns for line numbers

* Column 7 for the indicator character (notably: * for comments as you can see here https://github.com/jmsdnns/webbol/blob/main/file-structs.cpy )

* Column 8-11 for special division markers, though they can extend beyond (visible in this file: https://github.com/jmsdnns/webbol/blob/main/webserver.cbl)

* Columns 12-72 for ordinary COBOL statements

* Columns 73-80 for programmer comments or whatever notes you like

All the columns are undoubtedly a bit taxing to the modern developer and their tools, so 'free mode' which discards all the above is the suggested default.

But, I think fixed mode is very charming, and if you're going to write COBOL in 2025, you may as well try to get the most authentic experience!

rdimartino•36m ago
I liked this too, but interesting that the Makefile uses the `-free` flag for cobc
wrs•34m ago
Cols 73-80 were sometimes used for sequence numbers so when you spilled your cards on the floor you could run them through the sorting machine.

This may help you get the feel (pick the COBOL card at the top). [0]

For an even more authentic experience, write the program on a coding form first, then give it to an assistant for keypunching. [1]

[0] https://www.masswerk.at/keypunch/

[1] https://www.mainframestechhelp.com/tutorials/cobol/coding-sh...

rdimartino•33m ago
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!

samus•24m ago
Could simply be the `socket` system call.

Intercellular communication in the brain through a dendritic nanotubular network

https://www.science.org/doi/10.1126/science.adr7403
1•bookofjoe•39s ago•0 comments

A new database solution for trading off between rigid schemas and no schema mess

https://www.scopedb.io/blog/schema-on-the-fly
1•tison•1m ago•0 comments

Parking is still a nightmare in 2025, we're building the fix

https://www.waysmart.eu/
1•jbritovsr•1m ago•1 comments

System 1 Programming

https://hydrick.net/2025/09/26/system-1-programming/
1•warrenm•1m ago•0 comments

Show HN: API for removing watermarks from Sora 2 videos

https://cliploom.app
2•the_plug•2m ago•0 comments

Sometimes I regret using CalVer (2023)

https://jacobtomlinson.dev/posts/2023/sometimes-i-regret-using-calver/
1•pranshum•3m ago•0 comments

Ask HN: Why did COM/SOAP/other protocol fail?

1•smj-edison•3m ago•0 comments

Where's Barry?

https://wheresbarry.noncanon.co.uk
1•edent•4m ago•0 comments

Hacktoberfest 2025

https://hacktoberfest.com
1•kr0981•4m ago•0 comments

UK government says digital ID won't be compulsory – honest

https://www.theregister.com/2025/10/03/uk_digital_id_clarity/
1•rntn•6m ago•0 comments

Keychron M6 Wireless Mouse

https://www.keychron.com/products/keychron-m6-wireless-mouse
1•russianGuy83829•9m ago•2 comments

AI Heat Pump Installs for Just £1? (Seriously) [HeatGeek] [video]

https://www.youtube.com/watch?v=ENt9fJBHINQ
1•zeristor•9m ago•0 comments

Google Nano Banana model now supports Aspect ratio and production ready

https://aisuperhub.io/blog/nano-banana-aspect-ratio
1•tipseason•10m ago•0 comments

Anduril and Palantir battlefield comms system has deep flaws: Army

https://www.cnbc.com/2025/10/03/anduril-palantir-ngc2-deep-flaws-army.html
7•gok•11m ago•0 comments

Japan days away from running out of Asahi Super Dry after cyber attack

https://www.ft.com/content/bb86349f-0ad8-432b-a62a-fdd63b3b76ab
2•c420•11m ago•1 comments

Mathematical Discoveries of 2024

https://www.scientificamerican.com/article/the-7-coolest-mathematical-discoveries-of-2024/
1•andsoitis•13m ago•0 comments

Chess.com Partners with Perplexity; Announcing $200k Comet Open – Chess.com

https://www.chess.com/news/view/perplexity-partnership-comet-open-announcement
2•corvad•14m ago•0 comments

TextureTown

https://textures.neocities.org
3•surprisetalk•14m ago•0 comments

Coliving and Tiny Apartments

https://supernuclear.substack.com/p/on-coliving-and-tiny-apartments
1•surprisetalk•14m ago•0 comments

The algorithm will see you now

https://worksinprogress.co/issue/the-algorithm-will-see-you-now/
1•surprisetalk•14m ago•0 comments

Adam Mosseri's 'we're not spying on you' video is raising a lot of questions

https://www.theverge.com/news/789991/meta-instagram-microphone-listen-ads-targeting-adam-mosseri
1•corvad•14m ago•0 comments

Show HN: AI Executive Coaching

https://www.deepgrowth.ai/
1•mikexhuang•15m ago•0 comments

Meta hits back at Joseph Gordon-Levitt op-ed re: AI, noting wife was behind coup

https://nypost.com/2025/10/01/business/meta-rips-ny-times-for-joseph-gordon-levitt-op-ed-criticiz...
1•1vuio0pswjnm7•16m ago•0 comments

Israeli researchers make breakthrough in glass 3D printing

https://www.timesofisrael.com/israeli-researchers-make-breakthrough-in-glass-3d-printing/
2•gangtao•16m ago•3 comments

Ask HN: How is Google AI Mode so much faster than ChatGPT

1•excitedrustle•16m ago•1 comments

Job board made by an autistic recruiter for the autistic community

https://autismworks.online/
1•amazonhut•18m ago•0 comments

Al-Khwarizmi – The Genius Who Invented Algebra and the Algorithm

https://davidson.org.il/read-experience/en/sciencehistory-en/genius-who-invented-algebra-and-algo...
1•andsoitis•18m ago•0 comments

Sora: Clipping to Cloning

https://hiddencap.com/stories/sora
1•jger15•19m ago•0 comments

Reminder that Peter Thiel is, to put it mildly, not a cypherpunk

https://twitter.com/VitalikButerin/status/1973901684226265229
1•wslh•19m ago•1 comments

SEObot – autonomous «SEO Robot» with AI agents

https://seobotai.com/
1•gangtao•19m ago•1 comments