~crc_

Trackers

~crc_/retroforth

Last active 25 days ago

~crc_/gopher-client

Last active 1 year, 7 months ago

~crc_/ngata

Last active 1 year, 7 months ago

#92 Deduplication of d:source data 6 days ago

~crc_ assigned ~crc_ to #92 on ~crc_/retroforth

#93 retroforth11 - interactive fiction 22 days ago

Comment by ~crc_ on ~crc_/retroforth

The files are included in the old releases.

For direct links:

Old releases:

#92 Deduplication of d:source data 2 months ago

Comment by ~crc_ on ~crc_/retroforth

For words in the base image, I'm manually filling in the source data, so those don't have duplications.

I have a couple of easy options for the others:

  • setup a table (or linked list?) of source filenames & hashes, and point the d:source field to the existing entries (or add to it if not present)
  • use the dictionary. In this case I'd have a word class that identifies these strings, and point the d:source field for words to the d:name field of the dictionary entries whose name matches the source filename

I like the second approach in terms of not needing to add another data structure, but it would add some visual noise to the output of d:words. I'll probably do a prototype of each and see what feels better in practice.

#92 Deduplication of d:source data 2 months ago

feature request added by ~crc_ on ~crc_/retroforth

#92 Deduplication of d:source data 2 months ago

retro/nga added by ~crc_ on ~crc_/retroforth

#92 Deduplication of d:source data 2 months ago

Ticket created by ~crc_ on ~crc_/retroforth

A fair amount of space is wasted due to duplicate strings in the d:source data. This will need be addressed before the next release.

#91 napia documentation - missing words 3 months ago

Comment by ~crc_ on ~crc_/retroforth

REPORTED RESOLVED FIXED

#91 napia documentation - missing words 3 months ago

Comment by ~crc_ on ~crc_/retroforth

#91 napia documentation - missing words 3 months ago

Comment by ~crc_ on ~crc_/retroforth

To clarify the second half:

Index: napia.txt
==================================================================
--- napia.txt
+++ napia.txt
@@ -735,10 +735,19 @@
 opcode bundle at IP in memory is executed. At the end of each
 cycle, IP is incremented. Execution ends if IP exceeds the
 length of memory. In C:

     while(ip < 65536) { process_opcode_bundle(memory[ip++]); }
+
+A stack guard is run before each instruction. This ensures that
+the data stack contains the correct number of items for the
+instruction, and that enough space will remain to hold any
+values pushed. The address stack is also checked.
+
+If the data stack over or underflows, the stack pointer is set
+to zero (emptying the stack) and an interrupt is triggered. For
+the address stack, the address stack pointer is *not* reset.

 # block storage

 A generic block storage device is provided.

#90 Identify non-multicore safe words 3 months ago

Comment by ~crc_ on ~crc_/retroforth

A few cases:

{{ ---reveal--- }}
n:to-s
a:indices a:index
I J K indexed-times
s:evaluate
needs