C support libraries

goon

New Tinkerer
Mar 4, 2026
16
10
3
Hi,

just wanted to say I started making additions to the C library, it was made on a Powerbook G4 running Debian Linux.
Here's the source code of the first library :
 

goon

New Tinkerer
Mar 4, 2026
16
10
3
libactorc1 is now at version 0.1.6. It should be usable and only has one malloc system call (stdlib.h/malloc.h). Source code is here : http://sf.net/p/libactorc

I will start compiling both libraries later on.

There might come a recent MacOS version of both.
 

goon

New Tinkerer
Mar 4, 2026
16
10
3
libportc1 is now at version 0.1.28.

It does not use any C/UNIX-like functionality so it should be very portable.

The macOS version is therein.

It remains untested.
 

nilobject

New Tinkerer
Nov 21, 2023
28
18
3
that's great youre using the g4
have you run your code through an llm?
there's a few obvious crashes in there that a chatbot will pick up for you
 

goon

New Tinkerer
Mar 4, 2026
16
10
3
Yes, there's indeed a paid for version on the latest linux tarball.

It has a HashMap en surplus on the common tarball and is WIP.

It uses a list of values and offsets, where the offsets represent a list value addition towards the following value. A (hashmap)value has a target on the hash map, meaning a return value on the ref of the hashmap. So you backtrack enough (hashmap)offset structures to find the value on length - sum of offsets with values in between then returning the correct value if it exists (else you return 0/NULL or something).

The key indexes are a id/voidp (void*) which target 0x0000 to 0xffff on a 32 bit machine. The offsets are therein, the keys are in this range.
So you could make a binary string containing every index in that range but mine has hashmapoffset structures to diminish the length of the binary string for example.

I am always glad to use my G4 for it.
 
Last edited:

nilobject

New Tinkerer
Nov 21, 2023
28
18
3
yeah cool. i love hearing about custom data structs
my nilobjects are key/value maps where every node is a parent
sure makes coding easier to have a standard