Slashdot Mirror


Nokia to Port Perl to Mobiles

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."

65 of 258 comments (clear)

  1. Pure nonsense by Anonymous Coward · · 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.

    1. Re:Pure nonsense by lukew · · Score: 2, Insightful

      Are you kidding?

      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?

    2. Re:Pure nonsense by gl4ss · · Score: 3, Interesting

      it will on depend on what they will make available on it, some extensions to create dialogs and stuff would make creating simple software for it easier, a lot easier to start doing simple software for it at least.

      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).

      --
      world was created 5 seconds before this post as it is.
    3. Re:Pure nonsense by godIsaDJ · · Score: 2, Informative
      What about OPL?
      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?

    4. Re:Pure nonsense by aallan · · 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.
      --
      The Daily ACK - Eclectic posts by yet another hacker
    5. Re:Pure nonsense by Ianoo · · Score: 2, Funny

      Larry pays you money if you develop with Perl!

    6. Re:Pure nonsense by ghum · · Score: 2, Funny

      Really easy. On mobile phones, it is easy get a lot of line noise.

      That can directly be used as perl code.

    7. Re:Pure nonsense by 110010001000 · · Score: 2, Interesting

      "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"

      That is over $315 million dollars a year in costs. What system on the planet costs that much to run per year?

      Thanks

    8. Re:Pure nonsense by aallan · · 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?

      Big budget, big science. Trust me $315 million isn't really that much money.

      Al.
      --
      The Daily ACK - Eclectic posts by yet another hacker
    9. Re:Pure nonsense by aallan · · Score: 2, 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.
      --
      The Daily ACK - Eclectic posts by yet another hacker
    10. Re:Pure nonsense by mefus · · Score: 2, Interesting

      I smell a Linux Magazine article, here.

      Have you given it some thought?

      --
      mefus
      In Open Society, GPL Software frees YOU!
    11. Re:Pure nonsense by gl4ss · · Score: 2, Informative

      it is? well that url you pointed to didn't actually say so. series60 does not have 'personal java' like p800 or communicators do.

      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.mid.ui packages).

      The Sony Ericsson P800, released in Q4 2002, is based on Symbian OS Version 7.0 and uses the UIQ user interface. This device supports MIDP 1.0 and PersonalJava.

      The Nokia 3650 is another Series 60 phone which shipped in Q1 2003. This device also runs MIDP 1.0. However, Nokia has additionally provided implementations of the Wireless Messaging API and Mobile Multimedia API for this model. "

      those couple of extra api's in nokias phones aren't that much.

      --
      world was created 5 seconds before this post as it is.
    12. Re:Pure nonsense by gl4ss · · Score: 2, Interesting

      a lot of midp's being limited is so that you can trust it to not screw your phone completely up, like an applet(so you can now run any midlet without fearing too much. without *having* to trust anyone). if you gave it filesystem access you would lose that aspect. though people seem to trust .sis files found from god knows where..

      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 require a lowlevel ui canvas mixed with text input).

      though, nokia may have their motives of their own for porting perl(internal use..).

      --
      world was created 5 seconds before this post as it is.
  2. Great by W32.Klez.A · · Score: 4, Funny

    In that case, how long until shitstorm.pl gets launched from a cellphone?

  3. Next mobile by Alioth · · Score: 2, Interesting

    I was thinking of getting a Sony Ericcson phone, but if the Nokia will have a Perl port available, I might wait a bit longer before getting a replacement for my existing one :-)

    1. Re:Next mobile by MoonBuggy · · Score: 3, Interesting

      Since this is coming for the Nokia Symbian 6 platform, I would think it's only a matter of time until it comes to the Sony Ericsson smartphones.

      I work in a computer/phone shop and have used most things on the market - any high end Sony is better than a Nokia. The P900 has plenty of software available (MAME, Opera, AIM to name but a few) - a perl upgrade does not change the fact that Nokia is running Symbian on an inferior piece of hardware.

    2. Re:Next mobile by Alioth · · Score: 3, Interesting

      Big question - does it have an SSH client? That would be a killer app for me, assuming latencies on GPRS are reasonable.

      It goes without saying that it's bound to have an IRC client :-)

    3. Re:Next mobile by aallan · · 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 moderately regularly. The SSH client for SymbainOS is a port of PuTTY and can be found here.

      Al.
      --
      The Daily ACK - Eclectic posts by yet another hacker
    4. Re:Next mobile by MoonBuggy · · Score: 2, Interesting

      You can get PuTTY for the P800/900 as well as a VNC client. There are a couple of commercial SSH apps that are more polished and stable than the port of putty.

      I strongly reccomend a P900, I have had mine for a month and am as happy as can be with it. There's just nothing else that I've used that matches up (and I've used near enough every phone on the market at work). Get an 128MB memory stick for it and you can get 3 hours of video on for when you're not working - there's even space for a few MAME games too.

    5. Re:Next mobile by ttj · · Score: 2, Interesting

      An SSH client for a mobile phone would indeed be nice, but I personally wouldn't want to do massive amounts of administrative work on the so called keyboard of a mobile phone. Writing SMS messages is awkward enough already even though it has the predictive text feature on it. Think of what it would be like to enter line after line of cryptic *nix commands on it.

      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 computer.

    6. Re:Next mobile by Fizzl · · Score: 2, Informative

      Well.. It doesn't work quite that way.
      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 suspect this perl thingie will be Nokia proprietary piece.
      Nokia has a good history of making open API's thou. So I think they might very well make atleast the specs available for other symbian owners and customers.

      Of course, any Nokai UI/Platform customer phone will have it also.

  4. cool new use for regexes... by BriSTO(V)L · · Score: 5, Funny

    This is so great - instead of using the built-in PDA contact manager functions of our phones, us geeks will be able to craft perl scripts with regexes to look up people's phone numbers...

  5. This is a great idea by cervo · · Score: 4, Interesting

    the current choices (C++, Java) are overkill for a lot of applications

    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.

    1. Re:This is a great idea by rewound98 · · Score: 2, Troll

      Are you on crack? That Nokia phone is slower than pig in slop retrieving "real time quotes". It's not going to matter if you're using Perl, C++, or Java....the bottleneck to doing it "quickly" is the network...not the programming language.

      --
      -- Rob
    2. Re:This is a great idea by Decaff · · Score: 4, Insightful

      What bloat with java virtual machines? you can run java on credit cards. Far better something portable at the binary level like Perl or Java than fixed compiled-for-one-platform C++ code.

    3. Re:This is a great idea by autocracy · · Score: 2

      Bloat in applications that take over a minute to start up on 1Ghz+ boxes. Trust me - I worked for a library that had a Java front-end to their circulation database. Let me emphasize, it was a front-end to a database. I'm not saying it's Java's fault, but Java does have a reputation of having stupidly written programs. I suspect, however, that this is because everybody woke up and yelled "implement Java!" This lead to a huge influx of people who learned Java by reading a book, then started writing code. Hopefully that will change at some point...

      --
      SIG: HUP
    4. Re:This is a great idea by chromatic · · Score: 3, Informative
      Perl, the fully interpreted language?

      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.

    5. Re:This is a great idea by Decaff · · Score: 2

      What you say makes a lot of sense, but its an application organisation problem, not bloat. Slowness in starting is a problem in any application that dynamically loads and links code, either locally or over a network, not just Java. There is no reason, with competent coding, for a Java application to be slow or slow to start.

      I remember the same arguments being used against C++ in the 80s.

    6. Re:This is a great idea by cant_get_a_good_nick · · Score: 2, Informative

      Perl, the fully interpreted language?
      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.

    7. Re:This is a great idea by Decaff · · Score: 2, Interesting

      Its not the JVM: VMs are small things that load in fractions of a second. Its the class libraries. Many of the standard class libraries supplied with VMs (such as the Swing GUI) have definitely been incompetently coded in terms of load speed, and are being extensively recoded because of this.

  6. Pleasure by MisanthropicProggram · · Score: 5, Funny

    Just think...turn your ringing option to vibrate and then run the pleasure program. Insert phone in front pocket and enjoy!

    --

    There is no spoon or sig.

  7. When CGI got popular by Tim+C · · Score: 5, Insightful

    The web exploded - suddenly hundreds of thousands of dynamic sites, and sites with at least some dynamic content, sprang up in an amazingly short amount of time. The web was transformed from a purely flat, static medium to a dynamic one.

    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.

  8. Now I need an external keyboard by HrothgarReborn · · Score: 5, Funny

    It already takes me forever to enter names and phone numbers on a cell keypad. I am going to love finding how to do a % or a @.

    1. Re:Now I need an external keyboard by Jetboy01 · · Score: 3, Informative

      Maybe the Nokia 6800 is the phone for you:

      Nokia 6800

      built in qwerty keyboard, quite nice, and not as heavy or bulky as you would expect.

    2. Re:Now I need an external keyboard by tealover · · Score: 2, Informative

      Maybe you want to take a look at this virtual keyboard. Kinda cool, huh?

      --
      -- You see, there would be these conclusions that you could jump to
  9. Nokia needs to focus on fixing their issues first by PierceLabs · · Score: 4, Insightful

    Anyone who has done any development on Nokias phones knows that Nokia is very 'bullet point' when it comes to supporting them. Their Java support for MIDP2.0 for example is a complete joke. Its horribly broken and Nokia knows it - basic applications from tutorials sometimes don't work properly or don't work in certain firmware batches of phones. What they NEED to do is get some quality control in place instead of adding a 'language of the year' to their platforms.

  10. Confused? by petesmart · · Score: 5, Funny

    How would I get the shebang line up using predictive text input?

    --
    John, I'm Only Dancing!
  11. More information on the topic by storl · · Score: 5, Informative

    There is some more information here if anyone is interested.

  12. JAPH SMS! by ravendeath · · Score: 2, Insightful

    ... or how paying $2 per kilobyte (thank you, local carrier) makes those four words the most expensive data message ever sent, at an average of 50 lines of code to produce the later ones people came up with!

  13. Python on Siemens by m_frankie_h · · Score: 5, Funny

    Now if only Siemens ported Python, that would be cool.

  14. Good news, I suppose ... by JamesOfTheDesert · · Score: 3, Insightful

    I mean, I's rather use Perl than Java for many tasks, but if Nokia wanted a good, clean interpreted language, why not Ruby, which has the power of Perl but a far cleaner design.

    --

    Java is the blue pill
    Choose the red pill
    1. Re:Good news, I suppose ... by Hanji · · Score: 2, Funny

      My god man, what are you doing? The flamewar that a comment like that could spark would have the potential to bring down all of slashdot!

      --
      A Minesweeper clone that doesn't suck
  15. Re:Nokia needs to focus on fixing their issues fir by godIsaDJ · · Score: 2, Insightful
    I disagree. I program Nokia phones constantly and I can say that midp2 support is good.

    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!

  16. cool... by Dreadlord · · Score: 2, Funny

    ...now I can host my own slash based site using my cell phone :)

    --
    The IT section color scheme sucks.
  17. Nokia perl by eap · · Score: 5, Funny

    "We are unable to complete your call. Please hang up and try the -w option."

  18. Wrong link by Accipiter · · Score: 3, Informative

    How about a link to the better, more informative article where the actual information lies?

    --

    -- Give him Head? Be a Beacon?
    (If you can't figure out how to E-Mail me, Don't. :P)

  19. Language Thrashing by fm6 · · Score: 5, Interesting
    Nokia seems to be thrashing around for better language support. They started with the Symbian SDK, which uses Visual C++ as an IDE. Then there was Java, which traditionally has used Vi or EMACS as a sort of IDE. Then they seem to have decided that they needed better IDEs, so they made expensive deals with Borland's C++ and Java business units. (These BUs are part of one small company, but in a very real sense they're direct competitors.) Now they seem to think that a good scripting language is the missing link.

    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.

    1. Re:Language Thrashing by Tim+C · · Score: 2, Informative

      Then there was Java, which traditionally has used Vi or EMACS as a sort of IDE.

      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 editor and ant, but why make life difficult for yourself?

    2. Re:Language Thrashing by Corvus9 · · Score: 3, Interesting
      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.
      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. Yes, we used the VC++ text editor, but to actually compile a Symbian application requires a specially-customized gcc with no debugger support, and a half-dozen command-line apps with no documentation which have to be customized for every target platform. I'm in hell! I'm in HELL!!!

      Think I'm making this up? Check out Russell Beattie's blog. This guy is one of the biggest Symbian boosters on the planet, and even he admits the situation is untenable.

  20. News by Anonymous Coward · · Score: 4, Funny

    Slashdot server will be moved to run on Nokia mobile phone. A slight lag might appear after the change.

  21. How is java overkill? And how is this even big? by autopr0n · · Score: 5, 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 (along with C++, and pretty much anything else). But how does being able to write programs in perl on a device you can already code in C/C++ or java give you any huge advantage, unless you only know perl? I'm sure there are people who like to do all their coding in Perl, but unless you're one of them, this doesn't seem like much of a deal. Certanly nothing compared to CGI on the web. (And lets not forget that CGI was a pretty early tech, that came about when the web wasn't much. While CGI probably helped a lot, the web itself was pretty compelling, and growing quickly on it's own).

    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[]){ ... simple code ...}}).

    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.

    --
    autopr0n is like, down and stuff.
  22. CGI? by mr_tommy · · Score: 3, Insightful

    Is this poster crazy?! To suggest that the sudden surge in web usage was down to CGI is frankly ludicrous! There is no way you can say, "right, that technology lead to the boom in the web". Its not possible! And even if you could pin it down to one thing, it would be something Many, many, many technologies have helped it along the way.

    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.

  23. Re:How is java overkill? And how is this even big? by aallan · · Score: 3, 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.
    --
    The Daily ACK - Eclectic posts by yet another hacker
  24. And furthermore... by JZip · · Score: 2, Informative
    Wherever this was quoted from, it's got an additional point to be made from it:

    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 networked device, that's scary. But tools for the n0n-l33t are a Good Thing, except maybe for some 3(g0)l33t15t5.

  25. Re:How is java overkill? And how is this even big? by smcdow · · Score: 5, Insightful
    Also, how exactly is java "overkill" for these devices?

    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.

    ...java will still be faster then Perl

    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).

    --
    In the course of every project, it will become necessary to shoot the scientists and begin production.
  26. This is good news by ajs318 · · Score: 5, Insightful

    I'm going to stick my neck out and say I like Perl -- so I think this is good news. However, I've always thought of Perl as a text-processing language, and In My Limited Experience, mobile phones can only fit about ten words on the screen. {on the other hand, this could simply lead to phones with bigger screens.}

    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.

    --
    Je fume. Tu fumes. Nous fûmes!
    1. Re:This is good news by tcopeland · · Score: 2, Interesting
      > {*cough* ruby *cough*} I expect "2" + 2
      > to equal 4, not 22

      Hm. In Ruby that'll raise an exception:
      irb(main):001:0> "2" + 2
      TypeError: cannot convert Fixnum into String
      from (irb):1:in `+'
      from (irb):1
      irb(main):002:0>
      But of course, you could do:
      irb(main):002:0> "2" + 2.to_s
      => "22"
      or
      irb(main):003:0> "2".to_i + 2
      => 4
      irb(main):004:0>
      to get whatever result you want.
    2. Re:This is good news by CatGrep · · Score: 2, Interesting

      And does a "disposable" programme -- one that you will run only a few times before forgetting it forever -- really need to look pretty anyway?

      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 *cough*} I expect "2" + 2 to equal 4, not 22.

      Well, you're only half right. The '+' sign can indeed be used for string concatenation in Ruby, however you can't freely mix string and numeric variables:

      irb(main):001:0> 2+"2"
      TypeError: String can't be coerced into Fixnum
      from (irb):1:in `+'
      from (irb):1

      So you either need to do (if you want a numeric result):
      irb(main):005:0> 2+"2".to_i
      => 4

      Or:
      irb(main):011:0* 2.to_s+"2"
      => "22" ...to get the answer you find annoying.

      '+' seems to make sense as a string concatenation operator. Isn't Perl6 planning to use '~' -that's intuitive.

      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!

      I suppose you could always redefine the '+' operator in both the String and Fixnum classes to act like it does in Perl (ie. do the automatic conversion), but that probably wouldn't be a good idea. It's not that big of a deal to do the conversion between String and Fixnum.

  27. Microsofts Answer? by lonesometrainer · · Score: 2, Funny

    They're currently in the process of porting Quickbasic to MS enabled Phones.

  28. Re:Pure nonsense - no pure BS by Camel+Pilot · · Score: 3, Interesting

    You should know better than to repy to an AC.

    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.

  29. Re:How is java overkill? And how is this even big? by vt0asta · · Score: 4, Insightful

    "public class HWorld{public static void main(String args[]){System.out.println("Hello world");}}"

    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: .027 seconds
    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.

    --
    No.
  30. So what you're telling me is.... by fataugie · · Score: 2, Funny

    Now there'll be 15 different ways to answer my phone?

    Relax...
    it's Funny...Ha..Ha..

    --

    WTF? Over?

  31. Different times by ducomputergeek · · Score: 2, Informative
    PERL is great, but the reason why it became extremely popular for the Internet was you had two choices to make a webpage dynamic back in the day: PERL and C/C++. PERL is an extremely power text parsing tool and I still use it in today over the more common PHP for webpage design for certain things.

    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.

    --
    "The problem with socialism is eventually you run out of other people's money" - Thatcher.
  32. Just Rumours? by wehe · · Score: 2, Interesting

    I have tried to confirm this posting at the news section of NOKIA. As far as I could see there is no official news about Perl on NOKIAs phones. Perhaps we have to wait for the recently announced mobile Linux cell phones.

  33. Are we really helping cell technology here? by Austin+Milbarge · · Score: 2, Insightful

    Ok, so Perl is now another language in which you can use to program a cell phone. I'm not knocking Perl but... now what?

    - My calls still get cut off.
    - "Can you here me now?" is still the most widely spoken phrase among all cell phone conversations.

    It seems people's standards of what is considered an acceptable, workable device is slowly deteriorating since musical ring tones, solitaire and programming languages seem to excite consumers of the 21st century more than getting something to function properly.