lolcathost
Hey! I'm a hobbyist Rust and C developer, as well as being yet another outspoken anti-systemd FUD spreader. I've created dozens of completely pointless utilities of which I am the sole user. I love concatenative stack-based languages, vicious space bunnies, and minimalism.
From Kiëd Llaentenn to ~rabbits/uxn
Thank you for the criticisms, I went ahead and spent an hour or so changing DAMPE to use .System/expansion commands. I think I prefer this method. I could have left priv-enter/priv-exit as using .System/debug, since they don't have arguments, but I think it's best to maintain consistency. Thus, they all use expansion commands. The expansion command is as follows: NAME ID FIELDS backtrace 0x40 n/a protect 0x41 ptr* len* unprotect 0x42 ptr*
From Kiëd Llaentenn to ~rabbits/uxn
Hello all, I'd like to propose an optional extension for development-focused emulators to implement. The purpose is to ease development by adding functionality to the System port for protecting memory, printing backtraces, and the like. It hinges on the .System/debug port, adding several magic bytes that, when received, trigger certain functionality. Here are the operations that are currently implemented in Bureaucrat (a Uxn language+emulator that I've been working on for a bit): - 0x40 .System/debug DEO: Prints a backtrace to stdout, iterating over
From Kiëd Llaentenn to ~sircmpwn/hare-dev
Signed-off-by: Kiëd Llaentenn <kiedtl@tilde.team> --- hash/crc32/crc32.ha | 1 - scripts/gen-stdlib | 2 +- stdlib.mk | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hash/crc32/crc32.ha b/hash/crc32/crc32.ha index 5bf2d42..c07ac5e 100644 --- a/hash/crc32/crc32.ha +++ b/hash/crc32/crc32.ha @@ -2,7 +2,6 @@ use endian; use hash; use io; [message trimmed]
From Kiëd Llaentenn to ~sircmpwn/hare-dev
--- hash/crc32/crc32.ha | 1 - scripts/gen-stdlib | 2 +- stdlib.mk | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hash/crc32/crc32.ha b/hash/crc32/crc32.ha index 5bf2d42..c07ac5e 100644 --- a/hash/crc32/crc32.ha +++ b/hash/crc32/crc32.ha @@ -2,7 +2,6 @@ use endian; use hash; use io; use strings; [message trimmed]
From Kiëd Llaentenn to ~sircmpwn/hare-dev
Signed-off-by: Kiëd Llaentenn <kiedtl@tilde.team> --- hash/crc64/README | 1 + hash/crc64/crc64.ha | 300 ++++++++++++++++++++++++++++++++++++++++++++ scripts/gen-stdlib | 7 ++ stdlib.mk | 26 ++++ 4 files changed, 334 insertions(+) create mode 100644 hash/crc64/README create mode 100644 hash/crc64/crc64.ha diff --git a/hash/crc64/README b/hash/crc64/README new file mode 100644 index 0000000..b882246 --- /dev/null [message trimmed]
From Kiëd Llaentenn to ~sircmpwn/hare-dev
Signed-off-by: Kiëd Llaentenn <kiedtl@tilde.team> --- hash/crc32/crc32.ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hash/crc32/crc32.ha b/hash/crc32/crc32.ha index 8ca0afc..5bf2d42 100644 --- a/hash/crc32/crc32.ha +++ b/hash/crc32/crc32.ha @@ -7,7 +7,7 @@ use fmt; // The size, in bytes, of a CRC-32 checksum. export def SIZE: size = 4; // IEEE polynomial for CRC-32. Used in ethernet, SATA, MPEG-2, gzip, bsip2,[message trimmed]
From Kiëd Llaentenn to ~sircmpwn/hare-dev
Signed-off-by: Kiëd Llaentenn <kiedtl@tilde.team> --- hash/crc16/crc16.ha | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hash/crc16/crc16.ha b/hash/crc16/crc16.ha index ea05074..4de1e5a 100644 --- a/hash/crc16/crc16.ha +++ b/hash/crc16/crc16.ha @@ -180,7 +180,7 @@ type state = struct { // Creates a [[hash::hash]] which computes the CRC-16 algorithm. // // It takes a table of memoized values for a given polynomail (for example, // [[IEEE_TABLE]], [[CASTAGNOLI_TABLE]], or [[KOOPMAN_TABLE]]); a table for a[message trimmed]
From Kiëd Llaentenn to ~sircmpwn/hare-dev
Signed-off-by: Kiëd Llaentenn <kiedtl@tilde.team> --- v2: - Attribute quote authors in test. - Remove stray blank line after test strings. hash/crc16/README | 1 + hash/crc16/crc16.ha | 281 ++++++++++++++++++++++++++++++++++++++++++++ scripts/gen-stdlib | 7 ++ stdlib.mk | 26 ++++ 4 files changed, 315 insertions(+) create mode 100644 hash/crc16/README create mode 100644 hash/crc16/crc16.ha [message trimmed]
From Kiëd Llaentenn to ~sircmpwn/hare-dev
On 21-04-28 18:40 , Drew DeVault wrote: > On Wed Apr 28, 2021 at 6:07 PM EDT, Kiëd Llaentenn wrote: > > +@test fn crc16() void = { > > + const vectors: [](str, u16, u16, u16, u16) = [ > > + ("", 0, 0, 0), > > + ("Always be sincere, even if you don't mean it.", > > + 0x624, 0x1742, 0x7784, 0x9CC3), > > + ("You get along very well with everyone except animals and people.", > > + 0xB6AE, 0xFED0, 0x8739, 0xCF56), > > + ("All generalizations are false, including this one.", > > + 0x57AA, 0x8D1B, 0x2B8, 0x3295), > > + ("I want peace and I'm willing to fight for it.", > > + 0x4CA9, 0xEEA0, 0x25C0, 0x9F6B), > > +
From Kiëd Llaentenn to ~sircmpwn/hare-dev
Signed-off-by: Kiëd Llaentenn <kiedtl@tilde.team> --- hash/crc16/README | 1 + hash/crc16/crc16.ha | 282 ++++++++++++++++++++++++++++++++++++++++++++ scripts/gen-stdlib | 7 ++ stdlib.mk | 26 ++++ 4 files changed, 316 insertions(+) create mode 100644 hash/crc16/README create mode 100644 hash/crc16/crc16.ha diff --git a/hash/crc16/README b/hash/crc16/README new file mode 100644 index 0000000..4720362 --- /dev/null [message trimmed]