Loading...
 

Language topics Help

Forums » Language topics » Red Book - your ideas
Report this post

Red Book - your ideas


Hi everybody,

I have started to write the very first "Red Book" as an introduction to lang5. Make some suggestions for me:

- Latex, .txt or word?
- The first sample program?
- Good descriptions of stacks?
- Your favorite picture which says more than a thousand ".s" (Please note this is the very first lang5 joke. The author is not kind of funny, but let us give him a chance).

Greets,

Patrick

Report this post

Hi -
thank you so much for your posting and your efforts! Just my 2 cents worth:

I, personally, would prefer LaTeX over a plain text file and would rule out Word completely. The existing documentation is already typeset using LaTeX, so a Redbook in this format would fit in easily.

As first sample programs, I would suggest things like the Gauss sum or similar problems. We could have a look at the examples program collection next time we meet to pick out some which are suitable.

Concerning stack basics etc. which might be suitable for an introductory Redbook, the first book that comes to my mind is "Thinking Forth" by Leo Brodie: http://thinking-forth.sourceforge.net/(external link) There are some great pictures that might be used as an inspiration. :-)

All the best - Bernd. :-)

Report this post

Hi,

great ideas. Including the hint with the Thinking Forth.

Normally when a lanuage is introduced you brag about the "short and easy" ways of solving problems with less code compared to all the other guys.
In case of lang5 we should focus on the way of thinking.
Let us start like this:
The world is full of object-oriented languages (declarative , imperatve and so on) this is the reason you should learn lang5.

- Find a new way of thinking to solve your problems. (the STACK!).
- Blow your mind by erasing old structures from your head (Yes, I am thinking of the ordinary loops. Kill them all.).
- Discover lost treasures from the past.
- Meet great people (yeah that's us...).
- Stay closer to what the machine really does (let us call it the "back to the roots" argument).
- ...

Cheers,

Patrick

Report this post

Hi Patrick -
sorry for answering so late. Getting rid of most explicit loops is truly a central point in array languages like lang5. Quite the same like functional programming tries to avoid variables and the side effects associated with using them we should try to avoid loops, too. Every variable and loop saved is one potential error less in a program. :-)

Concerning treasures of the past you are right - we are "standing on the shoulders of giants" as it is said, and this is true for programming, too. It is a pity that languages like Forth and APL did not really change the world of programming - maybe lang5 has some potential to change this (at least it is free software :-) - in contrast to most APL interpreters).

I am really looking forward to your Redbook. :-)

Have a great holiday-Monday - best regards, Bernd. :-)


Report this post

Hi,

so see the very beginning of my RedBook for lang5. You can add comments and stuff if you like.

(I should commit it directly to SVN but not from my girlfriends computer.)

Cheers,

Patrick


Report this post

Hi Patrick - thank you for the first snippets of your Redbook! This looks great and I am looking forward to the next updates. :-) All the best to you and your girl-friend - Bernd. :-)


Show posts: