Pike: A Language with Teeth
email: john@bigwidelogic.com
Linux Journal is the premier source for how-tos, projects, product reviews, expert advice and opinions for everything Linux.
| A Face Lift For The MPL | Mar 12, 2010 |
| Storage Cluster: A Challenge to LJ Staff and Readers | Mar 11, 2010 |
| Linux Arpeggiators, Part 1 | Mar 10, 2010 |
| Interview with Linux Journal Virtual Editor Bill Childers | Mar 09, 2010 |
| OK Palm, We're Ready for the Foleo Now | Mar 08, 2010 |
| Book Excerpt: A Practical Guide to Linux Commands, Editors, and Shell Programming | Mar 05, 2010 |
This week 5 lucky Members will receive a Root Superhero T-shirt, as modeled by
Hack Editor Kyle Rankin. No entry necessary. Check back here early next week
to find out who the lucky Online Members are.
Linux Journal, currently celebrating its 16th year of publication, is the original magazine of the global Linux community, delivering readers the advice and inspiration they need to get the most out of their Linux systems.
In-depth information provides a full 360-degree look at featured topics relating to Linux, giving a comprehensive source of everything readers need for creating and completing their own projects -- not just tools they will use today, but relevant and encompassing information they will turn to in future months and years. In addition to how-to content, Linux Journal includes opinions, new product information, profiles of leaders making major contributions in Open Source and product reviews. It also covers business, social and technical news and developments in order to fulfill its mission as the central forum and advocate for the greater Linux community throughout the world.

Comments
Re: Pike: A Language with Teeth
"Although it is not as full featured as Python
or Perl, it is full of useful aspects and has a relatively strong European user base."
Why ? Where ? What ? I don't think any of these languages has a feature that Pike does not. But Pike offers things that the others don't (for example lambda-expressions or a proper type system - things that are not available in Perl).
Re: Pike: A Language with Teeth
yea.. i would be carefull with those perl guys..
they might have things you wouldn't even be able to think of (not that anyone really needs it..)
pike has one thing it really can be proud of:
speed.
Re: Pike: A Language with Teeth
> Pike offers things that the others don't (for
> example lambda-expressions [...] things that
> are not available in Perl).
This is not correct. I do not know the syntax of lambda expressions in Pike. But you can convert
Lx.body
to
sub { my($x) = @_; body> }
in Perl. More exactly: Perl provides anonymous procedures in conjunction with lexical closures.
-- Andreas Borchert (borchert@mathematik.uni-ulm.de)
Re: Pike: A Language with Teeth
Python has a Curses-module that I miss in Pike.
And it has a sound-module, which I don't know anything about.
Perl can be used in Pike-code, so Pike has all of it features ;-)
Re: Pike: A Language with Teeth
The Caudium Group (Caudium.Net) are maintaining Pexts (PikeExtensions) - a set of modules implementing what's missing in Pike (or implementing it in the _right_ way). There's a both a curses and a newt module in there. You can check pexts from their CVS (Pexts cvs at sf.net).
A few Pike links
For some more info about Pike, including some (very simple) sample code,
you can check out this site.
A recent web application done in Pike can be found
here.
Source samples garbled
Too bad the formating of the source samples got botched somehow.
You can't have (true) newlines in pike string literals, you must use
"
" instead -- as in C.
Re: Source samples garbled
Seems your comment got mangled too. :) (the " " should be a C-style "backslash-n" sort of.)
In fact, there is a construct in pike for strings with newlines in them too, though. You can write #"a string
that spans multiple lines in this fashion".
Re: Source samples garbled
Waah! that bit me, too. Let's see if this works:
string a_string_that_ends_in_newline = "Foo!\n";
/* darn, it looked OK in the preview, using Plain Old Text mode! */
Post new comment