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


Groups > de.sci.electronics > #265534

Re: Kein Schwein programmiert(e) in Forth

From Stefan Reuther <stefan.news@arcor.de>
Newsgroups de.sci.electronics
Subject Re: Kein Schwein programmiert(e) in Forth
Date 2019-10-15 18:43 +0200
Message-ID <qo540h.2hg.1@stefan.msgid.phost.de> (permalink)
References <20191014204208.N8fXmWIcOllQ@sewer.dizum.com> <5DA59A8B.7480E8A2@hrz.tu-chemnitz.de> <EvvLcunjQoB@allinger-307049.user.uni-berlin> <qo4bpv$3e0$1@news.albasani.net> <EvvLkhlUQoB@allinger-307049.user.uni-berlin>

Show all headers | View raw


Am 15.10.2019 um 14:23 schrieb Wolfgang Allinger:
> On 15 Oct 19 at group /de/sci/electronics in article qo4bpv$3e0$1@news.albasani.net
>>>> http://www.99-bottles-of-beer.net/language-forth-793.html
>>>
>>> Nach unten gerollt in den Kommentaren wirds noch eleganter, alle sind ok.
>>>
>>> Und dann mal C suchen und ansehen, hunderte von Zeilen samt bugs. sh.
> 
>> Vielleicht solltest Du kein Linux Kernelmodul mit einem einfachen
>> Programm vergleichen.
> 
>> http://www.99-bottles-of-beer.net/language-c-shell-113.html
> 
>> Ich nehme an, das dürfte eher dem Beispiel entsprechen.
> 
> Jein, mich wundert es nicht:
> 1. auch buggy sh. Kommentare

Ein C-Programm, das dem Forth-Programm entspricht, hab ich da auf die
Schnelle nicht gefunden. Ist aber nicht schwer.

    #include <stdio.h>
    void bottles(int n) {
        switch (n) {
         case 0: printf("no more bottles of beer"); break;
         case 1: printf("1 bottle of beer"); break;
         default: printf("%d bottles of beer", n); break;
        }
    }
    void verse(int n) {
        bottles(n); printf(" on the wall, ");
        bottles(n); printf(".\n");
        printf("Take one down and pass it around, ");
        bottles(n-1); printf(" on the wall.\n\n");
    }
    int main() {
        for (int i = 99; i > 0; --i) {
            verse(i);
        }
    }

Das ist jetzt C. Würde in C++ genauso aussehen. Oder in JavaScript. Oder
in Perl.

Ohne abstruse Regeln wie "nach dem String-Eröffnungszeichen muss noch
ein Leerzeichen stehen, das nicht zum String gehört". Ohne Hacks wie
Array-of-:noname. Ohne "ein Glück, dass ich nur eine Statusvariable
habe, sonst würde das auf dem Stack echt unübersichtlich". Und ich finde
das Forth-Programm jetzt schon unübersichtlich, allerdings auch, weil
der Spezl auf Größe optimiert hat.

> und IMHO
> 2. Script, also kein Programm, wie das Forth Beispiel.

Ich habe keinen Forth-Compiler, also ist das Forth-Beispiel für mich
auch nur ein Skript, kein Programm.

Mal ehrlich, die pseudo-religiöse Followerschaft hätte Haskell verdient.
Aber doch nicht Forth. Oder D.


  Stefan

