Commit Graph

6 Commits

Author SHA1 Message Date
Edward Amsden
14124d804e
fix build error in assert_no_alloc (#284) 2024-11-21 17:32:15 -06:00
Edward Amsden
bd27200ef3
NockStack: explicitly catch OOM (#283)
* Dropping sword guard

alloc_would_oom, guarding alloc now

stack push_east/push_west

Fixed cue_pill benchmark

frame_push, preserve, purging unused Result warnings

Test cleanup, tests for stack push and frame push

slot_pointer and alloc in previous frame, not working correctly yet

Slot pointer and slots available checks

test_prev_alloc seems to be fixed now

Updating TODO: comments

Fix stash push in PC

interpreter: convert AllocationError to NonDeterministic(Mote::Meme, _)

delete serf and PMA

Use with_frame() instead of frame_push()/frame_pop() everywhere except interpret()

Fix AllocPreviousFrame case of OOM check and add FlipTopFrame case

Co-authored-by: Edward Amsden <edward@blackriversoft.com>

* sundry fixes to alloc_would_oom_ and nounlist roundtrips

* proper direction in prev_alloc oom check

* delete guard.rs

---------

Co-authored-by: Chris Allen <cma@bitemyapp.com>
2024-11-21 16:53:05 -06:00
Chris A.
f740d85336
Nounable, Cold state (#276)
* Nounable, Cold state

* Down with the foomty

* Update rust/sword/src/jets/cold.rs

Co-authored-by: Edward Amsden <edward@blackriversoft.com>

* Update rust/sword/src/jets/cold.rs

Co-authored-by: Edward Amsden <edward@blackriversoft.com>

* Update rust/sword/src/jets/cold.rs

Co-authored-by: Edward Amsden <edward@blackriversoft.com>

* Update rust/sword/src/jets/cold.rs

Co-authored-by: Edward Amsden <edward@blackriversoft.com>

* Update rust/sword/src/jets/cold.rs

Co-authored-by: Edward Amsden <edward@blackriversoft.com>

* Update rust/sword/src/jets/cold.rs

Co-authored-by: Edward Amsden <edward@blackriversoft.com>

---------

Co-authored-by: Edward Amsden <edward@blackriversoft.com>
2024-10-17 13:51:09 -05:00
Chris A.
0950ba65af
Hamt Iterator (#271)
* Hamt Iterator

* Hamt Iterator return key-value pairs, test clean-up

* Update rust/sword/src/hamt.rs

Co-authored-by: Jonathan Paprocki <51337059+drbeefsupreme@users.noreply.github.com>

* Collision repro, hamt doesnt return sibling

* fix hamt insert() (#272)

* TinyVec, fixing collision handling for Hamsterator

* Convert Hamsterator to slices

---------

Co-authored-by: Jonathan Paprocki <51337059+drbeefsupreme@users.noreply.github.com>
2024-10-09 14:44:13 -05:00
Edward Amsden
058a44a11f
Cue: don't panic! (#262) 2024-10-04 17:17:06 -05:00
Edward Amsden
a7005c7049 Ares -> Sword (#12)
* Update README.md

* Rename ares -> sword

* Workspace

* Cargo-only CI
2024-08-22 10:46:38 -05:00