Pike > Python?
I’ve started reading the Pike tutorial tonight out of pure curiosity and something that struck me was their comparison to Python. Now in all fairness, I don’t think they’re trying to say that Pike is actually greater than Python (sorry, the title is a bit misleading), but they are making some bold statements! Keep in mind that I’m a bit of a Python fanboy.
Programs written in Python look very different from Pike programs, but Python and Pike are similar when it comes to ideas and use. Python is more widely used and has more libraries available. Pike on the other hand is faster, has a more advanced type system, and has better support for object-oriented programming. Pike’s more C++-like syntax makes it easier to get started with for programmers who know C++, C or Java.
Now, I’m in no position to say this is true or not. I’ve only started reading about Pike tonight. Here is an example of Pike’s syntax.
int main()
{
write("Hi there! What's your name?\n");
string name = Stdio.stdin->gets();
write("Nice to meet you, " + name + "!\n");
return 0;
}
Not sure I really like it, but wth, PHP looks much worse at times!
If there are anyone out there that has worked with Pike before, it would be quite interesting to hear your opinion! It does seem Pike is not as well supported as Python / PHP / Ruby…
4 Comments to "Pike > Python?"
Spit it out!
Programming Stii
Recent Posts
- Astalavista Wordpress!
- Lifestreaming and Twitter is making us lazy
- Days with my father
- Friday morning fail by a stripper
- Got Springleap!
- Afrigator vs Regator
- Don’t pirate music/movies! You might be forced to use Windows if you do…
- Pike > Python?
- Using Twhirl for FriendFeed
- Being anti-social SUCKS!
My Posse
- Jayx’s bloggy
- Gogo’s blog
- Go2 South Africa
- Stumble Upon
- Dave Duarte
- Wikipedia
- zlythern
- Max Kaizen
- Tresblue
- Mike Stopforth
- RafiQ
- Muti.co.za
- Employmint
- Danette’s Bloggy!
- Thinking Machine
- White African
- kiefpiet.co.za
- Skuff’s World
- Goozeberry
- Crossloop blog
- Crossloop
- Aquila Online
- Charl van Niekerk
- Derek Allard
- Code Igniter
- Carls
- Justin Hartman
- blik.co.za
- Stefano Sessa
- Uno de Waal
- Amplitude!
- bLaugh
- Tyler Reed
- Chris Rawlinson
- Stormhoek!
- 3am
- Mike Solomon
- Mobile Q and A
- Eric Edelstein
- Marc Forrest
- Imel Rautenbach
- Absolutewillie
- Vincent Maher
- Colin Daniels
- Groogle!
- Chilibean
- Paul Jacobson
- Ayelet
- Python Guru Neil
- Rails Guru Nic
- Beverley Merriman
- Miguel
- Nic Harrywhatshisname
- Chris iMod
- Geekrebel!
- Steven McD
- Belinda sweetheart!
- Henre Rossouw
- JPGeek
- Foxinni
- Adii
- Charl Norman
- Bandwidthblog
- Jason Bagley
- Simon Botes
- Auric Silverwing
- Mark Forrester
- Saul Kropman
- Fred Roed
- Sass Schultz
- Gregor Rohrig
- Catherine Lückhoff
- Toastmasters
Filed in
- Afrigator (26)
- ajax (9)
- API (2)
- Apple stuff (10)
- Blogging (25)
- browsers (5)
- Business (28)
- Code Igniter (8)
- firefox (8)
- flock (14)
- Funnies (73)
- GeekDinner! (18)
- General and sometimes Rants (49)
- Go2SA (2)
- ideas 2.0 (14)
- javascript (12)
- Kick-ass Tools (30)
- Linux (5)
- Marketing (25)
- moo.ajax (4)
- mootools (6)
- Open Source (10)
- Programming (33)
- C# (1)
- PHP (13)
- Python (9)
- Ruby (on Rails) (9)
- RSS (5)
- Semantic Web (32)
- Social Web (57)
- Software Development (15)
- South Africa (33)
- Tagging (6)
- Techie stuff (22)
- Tshirts (3)
- Tutorials (42)
- Blogging (17)
- Flocking (6)
- muti.co.za (13)
- Web 2.0 (73)
- web development (20)
Past Stuff
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006















How does that look any better than PHP? And why use pike over Python or Ruby? What does it bring to the table that more established and popular languages don’t? Can you clarify “better support for Object Orientated programming.”
I did check the pike about page but it only really says that it is fast. That’s it !?
Gav
Hey Gav, exactly what I’d like to know
Hopefully someone with Pike experience can elaborate for us.
Sorry I shouldn’t actually comment here as I knew bugger-all about pike until approx. 1 min back when I started reading this post.
I know of a lot of “strange” languages (like Groovy, etc) each claiming to have their own advantages. I’m sure they do, but who cares, right? At the end of the day it’s about getting the job done, if that means writing in PHP, Python, Ruby, or whatever, just do it.
In the earlier days, there were only a few languages each with major strong and weak points. However these days it feels almost a bit like nitpicking because every second oke has some opinion about what’s the “perfect” language (if there is such a thing).
These pike okes seem to be joining those ranks imho.
Pike is fast. In the language shootout, it regularly comes in ahead of the other interpreted languages. In some cases, it beats compiled languages. In terms of speed, it is at least as fast (in most cases) as Lua.
It also has a very comprehensive library, although its documentation is terrible. In fact, it comes with a mini scheme implementation and a Python tokenizer
It has a few real advantages over Python; it has a useful type system (static types and variants, including a “mixed” type, which allows for any type), it has real thread support on most platforms, and it has lambdas that are more than single expressions.
What I really *miss* from Python are generators and comprehensions.
I have not done an awful lot of Pike development, but it’s a powerful language for exploratory programming. The few apps I have written tend to be solid and run like blazes, too.