Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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

by TheloniusMonk (Sexton)
on Aug 30, 2018 at 11:43 UTC ( #1221364=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!

The problem is that embedded things have to be built in a different environment than where they will be used. Even microperl seems to be configured with the opposite expectation (build here to use here). So if microperl is to become embedded, that seems to be the first hurdle to jump.
  • 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 ait (Hermit) on Aug 30, 2018 at 14:30 UTC

    For microperl for sure, and the other issue is memory fragmentation. But right now I think that Perl 5 is a great alternative at the intermediate embedded level and that's where I'm focusing right now: for example, the Linux side of an Arduino Yłn or on a Raspberry PI. I think that is not too much work to create some light weight packages that are targeted to these architectures and to help maintain some of the existing Perl distributions on those platforms (e.g. the perlbase packages on OpenWRT).

    I think that to revive attention on Perl and gain some traction, is to provide simple solutions for hacking in the Maker's ecosystems. We found for example, that if you want to hack a simple microservice on OpenWRT you'd have to spend a lot of time studying Luci and learning LUA, or use Node.js perhaps. But both these approaches require a steep learning curve, are resource hungry, and mostly overkill for the Maker's mentality. People on these platforms want simple and light weight stuff with very few dependencies. I think that Perl 5 can fill this gap so this single file HTTP server was our first step in this direction. I think we may publish on the CPAN and perlbase packages on OpenWRT. We will also spend some time porting Mojolicious to OpenWRT for those Makers that outgrow our one script server.

    Think about why Arduino is so popular? It's because it's easy, fun and simple to work with and experience in minutes. These are the same attributes that made Perl popular on the Web to begin with.

    But in the Arduino Yłn for example, all your are left with on the Linux side is Python and LUA. I think that we have a good chance of reviving interest in Perl for the Yłn crowd and the larger OpenWRT ecosystem first, and then take it from there into more and more Maker spaces.

      You'd need to package a memory manager for the fragmented memory issue. But any embedded system has to have memory management delivered with it - it needs in fact a dedicated super-simple ultra-lite OS packaged in. An embedded distro is self-contained for empty hardware as if straight off the presses.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2020-11-24 18:15 GMT
Find Nodes?
    Voting Booth?

    No recent polls found