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

Real-Forth released

9 views
Skip to first unread message

Jean-Francois Couture

unread,
Dec 9, 2009, 6:06:31 PM12/9/09
to
I open a sourceforge project for a small forth implementation I wrote.
If you get free time, have look and tell me what you think about it.

http://sourceforge.net/projects/real-forth

Sp...@controlq.com

unread,
Dec 9, 2009, 9:14:10 PM12/9/09
to
On Wed, 9 Dec 2009, Jean-Francois Couture wrote:

> Date: Wed, 9 Dec 2009 15:06:31 -0800 (PST)
> From: Jean-Francois Couture <jeanfran...@gmail.com>
> Newsgroups: comp.lang.forth
> Subject: Real-Forth released


>
> I open a sourceforge project for a small forth implementation I wrote.
> If you get free time, have look and tell me what you think about it.
>
> http://sourceforge.net/projects/real-forth
>

Is this a native Forth project?

crc

unread,
Dec 9, 2009, 10:03:41 PM12/9/09
to
On Dec 9, 9:14 pm, S...@ControlQ.com wrote:
> On Wed, 9 Dec 2009, Jean-Francois Couture wrote:
> > Date: Wed, 9 Dec 2009 15:06:31 -0800 (PST)
> > From: Jean-Francois Couture <jeanfrancois8...@gmail.com>

> > Newsgroups: comp.lang.forth
> > Subject: Real-Forth released
>
> > I open a sourceforge project for a small forth implementation I wrote.
> > If you get free time, have look and tell me what you think about it.
>
> >http://sourceforge.net/projects/real-forth
>
> Is this a native Forth project?

It appears to be. I'm unable to build it on my Mac, but the makefile
creates a disk image for qemu.

-- crc

Jean-Francois Couture

unread,
Dec 10, 2009, 10:21:48 AM12/10/09
to

This issue is not related to Forth it self. It will be better to
contact me on sourceforge for this.

I put a pre-compiled image for you. Use it as the first hard drive in
qemu.

w_a_x_man

unread,
Dec 10, 2009, 4:13:52 PM12/10/09
to
On Dec 9, 5:06 pm, Jean-Francois Couture <jeanfrancois8...@gmail.com>
wrote:

> I open a sourceforge project for a small forth implementation I wrote.
> If you get free time, have look and tell me what you think about it.
>
> http://sourceforge.net/projects/real-forth

No one needs another small, low-level Forth.

What is needed is a high-level Forth that is designed
for desktop applications, not for flushing toilets.

Richard Owlett

unread,
Dec 10, 2009, 4:47:02 PM12/10/09
to

So write one already if you are so perfect.

Mat

unread,
Dec 10, 2009, 4:51:42 PM12/10/09
to

Who knows weather it can be of use for someone ?

> What is needed is a high-level Forth that is designed
> for desktop applications, not for flushing toilets.

I'm working on a forth system for application purposes but it will not
assure to you because it is a functional color forth dialect with some
auto parallelization support inside. It will be used mainly as
application language for processing 3D data.

-Mat

MarkWills

unread,
Dec 11, 2009, 3:55:53 AM12/11/09
to

And you'll be releasing your all-singing-all-dancing GUId up
SexyForthYeahISoRock V1.0 when, exactly?

We're all just dying to see it.

Bernd Paysan

unread,
Dec 11, 2009, 4:50:22 AM12/11/09
to
w_a_x_man wrote:

No one needs another big Forth with GUI and everything, since that also
already has been done ;-).

--
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://www.jwdt.com/~paysan/

pablo reda

unread,
Dec 11, 2009, 7:05:57 AM12/11/09
to
On 9 dic, 20:06, Jean-Francois Couture <jeanfrancois8...@gmail.com>
wrote:

> I open a sourceforge project for a small forth implementation I wrote.
> If you get free time, have look and tell me what you think about it.
>
> http://sourceforge.net/projects/real-forth

congratulations Jean-Francois, for know forth, nothing better that
making one !

see ColorForth for make more simple and agry more people :)

good luck,
Pablo

Jean-Francois Couture

