Number-to-ByteVector-conversion #44

Merged
affine merged 7 commits from Number-to-ByteVector-conversion into main 2025-12-04 12:09:45 -08:00
Collaborator

Number and ByteVector conversions

Adds the following to isa conversions between data types:

  • NTOBV Number To ByteVector - takes a mutable memory address with a Number and replaces this value with a ByteVector of the same numerical value
  • BVTON ByteVector To Number - takes a mutable memory address with a ByteVector and replaces this value with a Number of the same numerical value as the ByteVector's value

Fixes #43

# Number and ByteVector conversions Adds the following to isa conversions between data types: - `NTOBV` Number To ByteVector - takes a mutable memory address with a Number and replaces this value with a ByteVector of the same numerical value - `BVTON` ByteVector To Number - takes a mutable memory address with a ByteVector and replaces this value with a Number of the same numerical value as the ByteVector's value Fixes #43
Kolby added 3 commits 2025-11-29 23:53:16 -08:00
updated NTOBV and test
Some checks failed
per-push tests / build (pull_request) Successful in 42s
per-push tests / build (pull_request_target) Successful in 48s
per-push tests / test-frontend (pull_request) Successful in 47s
per-push tests / test-utility (pull_request) Successful in 55s
per-push tests / test-backend (pull_request) Failing after 55s
per-push tests / test-frontend (pull_request_target) Successful in 42s
per-push tests / test-utility (pull_request_target) Successful in 45s
per-push tests / test-backend (pull_request_target) Successful in 46s
per-push tests / timed-decomposer-parse (pull_request) Successful in 45s
per-push tests / timed-decomposer-parse (pull_request_target) Successful in 53s
c25a57a92f
Kolby changed title from Number-to-ByteVector-conversion to WIP Number-to-ByteVector-conversion 2025-11-29 23:53:28 -08:00
Kolby reviewed 2025-12-03 07:15:53 -08:00
hyphae/src/vm.rs Outdated
@ -394,0 +398,4 @@
n.0 > u8::MAX.into() || n.0 < 0.0 {
e!("input to NTOBV cannot cleanly convert");
}
Datum::ByteVector(n.0.to_bits().to_ne_bytes().to_vec()).into()
Author
Collaborator

This is what I need to fix

This is what I need to fix
Kolby marked this conversation as resolved
Kolby added 1 commit 2025-12-03 19:26:56 -08:00
WIP: Adding BVTON instruction to convert from ByteVector to Number
Some checks failed
per-push tests / build (pull_request) Failing after 54s
per-push tests / test-frontend (pull_request) Has been skipped
per-push tests / timed-decomposer-parse (pull_request) Has been skipped
per-push tests / test-utility (pull_request) Has been skipped
per-push tests / test-backend (pull_request) Has been skipped
37b21935cc
Kolby added 1 commit 2025-12-04 10:14:11 -08:00
another attempt to make BVTON
Some checks failed
per-push tests / build (pull_request) Failing after 39s
per-push tests / test-frontend (pull_request) Has been skipped
per-push tests / timed-decomposer-parse (pull_request) Has been skipped
per-push tests / test-utility (pull_request) Has been skipped
per-push tests / test-backend (pull_request) Has been skipped
8195d74614
Kolby added 1 commit 2025-12-04 11:40:32 -08:00
updated BVTON
Some checks failed
per-push tests / build (pull_request) Successful in 40s
per-push tests / test-utility (pull_request) Successful in 40s
per-push tests / test-frontend (pull_request) Successful in 42s
per-push tests / test-backend (pull_request) Failing after 40s
per-push tests / timed-decomposer-parse (pull_request) Successful in 40s
c46f9577dd
Kolby added 1 commit 2025-12-04 11:57:57 -08:00
fixed BVTON test
All checks were successful
per-push tests / build (pull_request) Successful in 42s
per-push tests / test-frontend (pull_request) Successful in 50s
per-push tests / test-utility (pull_request) Successful in 50s
per-push tests / test-backend (pull_request) Successful in 45s
per-push tests / timed-decomposer-parse (pull_request) Successful in 47s
d759937b11
Kolby changed title from WIP Number-to-ByteVector-conversion to Number-to-ByteVector-conversion 2025-12-04 12:05:34 -08:00
affine force-pushed Number-to-ByteVector-conversion from d759937b11 to 467e1e7188 2025-12-04 12:07:46 -08:00 Compare
affine merged commit cc60e45fab into main 2025-12-04 12:09:45 -08:00
affine referenced this pull request from a commit 2025-12-04 12:09:45 -08:00
Owner

GOOD JOB!

GOOD JOB!
affine deleted branch Number-to-ByteVector-conversion 2025-12-04 12:09:56 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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: affine/Mycelium#44
No description provided.