Utils: GMalloc research+POC #138

Open
opened 2023-07-07 19:24:12 +01:00 by deavmi · 3 comments
Owner

What is this?

I am hasty to call this a request for a "standard library" as we are not near that yet, till we get struct support I cannot honestly make that request. There are, however, some pieces of code that can be written in C and linked in via T's extern keyword during link time via the system's CC.

One of such things is allocator code. Now we can (and probably will) use C Library's malloc and free but I would like to have our own implementation:

  1. First version in C
    • Do it in C and we link it in
  2. Final version in T
    • We will first need struct support

What is needed?

On the branch indicated by this issue, we require an implementation of:

  1. malloc(size_t) (size_t alias for system's biggest supported unsigned type)
  2. free(void*)
## What is this? I am hasty to call this a request for a "standard library" as we are not near that yet, till we get struct support I cannot honestly make that request. There are, however, some pieces of code that can be written in C and linked in via T's `extern` keyword during link time via the system's CC. One of such things is allocator code. Now we can (and probably will) use C Library's `malloc` and `free` but I would like to have our own implementation: 1. First version in C * Do it in C and we link it in 2. Final version in T * We will first need struct support ## What is needed? On the branch indicated by this issue, we require an implementation of: 1. `malloc(size_t)` (`size_t` alias for system's biggest supported unsigned type) 2. `free(void*)`
deavmi added the
question
label 2023-07-07 19:33:18 +01:00
gusmeyer was assigned by deavmi 2023-07-07 19:34:32 +01:00
deavmi added this to the Object-orientation milestone 2023-07-07 19:34:41 +01:00
deavmi modified the milestone from Object-orientation to Basics 2023-07-07 19:34:44 +01:00
deavmi modified the milestone from Basics to Object-orientation 2023-07-07 19:34:57 +01:00
deavmi modified the milestone from Object-orientation to Basics 2023-07-07 19:35:01 +01:00
deavmi modified the milestone from Basics to Object-orientation 2023-07-07 19:35:03 +01:00
Author
Owner

@gusmeyer We can discuss ideas here, I will make a branch for you later once we have had a discussion on mmap() etc.

@gusmeyer We can discuss ideas here, I will make a branch for you later once we have had a discussion on `mmap()` etc.
deavmi added the due date 2023-07-31 2023-07-08 11:05:52 +01:00
Author
Owner

@gusmeyer Okay all setup!

Use the branch as specified in this issue! It is research/gmalloc. Also remember to only use Gitea for issues (ALWAYS push to GitHub).

Lastly, it may be useful to track your time. Hit the Start timer button when you begin work and hit stop timer when you end. It racks up time and helps us keep track of progress.

@gusmeyer Okay all setup! Use the branch as specified in this issue! It is `research/gmalloc`. Also remember to only use Gitea for issues (**ALWAYS** push to GitHub). Lastly, it may be useful to track your time. Hit the `Start timer` button when you begin work and hit `stop timer` when you end. It racks up time and helps us keep track of progress.
deavmi removed this from the Object-orientation milestone 2023-07-09 11:04:16 +01:00
deavmi added this to the Code emit project 2023-07-09 11:04:25 +01:00
deavmi added reference research/gmalloc 2023-07-09 11:04:29 +01:00
Author
Owner

See utils/gmalloc @gusmeyer

See `utils/gmalloc` @gusmeyer
deavmi modified the due date from 2023-07-31 to 2023-09-10 2023-07-09 11:06:22 +01:00
deavmi changed title from Utils to Utils: GMallocresearch+POC 2023-07-09 11:42:47 +01:00
deavmi changed title from Utils: GMallocresearch+POC to Utils: GMalloc research+POC 2023-07-09 13:31:45 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

2023-09-10

Dependencies

No dependencies set.

Reference: tlang/tlang#138
No description provided.