unread,
Dec 11, 2009, 3:39:20 PM12/11/09
to
On 10 déc, 16:13, w_a_x_man <w_a_x_...@yahoo.com> wrote:

> What is needed is a high-level Forth that is designed
> for desktop applications, not for flushing toilets.

My next step is to write the tools I need to build a 32 bit protected
mode Forth. From there, and maby in the same time, I do the "high-
level" stuff.
ie.: In the file src/VGA.fth I have a primitive window component. It
give a better look to my block editor ;-p

Bruce McFarling

unread,
Dec 11, 2009, 4:07:56 PM12/11/09
to

> >http://sourceforge.net/projects/real-forth

Don't VFX Forth and SwiftForth work for that?

Looking around in advance of the arrival of my dirt cheap $120 Chinese
Netbook, if they were x86 processor machines, I'd be sitting pretty.

I'd say what is needed is a high-level Forth that is designed for
writing specialized Netbook / Webtablet / PMP applications, since I
don't see similar to VFX or SwiftForth available for ARM or MIPS
processors - either build gForth up to that or build ARM and MIPS
kernels with wordsets that can load and run the VFX or SwiftForth
application support libraries. And of course buying a solid desktop
Forth to get the application support libraries is no bad deal, either.

Jean-Francois Couture

unread,
Dec 11, 2009, 4:08:24 PM12/11/09
to

thank you Pablo. It is true I learn a lot writing this. And still have
lot to learn. Like english...
What I realy like from Forth is its standalone nature. With real-forth
I can use my PC without any OS doing things I dont ask for.

I download colorForth but I dont figure out how to use it wet. ( I
only try 2 min. )

Jean-Francois Couture

unread,
Dec 11, 2009, 4:16:17 PM12/11/09
to

w_a_x_man

unread,
Dec 11, 2009, 4:16:57 PM12/11/09
to

It must include:

a garbage-collector
lists
hash-tables
a regular-expression engine

Jean-Francois Couture

unread,
Dec 11, 2009, 4:31:01 PM12/11/09
to

You should try Java...you gonna get all this and you not have to worry
about the hardware.

Bruce McFarling

unread,
Dec 11, 2009, 4:40:23 PM12/11/09
to
On Dec 11, 4:16 pm, Jean-Francois Couture <jeanfrancois8...@gmail.com>
wrote:

No, I'm looking more for what you get when you compile gForth in an
ARM based Linux, except with more extensive support libraries. Host-pc
applications, just with a slightly smaller (though hefty RAM / mass
storage by 10 years ago standards) host-pc.

The capabilities of VFX and SwiftForth are likely massive overkill for
what I'd be doing, but I have no doubt they'd be ample.

pablo reda

unread,
Dec 11, 2009, 6:13:50 PM12/11/09
to
On 11 dic, 18:08, Jean-Francois Couture <jeanfrancois8...@gmail.com>
wrote:

I'm not a native english too!

ok, some interesting info is growing from Ray Stm.

look in
http://colorforth.net/

for an interesting info about internal colorforth
http://karig.net/os/cf/

I have another (yes another!!) forth, but using ideas from colorforth.
http://code.google.com/p/reda4/

there are a lot of nice people in this forum ready for help, just
post !
and ignore the ugly comments.


gavino

unread,
Dec 11, 2009, 11:52:27 PM12/11/09
to

fight fight!!

gavino

unread,
Dec 11, 2009, 11:56:10 PM12/11/09
to

how is gforth webserver by the way?
could one make it work with paypal?

gavino

unread,
Dec 11, 2009, 11:56:36 PM12/11/09
to

anyone ever write how to use colorforth?

gavino

unread,
Dec 11, 2009, 11:57:51 PM12/11/09
to
On Dec 11, 1:08 pm, Jean-Francois Couture <jeanfrancois8...@gmail.com>
wrote:

native forth?
good job!
amazing!

gavino

unread,
Dec 11, 2009, 11:58:16 PM12/11/09
to

perl?

Anton Ertl

unread,
Dec 12, 2009, 11:41:15 AM12/12/09
to
w_a_x_man <w_a_...@yahoo.com> writes:

