🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #30

Features of "a68g" and "ga68" (was Re: Algol 68 / Genie - support of user defined libraries?)

#30
From: Janis Papanagnou
Date: Thu, 19 Nov 2026 09:59
69 lines
4302 bytes
On 2026-11-19 09:20, Anthk GM wrote:
> On 2025-08-16, Janis Papanagnou <janis_papanagnou+ng@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
Technical Details
Message-ID: <11dmh9e$s03n$8@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <107ojqs$1ebrr$1@dont-email.me> <slrn11fs3l9.5sm.anthk@hyperbola.home>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.lang.misc
Subject: Features of "a68g" and "ga68" (was Re: Algol 68 / Genie - support of
 user defined libraries?)
Date: Thu, 19 Nov 2026 10:59:10 +0100
Organization: A noiseless patient Spider
Lines: 69
Message-ID: <11dmh9e$s03n$8@dont-email.me>
References: <107ojqs$1ebrr$1@dont-email.me>
 <slrn11fs3l9.5sm.anthk@hyperbola.home>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 19 Nov 2026 09:59:11 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="917623"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+LVJgPZNC1jQ9lb4ykuJei"; posting-host="9c488a6de37316b7b8b5f817dc7f52ca"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+m9BNjgrvnVABa+rGzW+5PkMsHA= sha256:z4XW7tuHyoUDS61AZgiF4v4w3krk2bRgZGNi80tEXTc=
	sha1:ZBl8hY82sO8NUxdO1Yy1iUsmeEo= sha256:IXmZswDI0NyTJYF3fIm1Tld209LBHDUwMWp4ThKeZCA=
Content-Language: en-US
In-Reply-To: <slrn11fs3l9.5sm.anthk@hyperbola.home>