Commit Graph

1292 Commits

Author SHA1 Message Date
Chris A.
980533198b
Update nightly, fix cue_pill benchmark, fix CI/CD (#289)
* Update nightly, fix cue_pill benchmark, fix CI/CD

* Fix layout warning, temporarily disable tests until we can fix ibig
2024-12-11 18:19:00 -06:00
Chris A.
92fa0f864b
UB fixes (#287)
Validating Cell construction with NockStack
Use the active fork, memmap2
2024-12-11 10:48:41 -06:00
Edward Amsden
f9915a75ea
Sword OOM round 2: PANIC! in alloc_would_oom_ (#286)
* Revert "fix build error in assert_no_alloc (#284)"

This reverts commit 14124d804e.

* Revert "NockStack: explicitly catch OOM (#283)"

This reverts commit bd27200ef3.

* Panic instead of Result for OOM

* panic_any, don't use expect

* Buh-bye to PMA + guard

* fix tests

---------

Co-authored-by: Chris Allen <cma@bitemyapp.com>
2024-11-26 19:18:39 -06:00
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
~litlep-nibbyt
29cc8d897c
cold.rs clean-up, fixes to cold state into_noun and tests (#282) 2024-10-30 18:16:14 -05:00
~litlep-nibbyt
8ece38e8af
Cold: add from_vecs, into_noun tuple reordering (#279)
* add from_tuple

* cargo fmt

* fix into_noun tuple ordering for cold

* rm comments
2024-10-24 13:56:25 -05:00
Edward Amsden
9602e85b35
Save cache HAMT in context snapshot (#278) 2024-10-23 08:31:58 -05:00
~litlep-nibbyt
b4de20e9c0
clean up of Cold Nounable PR (#277)
* remove cold into_noun prints

* deref the reference
2024-10-21 18:47:24 -05: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
Edward Amsden
92f4f40cf7
hot state: add entries for hoon k.138 (#274) 2024-10-12 08:22:28 -05:00
Edward Amsden
058a05c8f7
mook: re-enable stack traces for %mean hints (#273)
Co-authored-by: Alex Shelkovnykov <a@ashelkov.com>
2024-10-11 11:34:54 -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
~litlep-nibbyt
299292a876
snag and roll jets (#269)
* snag

* roll and call site caching logic

* site: propagate errors

* interpreter: use flog for string interpolation

* yak shaving, reorder jets alphabetically

* jets: flip sample in snag tests
2024-09-20 19:47:43 -05:00
~litlep-nibbyt
74fad40bdc
snip and sew jets (#267)
* jet: snip

* jet: move can into util

* sew wip

* sew works on a test case

* checkpoint

* checkpoint works

* clean up and test cases

* bloq16 -> D(2)

* snip: set tail

* address comments

* snip: add case for empty list

* remove format
2024-09-18 10:06:18 -05:00
Edward Amsden
47f88d1955
mug: expose helpers (#268) 2024-09-16 20:44:13 -05:00
tacryt-socryp
5045ab0d0f
Update README.md 2024-09-06 13:39:22 -05:00
Edward Amsden
eb4b5132a7
Merge pull request #261 from zorp-corp/ea/fix-cold-persist
hamt: don't try to copy 0-length stem buffers
2024-08-27 16:46:03 -05:00
Edward Amsden
1cc55307c6 hamt: don't try to copy 0-length stem buffers 2024-08-27 16:42:50 -05:00
Edward Amsden
3860ff021d
Merge pull request #260 from zorp-corp/ea/dirty-mugging
dirty pma before setting noun metadata
2024-08-27 15:43:47 -05:00
Edward Amsden
668b8f3ff0 dirty pma before setting noun metadata 2024-08-27 15:41:09 -05:00
Edward Amsden
ea842ec171
Merge pull request #257 from zorp-corp/ea/vendor-murmur3
Re-vendor murmur3 into sword repo
2024-08-26 13:39:52 -05:00
Edward Amsden
520366439a Add murmur3, murmur3-sys to workspace 2024-08-26 13:26:38 -05:00
Edward Amsden
615f32d65c Re-vendor murmur3 into sword repo 2024-08-26 13:26:38 -05:00
Edward Amsden
0f078aec40
Merge pull request #258 from zorp-corp/ea/return
Re-enable turn
2024-08-26 12:54:03 -05:00
Edward Amsden
2644c9cfc0 Revert "disable turn"
This reverts commit e87ef04275.
2024-08-26 12:48:31 -05:00
Edward Amsden
751b6f95ac
Merge pull request #256 from zorp-corp/ea/hint_dont
interpret: add %dont hint to bail-fail, for catching jet misses
2024-08-23 20:43:30 -05:00
Edward Amsden
6ac9b164ed interpret: add %dont hint to bail-fail, for catching jet misses 2024-08-23 20:35:46 -05:00
Edward Amsden
df03a242b3
Merge pull request #253 from zorp-corp/tacryt-socryp-patch-1
Update DEVELOPERS.md
2024-08-22 14:13:52 -05:00
Edward Amsden
39d60657ed
Merge pull request #254 from zorp-corp/tacryt-socryp-patch-2
Update LICENSE
2024-08-22 14:13:06 -05:00
tacryt-socryp
d766b75a79
Update LICENSE 2024-08-22 14:08:08 -05:00
tacryt-socryp
66ecc499b8
Update DEVELOPERS.md 2024-08-22 14:07:29 -05:00
Edward Amsden
cd3e90bbd1
Merge pull request #252 from zorp-corp/la/dev-docs
DEVELOPERS: update the removal of references to Nix and old Urbit code
2024-08-22 13:27:03 -05:00
tacryt-socryp
c16fec801e DEVELOPERS: update the removal of references to Nix and old Urbit code 2024-08-22 12:26:12 -05:00
Edward Amsden
8bcbf4a9a8
Merge pull request #251 from zorp-corp/initial-zorp-upstream
Initial zorp upstream
2024-08-22 11:24:12 -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
Edward Amsden
f2f63a9344 add jet for +trip (#11) 2024-08-22 10:45:35 -05:00
Edward Amsden
59478b0eb8 Make interpret() generic over slogger (#10)
* newt: slogger trait

* make interpret() generic over Slogger trait

* impl Slogger for pin recurses

* What if we asked for Unpin

* format

* clean up hanging commented code

* fix warnings

---------

Co-authored-by: Chris Allen <cma@bitemyapp.com>
2024-08-22 10:45:35 -05:00
litlep-nibbyt
e87ef04275 disable turn 2024-08-22 10:45:35 -05:00
Edward Amsden
9841143d0c Make noun::Error an instance of std::error::Error 2024-08-22 10:45:35 -05:00
ryjm
f04dacdac3 formatting 2024-08-22 10:45:35 -05:00
ryjm
d957982e5a new_from_files 2024-08-22 10:45:35 -05:00
Chris Allen
db30cf9208 Fixing lints and build errors 2024-08-22 10:45:35 -05:00
Chris Allen
7357521682 Fixing warnings 2024-08-22 10:45:35 -05:00
Chris Allen
717668315f Pin last working version of cc for ares_guard build.rs 2024-08-22 10:45:35 -05:00
litlep-nibbyt
a64f193d08 appease format checker 2024-08-22 10:45:35 -05:00
litlep-nibbyt
396a00e222 newt.rs: remove commented out code 2024-08-22 10:45:35 -05:00
litlep-nibbyt
a6c008d1d8 newt.rs: changed new_mock output file to allow writes 2024-08-22 10:45:35 -05:00
Edward Amsden
defff0f798
Update README.md 2024-08-21 12:34:00 -05:00