Commit graph

496 commits

Author SHA1 Message Date
Joshua Suskalo
08515095c5 Ensure that the library name is loaded correctly 2021-09-22 18:22:39 -05:00
Joshua Suskalo
7d40e23cc6 Ensure that in tests the module is loaded 2021-09-22 18:22:26 -05:00
Joshua Suskalo
3bd67bbdce Add basic c library for testing 2021-09-22 13:39:02 -05:00
Joshua Suskalo
dcae970332 Move clojure tests to a language subdir 2021-09-22 12:55:27 -05:00
Joshua Suskalo
a1dffc24b0 Remove references to resources in the build file 2021-09-22 12:49:34 -05:00
Joshua Suskalo
86ff96c797 Start function serdes 2021-09-22 11:06:13 -05:00
Joshua Suskalo
9e7aab273e Move java layout to a simple function 2021-09-20 20:12:32 -05:00
Joshua Suskalo
30891c35ab Fix reflection warnings 2021-09-20 20:12:24 -05:00
Joshua Suskalo
4c108b7010 Fix bug where symbol lookup used the wrong kind of method 2021-09-20 20:11:49 -05:00
Joshua Suskalo
331e72079f Move section for static memory access 2021-09-20 20:01:37 -05:00
Joshua Suskalo
a61feaa739 Remove inconsistent spec 2021-09-20 19:53:13 -05:00
Joshua Suskalo
23602dfa18 Add array serdes 2021-09-20 19:41:44 -05:00
Joshua Suskalo
b9afb254fb Add padding serdes to support struct layouts 2021-09-20 19:41:32 -05:00
Joshua Suskalo
b2918936e7 Add struct serdes 2021-09-20 19:41:10 -05:00
Joshua Suskalo
aba236f01c Add functions for sequence views of segments 2021-09-20 19:16:46 -05:00
Joshua Suskalo
33320a6dc2 Add a method to clone a segment 2021-09-20 15:29:35 -05:00
Joshua Suskalo
25a11d4ba0 Deserialize unions by giving a slice of their segment 2021-09-20 15:23:05 -05:00
Joshua Suskalo
317a08abc6 Add support for serde wrappers to data model 2021-09-20 14:32:00 -05:00
Joshua Suskalo
d886213ded Add support for a serde-varargs-factory wrapper 2021-09-20 14:30:04 -05:00
Joshua Suskalo
87f48ec681 Add support for union types 2021-09-20 14:19:14 -05:00
Joshua Suskalo
382f342aa5 Add a function to make a serde wrapper fn 2021-09-20 14:19:14 -05:00
Joshua Suskalo
6014ace2a4 Ensure that the segment is returned in serialize 2021-09-20 12:47:02 -05:00
Joshua Suskalo
f4a4f8ec33 Support looking up symbols in non-system libraries 2021-09-18 17:30:26 -05:00
Joshua Suskalo
0c6b2616e8 Finish docstring for reify-libspec 2021-09-18 17:24:40 -05:00
Joshua Suskalo
1e7ec8ad80 Allow any kind of argument as a type argument 2021-09-18 17:24:40 -05:00
Joshua Suskalo
b584de3e8b
Add TODO for symbol lookup for non-libc symbols 2021-09-17 15:17:18 -05:00
Joshua Suskalo
6cc17f463e Update qsort example 2021-09-17 14:02:06 -05:00
Joshua Suskalo
8159fdebad Allow complex types in native arglists 2021-09-17 14:01:49 -05:00
Joshua Suskalo
b5dd785fe0 Add function to create a library from a spec 2021-09-17 14:01:13 -05:00
Joshua Suskalo
30e549b406 Don't call tostring on serializing c-string 2021-09-17 13:59:58 -05:00
Joshua Suskalo
eeba1711d6 Create data model concept 2021-09-17 13:02:26 -05:00
Joshua Suskalo
3030fc66cb Allow multiple function tails in defcfn 2021-09-17 12:55:38 -05:00
Joshua Suskalo
e8a3c555bb Ensure that the defcfn macro is validated 2021-09-17 12:55:38 -05:00
Joshua Suskalo
ada787a72b Change defcfn to use a fn-tail to allow multiple arity wrappers 2021-09-17 12:55:38 -05:00
Joshua Suskalo
fce3675a4b Add docstrings 2021-09-17 12:55:38 -05:00
Joshua Suskalo
e72d57c10f Create a public varargs factory builder 2021-09-17 12:55:38 -05:00
Joshua Suskalo
dc4013f7d4 Create a public make-downcall function 2021-09-17 12:55:38 -05:00
Joshua Suskalo
0cfe7edb36 Add functions for getting const and variable values from native vars 2021-09-17 12:55:38 -05:00
Joshua Suskalo
c5aa1f26b7 Fix bug in deserialization of pointer types 2021-09-17 12:55:38 -05:00
Joshua Suskalo
f3ee51ea11 Expose find-symbol and allow named 2021-09-17 12:55:38 -05:00
Joshua Suskalo
4215e2a398 Handle null memory addresses in serdes 2021-09-17 12:55:38 -05:00
Joshua Suskalo
595073f84a Ensure all pointers have a primitive type attached 2021-09-17 12:55:38 -05:00
Joshua Suskalo
a22e53002f Add a null address predicate 2021-09-17 12:55:35 -05:00
Joshua Suskalo
ba8c67e8d4 Allow getting the address of more than just memory segments 2021-09-17 10:52:32 -05:00
Joshua Suskalo
75910f0ab3 Add a global resource scope 2021-09-16 16:54:13 -05:00
Joshua Suskalo
0e2fc6f458 Improve default serdes for primitive-adjacent types 2021-09-16 16:35:08 -05:00
Joshua Suskalo
3dcbe3ff2a Add default c-layout and java-layout implementations for primitives 2021-09-16 16:28:21 -05:00
Joshua Suskalo
75951c5019 Allow (::pointer ::int) style types to serde properly 2021-09-16 16:19:15 -05:00
Joshua Suskalo
81bbbf3433 Add all the c-string type stuff together in one place 2021-09-16 16:18:51 -05:00
Joshua Suskalo
6758fdebe1 Fix bug where only lists were allowed as types (which breaks) 2021-09-16 16:15:02 -05:00