ngn/k
19
63
Fork
You've already forked k
17

Add example of registering foreign functions into the REPL. Make link options easier to modify. #33

Merged
ngn merged 1 commit from growler/k:master into master 2022年09月12日 09:11:45 +02:00
Collaborator
Copy link

I reworked x/embed/a.c slightly to make it easier to repurpose for building a shared library that can be dynamically loaded into the REPL. I also added a readme.txt with some caveats but stopped short of a full tutorial. I can add more if you think it's a good idea.

Also, I didn't include it here, but I made a pretty trivial Dockerfile to build this on linux. (My desktop is a Mac.) If linux is the only officially supported platform it might be nice to have an official build of it. The Dockerfile I have builds k-libc because that's what I could get working.

I reworked x/embed/a.c slightly to make it easier to repurpose for building a shared library that can be dynamically loaded into the REPL. I also added a readme.txt with some caveats but stopped short of a full tutorial. I can add more if you think it's a good idea. Also, I didn't include it here, but I made a pretty trivial Dockerfile to build this on linux. (My desktop is a Mac.) If linux is the only officially supported platform it might be nice to have an official build of it. The Dockerfile I have builds k-libc because that's what I could get working.
Author
Collaborator
Copy link

Maybe I'll just write a blog post with the details.

Maybe I'll just write a blog post with the details.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ngn/k!33
Reference in a new issue
ngn/k
No description provided.
Delete branch "growler/k:master"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?