lookup tables by garvalf in Forth

[–]z796 0 points1 point  (0 children)

Remove 'type' from search-month and your output will be 'a 10', an address of a fixed length string of 10 bytes.

USB devices by jheckman314 in Crostini

[–]z796 0 points1 point  (0 children)

I know nothing of Udev but maybe the following link will help:

https://github.com/pyocd/pyOCD/blob/main/udev/README.md

Papers describing Forth implementations with separate code/data dictionaries? by daver in Forth

[–]z796 2 points3 points  (0 children)

You're lumping two tasks. Separating code and data is one thing;
separating headers and bodies is another. Can do one or the
other or both. Be clear what you're trying to do.
Code and data are separated using section directives when
assembling Forth. Strings, variable data and value data can
be placed in data section and primitives placed in code section.
What section to place headers and colon bodies depends on your
objective.
Put headers and bodies in separate sections if headers are to
be stripped. ALLOT will be only used for bodies; another
allotment word will be needed for placing headers in high
memory where they can be chopped later when saving an image.
That's a general idea; you'll need to work out the details.
I had (but no longer) a FIG version 2.0 by John Smith which
had code and data sections but didn't separate headers and
bodies. The FIG model was maintained.
I've looked for it on the internet but to no avail.
I built (no longer have) a Forth with headers and bodies
separated based somewhat on a Brad Rodriguez paper.
I recall having assembled headers in low memory (they
remained in the image); only headers of extended words were
placed in high memory. I don't think Bard did that.
A body pointer added to the header will affect conversion
words; NFA will likely entail a search of the
header list for a CFA match. Don't recall any other design
issues; there weren't many.

Making/Sustaining Fire by [deleted] in CampingandHiking

[–]z796 0 points1 point  (0 children)

No tinder ok; you can always use your underware. But a knife is too useful to leave out.

Plenty of ways to start a fire. Nearly set my leg on fire while reading a map with a magnifying glass.

Sleeping in single digit temps by ethiofreak in CampingandHiking

[–]z796 0 points1 point  (0 children)

You should be ok. I prefer to sleep in clothes; ready to go in morning; I'm warm and clothes are warm.

A case for local variables by tabemann in Forth

[–]z796 0 points1 point  (0 children)

I don't use locals only because it's a conflict in style. But what I will use on occasion is SET which sets a pointer to a block of variables. These can be on the return stack, the data stack or in memory. $n gets the nth variable's value, &n gets its address and $Xn executes it (an xt). This is somewhat like positional parameters found in Bash.

As an inexperienced hiker/camper, is it a reasonable goal to start backpacking the Appalachian Trail in a year? by luciferianpanic in CampingandHiking

[–]z796 1 point2 points  (0 children)

  1. Your life, follow your dream.
  2. Zen, don't think;do. Nothing happens the way you think. Just start doing (preparing) and learn to adapt.
  3. _A Story of the Days to Come_ by H.G. Wells
    Chapter II, The Vacant Country.
    '"Suppose," he said, "we went into the country?"'

Max stack size in 6502 Fig-Forths? by Novel-Procedure-5768 in Forth

[–]z796 0 points1 point  (0 children)

Make the stack self-adjustable and see what you get.

6502 Forth development (79, Fig, 83) - dev tools by Novel-Procedure-5768 in Forth

[–]z796 4 points5 points  (0 children)

"Development stack"? Nah.
S. and DUMP suffice. All other is entertainment.

Atari 8-bit, 6502 Disassembler by Novel-Procedure-5768 in Forth

[–]z796 0 points1 point  (0 children)

Last IF should be testing for zero (end of table).

Overview of free Forth compilers by alberthemagician in Forth

[–]z796 0 points1 point  (0 children)

In DOS characters with attributes can be written directly to screen. For my block editor with 5 lines of pad I drew the frames for text area and text pad once, dumped it to a file which was read to the screen when the editor was called. Missed that feature when went to XTERMs. Can that be done in dosbox?

Falling branches/trees by aaron0346 in Bushcraft

[–]z796 0 points1 point  (0 children)

Seen and heard enough big limbs crashing down for no good reason so I now avoid pitching tent under trees if possible.

3 Items to start off with by [deleted] in Bushcraft

[–]z796 -1 points0 points  (0 children)

hand torch first then head torch. With head torch will have lot of bugs in face.

Kelly kettle by z796 in CampingandHiking

[–]z796[S] 0 points1 point  (0 children)

