Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add defstruct macro #14

Open
wants to merge 79 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 61 commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
557cd27
add write functions for arrays
rutenkolk Oct 4, 2024
f96df71
remove namespaced references
rutenkolk Oct 10, 2024
cf6dff3
add defstruct macro and helper functions
rutenkolk Oct 11, 2024
d04a9f6
copy with-c-layout to mem namespace
rutenkolk Oct 11, 2024
df29b16
remove namespace qualifiers from with-c-layout
rutenkolk Oct 11, 2024
b0cb0f2
add c-layout to struct generation
rutenkolk Oct 11, 2024
8bfc156
add deserialization generation
rutenkolk Oct 11, 2024
c5d18e9
add generate-serialize multimethod
rutenkolk Oct 11, 2024
37b74fc
add serialization generation
rutenkolk Oct 11, 2024
eea1b43
fix nested types serdes
rutenkolk Oct 11, 2024
f702096
fix array handling for defstruct macro
rutenkolk Oct 11, 2024
21c547c
add custom deftype for struct type generation
rutenkolk Oct 12, 2024
53a8435
add pprint impl for struct types
rutenkolk Oct 13, 2024
4f5b9fa
fix seq of new type and remove indirection
rutenkolk Oct 18, 2024
f08fa20
draft of new type generation
rutenkolk Oct 19, 2024
913c004
fix forEach reference
rutenkolk Oct 22, 2024
cf2dece
introduce custom vector iterator
rutenkolk Oct 24, 2024
020e102
add error message for invalid type usage
rutenkolk Oct 24, 2024
b6f1e44
make defstruct robust against dangling and unbound vars
rutenkolk Oct 24, 2024
4c40804
improve error message
rutenkolk Oct 24, 2024
ec418cb
fix map cons
rutenkolk Oct 24, 2024
003a737
fix struct map containsKey
rutenkolk Oct 24, 2024
9404ef4
fix struct assoc
rutenkolk Oct 24, 2024
18679c4
fix struct entryAt
rutenkolk Oct 24, 2024
e5cd228
add map functionaliy test for struct
rutenkolk Oct 24, 2024
fd0f22f
implement java.util.Map and MapEquivalence
rutenkolk Oct 28, 2024
bbd01dc
add equivalence tests
rutenkolk Oct 28, 2024
78164a1
add struct serialization tests
rutenkolk Oct 28, 2024
43acc60
add struct definition and instantiation tests
rutenkolk Oct 28, 2024
8844eef
fix array handling code
rutenkolk Oct 28, 2024
cec1a8a
add tests for structs with array members
rutenkolk Oct 28, 2024
9765ec0
fix strings in defstruct
rutenkolk Oct 28, 2024
8fb300c
fix string deserialization for strings in structs
rutenkolk Oct 28, 2024
a8fca25
add ffi tests with structs
rutenkolk Oct 28, 2024
fc62e1f
remove vector-native struct version
rutenkolk Oct 30, 2024
eef2e56
improve sequences on structs
rutenkolk Oct 30, 2024
68d9108
fix ffi_test
rutenkolk Oct 30, 2024
7ccaad9
add IFN implementation to structs
rutenkolk Oct 30, 2024
63e029d
fix mem test to not create structs in in `are` clauses
rutenkolk Oct 30, 2024
69a99d5
remove nested struct definition tests, as they seem to not find the
rutenkolk Oct 30, 2024
56a0df3
add :raw-arrays? option
rutenkolk Oct 30, 2024
d190873
add raw-arrays struct serde
rutenkolk Oct 30, 2024
2b1d062
add non raw array ffi test
rutenkolk Oct 30, 2024
ff0bd6c
make multimethods hygenic
rutenkolk Dec 8, 2024
86c4f99
add optional :raw? true option for arrays
rutenkolk Dec 12, 2024
87e9bb7
adjust tests to make use of :raw? option in arrays
rutenkolk Dec 12, 2024
bba05c7
improve defstruct doc
rutenkolk Dec 19, 2024
0c84c32
make private with-c-layout implementation behave like the one in
rutenkolk Dec 19, 2024
e648c26
clean up deserializing logic
rutenkolk Dec 19, 2024
f3f156c
add suppoort for native array write functions
rutenkolk Dec 19, 2024
b2cc9e6
remove maplike option from defstruct generation
rutenkolk Dec 20, 2024
d1f54b1
fix defstruct cons implementation for mapentries and respective type
rutenkolk Dec 20, 2024
b03635e
rewrite write array functions to take a length parameter
rutenkolk Dec 20, 2024
0467fe6
add native array read functions
rutenkolk Dec 20, 2024
a358fb6
add array-copy-method var to switch behavior
rutenkolk Dec 21, 2024
7bcdb8c
typehint inline functions
rutenkolk Dec 28, 2024
ab8cc0c
fix write-byte typehint
rutenkolk Dec 29, 2024
18f5699
remove necessity to create array when deserializing
rutenkolk Dec 29, 2024
869e678
refactor array serdes & auto-choose copy methods
rutenkolk Dec 29, 2024
c49dc79
remove array-copy-method
rutenkolk Dec 29, 2024
51dfbc3
fix array serialization
rutenkolk Dec 29, 2024
d763b39
Use a once-only impl rather than with-typehints
IGJoshua Jan 1, 2025
8ea1217
Fix warning about defstruct redefinition
IGJoshua Jan 1, 2025
33e1a95
Remove duplicate c-layout implementation
IGJoshua Jan 2, 2025
78d39b1
Don't use underscore on used args
IGJoshua Jan 2, 2025
cb3e620
fix mangled keyword in coffitype->typename
rutenkolk Jan 2, 2025
10b8baa
refactor multimethod dispatch function to use ffirst
rutenkolk Jan 2, 2025
0dfb6bd
use syntax quoted expression in generate-deserialize implementation f…
rutenkolk Jan 2, 2025
d24ebc7
refactor struct-vec-iterator to camel case
rutenkolk Jan 2, 2025
a6864fd
refactor generate-struct-type to return the form via syntax quote
rutenkolk Jan 2, 2025
e25ad22
fix unmatched parantheses
rutenkolk Jan 2, 2025
d2afb2b
remove bulk deserialization for vectors
rutenkolk Jan 3, 2025
5a9d156
reverse type and fieldname in defstruct definition
rutenkolk Jan 4, 2025
637f156
fix order of type and fieldname for defstruct in tests
rutenkolk Jan 4, 2025
06cd910
remove typename argument from typelist
rutenkolk Jan 4, 2025
1f5efb0
emit serde registration and omit padding from defstruct
rutenkolk Jan 4, 2025
8d29234
move with-c-layout back to layout.clj and load layout namespace from mem
rutenkolk Jan 7, 2025
a6b7ece
remove layout dependency from mem test
rutenkolk Jan 7, 2025
f9784b3
allow global offset to be expression for
rutenkolk Jan 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading