+1

EXACTLY

Talking about the shortcomings of C as though they mattered is like talking 
about the shortcomings of 1998 COBOL as though they mattered.

Charles

On Mon, 7 Sep 2026 12:41:21 -0500, Kirk Wolf <[email protected]> wrote:

>This is a little off topic and probably controversial, but IMO it shouldn't be.
>
>I argue that there is no longer many reasons to use a "C" compiler when you 
>can use a "C++" compiler.  If you choose, you can only use a small number of 
>the C++ features; a practice known as "Better C".   Note: writing OS kernel 
>code is exception, but the reason isn't really performance.
>
>What do you get?  Better type checking, better memory safety, better code 
>readability.  Don't write classes if you don't want ( but I would, just could 
>I could use RAII). Use "extern C" linkages if you like.   But you can use 
>selective features like std::string, etc.  Writing pseudo string "classes" for 
>C doesn't make sense to me in 202X.  Have a ton of C library code that you 
>don't want to tweak to compile under C++?  You can mix and match C and C++ 
>routines with the program binder - all you need to do is to update their 
>headers that will be used from C++ to declare "C" linkage.
>
>Kirk Wolf
>Dovetailed Technologies
>https://coztoolkit.com
>
>On Mon, Sep 7, 2026, at 5:09 AM, Clement Clarke wrote:
>> I have been developing a few things over many years.  I wonder if they
>> might be useful here?
>> 
>> 1. I have a convertor that takes 370 instructions and converts them to
>> X86. It can run under Borland's old IDE, so you can step through code,
>> stop, go backwards,look at the simulated registers and so forth. It
>> could be changed for ARM I suspect.
>> 
>> 2. Just recently, I have updated some code that provides fast safe C
>> strings. Works in C on Z series and C for Intel, so I suppose for ARM
>> too.
>> 
>> 3. Code to create RECFM=VB files in C with GCC and CLANG on Windows
>> and Linux, so presumably where ever ARM is too.  These files are fully
>> compatible with IBM VB files.  See
>> www.Github.com/Clemcl/fastsafestrings.
>> 
>> 4. A simple PANEL instruction that works on Z/OS, Linux and Windows.
>> The Z/OS version is in 370 assembler, and a C version is available for
>> Windows and Linux.  For example:
>> 
>>    PANEL ('Enter Your name:',name,30,'default')
>>                ('Address;      ',address,50,'');
>> 
>>    Popups and Menubars are supported.  See www.Oscar-Jol.com front
>> page for an example.
>> 
>> 5. Jol - the alternative to JCL.  A 370 ASsembler version and a C
>> version that runs on Windows and Linux.
>> 
>>     Jol is very similar to PL/I.
>> 
>>      It can create highly optimised JCL, or run programs with Dynamic
>> Allocation, in background or under TSO.
>> 
>>      Jol has a macro language that makes it easy to create new
>> instructions.  It has full Symbolic Variable processing.  It can
>> allocate and create data sets in background or under TSO.  Or Windows.
>> 
>>      It includes the PANEL instruction mentioned above.
>> 
>>      Details are at www.Oscar-Jol.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to