sashakoshka
|
56c376cd4e
|
tape: Decode OTAs into any, and allow assignment of SBA/LBA to string
|
2025-10-12 11:17:41 -04:00 |
|
sashakoshka
|
19f02d6137
|
tape: Implement setString
|
2025-10-12 10:43:04 -04:00 |
|
sashakoshka
|
7df18f7d26
|
tape: Assorted changes i forgor
|
2025-09-26 00:20:53 -04:00 |
|
sashakoshka
|
84b96ed8f3
|
Add /debug to .gitignore
|
2025-09-26 00:20:44 -04:00 |
|
sashakoshka
|
85a66a3e70
|
tape: Create test to ensure DecodeAnyInto can receive a pointer to any
|
2025-09-10 10:21:29 -04:00 |
|
sashakoshka
|
81391ef101
|
testutil: Print <invalid> instead of crashing on invalid value
|
2025-09-10 10:20:44 -04:00 |
|
sashakoshka
|
92040a1bc4
|
generate: Implement encoding and decoding of Any type
|
2025-09-10 09:45:25 -04:00 |
|
sashakoshka
|
1bb565c6fe
|
generate: Write tests for Any type
|
2025-09-10 09:45:09 -04:00 |
|
sashakoshka
|
c4ab60515b
|
tape: Test that floating point values can be decoded dynamically
|
2025-09-08 21:39:50 -04:00 |
|
sashakoshka
|
8b0915dff1
|
tape: Test that floating point values can be dynamically encoded
|
2025-09-08 21:37:39 -04:00 |
|
sashakoshka
|
785b48085d
|
tape: Dynamically encode floating point values
|
2025-09-08 18:24:21 -04:00 |
|
sashakoshka
|
419c3651bf
|
generate: Add Any type to parser and syntax tree
|
2025-09-08 09:58:50 -04:00 |
|
sashakoshka
|
8dac25035f
|
generate: Use DecodeAnyInto in generated code
|
2025-09-08 09:47:37 -04:00 |
|
sashakoshka
|
b7bdaba694
|
tape: Split DecodeAny into two funcs, one autocreates skeleton value
|
2025-09-08 09:42:39 -04:00 |
|
sashakoshka
|
45dfdb255e
|
design: Add Any type to PDL language document
|
2025-09-07 23:46:22 -04:00 |
|
sashakoshka
|
5b1448be3e
|
Merge pull request 'message-size-increase' (#3) from message-size-increase into main
Reviewed-on: #3
|
2025-09-07 19:27:33 -06:00 |
|
sashakoshka
|
12fbfa6293
|
hopp: Add SetDeadline methods to Conn and Trans
|
2025-09-05 18:48:12 -04:00 |
|
sashakoshka
|
44fb561758
|
generate: Safely cast in the static decoder
|
2025-08-29 12:21:10 -04:00 |
|
sashakoshka
|
04c352fad6
|
tape: Safely cast when dynamically encoding/decoding
|
2025-08-29 12:03:39 -04:00 |
|
sashakoshka
|
0ea7e222cc
|
generate: Respect limits when statically decoding
|
2025-08-28 12:53:58 -04:00 |
|
sashakoshka
|
ae79a32309
|
generate: Respect limits when statically encoding
|
2025-08-28 12:51:55 -04:00 |
|
sashakoshka
|
e28ab4dc6b
|
tape: Respect limits when dynamically decoding
|
2025-08-28 12:31:49 -04:00 |
|
sashakoshka
|
80161b37f7
|
tape: Respect limits when dynamically encoding
Still need: dynamic decoding, static decoding, static encoding
|
2025-08-28 09:31:33 -04:00 |
|
sashakoshka
|
9d40b81e00
|
tape: Add limits to the API
|
2025-08-28 09:31:14 -04:00 |
|
sashakoshka
|
80c7d25c73
|
hopp: Clarify documentation for Conn.SetSizeLimit
|
2025-08-28 09:03:27 -04:00 |
|
sashakoshka
|
743a5d4ae0
|
generate: Fix float encoding
|
2025-08-27 22:59:01 -04:00 |
|
sashakoshka
|
ea17e354a3
|
cmd/hopp-generate: Update generate command
|
2025-08-27 22:54:43 -04:00 |
|
sashakoshka
|
4dc8a30ebd
|
generate: Don't hardcode filename as test.pdl in errors
|
2025-08-27 22:54:18 -04:00 |
|
sashakoshka
|
15c5f0b2b8
|
generate: More fixes for TestGenerateRunDecodeWrongType
|
2025-08-27 22:22:00 -04:00 |
|
sashakoshka
|
087b6b6690
|
generate: Fix problems with TestGenerateRunDecodeWrongType
|
2025-08-27 18:33:55 -04:00 |
|
sashakoshka
|
77bfc45fea
|
generate: Cast strings and buffers when decoding
|
2025-08-27 14:55:10 -04:00 |
|
sashakoshka
|
de6099fadc
|
generate: cast integers when decoding
|
2025-08-27 00:43:10 -04:00 |
|
sashakoshka
|
0097dbeedd
|
generate: cast certain types when encoding
|
2025-08-26 06:17:43 -04:00 |
|
sashakoshka
|
2db7ff88c2
|
generate: Import the wrong type test from the dynamic encoder/decoder
|
2025-08-22 06:10:17 -04:00 |
|
sashakoshka
|
4fd15c79a4
|
generate: Cause MessagePulse test case to pass (float was too precise)
|
2025-08-21 18:24:44 -04:00 |
|
sashakoshka
|
d6f6a3485c
|
generate: Run encoder output through decoder in tests
|
2025-08-21 06:25:55 -04:00 |
|
sashakoshka
|
5d0b95d59a
|
generate: Fix comparisons in generated canAssign function
|
2025-08-20 15:21:45 -04:00 |
|
sashakoshka
|
756bc79c16
|
hopp: Point METADAPT implementations at new decoding functions
|
2025-08-20 14:27:46 -04:00 |
|
sashakoshka
|
a59870cc69
|
hopp: Delete message.go
|
2025-08-20 14:27:38 -04:00 |
|
sashakoshka
|
782472aa8f
|
hopp: Bring some old decoding/encoding functions that worked on []byte back
|
2025-08-20 14:27:03 -04:00 |
|
sashakoshka
|
52aa07a98f
|
generate: Add TestGenerateRunDecode
|
2025-08-20 12:59:10 -04:00 |
|
sashakoshka
|
94041f2abc
|
generate: Significantly improve testGenerateRun
|
2025-08-20 12:43:47 -04:00 |
|
sashakoshka
|
423f547da3
|
testutil: Add Flatten method to Snake
|
2025-08-20 12:42:54 -04:00 |
|
sashakoshka
|
9278bdcb43
|
generate: Add decoder test function to testGenerateRun
|
2025-08-20 12:09:54 -04:00 |
|
sashakoshka
|
0acf44886a
|
generate: Clean up generate_test.go
|
2025-08-20 12:05:37 -04:00 |
|
sashakoshka
|
a4da33536c
|
tape: Utilize skimming in the dynamic decoder
|
2025-08-18 22:26:53 -04:00 |
|
sashakoshka
|
2180d29615
|
tape: Implement Skim function
|
2025-08-12 12:29:50 -04:00 |
|
sashakoshka
|
2209763666
|
tape: Write test for Skim function
|
2025-08-12 12:29:28 -04:00 |
|
sashakoshka
|
96c8d7924f
|
tape: Test that integers of a user-defined type can be encoded
|
2025-08-12 08:21:19 -04:00 |
|
sashakoshka
|
fdf0aa89a4
|
tape: Use reflection when encoding integers
|
2025-08-12 08:16:34 -04:00 |
|
sashakoshka
|
1bded9852d
|
tape: Dynamic tests put out more information
|
2025-08-12 08:16:21 -04:00 |
|
sashakoshka
|
8beb9de256
|
Merge pull request 'encode-signedness' (#13) from encode-signedness into message-size-increase
Reviewed-on: #13
|
2025-08-11 19:10:56 -06:00 |
|
sashakoshka
|
dc72cc2010
|
generate: Support LSI tags
|
2025-08-11 20:59:20 -04:00 |
|
sashakoshka
|
0e03f84b8a
|
generate: Update tests with new TNs
|
2025-08-11 20:59:10 -04:00 |
|
sashakoshka
|
02196edf61
|
design: Change tag for signed PDL integers
|
2025-08-11 20:10:03 -04:00 |
|
sashakoshka
|
1058615f6f
|
tape: Do something when receiving an LSI tag
|
2025-08-11 18:40:56 -04:00 |
|
sashakoshka
|
024edfa922
|
tape: Actually test decoding lol
|
2025-08-11 18:39:38 -04:00 |
|
sashakoshka
|
fe973af99c
|
tape: Test dynamic encoding and decoding of signed integers
|
2025-08-10 23:28:43 -04:00 |
|
sashakoshka
|
52f0d6932e
|
tape: Add encoding and decoding of signed integers
|
2025-08-10 23:28:25 -04:00 |
|
sashakoshka
|
8e14a2c3f1
|
tape: Add LSI to Tag constants
|
2025-08-07 21:14:40 -04:00 |
|
sashakoshka
|
4fbb70081a
|
generate: Finish test sub-case for MessageNestedArray
|
2025-08-06 22:15:22 -04:00 |
|
sashakoshka
|
a108e53cb6
|
Merge pull request 'branched-generated-encoder' (#9) from branched-generated-encoder into message-size-increase
Reviewed-on: #9
|
2025-08-06 19:11:08 -06:00 |
|
sashakoshka
|
57c30ac669
|
generate: Generator compiles
|
2025-08-06 20:19:31 -04:00 |
|
sashakoshka
|
a270c22cb9
|
generate: The generics idea didn't work, use type names instead
|
2025-08-06 19:39:41 -04:00 |
|
sashakoshka
|
a99d4dee66
|
generate: Fix no return statement, unused variables
|
2025-08-06 19:07:57 -04:00 |
|
sashakoshka
|
c18e251b4a
|
generate: Convert int64 to int to satisfy range
This is a stupid fucking restriction
|
2025-08-06 18:58:54 -04:00 |
|
sashakoshka
|
170f79c914
|
generate: Fix bad variable names
|
2025-08-06 18:48:17 -04:00 |
|
sashakoshka
|
77c6b67d65
|
generate: Break line after continue statements
|
2025-08-06 18:41:37 -04:00 |
|
sashakoshka
|
195d0f9725
|
generate: Pass decoder to branch functions
|
2025-08-06 18:40:28 -04:00 |
|
sashakoshka
|
fa4f591126
|
generate: make branch functions generic, take in ~ of base type
|
2025-08-06 18:38:30 -04:00 |
|
sashakoshka
|
12142706e1
|
generate: Fix syntax and formatting errors
|
2025-08-06 17:59:26 -04:00 |
|
sashakoshka
|
30e9ead1ab
|
generate: Do the same for <user-type>.Decode
|
2025-08-06 17:27:04 -04:00 |
|
sashakoshka
|
1118b11bcd
|
generate: Properly check assignment within <message>.Decode
|
2025-08-06 17:24:51 -04:00 |
|
sashakoshka
|
7343cf5853
|
generate: Fix array element tag variable
|
2025-08-06 17:03:58 -04:00 |
|
sashakoshka
|
a9f583d2e7
|
generate: Validate OTA tags properly
|
2025-08-06 17:02:33 -04:00 |
|
sashakoshka
|
c4dd129fc5
|
generate: Decode tables (but don't validate their length yet)
|
2025-08-06 17:00:39 -04:00 |
|
sashakoshka
|
2cbf58d558
|
generate: Decode arrays (but don't validate their length yet)
|
2025-08-05 06:22:27 -04:00 |
|
sashakoshka
|
7dcfc08678
|
generate: Add "stub" for actually generating branch functions
|
2025-08-04 16:01:50 -04:00 |
|
sashakoshka
|
711ac30486
|
generate: Add branch decode function request queue
|
2025-08-04 12:26:16 -04:00 |
|
sashakoshka
|
b15c3aa76c
|
generate: Implement Generator.generateDecodeBranch
|
2025-08-04 09:36:52 -04:00 |
|
sashakoshka
|
a1bfae443c
|
design: Add paragraph about how we need a skimming function in tape
|
2025-08-03 22:28:06 -04:00 |
|
sashakoshka
|
df3fe1280d
|
generate: Remove abort parameter
|
2025-08-03 22:27:14 -04:00 |
|
sashakoshka
|
41b3376fa3
|
generate: Add Generator.generateDecodeBranch stub
|
2025-08-03 22:19:06 -04:00 |
|
sashakoshka
|
fae702edfd
|
generate: Add String functions, TypeHash function for types
|
2025-08-03 22:07:31 -04:00 |
|
sashakoshka
|
c86f9b03f2
|
generated: Remove unneeded code
|
2025-08-03 21:00:24 -04:00 |
|
sashakoshka
|
dcbfbe9141
|
design: Import issue from Tebitea (it is down)
|
2025-08-03 20:59:59 -04:00 |
|
sashakoshka
|
40444ee2f4
|
generate: Add TODOs about a big problem...
|
2025-07-25 21:01:48 -04:00 |
|
sashakoshka
|
59cc90166f
|
generate: WIP test of nested arrays
|
2025-07-25 21:01:23 -04:00 |
|
sashakoshka
|
f222fb02b7
|
generate: Gracefully discard unexpected data while decoding
|
2025-07-22 20:20:47 -04:00 |
|
sashakoshka
|
6ecc33a46b
|
generate: Fix TestGenerateRun when testing numbers
|
2025-07-21 16:51:33 -04:00 |
|
sashakoshka
|
5d84636b55
|
tape: Add functions to encode and decode float16
|
2025-07-21 15:58:32 -04:00 |
|
sashakoshka
|
f009a970cd
|
generate: Fix another syntax error when reading floats
|
2025-07-21 15:00:57 -04:00 |
|
sashakoshka
|
8b63166ba1
|
generate: Test encoding floating point values
|
2025-07-21 14:57:34 -04:00 |
|
sashakoshka
|
3ef7de118b
|
generate: Fix syntax error when reading floats
|
2025-07-21 14:56:58 -04:00 |
|
sashakoshka
|
51ed6aed9f
|
generate: Fix TestGenerateRun so it snakes around User tables
|
2025-07-21 14:32:33 -04:00 |
|
sashakoshka
|
6017ac1fa3
|
generate: Encode SI properly
|
2025-07-21 14:11:40 -04:00 |
|
sashakoshka
|
b8047585fb
|
generate: Test integer encoding
|
2025-07-21 14:10:34 -04:00 |
|
sashakoshka
|
ad3973dd9e
|
generate: Test array encoding
|
2025-07-20 23:21:59 -04:00 |
|
sashakoshka
|
0f626b2e93
|
generate: Fix array encoding not writing length or item tag properly
|
2025-07-20 23:19:21 -04:00 |
|
sashakoshka
|
272e47224d
|
generate: Make output of testGenerateRun easier to compare
|
2025-07-20 23:18:36 -04:00 |
|