Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #26768 > unrolled thread

Challenge for bilingual: stl::forth

Started byCharles Mélice <charles.melice@gmail.com>
First post2013-10-30 16:52 -0700
Last post2013-10-31 12:24 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.forth


Contents

  Challenge for bilingual: stl::forth Charles Mélice <charles.melice@gmail.com> - 2013-10-30 16:52 -0700
    Re: Challenge for bilingual: stl::forth anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2013-10-31 12:24 +0000

#26768 — Challenge for bilingual: stl::forth

FromCharles Mélice <charles.melice@gmail.com>
Date2013-10-30 16:52 -0700
SubjectChallenge for bilingual: stl::forth
Message-ID<9fa4db8a-47e1-4fe6-bab6-0b702d5bdfa9@googlegroups.com>
The Standard Template Library is, at least, a very inspired work.

For instance http://www.cplusplus.com/reference/stl/

A few years ago, I tried unsuccessfully to write a Forth based on that beautiful library.

But because of lack of experience (and time), I did not reach my goal and finally I abandoned.

I propose the following challenges: Write, if not the worst performer, the more conceptual and minimalist Forth definition based only on the C++ STL libraries.

Something like:


   typedef std::string forth_name;
   typedef forth_cell unsigned;
   typedef stack< forth_cell > forth_stack;
   typedef std::forward_list< word > forth_wordlist;
   typedef std::vector< word* > cfa_vector;
   ... etc.

And if nobody takes up the challenge, does'nt it a fun approach?

Charles

[toc] | [next] | [standalone]


#26771

Fromanton@mips.complang.tuwien.ac.at (Anton Ertl)
Date2013-10-31 12:24 +0000
Message-ID<2013Oct31.132403@mips.complang.tuwien.ac.at>
In reply to#26768
=?ISO-8859-1?Q?Charles_M=E9lice?= <charles.melice@gmail.com> writes:
>I propose the following challenges: Write, if not the worst performer, the =
>more conceptual and minimalist Forth definition based only on the C++ STL l=
>ibraries.
>
>Something like:
>
>
>=A0  typedef std::string forth_name;
>   typedef forth_cell unsigned;
>   typedef stack< forth_cell > forth_stack;
>   typedef std::forward_list< word > forth_wordlist;
>   typedef std::vector< word* > cfa_vector;
>   ... etc.
>
>And if nobody takes up the challenge, does'nt it a fun approach?

Maybe to a C++ programmer.  But to a Forth programmer?

- 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 2013: http://www.euroforth.org/ef13/

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.forth


csiph-web