Back to de.sci.electronics | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Kein Schwein programmiert(e) in Forth Dave U. Random <random@dave.u> - 2019-10-14 20:42 +0000
  Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-14 23:21 +0200
    Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-16 09:14 +0200
  Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-14 18:45 -0300
    Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-15 09:54 +0200
      Re: Kein Schwein programmiert(e) in Forth Eric Bruecklmeier <usenet@nerdcraft.de> - 2019-10-15 09:56 +0200
      Re: Kein Schwein programmiert(e) in Forth Andreas Bockelmann <xotzil@gmx.de> - 2019-10-15 11:08 +0200
        Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-15 11:32 +0200
        Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-15 06:53 -0300
          Re: Kein Schwein programmiert(e) in Forth Alfred Gemsa <gemsa@gmx.de> - 2019-10-15 13:03 +0200
            Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-15 09:17 -0300
            Re: Kein Schwein programmiert(e) in Forth Heinz Schmitz <kma@kma.org> - 2019-10-16 12:15 +0200
          Re: Kein Schwein programmiert(e) in Forth Axel Berger <Spam@Berger-Odenthal.De> - 2019-10-15 17:59 +0200
        Re: Kein Schwein programmiert(e) in Forth Hans-Juergen Schneider <echo@hrz.tu-chemnitz.de> - 2019-10-15 18:17 +0200
      Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-15 07:08 -0300
        Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-15 18:29 +0200
    Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-16 08:44 +0200
      Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-16 07:13 -0300
      Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-18 13:22 +0200
        Re: Kein Schwein programmiert(e) in Forth Leo Baumann <charly020664@yahoo.de> - 2019-10-18 13:27 +0200
          Re: Kein Schwein programmiert(e) in Forth "horst-d.winzler" <horst.d.winzler@web.de> - 2019-10-18 14:21 +0200
          Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-19 13:05 +0200
            Re: Kein Schwein programmiert(e) in Forth Uhu <Euleuhu@nest.de> - 2019-10-19 13:11 +0200
              Re: Kein Schwein programmiert(e) in Forth Rolf Bombach <rolfnospambombach@invalid.invalid> - 2019-10-21 21:35 +0200
        Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-19 12:50 +0200
          SWYN Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-20 21:13 +0200
            Re: SWYN Re: Kein Schwein programmiert(e) in Forth "horst-d.winzler" <horst.d.winzler@web.de> - 2019-10-20 21:18 +0200
              Re: SWYN Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-21 07:59 +0200
  Re: Kein Schwein programmiert(e) in Forth Gregor Szaktilla <spam0.sz@ktilla.de> - 2019-10-15 00:18 +0200
    Re: Kein Schwein programmiert(e) in Forth "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2019-10-15 14:16 +0000
      Re: Kein Schwein programmiert(e) in Forth Helmut Schellong <rip@schellong.biz> - 2019-10-15 19:22 +0200
        Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-15 19:05 -0300
          Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-16 21:15 +0200
            Re: Kein Schwein programmiert(e) in Forth Ewald Pfau <anderswo@gmx.net> - 2019-10-16 21:45 +0000
              Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-17 10:02 +0200
                Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-17 09:52 -0300
                Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-17 17:06 +0200
                Re: Kein Schwein programmiert(e) in Forth Heinz Schmitz <kma@kma.org> - 2019-10-18 10:45 +0200
                Re: Kein Schwein programmiert(e) in Forth Roland Franzius <roland.franzius@uos.de> - 2019-10-18 11:08 +0200
                Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-18 09:08 -0300
                Re: Kein Schwein programmiert(e) in Forth Ewald Pfau <anderswo@gmx.net> - 2019-10-18 13:49 +0000
                Re: Kein Schwein programmiert(e) in Forth Hanno Foest <hurga-news2@tigress.com> - 2019-10-18 18:34 +0200
                Re: Kein Schwein programmiert(e) in Forth Andreas Neumann  <an5275@sedo.com> - 2019-10-18 21:11 +0200
                Re: Kein Schwein programmiert(e) in Forth Hanno Foest <hurga-news2@tigress.com> - 2019-10-19 03:24 +0200
                Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-19 08:24 -0300
                Re: Kein Schwein programmiert(e) in Forth Ewald Pfau <anderswo@gmx.net> - 2019-10-19 16:35 +0000
                Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-19 15:18 -0300
  Re: Kein Schwein programmiert(e) in Forth Andreas Bockelmann <xotzil@gmx.de> - 2019-10-15 09:49 +0200
    Re: Kein Schwein programmiert(e) in Forth Helmut Schellong <rip@schellong.biz> - 2019-10-15 11:34 +0200
      Re: Kein Schwein programmiert(e) in Forth Rolf Bombach <rolfnospambombach@invalid.invalid> - 2019-10-21 21:59 +0200
  Re: Kein Schwein programmiert(e) in Forth Frank Müller <dw2fm@hotmail.com> - 2019-10-15 10:16 +0200
    Re: Kein Schwein programmiert(e) in Forth Eric Bruecklmeier <usenet@nerdcraft.de> - 2019-10-15 11:36 +0200
      Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-15 12:50 +0200
        Re: Kein Schwein programmiert(e) in Forth Eric Bruecklmeier <usenet@nerdcraft.de> - 2019-10-15 13:18 +0200
          Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-16 08:35 +0200
            Re: Kein Schwein programmiert(e) in Forth Eric Bruecklmeier <usenet@nerdcraft.de> - 2019-10-16 08:39 +0200
              Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-16 09:17 +0200
                Re: Kein Schwein programmiert(e) in Forth Eric Bruecklmeier <usenet@nerdcraft.de> - 2019-10-16 09:25 +0200
                Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-16 14:17 +0200
    Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-15 07:12 -0300
    Re: Kein Schwein programmiert(e) in Forth Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2019-10-15 13:40 +0200
      Re: Kein Schwein programmiert(e) in Forth "Chr. Maercker" <Zweistein@gmx-topmail.de> - 2019-10-16 11:32 +0200
        Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-16 07:22 -0300
          Re: Kein Schwein programmiert(e) in Forth Roland Franzius <roland.franzius@uos.de> - 2019-10-16 17:43 +0200
            Re: Kein Schwein programmiert(e) in Forth Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2019-10-16 21:56 +0200
              Re: Kein Schwein programmiert(e) in Forth Hanno Foest <hurga-news2@tigress.com> - 2019-10-16 22:26 +0200
        Re: Kein Schwein programmiert(e) in Forth Hans-Juergen Schneider <echo@hrz.tu-chemnitz.de> - 2019-10-16 17:11 +0200
          Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-16 14:32 -0300
            Re: Kein Schwein programmiert(e) in Forth Heinz Schmitz <kma@kma.org> - 2019-10-17 09:34 +0200
              Re: Kein Schwein programmiert(e) in Forth Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2019-10-17 13:18 +0200
                Re: Kein Schwein programmiert(e) in Forth Heinz Schmitz <kma@kma.org> - 2019-10-18 10:52 +0200
            Re: Kein Schwein programmiert(e) in Forth Andreas Karrer <ak-9a@gmx.ch> - 2019-10-17 11:22 +0000
              Re: Kein Schwein programmiert(e) in Forth Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2019-10-17 13:28 +0200
                Re: Kein Schwein programmiert(e) in Forth Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2019-10-17 13:30 +0200
                Re: Kein Schwein programmiert(e) in Forth Eric Bruecklmeier <usenet@nerdcraft.de> - 2019-10-17 13:37 +0200
                Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-17 14:21 +0200
                Re: Kein Schwein programmiert(e) in Forth Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2019-10-17 16:10 +0200
                Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-17 16:58 +0200
                Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-17 17:26 +0200
                Re: Kein Schwein programmiert(e) in Forth Helmut Schellong <rip@schellong.biz> - 2019-10-17 21:26 +0200
                Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-17 16:13 -0300
                Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-17 16:56 -0300
                Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-17 17:12 -0300
                Star Wars :(  was(Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-17 17:45 -0300
                Re: Star Wars :( was(Re: Kein Schwein programmiert(e) in Forth Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2019-10-18 00:53 +0200
                Re: Star Wars :( was(Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-18 09:12 +0200
                Re: Star Wars :( was(Re: Kein Schwein programmiert(e) in Forth Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2019-10-18 12:22 +0200
                Re: Star Wars :( was(Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-18 12:43 +0200
                Re: Star Wars :( was(Re: Kein Schwein programmiert(e) in Forth Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2019-10-18 14:11 +0200
                Re: Star Wars :(  was(Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-18 20:02 -0300
                Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-17 22:27 +0200
              Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-17 14:37 -0300
          Re: Kein Schwein programmiert(e) in Forth Roland Franzius <roland.franzius@uos.de> - 2019-10-17 09:29 +0200
            Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-17 09:57 -0300
  Re: Kein Schwein programmiert(e) in Forth Hans-Juergen Schneider <echo@hrz.tu-chemnitz.de> - 2019-10-15 12:08 +0200
    Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-15 07:50 -0300
      Re: Kein Schwein programmiert(e) in Forth Thorsten Böttcher <thorsten_nospam@gmx.net> - 2019-10-15 13:50 +0200
        Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-15 09:23 -0300
          Re: Kein Schwein programmiert(e) in Forth Stefan Reuther <stefan.news@arcor.de> - 2019-10-15 18:43 +0200
    Re: Kein Schwein programmiert(e) in Forth Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2019-10-15 13:49 +0200
  Re: Kein Schwein programmiert(e) in Forth Franz Glaser <franz@meg-glaser.com> - 2019-10-15 12:21 +0200
  Re: Kein Schwein programmiert(e) in Forth Leo Baumann <charly020664@yahoo.de> - 2019-10-15 16:29 +0200
  Re: Kein Schwein programmiert(e) in Forth Ralph Aichinger <ra@pi.h5.or.at> - 2019-10-16 14:48 +0200
    OT (was: Re: Kein Schwein programmiert(e) in Forth) Andreas Neumann  <an5275@sedo.com> - 2019-10-16 15:01 +0200
    Re: Kein Schwein programmiert(e) in Forth Guido Grohmann <guido.grohmann@gmx.de> - 2019-10-16 19:04 +0200
      Re: Kein Schwein programmiert(e) in Forth Gerhard Hoffmann <dk4xp@arcor.de> - 2019-10-16 19:24 +0200
        Re: Kein Schwein programmiert(e) in Forth Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2019-10-16 22:09 +0200
          Re: Kein Schwein programmiert(e) in Forth Hanno Foest <hurga-news2@tigress.com> - 2019-10-16 22:28 +0200
          Re: Kein Schwein programmiert(e) in Forth Axel Berger <Spam@Berger-Odenthal.De> - 2019-10-16 23:04 +0200
            Re: Kein Schwein programmiert(e) in Forth Hans-Peter Diettrich <DrDiettrich1@aol.com> - 2019-10-17 00:48 +0200
      Re: Kein Schwein programmiert(e) in Forth Johannes Bauer <dfnsonfsduifb@gmx.de> - 2019-10-16 21:24 +0200
        Re: Kein Schwein programmiert(e) in Forth "Peter Heitzer" <peter.heitzer@rz.uni-regensburg.de> - 2019-10-17 08:01 +0000
          Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-17 10:31 -0300
  Re: Kein Schwein programmiert(e) in Forth "Wolfgang Allinger" <all2001@spambog.com> - 2019-10-17 16:26 -0300

csiph-web