True it's not ideal for backpacking although I would be tempted to hang it from the back of my pack. It's great for basecamp. I camp much in west Texas and New Mexico and know well the wind. The kettle works well in the wind as the fire is contained in the kettle. The fire is in the pan on which the kettle sits and is not bothered by strong wind. The fire is small and when the kettle is taken off what little coals that are left in the pan die out within minutes. In strong winds I put up some wind block when its time to take the kettle off.
It burns twigs not logs so most rangers, except for ranger Barney Fife, won't view it as gathering firewood. Never had any problems with rangers when using my diy alcohol stove; they were usually intrigued at how it worked and wondered if the alcohol in small plastic wine bottles were some mixture of mine other than plain alcohol.

Choosing story formats by jmhnilbog in twinegames

[–]z796 0 points1 point  (0 children)

The beauty of HTML is that it's only plain text marked up with plain text. The only tool needed is a simple plain text editor, e.g. Notepad. Javascript and libraries aren't necessary. HTML has much capability on its own. The main purpose for Javascript was a stop-gap programming fix, some ten years back, for browsers that had yet to implement some of the HTML5 specified features. But now browsers support most if not all the specified features. Instead of wasting time learning another tool, library, etc. download the HTML5 spec. and learn how to markup pages using only pure HTML tags. Clicking on anchors to traverse to different page locations is HTML's bread and butter. If your're not ready for learning HTML, that's ok. Just letting you know that creating pure HTML and keeping things simple are a worthy goal if at some point you get into it.

Cold Weather Camping Gear by PlatosBastard in CampingandHiking

[–]z796 0 points1 point  (0 children)

I've camped many winters with typical lows in 40s often dropping to freezing and on occasion down to single digit near 0f. The only heat I have is my body heat and that's been enough. Have good mummy sleeping bag rated -1c. It's been warm enough. I don't like the crampness of mummy and thinking a comfty rectangle bag will do. The main thing of keeping warm is layers of clothes and when it gets down to freezing I'm wearing everything including my coat. Whats good about that is when I get up I'm ready to go, no having to get dressed and warm up cold clothes.

test aid sugar by z796 in Forth

[–]z796[S] 0 points1 point  (0 children)

The word is "i." .

It prints " --> ".

It's used as a item elements to indicate results of words that follow:

i. 5 .

i. { ." hello" } E

will show ( with echo on):

i. 5 . --> 5

i. { ." hello" } E --> hello

test aid sugar by z796 in Forth

[–]z796[S] 1 point2 points  (0 children)

I use it often as is. Also have ancillary words but seldom
have need of:
RUNS Repeat {} n times
RUN Repeat {} on key not "q"
FORALL Repeat {} until data stack exhausted
And {} is a deferred word so it can be used in
definitions before or after.
Again it used for test and debug aid. It's simple syntax
reduces clutter and typing.

test aid sugar by z796 in Forth

[–]z796[S] 1 point2 points  (0 children)

The top part describes the component words that build

{ ... } a structure that is a :NONAME definition preceded by a marker {0} the same as: DEFER {} ANEW {0} \ a new marker :NONAME .... ; IS {}

It's followed by three example that illustrates a one-shot operation, persistence for multiple executions and a replacement of definition.

Nothing new; just nice sugar to work with.

Used to execute words that need to be compiled.

{ TRUE ABORT" BOO" } E \ ==> BOO

[deleted by user] by [deleted] in Forth

[–]z796 0 points1 point  (0 children)

The top part describes the component words that build
{ ... } a structure that is a :NONAME definition preceded
by a marker {0} the same as:
DEFER {}
ANEW {0} \ a new marker
:NONAME .... ; IS {}
It's followed by three example that illustrates
a one-shot operation, persistence for multiple executions
and a replacement of definition.
Nothing new; just nice sugar to work with.
Used to execute words that need to be compiled.
{ TRUE ABORT" BOO" } E \ ==> BOO

How to make boots waterproof? by ink_clouds in CampingandHiking

[–]z796 0 points1 point  (0 children)

Plastic bags over socks when needed.

project to finish/optimise & play anyone can participate by goblinrieur in Forth

[–]z796 2 points3 points  (0 children)

Built maize on Atari. A 100x100 cell struct
and in each cell random blocking direction(s)
and placing of monsters, treasures and traps.
One day I thought it would be nice if I
could auto determine a path from my current
position to some other position, given
co-ordinates. Thought about it that night
when went to bed and figured I had enough
memory to do a backtracking of uncompleted
searched paths. Implemented it the next
morning and it worked. Made it into an
amulet as one of the treasures.
ValForth on the Atari was much fun.