Pike: A Language with Teeth

April 5th, 2002 by John D. Biggs in

A quick history and some examples for using this popular European scripting language.
Your rating: None Average: 3 (1 vote)

The body of this article is still being converted and will be available shortly.

__________________________


Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer

Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anonymous's picture

Re: Pike: A Language with Teeth

On April 11th, 2002 Anonymous says:

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

Anonymous's picture

Re: Pike: A Language with Teeth

On April 25th, 2002 Anonymous says:

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.

Anonymous's picture

Re: Pike: A Language with Teeth

On April 11th, 2002 Anonymous says:

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

Anonymous's picture

Re: Pike: A Language with Teeth

On April 11th, 2002 Anonymous says:

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

Anonymous's picture

Re: Pike: A Language with Teeth

On April 11th, 2002 Anonymous says:

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

Anonymous's picture

A few Pike links

On April 9th, 2002 Anonymous says:

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.

Anonymous's picture

Source samples garbled

On April 8th, 2002 Anonymous says:

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.

jhs's picture

Re: Source samples garbled

On April 8th, 2002 jhs (not verified) says:

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

Anonymous's picture

Re: Source samples garbled

On April 8th, 2002 Anonymous says:

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

Please note that comments may not appear immediately, so there is no need to repost your comment.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
  • Lines and paragraphs break automatically.

More information about formatting options

Newsletter

Each week Linux Journal editors will tell you what's hot in the world of Linux. You will receive late breaking news, technical tips and tricks, and links to in-depth stories featured on www.linuxjournal.com.
Sign up for our Email Newsletter

Tech Tip Videos

From the Magazine

December 2009, #188

If last month's Infrastrucuture issue was too "big" for you then try on this month's Embedded issue. Find out how to use Player for programming mobile robots, build a humidity controller for your root cellar, find out how to reduce the boot time of your embedded system, and if you're new to embedded systems find out the basics that go into one. You can also read about the Beagle Board, the Mesh Potato and a spate of other interestingly named items. And along with our regular columns don't miss our new monthly column: Economy Size Geek.


Read this issue