Language Selection

English French German Italian Portuguese Spanish

Programming Leftovers

Filed under
Development

  • Announcement: gcobol
    Greetings, gcc!  We come bearing gifts! 
    
    When you set your clock ahead an hour yesterday, you might not have
    realized you set your calendar back to 1985.  There's a new gcc COBOL
    compiler. We call it: gcobol.
    
    On the books, we have 1 man-year invested: two full-time
    programmers since October 2021.
    
    We have so far compiled just over 100 programs from the examples in
    "Beginning COBOL for Programmers", by Michael Coughlin. We are near the
    end of that phase of the project, and expect to have ISAM and
    Object-Oriented Cobol features implemented in the next few weeks.  We
    are working on compiling the NIST COBOL test suite, which we expect
    will take a few months to complete.  We have begun work on  gdb, too,
    and hope to have it working by year end. 
    
    Our project should not be confused with GnuCOBOL
    (https://savannah.gnu.org/projects/gnucobol).  That project is a Cobol
    translator: it compiles Cobol to C, and invokes gcc to produce
    executable code.  Our gcobol compiler is (currently) a fork of gcc.  It
    implements a gcc frontend for Cobol and (obviously) invokes the gcc
    backend to produce executables.  (We have a friendly relationship with
    GnuCOBOL, and its maintainer supports our undertaking.)
    
    Ours should also not be confused with prior efforts to create a gcc
    Cobol compiler.  Others have tried and failed.  Failure wasn't an
    option for us.  I won't say it was easy, but here we are. 
    
    Eventually, if the gcc maintainers are interested, we would like to
    pursue full integration with gcc.  For the moment, we have questions
    we're hoping can be answered here by those who ran the gauntlet
    before us.  Given the state of the internals documentation, that seems
    like our best option. We've been rummaging around in the odd sock
    drawer for too long.  
    
    If you're like me (like I was), your visceral response to this
    announcement can be summed up in one word: Why?
    
    The answer is as easy as it is trite: the right tool for the job.
    
    I wouldn't write an operating system in Cobol.  But I wouldn't write
    one in Python or Java, either.  Cobol has a niche no other language
    occupies: a compiled language for record-oriented I/O.  
    
    That might sound strangely specialized, but it's not.  Record-oriented
    I/O describes, I would argue, nearly *all* applications.  Yet, since the
    advent of C, nearly all applications have relegated I/O to an external
    library, and adopted the Unix byte-stream definition of a "file".
    
    If you've written a CGI web application, you know what I'm talking
    about.  Cobol eliminates a lot of gobbledygook by reducing free-form
    run-time variables to compile-time constants.
    
    That's the rationale, and it's not just a theory.  Cobol is alive and
    kicking.  Estimates vary, but they all say north of 100 billion lines
    of Cobol are still in use, with millions more written every year, even
    now, in the 21st century.  Odds are your last ATM transaction or credit
    card purchase went through a Cobol application.
    
    There's another answer to Why: because a free Cobol compiler is an
    essential component to any effort to migrate mainframe applications to
    what mainframe folks still call "distributed systems".  Our goal is a
    Cobol compiler that will compile mainframe applications on Linux.  Not
    a toy: a full-blooded replacement that solves problems.  One that runs
    fast and whose output runs fast, and has native gdb support.
    
    I am happy to debate the lunacy of this project and the viability of
    Cobol, either here or off-list.  Today, we want to make the project
    known to those in the technical community who might most want to know
    what we're up to, and explain why we'll be asking the questions we're
    asking.  
    
    Also, if you want to give it a whirl, please don't hesitate.  We're
    happy to help, and expect to learn something in the process. 
    
    Thank you for you kind attention.
    
    --jkl
    
    
  • gcobol: a native COBOL compiler [LWN.net]

    The gcobol project has announced its existence; it is a compiler for the COBOL language currently implemented as a fork of GCC.

  • Node.js security: Parse Server remote code execution vulnerability resolved

    Users of Parse Server, a popular API server module for Node/Express, are being urged to immediately apply a fix for a remote code execution (RCE) vulnerability.

    Discovered by security researchers Mikhail Shcherbakov, Cristian-Alexandru Staicu, and Musard Balliu, the vulnerability impacts the parse-server NPM package, versions below 4.10.7.

  • Qt for WebAssembly on mobile devices

    Qt for WebAssembly on mobile devices, specifically phones, has lacked an essential feature - support for the native keyboard. It may or may not have worked. If it worked, it did not work very well. The tricky issue is opening the keyboard when needed and closing when it wasn't. There is no simple API for doing that on any platform we target - iOS, Android and Windows.

  • Drew DeVault's blog: Status update, March 2022

    Greetings! The weather is starting to warm up again, eh? I’m a bit disappointed that we didn’t get any snow this winter. Yadda yadda insert intro text here. Let’s get down to brass tacks. What’s new this month?

    I mainly focused on the programming language this month. I started writing a kernel, which you can see a screenshot of below. This screenshot shows a simulated page fault, demonstrating that we have a working interrupt handler, and also shows something mildly interesting: backtraces. I need to incorporate this approach into the standard library as well, so that we can dump useful stack traces on assertion failures and such. I understand that someone is working on DWARF support as well, so perhaps we’ll soon be able to translate function name + offset into a file name and line number.

Announcement: gcobol

  • Announcement: gcobol

    Our project should not be confused with GnuCOBOL (https://savannah.gnu.org/projects/gnucobol). That project is a Cobol translator: it compiles Cobol to C, and invokes gcc to produce executable code. Our gcobol compiler is (currently) a fork of gcc. It implements a gcc frontend for Cobol and (obviously) invokes the gcc backend to produce executables. (We have a friendly relationship with GnuCOBOL, and its maintainer supports our undertaking.)

    Ours should also not be confused with prior efforts to create a gcc Cobol compiler. Others have tried and failed. Failure wasn

An open-source COBOL contender emerges

  • An open-source COBOL contender emerges

    The newly announced gcobol compiler is a fresh front end for GCC, and builds native binary executables.

    There are already other FOSS and freeware compilers for COBOL out there, but few are fully open source. Notably, there's GnuCOBOL, which evolved out of OpenCOBOL. The OpenCOBOL FAQ is worth a read, and notes that: "OpenCOBOL was initially developed by Keisuke Nishida from experience working on TinyCOBOL originally developed by Rildo Pragana."

    There's nothing wrong with GnuCOBOL: it's mature, in active development, and supports various COBOL standards and dialects – but as the announcement for gcobol says: "Our project should not be confused with GnuCOBOL. That project is a Cobol translator: it compiles Cobol to C, and invokes gcc to produce executable code."

    You can still get COBOL-IT for free. This French project developed an open-source compiler suite until it was acquired by "the guardians of business COBOL" – or alternatively, a retirement home for ageing software businesses – aka Micro Focus – in 2017.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.