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


Groups > comp.lang.forth > #46745

Re: BBC MicroBit has arrived - which Forth in Python is recommended for now?

From Paul Rubin <no.email@nospam.invalid>
Newsgroups comp.lang.forth
Subject Re: BBC MicroBit has arrived - which Forth in Python is recommended for now?
Date 2016-04-24 11:23 -0700
Organization A noiseless patient Spider
Message-ID <87inz6lvbx.fsf@nightsong.com> (permalink)
References (6 earlier) <T_ydnam545JU24rKnZ2dnUU78XWdnZ2d@supernews.com> <d7cf3640-40bd-489a-856e-c5441b93d943@googlegroups.com> <nf8r9v$4qn$1@dont-email.me> <d_qdnVnUrr2Cf4XKnZ2dnUU7-KvNnZ2d@supernews.com> <2016Apr24.174508@mips.complang.tuwien.ac.at>

Show all headers | View raw


anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
> How does full duplex work with that?  Do you have one task for reading
> from the port and one task for writing to it?  That would be two tasks
> per port, then....  Certainly an interesting design

I never programmed multitasking Forth but two threads (or processes) per
port is a very typical way to do these things in other systems.

> So how did one communicate with these tasks?  Was this really simpler
> than an asynchronous interface?

With mailboxes.  There's an article by Brad Rodriguez about it and the
interface is similar to how it's done in Go, Python, Erlang, etc.
Whether it's simpler than async is yet another of those dreary
opinionated topics with proponents on both sides.  I myself find it
simpler.  Most Python users prefer async so I'm in the minority (Python
supports both styles).  In Go, Erlang, and Haskell, multiple lightweight
processes/threads/"goroutines" are the norm.  

