Commit graph

548 commits

Author SHA1 Message Date
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
Joshua Suskalo
1c5fbff3dd Fix bug relying on old behavior of c-layout for serialize-into 2021-09-16 16:01:33 -05:00
Joshua Suskalo
fb6dfe69d2 Add function for arbitrary type data to go with base type 2021-09-16 15:51:53 -05:00
Joshua Suskalo
1461dbcf81 Optimize the output of defcfn slightly 2021-09-16 15:51:42 -05:00
Joshua Suskalo
6dd90d279c Move seq-of def 2021-09-16 15:14:33 -05:00
Joshua Suskalo
e3292bdff4 Remove example macroexpansion 2021-09-16 15:14:24 -05:00
Joshua Suskalo
d05b5596f8 Add an optional attribute map to defcfn 2021-09-16 15:14:11 -05:00
Joshua Suskalo
d6d9ac316c Remove reflection warning on scopes 2021-09-16 15:13:58 -05:00
Joshua Suskalo
6bd5c6c05a Generate JVM bytecode for the invokers 2021-09-16 15:07:48 -05:00
Joshua Suskalo
b1311429be Deserialize void 2021-09-16 15:07:31 -05:00
Joshua Suskalo
2d60e27e07 Add void as a primitive type 2021-09-16 15:06:49 -05:00
Joshua Suskalo
3456ec52a5 Add example call with invokeExact 2021-09-16 14:10:58 -05:00
Joshua Suskalo
6801c7735e Implement the macro in terms of invokeWithArguments 2021-09-16 14:10:28 -05:00
Joshua Suskalo
9aa608a254 Allow any named type for the symbol name 2021-09-16 14:10:07 -05:00
Joshua Suskalo
268e1cb598 Ensure that arglists are quoted in the resulting code 2021-09-16 14:09:54 -05:00
Joshua Suskalo
db9f3b5209 Return nil if find-symbol fails 2021-09-16 14:09:29 -05:00
Joshua Suskalo
8cd93eaf8e Add nodisassemble as a dev dependency, and move modules there too 2021-09-16 09:41:09 -05:00
Joshua Suskalo
5d9b874c26 Ensure that the java layout is set for method types 2021-09-16 09:40:40 -05:00
Joshua Suskalo
5886f3203d Ensure that ::c-string has layouts specified 2021-09-16 09:40:32 -05:00
Joshua Suskalo
1d09275ba4 Add todo for the macro 2021-09-15 21:33:16 -05:00
Joshua Suskalo
4a6cf4075e Ensure that there's no reflection on deserializing a string 2021-09-15 21:33:05 -05:00
Joshua Suskalo
bf611f3106 Add general serialization function 2021-09-15 21:32:47 -05:00
Joshua Suskalo
375d016254 Actually serialize based on type 2021-09-15 21:32:22 -05:00
Joshua Suskalo
4b2c2cda0d Fix docstring 2021-09-15 21:32:16 -05:00
Joshua Suskalo
d461aa3300 Add the implicit scope constructor 2021-09-15 21:32:12 -05:00
Joshua Suskalo
b69c11697b WIP 2021-09-15 18:15:00 -05:00
Joshua Suskalo
0c040e3a73 Update serialize and deserialize for primitive types 2021-09-15 16:53:29 -05:00
Joshua Suskalo
c5df70ac1a Make examples use scopes 2021-09-15 12:47:06 -05:00
Joshua Suskalo
a568c1c5d6 Update example to use new address manipulation 2021-09-15 12:43:18 -05:00
Joshua Suskalo
3dd9571d24 Add functions for manipulating addresses 2021-09-15 12:43:08 -05:00
Joshua Suskalo
e626cbf40b Fix reflection warnings in allocateNative 2021-09-15 12:41:36 -05:00
Joshua Suskalo
181db81dd6 Give names to the type in size-of 2021-09-15 12:40:57 -05:00
Joshua Suskalo
7ec625c955 Add deserialize implementations 2021-09-15 12:40:48 -05:00
Joshua Suskalo
8b84fa6afe Make deserialize -> friendly 2021-09-15 12:40:34 -05:00
Joshua Suskalo
ca38133b06 Add basic serialize implementations 2021-09-15 12:40:08 -05:00
Joshua Suskalo
25bbd24339 Update to allow use of restricted functions in dev 2021-09-15 12:16:33 -05:00
Joshua Suskalo
9f96e7b7c8 Add scope definition functions 2021-09-15 12:16:20 -05:00
Joshua Suskalo
0622f9248c Reorder object and type in serialize for -> compat 2021-09-15 12:16:01 -05:00
Joshua Suskalo
138786b69e Change ::integer to ::int 2021-09-15 12:15:24 -05:00
Joshua Suskalo
ce29d1e9ee Fix clj-kondo warnings 2021-09-15 12:15:04 -05:00
Joshua Suskalo
ae99c534c2 Remove ffi/ qualifier from keywords in example 2021-09-15 11:11:21 -05:00
Joshua Suskalo
5eec39791e Import required classes from java 17 2021-09-15 11:11:09 -05:00
Joshua Suskalo
d687b0902b Add example syntax for using defcfun 2021-09-15 09:59:20 -05:00
Joshua Suskalo
ab61830442 Add starting functions for basic api 2021-09-15 09:59:20 -05:00
Joshua Suskalo
af00bee4ce Ensure that the incubator module is loaded 2021-09-15 09:59:20 -05:00
Joshua Suskalo
1e997b7b5f Update changelog for new base 2021-09-14 16:35:24 -05:00
Joshua Suskalo
16f56bc31d Initial commit 2021-09-14 16:29:41 -05:00