9 ms·
GnuCOBOL – a free/libre COBOL compiler
- orionblastar 6y agoUsed to be OpenCOBOL before the name change. Very good, I almost can call it Turbo COBOL on fast machines.
- cies 6y agoI heard COBOL is used a lot in large (governmental) organizations. What are the compilers commonly in use in those places? Is this GNU impl commonly seen there?
- momothereal 6y agoLarge organizations you speak of that use COBOL are mostly insurance and finance megacorps, and some government, that were (and some still are) deep in the pockets of various mainframe vendors. Vendors distributed their own compilers with some tweaks to the language, like IBM. It's extremely rare to see FOSS in such legacy systems. The push for FOSS in large corporations has been coming from the for newer stacks, designed by newer developers.
- cies 6y agoI reckoned. But I was interested what compilers this one competes against.
- Stranger43 6y agoDIGITAL, IBM and HP typically supplied COBOL compilers with their relevant big iron systems and a lot of time the actual code base will be tied so closely to a greater framework provided by/for those platforms that just being able to compile COBOL on an different environment is the least part of the migration process.
- bencollier49 6y agoOne of the big vendors is MicroFocus. https://www.microfocus.com/en-us/home https://www.microfocus.com/en-us/home Their variant of COBOL has a number of extensions beyond the regular standard in GnuCOBOL. One that springs to mind is around data serialisation and file formatting. They also implemented an API layer for access from more modern stacks. Incidentally, if you're interested in getting into software development, I believe the DWP in the UK are still currently taking on apprentices to work on the COBOL-based systems in the department - I think they also get training in other languages too - perhaps JS, Ruby or Python?
- sfgweilr4f 6y agoAnyone got SDL2 and COBOL talking to each other? This seems like a suitably unlikely pairing to be "interesting".
- tempodox 6y agoIn that vein, I'd find it interesting to see a neural network implemented in COBOL. But I won't hold my breath :)
- tolle 6y agohttps://news.ycombinator.com/item?id=24370792 https://news.ycombinator.com/item?id=24370792
- IncRnd 6y agoReally? COBOL is younger than neural network algorithms and seems like a prime language to write neural networks! The first artificial neural network was invented in 1958 by psychologist Frank Rosenblatt. Called Perceptron, it was intended to model how the human brain processed visual data and learned to recognize objects. Other researchers have since used similar ANNs to study human cognition. [0] COBOL is a high-level programming language first developed by the CODASYL Committee (Conference on Data Systems Languages) in 1960. [1] A COBOL-like neural network simulation language based on layer macro definition [2] Perceptron in COBOL [3] My first program in COBOL, a single neuron neural network. [4] [0] https://www.computerworld.com/article/2591759/artificial-neural-networks.html [1] http://www.csis.ul.ie/cobol/course/COBOLIntro.htm [2] https://ieeexplore.ieee.org/document/714089 [3] https://github.com/victorqribeiro/perceptronCobol [4] https://www.reddit.com/r/programming/comments/gt8cao/my_first_program_in_cobol_a_single_neuron_neural/
- luismedel 6y agoYou aren’t talking about libSDL, do you? :)
- sfgweilr4f 6y agoI most definitely am. http://libsdl.org/ http://libsdl.org/ The need is strong.
- sgt 6y agoAsk HN - should I build my new startup around COBOL? Or should I use a less proven language such as Python, Go, Rust ? /s
- ainar-g 6y agoI mean, if your startup is a COBOL consultancy for big banks and gov't orgs…
- sgt 6y agoWe have a bank in South Africa called Capitec, and they were sort of considered a "startup" bank a few years ago, doing things better and more efficient. But they are using COBOL regardless (+ other cloud tech of course as decorations)
- anoncake 6y agoYou absolutely should. Make COBOL ON COGS a reality and post about it on HN for PR and, more importantly, our amusement.
- tragomaskhalos 6y agoYour big problem with COBOL will be staffing - everyone knows that scarcity plus demand means that COBOL programmers routinely command 7-figure salaries, and even if your funders can pony up the required cash, getting those guys away from their private islands that they purchased with their Y2K booty is going to be tough.
- wheels 6y agoI placed second in a statewide (Texas) COBOL programming contest in high school. This was the late 90s. While in college (which I started early), I kept having people track me down to offer mid-six-figure salaries. It was very tempting. It was pretty surreal (again, this was pre-web boom, and starting tech salaries were mid-5-figures) as an 18 year old having people offer me $400k/year.
- 6y ago
- jamesdhutton 6y agoQ. What do you call the object-oriented version of COBOL? A. ADD 1 TO COBOL Oldie but a goldie.
- michaelcampbell 6y agoWas it not `ADD 1 TO COBOL GIVING COBOL.`? I guess different versions allow different things.
- dijit 6y agoHeh, ironically the reason I couldn't get into programming when I was younger is that the only programming book in my local library was COBOL; and the compiler CD had been stolen. Cobol itself is pretty evil to learn and not comparable to most c-like languages. I think the fact that it was so intimidating set me back about 10y on learning programming as I always just assumed it was too hard.
- the_af 6y agoIt wasn't a very interesting language back then, and it definitely isn't one today, so in my opinion nobody should learn it unless they have a really good reason (and no, you won't make big bucks working with COBOL). Source: I have experience with COBOL banking systems. Horrible, horrible programming language.
- garciasn 6y agoI worked for a company that 'on-shored' COBOL and RPG programmers. Many of the Senior Engineers were called out of retirement and were training up the younger folks hired. They placed their main office in a rural area which kept costs low and, for the area, they were paying great money, particularly for the entry-level engineers. To your point about not making 'big bucks', you're right, but it's nothing to shake a stick at if you really want to get after it.
- the_af 6y agoAgreed: any job is good if you need the money. My comment is mostly a counterpoint to the usual shill articles we get about twice a year on HN about the "great opportunity" of learning COBOL today because of an alleged programmers' shortage and because there are big bucks there... allegedly. Those of us who actually worked with COBOL know it's an awkward language used for legacy systems, and which should be avoided -- and definitely not learned now -- if you can get any other programming job. No, COBOL is not "fun". No, it's not a good programming language. No, it's not the best money making opportunity. No, COBOL programmers aren't making lots of money. And the downside of getting a COBOL job is pretty big: you have to use COBOL. This week we already had three COBOL related posts to HN (that I saw), one of them of the "you should learn COBOL" shill type.
- mirages 6y agoCurious : is COBOL used anywhere outside IBM mainframes for any production purpose ? Can you create a HTTP API with COBOL as well ?
- severino 6y ago> Can you create a HTTP API with COBOL as well ? Well, at least you could in theory with CGI, couldn't you?
- justin66 6y agoI'm trying to picture the Venn diagram of people who want to use COBOL, people who care about using COBOL for free, and people who would prefer using a free Gnu COBOL to a free IBM COBOL.
- michaelsbradley 6y agoGnuCOBOL’s FAQ might be the largest FAQ in existence! https://gnucobol.sourceforge.io/faq/index.html https://gnucobol.sourceforge.io/faq/index.html
- superdisk 6y agoHoly shit, it's so big it crashes the tab on mobile safari.
- 7thaccount 6y agoYeah, but the language is largely irrelevant here right (assuming the intent in posting this was "look a free open source cobol"). The difficulty in cobol systems is that IBM Mainframes are really cool, but insanely expensive and locked down. I can put GNUCobol on my laptop and learn hello world, but I won't have access to the mainframe transactions, which is probably 99% of the problem in learning a Cobol system.
- wsh 6y agoIndeed: mainframe COBOL programs often invoke transaction processing and data management facilities (using “EXEC CICS,” “EXEC DLI,” or “EXEC SQL” statements, for example) that aren’t part of the standardized COBOL language. There are commercial software packages for re-hosting mainframe applications to other platforms. These typically provide not only COBOL and PL/I compilers but also functional equivalents of CICS, VSAM, JCL (JES2), and other mainframe system software.
- 7thaccount 6y agoThanks for the confirmation and the additional background information. So an open-source/free version of one of those "re-hosting" packages sounds like it would be useful for someone wanting to learn about cobol + mainframe development, but I can't imagine that ever happening (demand can't be too high) lol.
- maxharris 6y agoYup! It gets even worse: I got stuck for a year once working on COBOL software that only ran on Solaris, depended on Micro Focus's buggy and slow $3000 compiler, did binary searches across flat files and depended on Unix calls like mmap(). I got it up and running long enough to see how the code worked so that it could be rewritten in Pascal (this was chosen because that's what the guy I was working with preferred). COBOL is a terrible, verbose language that doesn't even have local variables. It belongs on the ash-heap of computing history, not in any project that should be maintained today.
- 6y ago
- muizelaar 6y agoAre there many public COBOL code bases? From a quick search, I'll I've found is https://sourceforge.net/projects/acas/ https://sourceforge.net/projects/acas/ and https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/PCPricer/Pricer-Source-Code https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Paymen...
- IncRnd 6y ago> Are there many public COBOL code bases? From a quick search, I'll I've found is ... The community of COBOL researchers is growing exponentially! [0] It's best to start with COBOL development in order to be an expert when COBOL's use really explodes. [0] https://github.com/search?q=language%3Acobol&type=Repositories https://github.com/search?q=language%3Acobol&type=Repositori...
- jason_slack 6y agoTBH, the jobs I held in the late 90's and early 2000's where I was a COBOL programmer were honestly some of the most challenging jobs I've had. There were large systems that nobody understood and hadn't touched. I was really surprised to find banks relying on systems that hadn't been touched in 10 years. But let me ask. Would anyone hire me having 6 years COBOL experience from late 90's to early 2000's?