Nokia to Port Perl to Mobiles 258
jonknee writes "MobileTracker notes that Nokia has made it clear that the Perl scripting language is coming to its popular Series 60 devices. This will be a huge boon to mobile software. Just look what happened to the web when CGI got popular. A time frame was not announced."
Pure nonsense (Score:5, Insightful)
This will be a huge boon to mobile software.
What? Please elaborate how perl can help in front-end applications for mobile phones.
Re:Pure nonsense (Score:2, Insightful)
I wont go into a flame/troll, but perl is not liked from some lower levels, and some high levels.
To assume that it will not do anything for -any- platform is just nonsense. It's proved it's worth anywhere where it matters, why wont it here?
Re:Pure nonsense (Score:2)
Re:Pure nonsense (Score:3, Funny)
Re:Pure nonsense (Score:4, Interesting)
j2me can't access the filesystem and stuff like that directly, so that limits a lot what you can do with j2me java.
and symbian c++ isn't that straightforward to pick up and the sdk isn't that hot either(grr.. i wish i had some GOOD book on it, learning it as i go at the moment), even though that's the way to do powerful applications and seems to have some logic once you 'get in it'. j2me on the other hand was very easy to pick up.
so it would be very nice to have some light(to write) scripting language that could access the whole hardware(for doing apps that do periodical file uploads, analyze some files or whatever).
Re:Pure nonsense (Score:2, Informative)
It's open source (something we all like), BASIC-like but to me almost a scripting language. Extensible and *very* powerful!
However, Perl will be welcome, actually *any* language should be welcome.
Why do you think there should be less development solutions for Symbian OS that say Linux?
Re:Pure nonsense (Score:2)
I think porting perl here will not add a lot to what's available.
Re:Pure nonsense (Score:3, Informative)
if i'm wrong, prove it with one app that does it and preferebly a sdk too.
"The Nokia 7650 smartphone, released in Q3 2002, is a member of the Nokia Series 60 UI family. This model runs Symbian OS v6.1 customised to the Series 60 look and feel and supports Java MIDP 1.0. In addition, Nokia provide a couple of proprietary extension APIs (in the com.nokia.mid.sound and com.nokia.mi
Re:Pure nonsense (Score:2)
This surely can't be the point of porting perl. The J2ME/MIDP1.0 implementation (of the 3650, anyway) is already "enhanced" (it does stuff that isn't in the MIDP specs - the whole com.nokia.* packag
Re:Pure nonsense (Score:3, Interesting)
those extensions aren't that hot(when it comes to truly extending midp) and midp itself is lacking in when it comes to writing certain type of apps(like some app that would requir
Re:Pure nonsense (Score:2)
Re:Pure nonsense (Score:2)
Re:Pure nonsense (Score:2, Funny)
That can directly be used as perl code.
Re:Pure nonsense (Score:2)
At the end of the article, he quotes Rael Dornfest, author of Google Hacks and the mobilewhack, with that same exact plead.
Re:Pure nonsense (Score:5, Insightful)
Perl is dead. All the old perl geeks I know are presently unemployed, and doing their damndest to learn java, .NET or even PHP. Perl is probably fine for half arsed system scripts that don't exceed 50 lines or so, but it is a hindrance and an abomination to a professional development environment - most of which are tending towards python for their prototyping half-arsed scripting needs anyway.
Err, right...
Perl is used alot for CGI and for system admin stuff, but thats not really its target market (any more?). I'm part of a group thats got 30 or 40,000 lines of mission critical Perl running hardware that costs $10 a second whether its running or not. Down time is minimal.
Large Perl applications can be very maintainable so long as you have decent coding standards and actually use the features that are available in the language. Perl is powerful, just because the basics are easy to learn doesn't mean the heavy duty stuff isn't there. Most people that think themselves serious Perl hackers don't use a tenth of the languages features and aren't familiar with how to write decent, readable, object-orientated Perl.
Like any language you can't force people to write good code. You only have to look at the hideously slow half arsed Java applications that get churned out by people calling themselves programmers, but who know nothing about proper application design, to know that.
Al.And furthermore... (Score:2, Informative)
Perl is probably fine for half arsed system scripts that don't exceed 50 lines or so, but it is a hindrance and an abomination to a professional development environment
Perl can be used by people who are not professional developers--people like "half arsed system" administrators who like to actually do useful things. Non-technical people can do things with Perl, too. Granted, sometimes they make awful mistakes, and on a networ
Re:Pure nonsense (Score:2, Interesting)
That is over $315 million dollars a year in costs. What system on the planet costs that much to run per year?
Thanks
Re:Pure nonsense (Score:3, Interesting)
That is over $315 million dollars a year in costs. What system on the planet costs that much to run per year?
Big budget, big science. Trust me $315 million isn't really that much money.
Al.Re:Pure nonsense (Score:2)
He didn't say that...
No, I didn't.
Al.Re:Pure nonsense - no pure BS (Score:4, Interesting)
However let me chime in also, were I work we just released a web based control system that monitors and controls a large remote vessel for the Navy. The system continuously monitors vessel roll, pitch, ballast levels, mooring tensions, intrusion detection, etc.
This vessel is research platform is unattended for long periods of time. If an alarm condition is encountered the system starts a generator fires up a long haul net connection and sends data and images and dispatches alarm e-mails and phone messages.
I think we can use the term "mission critical" for this application. It is written with Perl and uses Apache sitting on top of Linux.
Oh and by the way we got to do this job because of a similar successful system that monitors and provide critical control for a research submersible.
We have about 15k lines of code libraries that are well written, modular and easy to maintain. Perl's facilities promote packaging your design into small self-contained objects and features like built in (and fast) reg exp, symbolic references, tie, fast (near C like) I/O, etc are fantastic tools that speed development.
Re:Pure nonsense (Score:2, Interesting)
Have you given it some thought?
Re:Pure nonsense (Score:3, Insightful)
If your hardware is so expensive...
Why are people assuming by hardware I meant the computers? The computers control stuff, this is also hardware? Its just rather hard to use without the computers... *scratch head*
Al.Take a look a Perl6 ... more powerful than C# (Score:2)
Java is a mess. It runs reliably on 2 platforms and uses bytecode. Perl does real compilation which is more efficient.
Re:Perhaps they mean a Perl-like subset (Score:2)
If would be more efficient (and probably more cost effective in cases were large volumes are involved) to use an OS or language that was designed from the ground up to be small and efficient.
Great (Score:4, Funny)
Next mobile (Score:2, Interesting)
Comment removed (Score:4, Interesting)
Re:Next mobile (Score:4, Interesting)
It goes without saying that it's bound to have an IRC client
Re:Next mobile (Score:5, Informative)
Big question - does it have an SSH client?
What? For the Nokia Series 60 platform? Yes!
I SSH into my workplace UNIX box from my Nokia 3650 [nokia.com] moderately regularly. The SSH client for SymbainOS is a port of PuTTY and can be found here [sourceforge.net].
Al.Re: (Score:3, Interesting)
Re:Next mobile (Score:2, Interesting)
I will, however, admit that it would be an easy way to brag about your uptime amidst your friends without the need to have physical access to the c
Re:Next mobile (Score:2)
Re:Next mobile (Score:2)
Re:Next mobile (Score:2, Informative)
Symbian creates a platform. It's not 'Nokia Symbian', it's just Symbian. The nokia S60 is another layer of itself so it's not automagically backported to Symbian. (UIQ is actually just a reference UI for Symbian 7. Nokia made it's own -- S60+S80+S90, SonyEricsson decided to use the UIQ)
After that the customers (Nokia, SonyEricsson and so forth) throw out what they don't want, recode some parts which they want to interface their own way and code new ones.
I strongly sus
cool new use for regexes... (Score:5, Funny)
This is a great idea (Score:4, Interesting)
They are right, for ripping info off of web pages and stuff you just can't compare C++ and Java to Perl because of the overhead, kudos. Now you can make perl scripts to provide real time quotes off of various websites very quickly, this is great news.
Re:This is a great idea (Score:2, Troll)
Re:This is a great idea (Score:2)
String name = request.getProperty("name");
seems pretty a lightweight way to get stuff from a web request.
Re:This is a great idea (Score:3, Informative)
Perl has a compiler and a virtual machine just like Java does. In cases where high performance is really necessary, perhaps Nokia will cache bytecode or use a persistent interpreter.
With that said, I'd rather see them use Parrot, as it's a nicer approach in the long term.
Re:This is a great idea (Score:3, Informative)
Perl isn't fully interpreted. I'ts processed and "compiled" to an internal bytecode, then executed. Perl 6 makes this more explicit with the breakout of the Parrot VM. Picture you being able to run java on java sources directly, because there is a hidden pass to javac on every run.
Re:This is a great idea (Score:5, Insightful)
Re:This is a great idea (Score:3)
Re:This is a great idea (Score:3)
I remember the same arguments being used against C++ in the 80s.
Re:This is a great idea (Score:2)
Re:This is a great idea (Score:3, Interesting)
Re:This is a great idea (Score:2)
Ahh, so some people just start writing java code without even reading the book? That explains a JSP coder i had to deal with at one job I had...
Pleasure (Score:5, Funny)
When CGI got popular (Score:5, Insightful)
But mobile phones aren't static. The more modern ones can already run applications written in C/C++ or Java. Simply adding support for perl merely increases the number of people who could write code for them. The difference is nowhere near as great as CGI vs custom web server was.
Don't get me wrong, I'm not saying that this is a bad thing, by any means. I just don't see it having quite the same degree of impact as the poster.
Re:When CGI got popular (Score:2)
Obviously, the slashdot editors are excited by now being able to run slashcode on their phones.
Re:When CGI got popular (Score:2)
Re:When CGI got popular (Score:2)
Now I need an external keyboard (Score:5, Funny)
Re:Now I need an external keyboard (Score:3, Informative)
Nokia 6800 [nokia.co.uk]
built in qwerty keyboard, quite nice, and not as heavy or bulky as you would expect.
Re:Now I need an external keyboard (Score:2)
Why didn't they go with USB or Firewire? Or, for that matter, Bluetooth or 802.11a/b/g?
Re:Now I need an external keyboard (Score:2)
Re:Now I need an external keyboard (Score:2, Informative)
Nokia needs to focus on fixing their issues first (Score:5, Insightful)
Re:Nokia needs to focus on fixing their issues fir (Score:2, Insightful)
Forget the tutorials, yes the documentation is often not up to date, however, there are better places to learn midp programming than Nokia tutorials. There is *nothing* Nokia specific to midp programming!
Point some midp2.0 that works on any phone but a Nokia please? I haven't seen any!
Bugs in Nokia software? Certainly! Midp2.0 completely broken? No way!
Re:Nokia needs to focus on fixing their issues fir (Score:2)
Known issues with 6600 [nokia.com]
If you KNOW you have issues - DON'T SHIP THE PRODUCT! Its painfully clear that we can't upgrade these phones once they're in the space.
Re:Nokia needs to focus on fixing their issues fir (Score:2)
Confused? (Score:5, Funny)
Re:Confused? (Score:2)
this works well - but confuses the hell out of my better half when she tries to send a message on my phone. obvious words often come out as strange collections of odd characters (to her)
Just imagine how much BETTER it could be if perl was in the mix right there on the phone!
More information on the topic (Score:5, Informative)
JAPH SMS! (Score:2, Insightful)
Python on Siemens (Score:5, Funny)
Python is only a matter of time (Score:2)
I guess choosing Perl for porting is a form of popularity whoring - Perl is more popular that Python, let's port that, even when porting Python would be a more sensible move in technical sense (why would any sane person port such a monolithic awk-sed-workalike to a phone is beyond me). And also in the "open source community" sense; Perl seems
Good news, I suppose ... (Score:4, Insightful)
Re:Good news, I suppose ... (Score:3, Funny)
Re:Good news, I suppose ... (Score:2)
Yeah, well, ...
Two seconds after I posted I realized my comment might trigger a cascade of "Oh yeah, well what about #{my_favorite_language}? It has #{lang.features.join( ' and ' )}"
Ruby isn't the only choice that would have been better than Perl; one of the strong factors typically in Perl's favor, the large number of available third-party libs, likely isn't useful h
Re:Good news, I suppose ... (Score:2)
Perl vs. Ruby flamewar in 3..2.....oh wait, nevermind.
cool... (Score:2, Funny)
Re:cool... (Score:2)
Re:cool... (Score:2)
Well since there's already a web server for Nokia phones...
Unfortunately most of the cell networks firewall off the phone's IP rather vicously and you can't actually access it after you have it running (except from another phone on the same network)... ho hum!
Al.Nokia perl (Score:5, Funny)
Wrong link (Score:4, Informative)
Language Thrashing (Score:5, Interesting)
I was at Borland when the C++ effort started scaling up, and there was a lot of enthusiasm among people who thought that there was going to be a huge demand for personal device apps. Obviously there's the same feeling at Nokia, only more so. I suspect that this market is not living up to expectation -- the only apps that generate any buzz are phonecams and games, and there's only so much market for those. Nokia seems to think that there'd be more cool apps if there were more and better development tools. I really doubt that this is the problem.
Re:Language Thrashing (Score:3, Informative)
I do hope you're joking - I've been a Java programmer for 3.5 years now, and while I certainly *could* use vi (and some of my colleagues do), I wouldn't choose to do so.
There are a great many proper IDEs available for developing Java, including Borland's JBuilder (which includes a free-as-in-beer version for personal use), netbeans (Free), eclipse (Free), AnyJ (free under Linux), etc.
Sure, you can use your favourite text edit
Re:Language Thrashing (Score:2)
Re:Language Thrashing (Score:3, Interesting)
I don't know if it's "the" problem, but it certainly is a large part of the problem.
I had the misfortune to work on a USB sync application for a Symbian device, and the development tools are a throwback to the early 1970s. Writing a simple "Hello World" application for Symbian requires hundreds of lines of C++, MMC, IDL, and makefile text.
You mention VC++ as the IDE
News (Score:4, Funny)
How is java overkill? And how is this even big? (Score:5, Insightful)
Also, how exactly is java "overkill" for these devices? People talk about how a hello world app is 5 lines of code, but those few lines are constants that are going to be in any small app (i.e. public class Classname{ public static void main(String args[]){
If they're talking about running time, they're probably wrong too. Perl is interpreted, while java runs in a VM. I don't know if they use JIT on moble devices, but java will still be faster then Perl.
So how is java 'overkill'? This is certainly good news for perl buffs, but I don't know why the rest of us should care.
Re:How is java overkill? And how is this even big? (Score:4, Insightful)
CGI was the first easy way to program interactive web pages, as far as I know (it was a bit before my time), and perl was one of the languages you could use...
While you can use Perl to write CGI, Perl doesn't really have anything to do with CGI coding. You talk alot about CGI, not Perl, I don't see your point? CGI is totally irrelevant to mobile phones...?
Saying that Perl is used to write CGI scripts is like saying Java is used for writing web applets. Yes, you can write applets in Java, but most of the people I know don't.
Al.Re:How is java overkill? And how is this even big? (Score:2)
Yes, it is totally irrelevant. This makes the statement referencing CGI in the body of the Slashdot article [slashdot.org] (to which the grandparent was obviously replying) all the more mistifying.
Re:How is java overkill? And how is this even big? (Score:5, Insightful)
Call me old-fashioned, but I like simple things to be simple. I've written about this before, but it seems like java wonks can't write a hello world with out also generating a "HelloWorld" class, and about 500 classes (not lines of code, but classes to go along with it. I'm getting pretty pissed off about it.
Not all problems require an OO solution. The majority of all problems don't require an OO solution. When you're doing something simple, the code should be simple as well. Why invent zillions of java classes and interfaces when 5 or 10 lines of perl code will do? IMO, this is the overkill that people speak of.
And, as we all know, complicated things are just layered simple things, so perl does well for complicated things, too. Very well, in fact.
Perl is interpreted,...
This is a common mispercption about perl. Perl is what mainframers used to call a "compile and go" language (I used to do all my MNF programming as compile and go, but then I had unlimited machine time). Perl is compiled down to an optree, and the the optree is run by the perl runtime (which is essentailly a VM, but the perl folks don't like to call it that). This all happens transparently. An interpeted language is quite a different thing.
I have my doubts. All the language performance comparisions I've read never take into account that perl programs are compiled just before they are run. I'd wager that if this was taken into account, then their performace would be fairly similar. (Of course, anyone can write inefficient programs in any language).
Re:How is java overkill? And how is this even big? (Score:2)
So just like Java, except for the compiling to bytecodes is done at runtime. I don't know how you concieve of interpreted languages, but even some of the old-style BASICs did something similar. Translating each line from text every time it's run isn't done in modern no
Re:How is java overkill? And how is this even big? (Score:5, Insightful)
Happy? There's a little more text, but no more programming is required then the C version.
Happy??? What is there to be happy about that? Let's see what you really have there. You have a file that MUST be named HWorld.java. You have an HWorld class. You have the mandatory main function. Then a function call. At the end of the day, it's a whole lot of typing for a "Hello world" program.
In this simple example Perl rocks the socks off of Java.
Let's get a comparison on slow hardware to magnify latencies: celeron 500mhz, 128 megs RAM.
Recent Java (1.4.1_02)
javac compilation of HWorld: 10 seconds
java execution of HWorld: 1 second
size of Hworld.class: 417 bytes
Recent Perl (5.8.2)
perl compilation:
perl compilation & execution: 0.027
size of hworld.pl: 39 bytes
Come again as to what exactly java is better at? It takes more Java to do the same thing in Perl, and no offense, the code you mentioned isn't exactly a joy to read (90% of it is required filler/overhead). Some might call that OVERKILL.
Re:How is java overkill? And how is this even big? (Score:2)
Java zealots who sit there and say that Java code is "pertier" than Perl are discussing something that is a matter of opinion and I'm just stating the Java Emporer has no clothes.
Java easily allows bad/ugly code as well. You can inherit classes ad nauseum to the point of who knows what the fuck a method might be doing when it's called.
Perl doesn't need an I
Re:How is java overkill? And how is this even big? (Score:2)
Re:How is java overkill? And how is this even big? (Score:2)
How many bytes of mem does it use at runtime? How is it linked?
Sometimes the correct thing to do is to trade off memory and CPU usage for less upfront developer time. Sometimes you need something that'll run small and tight and it doens't matter how much effort (within limits) it takes to get it to run faster and smaller. It depends very heavily on what you're doing and why...
Al.CGI? (Score:3, Insightful)
Further, perl is not the only scripting language on the internet; furthermore i doubt it is the most popular. PHP, ASP, Java; all popular and equally efficient languages.
Camels and snakes (Score:2)
This is good news (Score:5, Insightful)
There's no denying that you can write really ugly code in Perl, but you can also write beautiul code in Perl. I think some of the people who knock Perl are confusing "undisciplined" with "not anal retentive". Perl was always based around the idea of serving the end rather than the means -- it's about where you're at, rather than how you got there. It does not impose a particular style on the programmer. Thus, for any given task, there could be many, many ways to accomplish it in Perl.
They're all right.
Some will be faster than others, some will use fewer resources than others, some will look prettier then others when viewed as source. But if you don't care enough about those things to mention them in the design spec, then they don't matter.
Now, you can have your fancy object-oriented stuff, but in many ways it's overkill. For instance, if you needed to write a programme involving geometry, you could create an Angle object which would have a value assumed to be in radians and properties for its sine, cosine, tangent and representation in degrees; a Distance object which would have properties for its representation in different measuring units; and assigning a value to any property would affect the object and therefore its other properties. It might be beautiful if you like the OO concept, but it's a bit overkill if you just want to find the missing side of a triangle.
And does a "disposable" programme -- one that you will run only a few times before forgetting it forever -- really need to look pretty anyway?
As for PHP, well, it really isn't much different from Perl -- apart from always needing to put brackets around function parameters, the fact that all variables start with a $ sign whether scalar, array or hash and there is no $_. {I happen to love $_. It goes nicely with the concept of an accumulator. If you never did any assembly language, you probably won't know what I'm talking about, though}. That is hardly surprising, because the original PHP was actually written in Perl to be like a kind of subset of Perl.
Also, one of my little niggles -- and I freely admit that this is just my own opinion -- is the inability to get on with any language that uses the plus sign as the string concatenation operator while letting you freely mix string and numberic variables. {*cough* ruby *cough*} I expect "2" + 2 to equal 4, not 22. Hell, if I have to do something to my variables before I can add them, that just nullified the advantage of having freely-mixable scalar types! It might as well be a strict-typed language and barf on an expression such as "2" + 2!
As for Python - well, it's not my cup of tea {I guess you like either Perl or Python} but other people seem to have written some pretty good stuff in it, so I shan't knock it.
Re:This is good news (Score:3, Interesting)
> to equal 4, not 22
Hm. In Ruby that'll raise an exception:
But of course, you could do:
or
to get whatever result you want.
Re:This is good news (Score:2, Interesting)
Maybe not, but what if you do decide that you need it again 6 months later with some slight modifications you might not be able to figure out what your 'disposable' program was doing.
is the inability to get on with any language that uses the plus sign as the string concatenation operator while letting you freely mix string and numberic variables. {*cough* ruby *
great boon? (Score:2)
Tom
Microsofts Answer? (Score:2, Funny)
So what you're telling me is.... (Score:2, Funny)
Relax...
it's Funny...Ha..Ha..
Different times (Score:3, Informative)
But it would seem like JAVA would be more ideal for cell phones for basic programs, however I am sure we'll see a 1001 nokia address orgainizing scripts here soon.
Just Rumours? (Score:2, Interesting)
Re:The reason they don't port Python (Score:2)