Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

new OS project, Forth as terminal script

269 views
Skip to first unread message

Chris Hinsley

unread,
Jun 4, 2016, 11:46:20 AM6/4/16
to
Hi Folks, long time away, but I've been busy.

Anyways, Forth still on my mind most days. But I did say I would write an OS for Forth and a new compiler, so I best pony up and give you guys a link.

https://github.com/vygr/Asm-Kernel

64bit parallel OS, hosted for now. Linux or OSX, I've implemented a C'ish compiled script using NASM macros to aid with getting the user level stuff fleshed out.

GUI looks primitive but don't be fooled by the developer graphics, the compositor is really neat. No overdraw of pixels, ever. (apart from transparencies) It would run just as fast without the SDL lib for embed platforms with just a frame buffer.

Can simulate most types of networks, I have launch scripts for all the common stuff, and I will get round to porting the VP macro layer to ARM boards in a while.

Just started to organise the terminal and pipe stuff, Forth compiler is the first test app on that list, not doing anything yet but echoing the input from the shell, and worrying about the purity of the Forth VM model to go with, but you can see where I'm going with this. I read a good paper from Anton, that got me thinking about implementing the three top stack positions cached in VP registers this time round, I'm still mulling that decision over.

I'm quite chuffed with the C'ish compiled script. All NASM macros doing the compiling and register alloc etc. Yes, I could do a better optimise pass, but for now it's OK :)

I implemented a pretty full C++ style class system too, again all in NASM.

I won't be getting drawn into a heavy discussion as to why I'm doing this, I have to, it's both a hobby and something I have to do to prove a point to a mate of mine. :)

Best Regards to the Forth community as always.

Chris

Mark Wills

unread,
Jun 8, 2016, 7:09:22 AM6/8/16
to
TAOS ish?

endlessboo...@gmail.com

unread,
Jun 8, 2016, 12:27:00 PM6/8/16
to
will it run on a amd64 desktop? can I surf the web from it?

Bill Zimmerly

unread,
Jun 26, 2016, 11:07:44 PM6/26/16
to
On Saturday, June 4, 2016 at 10:46:20 AM UTC-5, Chris Hinsley wrote:
> Hi Folks, long time away, but I've been busy.

Nice job, Chris! It looks good.

Brad Eckert

unread,
Jul 4, 2016, 2:45:21 PM7/4/16
to
On Saturday, June 4, 2016 at 8:46:20 AM UTC-7, Chris Hinsley wrote:
>
> GUI looks primitive but don't be fooled by the developer graphics, the compositor is really neat. No overdraw of pixels, ever. (apart from transparencies) It would run just as fast without the SDL lib for embed platforms with just a frame buffer.
>
That looks like a nice platform for a Forth. Have you thought about integrating a text editor and Forth? The headers can contain links to glossary entries and things like HTML of the 20xx "ANS Standard". This would solve an actual problem in Forth. All of those keywords take a while to learn and keep straight in your head. It would be a lot easier to hover over a word and see what it does and what its stack effect is. Especially if you defined it a year ago and don't remember exactly.

The header space could be thought of as a database. After a compile, you have lots of interesting things that can be displayed. Besides hover panes and hyperlinks (link to source), you could have a pane of "who calls this", a pane of "who does this call" (sometimes these two combined are called a cross reference structure), text coloring based on stack depth or wordlist or word type.
0 new messages