Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: What do we have to do to resuscitate micro Perl? I want Circuit Perl NOW!

by stevieb (Canon)
on Feb 28, 2018 at 14:28 UTC ( #1210080=note: print w/replies, xml ) Need Help??


in reply to What do we have to do to resuscitate micro Perl? I want Circuit Perl NOW!

I'm no authority, but I highly doubt that even the most trimmed down version of perl could "fit and run within just 256k of code space and 16k of RAM". I would stand corrected if it were possible.

Not embedded, but for Raspberry Pi, we've got RPi::WiringPi (tutorial) and WiringPi::API, but that's not microcontroller.

Personally, I sometimes do my microcontroller prototyping on a Linux box with Perl, then port it over to C/C++ when the code does what I want, but the whole point of using a microcontroller is to run extremely efficiently. Adding in a whole extra layer would slow things down at best, and add in an entire new software layer for things to go wrong at worst.

I haven't heard of any ongoing projects like this, so I'm interested to see what other's takes are though...

  • Comment on Re: What do we have to do to resuscitate micro Perl? I want Circuit Perl NOW!

Replies are listed 'Best First'.
Re^2: What do we have to do to resuscitate micro Perl? I want Circuit Perl NOW!
by LanX (Archbishop) on Feb 28, 2018 at 15:29 UTC
    > I'm no authority, but I highly doubt that even the most trimmed down version of perl could "fit and run within just 256k of code space and 16k of RAM"

    Depends on how much trimmed down is still acceptable.

    Flavio Glock's perlito project is realizing a portable "subset of Perl" implementation which targets JavaScript, Perl 6 and Java engine.

    I don't see a reason yet why Lua couldn't be added.

    It's also unclear for me if the Perl compiler also needs to be fitted into the 256k.

    Executing a cross compiled OP tree (excluding all eval variants) might be sufficient.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Wikisyntax for the Monastery

Re^2: What do we have to do to resuscitate micro Perl? I want Circuit Perl NOW!
by LanX (Archbishop) on Feb 28, 2018 at 15:57 UTC
Re^2: What do we have to do to resuscitate micro Perl? I want Circuit Perl NOW!
by ait (Hermit) on Mar 01, 2018 at 01:52 UTC

    Sure, I get what you're saying. I am not thinking so much for 8 bit AVRs but rather in archs where you may have 2 chips (think Arduino Yśn that's why I mention OpenWRT) or in larger microcontrollers like ESP8266 which is where most of the Circuit Python is working right now AFAIK.

      I don't think "where Python is working".

      I've done my job.

      I don't believe that low-level hardware hackers need to think that hard core embedded stuff should be done with Python/Perl/whatever. If it isn't a micro-controller, its something more high-level, and I didn't think your question leveraged that.

      You may want to rephrase your question, as having extra power and double CPUs to make it 'capable' to run a high(er) level language makes things a microcontroller doesn't quite do that. Items that 'power up' to allow these higher level languages completely take away from their true purpose.

      A microcontroller is like a PLC (Programmable Logic Control)... sway from their basic purpose so they accept anything but basic commands, and you may as well have a full-blown computer :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1210080]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2019-12-06 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (156 votes). Check out past polls.

    Notices?