>On Dec 10, 3:13=A0pm, w_a_x_man <w_a_x_...@yahoo.com> wrote:
>It must include:
>
>a garbage-collector
>lists
>hash-tables
>a regular-expression engine

Add the existing garbage collector to the existing Gforth package and
you are done.

- anton
--
M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
New standard: http://www.forth200x.org/forth200x.html
EuroForth 2009: http://www.euroforth.org/ef09/

W. James

unread,
Dec 13, 2009, 3:35:09 AM12/13/09
to
Jean-Francois Couture wrote:

> What I realy like from Forth is its standalone nature. With real-forth
> I can use my PC without any OS doing things I dont ask for.

When your highest goal is to control the flushing of a toilet,
Forth shines. Operating system? We don't need no stinkin'
operating system! Forth was destined to manage turds!

This isn't a newsgroup devoted to embedded controllers.
If you want that kind of group, get out and stay out.


--

Howerd

unread,
Dec 13, 2009, 8:03:45 AM12/13/09
to
On 9 Dec, 23:06, Jean-Francois Couture <jeanfrancois8...@gmail.com>
wrote:

> I open a sourceforge project for a small forth implementation I wrote.
> If you get free time, have look and tell me what you think about it.
>
> http://sourceforge.net/projects/real-forth

Hi Jean-Francois,

Merci bien pour votre nouveau Forth.
Please ignore anyone who says you are not welcome on clf ;)

Regards

Howerd

Jerry Avins

unread,
Dec 13, 2009, 10:09:13 AM12/13/09
to

This isn't a newsgroup for telling people how to behave. If you want
that kind of group, you had best look elsewhere.

Jerry
--
Engineering is the art of making what you want from things you can get.
�����������������������������������������������������������������������

Frank Buss

unread,
Dec 13, 2009, 10:19:50 AM12/13/09
to
gavino wrote:

> anyone ever write how to use colorforth?

There is a nice search engine called Google:

http://www.google.com/search?q=colorforth

E.g. 7th link looks interesting, if you really want to use ColorForth,
which is not recommended for beginners.

--
Frank Buss, f...@frank-buss.de
http://www.frank-buss.de, http://www.it4-systems.de

Mat

unread,
Dec 13, 2009, 1:00:50 PM12/13/09
to
On 11 Dez., 20:39, Jean-Francois Couture <jeanfrancois8...@gmail.com>
wrote:

> On 10 déc, 16:13, w_a_x_man <w_a_x_...@yahoo.com> wrote:
>
> > What is needed is a high-level Forth that is designed
> > for desktop applications, not for flushing toilets.
>
> My next step is to write the tools I need to build a 32 bit protected
> mode Forth. From there, and maby in the same time, I do the "high-
> level" stuff.

Possibly you can take a look at the native port of Retroforth 9
http://retroforth.com/download/9.0/

The sources are multiboot conform (you can boot it from grub for
example).

Another, plain simple boot enviroment for x86-64 systems:
http://www.returninfinity.com/baremetal.html

ColibriOS (alias MenuetOS 32) is an OS written completely in assembly.
The sources can be an inspiration for driver code, multiprocessing
etc.

http://www.kolibrios.org/
http://www.menuetos.net/

-Mat.

Josh Grams

unread,
Dec 14, 2009, 8:18:15 AM12/14/09
to
Anton Ertl wrote: <2009Dec1...@mips.complang.tuwien.ac.at>

> w_a_x_man <w_a_...@yahoo.com> writes:
>>On Dec 10, 3:13=A0pm, w_a_x_man <w_a_x_...@yahoo.com> wrote:
>>It must include:
>>
>>a garbage-collector
>>lists
>>hash-tables
>>a regular-expression engine
>
> Add the existing garbage collector to the existing Gforth package and
> you are done.

Interesting. I had no idea gforth had a regex engine.

Does it actually have general-purpose hash tables, or do you have to
hack around with wordlists/tables?

--Josh

Anton Ertl

