Forth Programming Language - Shropshire LUG - Oct 2020

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 พ.ย. 2020
  • Well we have a great talk this month Carsten as kindly volunteered to give a talk on the Forth programming language a favorite language of many an embedded programmer and enthusiast alike! Learn the history and how it’s implemented as well as what you can do with it when you got it working 😉 . Carsten delivered a talk to NoVaLUG a couple of months back and if that's anything to go by, this one should be equally as good.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 33

  • @TheJacov
    @TheJacov 3 ปีที่แล้ว +6

    OK I figured it out. you were using hex mode and 120d is 0x78h so in fact the answer was correct, just in an unexpected format.

  • @BobBeatski71
    @BobBeatski71 2 ปีที่แล้ว +2

    I'm hooked ! Thanks for recording this video and making it available. 👍

  • @nigelgunn322
    @nigelgunn322 2 ปีที่แล้ว +1

    Interesting talk, Thanks. Reminded me of several thing long forgotten.

  • @tariqgorsi7505
    @tariqgorsi7505 2 ปีที่แล้ว +2

    Very good information about using and programming in FORTH. Many Thanks for the nice presentation.

  • @abpccpba
    @abpccpba 3 ปีที่แล้ว +3

    Thanks Very much quite enlightening. : - ))

  • @dappinstitute
    @dappinstitute 2 ปีที่แล้ว

    Amazing! Thank you.

  • @nickbernstein
    @nickbernstein 2 หลายเดือนก่อน

    This was really interesting, thanks. Did you export the presentation from org-mode?

  • @robheusd
    @robheusd ปีที่แล้ว +1

    @15:40 i was surprised that literal numbers could be used as ordinary defined words, i expected Forth would interpret numbers as numbers and put them on the stack and not search it in the dictionary, but appearantly that is incorrect. I would however not be recomendable to use numbers as words, because the code would become less readable.

  • @SantoshKumar-by2gd
    @SantoshKumar-by2gd 3 ปีที่แล้ว +6

    it should be FILO not FIFO. FIFO is actually queue.

    • @niclash
      @niclash 6 หลายเดือนก่อน +1

      🙂FYI; We normally call it LIFO and not FILO.

  • @sohangchopra6478
    @sohangchopra6478 2 ปีที่แล้ว

    The Forth terminal link in first slide is not working

    • @0LoneTech
      @0LoneTech 2 ปีที่แล้ว

      That would likely be because that workshop has ended. It's not hard to find a Forth to play with yourself; e.g. someone linked one that runs in a browser in another comment here.

  • @TheJacov
    @TheJacov 3 ปีที่แล้ว +1

    I don't quite know what's going on here, but 5! is 120 not 78. I tried your code using Win32Forth and it returned the correct answer so I don't see how you got 78? I tried values from 1 to 15 and they all seem to be correct so you must have suffered some kind of glitch.

    • @niclash
      @niclash 6 หลายเดือนก่อน +1

      I also reacted and checked in GForth and the code given works on my system as expected. No idea what happened.

    • @TheJacov
      @TheJacov 6 หลายเดือนก่อน

      @@niclash: Yea, I frequently use gforth myself and it works just fine.😁

    • @TheJacov
      @TheJacov 6 หลายเดือนก่อน +2

      @@niclash Also see my second post frm back when, the answer was given in hex!😁

  • @nakternal
    @nakternal ปีที่แล้ว +1

    cube root

  • @jurgenpitaske3820
    @jurgenpitaske3820 3 ปีที่แล้ว +2

    And Easyforth there is a Forth written in Javascript - try it online - no download or installation required.

    • @jurgenpitaske3820
      @jurgenpitaske3820 3 ปีที่แล้ว

      @Rob Scovell I am not a Javascript specialist - but it is all in github
      - as alternative there is now Ting's jeForth, see it tonight in the Zoom meeting

  • @MichaelKingsfordGray
    @MichaelKingsfordGray 2 ปีที่แล้ว

    Is the compiler written with any C code?
    If so, it is bound to fail.

    • @0LoneTech
      @0LoneTech 2 ปีที่แล้ว +1

      Some are, many are not. There are many different Forths; e.g. gforth and yforth have portions implemented in C, while durexForth is implemented in 6502 assembly. Often most of the vocabulary is in Forth itself, and it's far easier to write a new implementation than for C. There are also some processors designed specifically to run Forth.
      Your assertion that anything implemented once in C would fail strikes me as rather strange, though. Does it have any basis? E.g. have you decided that Python, Java and C++ all failed?

    • @MichaelKingsfordGray
      @MichaelKingsfordGray 2 ปีที่แล้ว

      @@0LoneTech Yes: For safety-critical applications, certainly they are failures.
      I now now know why you cower behind a fake infantile name.

    • @0LoneTech
      @0LoneTech 2 ปีที่แล้ว +4

      @@MichaelKingsfordGray Ah, you're just stirring up trouble. Infantile indeed.

    • @MichaelKingsfordGray
      @MichaelKingsfordGray 2 ปีที่แล้ว

      @@0LoneTech Says the infantile anonymous coward, stirring up trouble!
      Alanis Morrissette, THAT is irony!

    • @encapsulatio
      @encapsulatio ปีที่แล้ว

      @@0LoneTech So what programming languages are the safest? And please mention other ones than Rust or Ada.

  • @gavinschuette9826
    @gavinschuette9826 ปีที่แล้ว

    where can I download forth so I can reaplce freebsd icewm firefox and usb3 disk with forth in 1% the code?

  • @gavinschuette9826
    @gavinschuette9826 ปีที่แล้ว

    note to computer forth people gods we want web browser! rest is blah balh

    • @fzelders
      @fzelders 11 หลายเดือนก่อน

      ????