Python users may be thread-averse because Python uses OS threads which
are fairly expensive.  Java also usually uses OS threads and for a long
time had no way to do async at all, but (true to form for Java) people
didn't care how expensive it was until they had to.

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-06 00:14 -0700
  Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? hughaguilar96@gmail.com - 2016-04-06 00:18 -0700
  Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Martin Nicholas <reply-2016@mgn.org.uk> - 2016-04-06 10:13 +0100
    Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-06 02:32 -0700
      Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Julian Fondren <julian.fondren@gmail.com> - 2016-04-06 03:25 -0700
        Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-06 05:07 -0700
      Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Mark Wills <markwills1970@gmail.com> - 2016-04-06 06:10 -0700
        Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Raimond Dragomir <raimond.dragomir@gmail.com> - 2016-04-06 07:26 -0700
        Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Julian Fondren <julian.fondren@gmail.com> - 2016-04-06 07:38 -0700
          Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-06 08:08 -0700
            Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Raimond Dragomir <raimond.dragomir@gmail.com> - 2016-04-06 08:18 -0700
          Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? lawrencedo99@gmail.com - 2016-06-15 21:34 -0700
            Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? hughaguilar96@gmail.com - 2016-06-16 00:43 -0700
            Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Julian Fondren <julian.fondren@gmail.com> - 2016-06-19 03:54 -0700
        Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-06 07:55 -0700
          Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Raimond Dragomir <raimond.dragomir@gmail.com> - 2016-04-06 08:13 -0700
            Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-06 10:17 -0700
            Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? hughaguilar96@gmail.com - 2016-04-07 00:17 -0700
          Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Mark Wills <markwills1970@gmail.com> - 2016-04-07 01:27 -0700
            Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-04-07 09:29 +0000
              Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-07 03:27 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? rickman <gnuarm@gmail.com> - 2016-04-07 12:11 -0400
              Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Gerard Sontag <gerardsontag@gmail.com> - 2016-04-07 05:39 -0700
              Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? rickman <gnuarm@gmail.com> - 2016-04-07 11:45 -0400
            Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? hughaguilar96@gmail.com - 2016-04-09 00:37 -0700
    Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? rickman <gnuarm@gmail.com> - 2016-04-06 14:47 -0400
  Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? hughaguilar96@gmail.com - 2016-04-06 03:10 -0700
    Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-06 03:32 -0700
    Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Albert van der Horst <albert@spenarnc.xs4all.nl> - 2016-04-06 10:48 +0000
      Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-06 04:22 -0700
      Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-06 08:32 -0700
  Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Paul Rubin <no.email@nospam.invalid> - 2016-04-06 11:44 -0700
    Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-06 12:43 -0700
    Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? rickman <gnuarm@gmail.com> - 2016-04-07 03:31 -0400
      Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Paul Rubin <no.email@nospam.invalid> - 2016-04-07 00:40 -0700
  Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? visualforth@rocketmail.com - 2016-04-06 18:16 -0700
    Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-18 09:49 -0700
      Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Mark Wills <markwills1970@gmail.com> - 2016-04-18 13:20 -0700
        Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-04-19 04:04 -0500
          Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Ron Aaron <rambamist@gmail.com> - 2016-04-19 12:11 +0300
            Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-04-19 05:15 -0500
              Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Ron Aaron <rambamist@gmail.com> - 2016-04-19 13:31 +0300
          Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Raimond Dragomir <raimond.dragomir@gmail.com> - 2016-04-19 02:12 -0700
          Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? rickman <gnuarm@gmail.com> - 2016-04-19 11:48 -0400
            Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-04-20 04:07 -0500
              Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? minforth@arcor.de - 2016-04-20 04:35 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Bernd Paysan <bernd.paysan@gmx.de> - 2016-04-20 21:11 +0000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? minforth@arcor.de - 2016-04-21 05:31 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-04-21 09:22 -0500
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-04-24 15:45 +0000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Paul Rubin <no.email@nospam.invalid> - 2016-04-24 11:23 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? lawrencedo99@gmail.com - 2016-06-15 21:29 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? "Elizabeth D. Rather" <erather@forth.com> - 2016-04-24 09:40 -1000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-04-24 20:18 +0000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? "Elizabeth D. Rather" <erather@forth.com> - 2016-04-24 14:56 -1000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-04-25 03:13 -0500
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Paul Rubin <no.email@nospam.invalid> - 2016-04-25 14:23 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? "Elizabeth D. Rather" <erather@forth.com> - 2016-04-25 14:07 -1000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Paul Rubin <no.email@nospam.invalid> - 2016-04-25 21:36 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-04-26 11:32 +0000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? "Elizabeth D. Rather" <erather@forth.com> - 2016-04-26 08:39 -1000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-04-26 19:20 +0000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? "Elizabeth D. Rather" <erather@forth.com> - 2016-04-26 13:09 -1000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Albert van der Horst <albert@cherry.spenarnc.xs4all.nl> - 2016-04-27 17:55 +0000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? hughaguilar96@gmail.com - 2016-04-27 01:54 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-04-26 02:47 -0500
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Paul Rubin <no.email@nospam.invalid> - 2016-04-26 01:12 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-04-26 04:04 -0500
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Paul Rubin <no.email@nospam.invalid> - 2016-04-26 02:53 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-04-26 08:23 -0500
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Paul Rubin <no.email@nospam.invalid> - 2016-04-27 17:49 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-04-28 03:47 -0500
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Albert van der Horst <albert@cherry.spenarnc.xs4all.nl> - 2016-04-28 11:50 +0000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? hughaguilar96@gmail.com - 2016-04-29 00:11 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Albert van der Horst <albert@cherry.spenarnc.xs4all.nl> - 2016-04-26 11:26 +0000
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? foxaudioresearch@gmail.com - 2016-04-26 07:04 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2016-04-26 09:29 -0500
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Paul Rubin <no.email@nospam.invalid> - 2016-04-26 10:47 -0700
        Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? visualforth@rocketmail.com - 2016-04-20 16:04 -0700
      Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Paul Rubin <no.email@nospam.invalid> - 2016-04-19 10:47 -0700
        Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-04-21 11:54 -0700
  Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? kiy <kiyoneda@gmail.com> - 2016-05-15 17:20 -0700
    Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Bernd Paysan <bernd.paysan@gmx.de> - 2016-06-04 22:01 +0000
      Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-06-05 08:53 -0700
        Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-06-05 08:55 -0700
        Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? visualforth@rocketmail.com - 2016-06-06 19:47 -0700
          Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Jan Coombs <jenfhaomndgfwutc@murmic.plus.com> - 2016-06-07 10:07 +0100
  Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? endlessboomcapitalism@gmail.com - 2016-06-07 08:43 -0700
    Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-06-19 01:20 -0700
  Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-08-06 04:13 -0700
    Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? rickman <gnuarm@gmail.com> - 2016-08-06 13:32 -0400
      Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Cecil Bayona <cbayona@cbayona.com> - 2016-08-06 14:27 -0500
        Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-08-07 03:46 -0700
          Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? rickman <gnuarm@gmail.com> - 2016-08-07 12:31 -0400
      Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-08-07 03:39 -0700
        Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? rickman <gnuarm@gmail.com> - 2016-08-07 12:30 -0400
          Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-08-09 08:20 -0700
            Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? rickman <gnuarm@gmail.com> - 2016-08-09 13:52 -0400
              Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-08-11 03:41 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? rickman <gnuarm@gmail.com> - 2016-08-11 17:56 -0400
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-08-11 22:50 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Paul Rubin <no.email@nospam.invalid> - 2016-08-11 23:13 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? Cecil Bayona <cbayona@cbayona.com> - 2016-08-12 03:43 -0500
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? hughaguilar96@gmail.com - 2016-08-11 23:29 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? rickman <gnuarm@gmail.com> - 2016-08-12 02:48 -0400
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? JUERGEN <epldfpga@aol.com> - 2016-08-12 05:17 -0700
                Re: BBC MicroBit has arrived - which Forth in Python is recommended for now? rickman <gnuarm@gmail.com> - 2016-08-12 11:11 -0400

csiph-web