Author Topic: Perl microcontroller?  (Read 5836 times)

0 Members and 1 Guest are viewing this topic.

Offline Gordo4444Topic starter

  • Full Member
  • ***
  • Posts: 58
  • Helpful? 0
Perl microcontroller?
« on: December 07, 2008, 02:51:36 PM »
Is there a perl-based microcontroller out there? I just started using perl for home projects and stuff and I was wondering if it could be used in programming microcontrollers.
Amy: Spirit! Kif, that's the pony I always wanted but my parents said I had too many ponies already.

Kif: Yes, I programmed it in for you. Four million lines of BASIC!

Offline MaltiK

  • Robot Overlord
  • ****
  • Posts: 300
  • Helpful? 2
Re: Perl microcontroller?
« Reply #1 on: December 07, 2008, 04:20:22 PM »
I have never heard of, nor seen one. And a fast google search yielded inconclusive results.
Warranty

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,431
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
    • Nerdcore - Programming, Electronics, Mechanics
Re: Perl microcontroller?
« Reply #2 on: December 07, 2008, 07:34:41 PM »
Perl is not compiled, it is interpreted, therefore you would need to do something like Java robots do. They have a really small JVM that they have to stuff on the MCU. So if you can find a small interpreter you can upload!

Offline cosminprund

  • Robot Overlord
  • ****
  • Posts: 284
  • Helpful? 8
Re: Perl microcontroller?
« Reply #3 on: December 08, 2008, 01:52:04 AM »
I don't think such a thing as a "Perl Virtual Machine" exists! Java has been designed from the ground up to use a VM, this makes it possible for a java virtual machine to exist. Java code is compiled for the JVM just as .NET code is compiled for the Net Framework. On the other hand we're allways running perl files as... perl files!

One of those powerfull Atmel MCU's that can support an Linux Kernel should be able to handle perl.

Offline leeguy92

  • Jr. Member
  • **
  • Posts: 14
  • Helpful? 0
Re: Perl microcontroller?
« Reply #4 on: December 08, 2008, 11:44:18 AM »
to quote wikipedia:
Quote
Many earlier computer languages, such as Fortran and C, were designed to make efficient use of expensive computer hardware. In contrast, Perl is designed to make efficient use of expensive computer programmers.

Perl has many features that ease the programmer's task at the expense of greater CPU and memory requirements.
doesn't sound good for inexpensive MCUs.

Offline dunk

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 1,086
  • Helpful? 21
    • dunk's robot
Re: Perl microcontroller?
« Reply #5 on: December 08, 2008, 07:27:20 PM »
hey Gordo,
ok, i'm biased: i avoid using perl at work if at all possible. (python is my preference if you need a scripting language...)

while it has a large following with oldschool sysadmins perl is not suited to microcontroller programming.
as a result you will not find one using it.

take the plunge and try C. it's far better suited to microcontroller programming.
if you can program in perl you can learn C and you will have a huge range of platforms to choose from.


dunk.

Offline leeguy92

  • Jr. Member
  • **
  • Posts: 14
  • Helpful? 0
Re: Perl microcontroller?
« Reply #6 on: December 09, 2008, 09:18:01 AM »
im even more biased from perl, i detest dynamic typing - its wrong, just plain WRONG!!! >:(

Offline dunk

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 1,086
  • Helpful? 21
    • dunk's robot
Re: Perl microcontroller?
« Reply #7 on: December 09, 2008, 09:57:00 AM »
Quote
im even more biased from perl, i detest dynamic typing - its wrong, just plain WRONG!!! Angry
heh. i presumed we were talking about this perl:
http://perl.com/
not this perl:
http://eu.blackberry.com/eng/devices/blackberrypearl/?navId=H0,C101

but i could be wrong...


dunk.

Offline bryan922

  • Jr. Member
  • **
  • Posts: 25
  • Helpful? 0
Re: Perl microcontroller?
« Reply #8 on: December 25, 2008, 08:31:47 PM »
If you're any good at Perl, then you can learn C. If you aren't any good at Perl, then you might as well learn C.

Putting a Perl program in a microcontroller would be like putting a manufacturing plant on a robot, just to have it handy to make parts for the robot. But the robot would be a bit bloated and inefficient.

Putting a C program in a microcontroller is like custom designing high performance parts in a lab and them mounting the parts in the robot.

Either way, you've got to make the parts.

 

SMF spam blocked by CleanTalk