Skip to content
This repository was archived by the owner on Nov 29, 2026. It is now read-only.
This repository was archived by the owner on Nov 29, 2026. It is now read-only.

System size numbers #28

Open
Open

Description

@shishioko

Allow the usage of unique numerical types that are defined to be the size of the executing system's word size as follows

u0 a = 123; //u32 on 32 bit systems, u64 on 64 bit systems
s0 b = -66;
f0 c = 3.1415926; //particularly useful for numbers like pi to keep the highest precision on different systems

Also allow the implicit casting of them to more clearly defined sizes.

u0 number = 123;
u64 sent = number;
Network.Send(netnumber);

u0 received = Network.Receive<u64>();

The addition of these features could serve to save data without compromising on possibilities, such as for array indexing on different systems, as well as to allow the programmer to use the most efficient numerical types, when the size is otherwise not too significant, but still be able to share it on the network by casting it.

u0 size = 123;
u32[] array = new[size];

Activity

  1. self-assigned this
    on Feb 24, 2026
  2. added theissue type on Feb 24, 2026
  3. moved this to Todo this release in Quickfallon Mar 3, 2026
  4. moved this from Todo this release to In Progress in Quickfallon Mar 6, 2026
  5. Zffu commented on Apr 20, 2026

    @Zffu
    Member

    A few changes:
    The 0 indicator will actually return the highest stable size available (even for integers) instead of the CPU address size.

    The CPU address size will be available with the type usize and ssize

  6. moved this from In Progress to Todo this release in Quickfallon Apr 21, 2026
  7. moved this from Todo this release to Todo Later in Quickfallon May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

  • Status
    Todo Later

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions