#forsh is a #shell built on top of #gforth. It allows one to easily operate a #unix -like operating system without leaving gforth's #forth environment and can serve as a fully featured replacement to the bourne shell and derivatives such as #bash

bitbucket.org/cowile/forsh

@h this is beautiful and terrifying and I don't know whether to call the Nobel Committee or the UN Security Council

@natecull I don't know whether to call the BAFTAs selection commitee or The International Criminal Court at The Hague.

@h all the safety of a bash root shell combined with all the user-friendliness of Forth

@natecull Now think of it, if you have an ANS Forth compliant environment on a little machine (perhaps as firmware on an EPROM) you may be able to run a unix shell like forsh on that little machine.

Might even be @vertigo 's Kestrel one of these days.

@h @natecull forsh depends on Unix itself, so it won't be a good fit for a smaller machine. Maybe a Kestrel-3 running Linux or Plan-9. ;)

@vertigo @h Have y'all come across github.com/kragen/stoneknifefo at all? That's the Forth I'm most obsessed with, lately..

/cc @natecull

@akkartik @vertigo @natecull

First time I see it. I've been kind of wishing that I can come up with a reasonable model for a 64-bit only Forth. What StoneKnife is kind of the exact opposite, making everything 32-bit it seems?

@h I'm curious to hear why 32- vs 64-bit is the first issue you thought of. No reason we can't use whatever word length you like.

(I actually prefer 32-bit: lobste.rs/s/jkmwer/what_are_yo)

/cc @vertigo @natecull

Vertigo @ MFF
Follow

@akkartik @natecull @h Curious: In what way did segmentation come back with x86-64? IA-32 supports 6 fully functional segments with a GDT and LDT mechanism; flat addressing is just one of many configurations for segments.

@h @natecull @akkartik With x86-64, CS, DS, ES, and SS are hardwired flat (base=0, limit=-1, full privileges), leaving only FS and GS as base address registers (limit hardwired to -1 and full privs again) as a concession to Microsoft, which used these registers for thread-local storage and structured exception handling before x86-64 existed.

In x86-64, segments have been thoroughly neutered as far as I can tell.

@vertigo Huh, you're right! Not sure what I was smoking to think otherwise.

I'm just dabbling in Assembly. Glad to have somebody who knows what they're talking about look over my stuff.

/cc @natecull @h

Sign in to participate in the conversation
Mastodon

Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!