unread,
Dec 14, 2009, 9:09:03 AM12/14/09
to
Josh Grams <jo...@qualdan.com> writes:
[Gforth]

>Does it actually have general-purpose hash tables, or do you have to
>hack around with wordlists/tables?

TABLEs are general-purpose hash tables, wordlists are case-insensitive
for ASCII. The key length in either case is 1/8 of the address space,
so it's general-purpose as far as I am concerned. What would you miss?

Josh Grams

unread,
Dec 14, 2009, 4:09:17 PM12/14/09
to
Anton Ertl wrote: <2009Dec1...@mips.complang.tuwien.ac.at>

> Josh Grams <jo...@qualdan.com> writes:
> [Gforth]
>>Does it actually have general-purpose hash tables, or do you have to
>>hack around with wordlists/tables?
>
> TABLEs are general-purpose hash tables, wordlists are case-insensitive
> for ASCII. The key length in either case is 1/8 of the address space,
> so it's general-purpose as far as I am concerned. What would you miss?

What if I want to store arbitrary data values in a hash? It seems to me
that the result of a lookup is always a name token. I can obviously
work around this with CREATE..DOES> and a wrapper around find-name to
immediately execute the word, but that seems a bit overkill...

--Josh

gavino

unread,
Dec 15, 2009, 5:42:13 PM12/15/09
to

yep I think I might be screwed

gavino

unread,
Dec 15, 2009, 5:43:17 PM12/15/09
to
On Dec 13, 10:00 am, Mat <damb...@web.de> wrote:
> On 11 Dez., 20:39, Jean-Francois Couture <jeanfrancois8...@gmail.com>
> wrote:
>
> > On 10 déc, 16:13, w_a_x_man <w_a_x_...@yahoo.com> wrote:
>
> > > What is needed is a high-level Forth that is designed
> > > for desktop applications, not for flushing toilets.
>
> > My next step is to write the tools I need to build a 32 bit protected
> > mode Forth. From there, and maby in the same time, I do the "high-
> > level" stuff.
>
> Possibly you can take a look at the native port of Retroforth 9http://retroforth.com/download/9.0/

>
> The sources are multiboot conform (you can boot it from grub for
> example).
>
> Another, plain simple boot enviroment for x86-64 systems:http://www.returninfinity.com/baremetal.html
>
> ColibriOS (alias MenuetOS 32) is an OS written completely in assembly.
> The sources can be an inspiration for driver code, multiprocessing
> etc.
>
> http://www.kolibrios.org/http://www.menuetos.net/
>
> -Mat.

anyone doing anything with forthOS?
it booted on a small pc i had

Anton Ertl

unread,
Dec 17, 2009, 9:45:24 AM12/17/09
to
Josh Grams <jo...@qualdan.com> writes:
>Anton Ertl wrote: <2009Dec1...@mips.complang.tuwien.ac.at>
>> Josh Grams <jo...@qualdan.com> writes:
>> [Gforth]
>>>Does it actually have general-purpose hash tables, or do you have to
>>>hack around with wordlists/tables?
>>
>> TABLEs are general-purpose hash tables, wordlists are case-insensitive
>> for ASCII. The key length in either case is 1/8 of the address space,
>> so it's general-purpose as far as I am concerned. What would you miss?
>
>What if I want to store arbitrary data values in a hash? It seems to me
>that the result of a lookup is always a name token.

If you use FIND-NAME for the lookup. With SEARCH-WORDLIST you get an
execution token.

>I can obviously
>work around this with CREATE..DOES> and a wrapper around find-name to
>immediately execute the word, but that seems a bit overkill...

The EXECUTE or >BODY (and NAME>, if you use FIND-NAME) is relatively
cheap compared to the rest of the lookup. BTW, you only need CREATE
(no DOES>) if you only want the address.

What might be a little more of a concern is the space overhead: You
have the length (1 cell), padding, link field, and code field; for a
special-purpose hash table you may not need any of that; for a
general-purpose hash table, you do not need the link field and the
code field. Still, I wonder if the hash tables in other languages
that have them are any more efficient. Maybe I'll measure this one
day.

0 new messages