LWN: Comments on "Micro Python on the pyboard" https://lwn.net/Articles/648051/ This is a special feed containing comments posted to the individual LWN article titled "Micro Python on the pyboard". en-us Tue, 14 Oct 2025 01:45:47 +0000 Tue, 14 Oct 2025 01:45:47 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Micro Python on the pyboard https://lwn.net/Articles/649196/ https://lwn.net/Articles/649196/ cry_regarder Darn...I didn't read it as IF ... THEN since they are compile-only words! That is pedantic though. There was nothing wrong with alonz's answer. But just 'cause, here we go: :-p <pre> : forth s" forth" ; : you s" cry" ; : read s" reads" ; : kudos s" kudos" ; : robbe s" robbe" ; : cats 2rot pad place s" " pad +place pad +place s" " pad +place pad +place pad count ; : can? 2rot 2swap cats s" cry reads forth" COMPARE IF false ELSE true THEN ; : get ( s1 s2 : "s1 gets s2" ) s" gets" cats ; : if? 2 pick IF type ELSE ." Nope! No kudos!" THEN ; CR forth you read can? you kudos get if? CR forth robbe read can? robbe kudos get if? CR </pre> OMFG that is some bad code...it has been too long. Wed, 24 Jun 2015 15:50:17 +0000 Micro Python on the pyboard https://lwn.net/Articles/648906/ https://lwn.net/Articles/648906/ robbe <div class="FormattedComment"> It's been a long time, but alonz's code looks more correct than yours (which *at least* misses a "then") ... assumed that "can?" and "get" are functions taking three and two arguments, respectively.<br> </div> Mon, 22 Jun 2015 11:14:56 +0000 Micro Python on the pyboard https://lwn.net/Articles/648672/ https://lwn.net/Articles/648672/ cry_regarder <div class="FormattedComment"> Nonono! You just reversed the infix! It should have been:<br> <p> forth you read can you kudos get if <br> <p> :-)<br> </div> Fri, 19 Jun 2015 14:01:18 +0000 Micro Python on the pyboard https://lwn.net/Articles/648664/ https://lwn.net/Articles/648664/ hthoma <div class="FormattedComment"> ;-)<br> <p> but forth is still easier to read than most perl, at least if you are used to HP calculators<br> </div> Fri, 19 Jun 2015 10:49:07 +0000 Micro Python on the pyboard https://lwn.net/Articles/648647/ https://lwn.net/Articles/648647/ alonz forth read you can? if kudos you get then <p> (Sorry, couldn't resist) Fri, 19 Jun 2015 08:38:04 +0000 Micro Python on the pyboard https://lwn.net/Articles/648530/ https://lwn.net/Articles/648530/ cry_regarder <div class="FormattedComment"> Interesting. My reflex would have been to use a forth stack.<br> </div> Thu, 18 Jun 2015 15:39:18 +0000 Micro Python on the pyboard https://lwn.net/Articles/648480/ https://lwn.net/Articles/648480/ nadrimajstor <div class="FormattedComment"> In the world of Micro Python drivers written in python are first class citizens and juggling registers/bitfields using named tuples offers a benefit of being more expressive. Having limited programming experience I find it more accessible than Arduino(s) world.<br> </div> Thu, 18 Jun 2015 11:15:04 +0000