Old C code – how to upgrade it?

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • stoical

    An ancient forth like language (by fhars)

  • Every time I approach this problem, it frustrates and educates, even in the last 24 hours.

    I got a message from Florian Hars, who got it to compile and mostly working on Ubuntu 20.04 with GCC 9.4.

    Amazing

    https://github.com/fhars/stoical

    I also got a message from Joshua Saxby, who put a ton of work into it as well

    https://github.com/saxbophone/stoical/tree/josh/cmake-build

    My instinct is to just import Florian's version into git. Does that seem reasonable? I can then start digging into the warnings, documentation, etc. and improve it from there.

  • mstoical

    MStoical - a Forth like language, but better

  • That'd probably get you some way there already: https://github.com/mikewarot/stoical

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • copycat

    A concatenative language on Scheme (by pflanze)

  • c2rust

    Migrate C code to Rust

  • Maybe you could try using c2rust [1] that transpile C to Rust, then try to port it back and forth. It would be much better if you can use Rust though.

    [1]: https://github.com/immunant/c2rust

  • stoical

    Stoical - a Forth like language, but better (by saxbophone)

  • Every time I approach this problem, it frustrates and educates, even in the last 24 hours.

    I got a message from Florian Hars, who got it to compile and mostly working on Ubuntu 20.04 with GCC 9.4.

    Amazing

    https://github.com/fhars/stoical

    I also got a message from Joshua Saxby, who put a ton of work into it as well

    https://github.com/saxbophone/stoical/tree/josh/cmake-build

    My instinct is to just import Florian's version into git. Does that seem reasonable? I can then start digging into the warnings, documentation, etc. and improve it from there.

  • OK, I'm fine with opening it up, too, and we should probably so so, that may give more input. There have been lots of fixes posted already, and I haven't checked whether that solves everything (this would be a bit counter to helping in a natural way), so I don't know whether there's actually anything left to do. For either case, I've put up a page which will contain updates on the events here[1].

    Public live streaming is new to me and so far I've evaded any public records of my video and voice, maybe that's pointless since this will become increasingly impossible into the future, but I'm undecided and so far am planning for a conference that, while open for anyone to join (see [1]), will not make a recording public. I might be swayed. I'm also still not omniscient in the C world (the most glaring is probably that I've never used the GNU autotools!), OTOH I'm yearning for somewhat higher levels of abstraction so my C coding is often untypical, so YMMV if you're after learning standard ways of working in C.

    [1] https://github.com/pflanze/stoical-mentoring

  • retdec

    RetDec is a retargetable machine-code decompiler based on LLVM.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts