On 2026-11-19 09:20, Anthk GM wrote:
> On 2025-08-16, Janis Papanagnou <jani…@hotmail.com> wrote:
>> [...]
>
> Ga68 under GCC supports POSIX and thus sockets and maybe internet
> connections. I wish a68g had for instance socket, TLS and such
> support.
(Wow, a reply to a post that is more than a year old, and obviously
not even addressing the original topic.)
Now concerning your new topic... (I changed the subject line)
First I'd like to know what you mean by "Ga68 [...] supports POSIX".
Do you mean all the UNIX *low-level* system calls (i.e.low-level
I/O, processes, threads, signals, terminal handling, and obviously
IPC that you mentioned in one variant at least)?
Mind that Algol 68 is a high-level language. It has its own file I/O
abstractions, abstracted parallel processing already in the language.
Genie (a68g) specifically has a couple high-level (and also some more
primitive) extensions that have been considered useful.
Curiously asking the search engine about Ga68 I find in the POSIX
prelude these things:
* Process Control. Handles program termination and status reporting
(e.g., posix exit, exit status).
supported by Genie (execve, wait, ...).
I'm missing passing an exit-code to the calling environment in Genie.
(I suggested it but it obviously wasn't considered for inclusion.)
* Command Line. Provides access to command-line arguments passed to
the program (argc, argv).
also supported by Genie
* Environment. Allows reading environment variables via getenv.
also supported by Genie
* Error Handling. Exposes system error states through errno,
strerror, and perror.
also supported by Genie
* Files & Descriptors. Includes standard streams (stdin, stdout,
stderr), file creation and opening (fopen, fcreate, fclose),
open flags (...), and file property queries.
also supported by Genie (standin/standout/standerr/standback and the
channels as part of the standard Algol 68 methods, no specific system
functions, all functions from the Algol 68 standard). I don't see a
point in supporting an alternative open/create/close function set.
* Sockets. Provides basic network socket operations such as fconnect.
unsupported by Genie (but used in its Postgres DB support extension)
* String Transput. Offers C-style character and string I/O procedures
Genie has the powerful features existing already in Algol 68 and quite
some sensible extensions. But not the low-level C-transput functions.
But it supports other C-library string functions, and extensions for
Regexps.
Genie supports also some other _higher-level_ extensions. (Just noting;
I refer to the Genie manual for details.)
And I see that Ga68 seemingly also supports what I was asking for here
in my original post: "Foreign Function Interface (FFI)"!
Also a suggestion I made that wasn't considered for addition in Genie.
Janis