Perl Creative Daemon Contest 146
eisen writes "We are pleased to announce the Perl Creative Daemon
Content sponsored by Mother of Perl, O'Reilly,
Stonehenge Consulting, and Whirlwind Interactive.
The First, Second, and Third place entries will win
a copy of the book "Mastering Algorithms with Perl".
In addition the First place entry will win $300.
The Second place entry will win $200. The deadline
for submitting entries is April 15th. Randal Schwartz
has graciously volunteered to judge the entries.
More information including contest rules are available
at the contest homepage."
Only $300 for winner? (Score:1)
Re:OH NO! (Score:1)
or something? Whats up with all the "MRBILL
<x>" trolls lately?
This Would Great for a Newbie (Score:1)
A little competion always made things better help
http://theotherside.com/dvd/ [theotherside.com]
Re:I Feel That I Must Warn You... (Score:1)
The issue for me is not Intel's actions, but the law under which I was convicted that permitted an influential large employer in Oregon to use the public resources to handle what was essentially an internal dispute. For a good summary of what's wrong with the law, see Steven McDougall's Rant [stonehenge.com].
Re:Schwartz is a Poser, not a Coder (Score:1)
Re:Ageed: OO based on invalid assumptions (Score:1)
Explaining to a child is easyer than to a cort (Score:1)
I was stuck with explaining to him why I would log into his account on my computer on occasion.
Try explainning this to a tech unsavy boss, A judge who never used Unix, a Jury who have no idea what "multiuser" means.
I never had to deal with this. The kid understood and even if he didn't my boss would (he dose know Unix).
Given that such a simple task as installing games for a kid could be missunderstood picture the kind of pain that comes from an admin who made someone mad.
Instead of punishing victoms of ignorence we should instead insist on tech savy in managers.
Re:I Feel That I Must Warn You... (Score:1)
What does this have to do with the contest?
Warn me about what? Are you frightened that he will use the submissions for some evil plot?
Or, becuase you have some grudge against him, and your just using this opportune time to feebly shoot down one of the must well respected men in the hacker community.
I wonder Mr. AC; what's you motive?
-slams
Re: (Score:1)
team (Score:1)
Re:team (Score:1)
Re:I Feel That I Must Warn You... (Score:1)
There is no defendant. This is a Slashdot discussion not a trial.
Ted Bundy had people testify to his character, also. I'm not trying to compare the defendant to a mass murderer
That's funny, you certainly did so. Why?
His intentions may have been altruistic, but as an experience worker he should have had the common sense to bring his superiors in on his little experiments.
Agreed. Good, glad we got that out of the way. Now, please feel free to contribute to the contest, or don't. But, if you have some problem with Randal being a judge on the contest, try bringing up a new, and pertinent point.
Re:Object Oriented OS? (NOT) (Score:1)
Re:I Feel That I Must Warn You... (Score:1)
he was convicted of illegally breaking into Intel's computers while he worked as a consultant for them.
I'll wager all of Randall's Linux boxen boast "AMD Inside". :-)
Re:Anonymous Zealot (Score:1)
idea (Score:1)
Mike Roberto
- roberto@soul.apk.net
-- AOL IM: MicroBerto
Object Oriented OS? (NOT) (Score:1)
I think you are presenting a false dichotomy of 'spaghetti code' vs. 'OO'. The majority of code is neither - it is relatively clean, structured procedural code. In other words, large tasks are decomposed into smaller tasks (recursively) until small, understandable functions are reached. No encapsulation needed.
Spaghetti code is code that uses a lot of GOTO's (or jumps) - typically written in BASIC or assembler. Structured code can be viewed as a hierarchy of black boxes with defined inputs and outputs; spaghetti code cannot. The transition to structured code took place (mostly) long before OO.
Re:I Feel That I Must Warn You... (Score:1)
Re:team (Score:1)
If you want to forma team, lets all come over to your house and get our uniforms on, I want to be #16 thats my favorite. Also who will bring the chips? I;ll bring the squeezy drinks and the popcorn. Shoudl I bring my pillow ? Will it be a sleepover? If so I have to ask my parents permission. Are your parents goint to be home? I hope so because my parents would never let me stay if there wasn't supervision.
Oh never mind, I can't join your team, I have band camp tomorrow and after that I have to get my braces adjusted.
Sorry.
Re:team (Score:1)
Shite! (Score:1)
Hmmm.. I wonder if... (Score:1)
My Candle (Score:1)
These are my opinions, please do not construe anything I say as a statement of Mr. Van Rossum's. If in doubt email him, he does answer all his email (patience though - you never know how many emails he has on his plate at any given moment).
The Night Angel
Re:Anonymous Cowards always lie (Score:1)
~(Fudding in the (Forests (and Trees))) (Score:1)
Python is not strict. it doesn't force you to enter fifteen lines to define an object that tells STOUT "Hello World" - you simply enter print "Hello World" as you would in a pre-procedural language (Early Basic's, primitive subroutine support; no support for local variables the norm). If you choose to use them however, objects are there - for that moment when you need to express a subtle nuance that just isn't the same without them. I believe in the right tool for the job, and Python is a darn good swiss army knife.
C++ objects suck crap. The only reason it has accomplished anything is through the intelligence of the programmers using it. If it is brittle - your not encapsulating it; if it is not encapsulated - it cannot be object based. Please do not confuse a bad implementation with a bad idea, the world is still recovering from C++'s poisoning the well.
Your right to an extent when you say people are pattern based, but if your going to say that Perl's extension of grep's regular expression matching can contain me then I'll slap you upside the head with a large trout (We'll have to meet in IRC though =). I am more than patterns, I'm structured patterns at the least. Until a working machine intelligence is demonstrated to the world at large then nobody can pretend to know the basis of the homunculi (or those little fragments of personality that when fractally combined form a deep and responsive system - intentionally too much noise
I don't know what else to say. You have me stumped, if you don't believe objects are a good thing I must simply assume you need someone to help you go back over the territory to find the supporting knowledge that you missed. But then again you simply may not need objects for the work you currently do - in that case Python will let you program procedurally.
Sincerely,
The Night Angel
Re:Anonymous Zealot (Score:1)
Re:Anonymous Zealot (Score:1)
But...it...Makes me feel dirty! =) (Score:1)
I couldn't find parametric polymorphism on a quick seach of Python's site (Using InfoSeek's search written in Python
In Python everything including functions are first order types. Allows for some neat aliasing and extending that idea, truely generic routines that can be applied to any data (even code
What do you think about simplicity though? Every once in a while I do believe we need to collapse everything we know so that we can begin to explore with a solid footing again. Do you think Python (or Perl!) does this?
The Night Angel
Re:Object Oriented OS? (NOT) (Both) (Score:1)
"I think you are presenting a false dichotomy of 'spaghetti code' vs. 'OO'. The majority of code is neither - it is relatively clean, structured procedural code. In other words, large tasks are decomposed into smaller tasks (recursively) until small, understandable functions are reached. No encapsulation needed.
Spaghetti code is code that uses a lot of GOTO's (or jumps) - typically written in BASIC or assembler. Structured code can be viewed as a hierarchy of black boxes with defined inputs and outputs; spaghetti code cannot. The transition to structured code took place (mostly) long before OO."
The context of the message implies that the programmer is extending the language through ideas a programmer uses while programming, I read the above description and I see an object hierarchy with encapsulated modules within it. The language and the compiler do not enforce this - the programmer does. Outside of this context what I said begins to lose sense.
I have my own experience doing this, on my old Amiga, using a language called AMOS I programmed a GUI. AMOS was a dialect of basic with some nice (for the time) graphic extensions. All the code for my GUI was written in a procedural langauage, but all the logic & data were object based. I wrote a minidatabase for the GUI to use which stored qualitive data - it had routines to pack itself to disk and rebuild from the same that does in effect what serializing does in Java and pickling does in Python.
The Night Angel
Amen! (Score:1)
The Night Angel.
Re:$200000 Contest (Score:1)
Re:Object Oriented OS? (NOT) (Score:1)
Re:But...it...Makes me feel dirty! =) (Score:1)
The Night Angel
$200000 Contest (Score:1)
Heh, I see a ton of Perl vs Python articles, it amazes me how people can completely miss the point. Research Python a bit. Research Java a bit. Python is a more flexible Java. Python's support librarys are inherited from too many open source projects to mention. Java has a ton of Sun proprietary standard extensions. Plus hopefully the one you want coming soon =) Sorry to be a bit off topic here, but go check out the above site for the money, the tools they want to develop will benefit the entire open source community regardless of language.
And of course if you want to check out Python, go here [python.org].
Re:I Feel That I Must Warn You... (Score:1)
If he's served his time, then his record is completely irrelevant. It might be irrelevant in any event but I haven't finished baking my ethics on that one...
$300!!! (Score:1)
THAT SURE IS SOME GREAT PRIZE!!!
Re:A first posting daemon (Score:1)
I am sure you can write a small script which posts here in 5 minutes
... and don't forget to tell your friends!
Re:ELZA rocks (Score:1)
Funnily, the Elza isn't known very well among the people which would find it useful. (It has only some name in security circles since it has been mentioned somewhere at securityfocus [securityfocus.com].)
My suggestion: Someone should post a story about the Elza here to spread the word. Any volunteers ;-) ?
Re:Free Mumia Abu Jamal (Score:1)
Re:~(Fudding in the (Forests (and Trees))) (Score:2)
Let's take a trip back in time to the Bad Old Perl Four days... perl has no modules, it does have includes, and there is a modest set of useful things allready written up for you to include. Python has modules, and pre-parsed token files, and thousands (well, 100s) of pre-written modules for useful things, most of which Perl doesn't.
(I had to learn a lot of Python to work on a Civ I clone written in Python and CLIPS, I'm pretty sure Python was chose rather then Perl because Python had usable X and Xt and Xaw modules. Perl had a little-known X lib, but it was little more then the X wire protocall, lower level then C's Xlib!)
I'm guessing not. After all Python was once ahead of Perl, and lost the lead. But who knows. After all Python is a pretty nice language.
Re:I Feel That I Must Warn You... (Score:2)
Re:I Feel That I Must Warn You... (Score:2)
I also don't have an "anti-Intel" agenda. See another post I made to this thread to see how Intel is still a client of mine! If some of my supporters have an "anti-Intel" agenda, it's not from my encouragement.
Re:I Feel That I Must Warn You... (Score:2)
So you'd have no problem hiring a sicko like Patrick Naughton or a racist criminal like Al Sharpton or the KKK member recently released after vandalizing a synagogue?
Once they've done their time, including probation, the government has no business messing with them anymore. However, if you as a person have no problem associating with the likes of them, I think you'll find that a lot of people would have problems associating with you and your questionable ethics.
Cheers,
ZicoKnows@hotmail.com
FRY Mumia Abu Jamal (Score:2)
He's a murderer who hasn't even claimed not to have been involved in his crime. Lucky for him, he has an army of clueless, white, suburban liberal kiddies (who of course feel guilty for having been born into the oh-so-oppressive white race) fighting his battles for him. I can't wait 'til they pull the switch on that street thug.
Cheers,
ZicoKnows@hotmail.com
You want free books? (Score:2)
Just go to http://corvin.spb.ru/ [corvin.spb.ru] and you can download the entire Perl CD Bookshelf (as well as the Web Developer Library and Java Reference Library) from O'Reilly for free. Of course, O'Reilly charges around $60 for each of these, but hey, the guys running the site are Open Source, Linux, and Slashdot groupies, and we all know how altruistic and giving such types are, so I'm sure they're just doing it for the good of the community. Information wants to be free, right?Judging by the large number of similar sites out there, I guess it really does.
Then again, maybe things like this are why O'Reilly's is putting up only 300 bucks for the winner. :)
Cheers,
ZicoKnows@hotmail.com
Re:Schwartz is a Poser, not a Coder (Score:2)
Give up on this replying-to-yourself thing. It just makes you look bad.
Re:Schwartz is a Poser, not a Coder (Score:2)
Second, chat2.pl may seem like a mess, now, but I dare you to write something as efficient that does the same thing IN PERL VERSION 4! You couldn't just write C library, you didn't have references or anonymous anything, no objects, no lexical scope. Perl was primitive back then and chat2 was about as clean as a complex module like that could get. Once Perl version 5 came along chat2.pl was obsoleted by cleaner interfaces, not because there were better programmers, but because there were better LANGUAGE FEATURES.
As for his CPAN credits, Randal doesn't generally write modules. He's a trainer. I've participated in numerous conversations with him where he has fixed someone else code, or shown them how to do it themselves, and I can attest that he's not just good. He's worthy of being one of the Perl trinity.
You note that Larry Wall wrote Programming Perl. Go look at the 2nd edition. It's co-authored by Randal, Tom and Larry.
Now, Randal's technical credits asside, this thread was about how we should all boycott this contest purely because the person judging it has a conviction is his past. If you feel that strongly about people who have served their time, then perhaps you should stop ranting on Slashdot and go run for office. Your platform can be: "Never forgive the guilty: Life for 'em all!" I suspect there will even be a few takers. Not me, but then everyone's allowed an opinion. Just stop following up to your own Slashdot posts.
Re:I was not the original poster (Score:2)
Then, "I was carrying a gun after being surrounded by a group of them brandishing baseball bats"
Wow. That's good, I like that part. What has this to do with Randal?
"don't you fucking tell me about duty and what anyone owes their employers."
Why not? I have strong feelings on the matter, and clearly so do you. I respect your right to say what you like on the topic, but please consider not ordering others around. It doesn't work very well as a debate tactic.
Randal felt he had a duty, and he executed that duty in a way that was questionable. That does not change the fact that he is qualified to judge the contest in question.
Re:Ever grepped a password file? (Score:2)
The thing that I took away from the Randal incident was that you can't trust your employer to trust you. You have to be every bit as paranoid about them as they *could* be of you and that has, of course, hurt my job performance since. Sigh.
Re:I Feel That I Must Warn You... (Score:2)
Randal is well known as one of the most selfless members of the Perl community. He spent years helping others on USENET for NO PAY. He's the author of one of the most respected introductory language texts in existance. I say this, not to appologize for his actions, but to demonstrate the truth of his central claim in the case: he did what he did because it was in his basic nature to try to help others, and it never occured to him that that help would be mis-interpreted. And what's more, his actions in the case in question were exactly how a lot of us were dealing with security probelms at work at the time.
I know that I did exactly what Randal did. He was "found out" before he could report his findings. I managed to get info to the admins in that department before that happened. Neither of us thought twice about it. We were just doing the right thing for the people who depended on technology that they didn't understand. I would have been stunned if anyone had been upset by what I did. When I heard about Randal, I almost threw up. It was just stupid, and it scared me. Today, I'm much less productive, because I don't take chances. Of course, I really don't have this problem NOW, because all of the company's production hardware is my domain. I don't have to answer to anyone about logging into/examining security on any of the systems.
Heh: no MIME limitations (Score:2)
Actually, I am going to enter. I have a plan that will either get a quick chuckle or win the prize... we'll see.
Re:I Feel That I Must Warn You... (Score:2)
Please troll someone else's reputation. Randal has too much history of being honorable and helpful to be harmed by your rants.
Re:Thanks for this post (Score:2)
You're preaching the sins of wearing blue to the police, in this case. We've all done what Randal did in the line of what we were told was our duty. Intel flipped when they realized that a) he could circumvent security and b) he did so in order to fix it. In the end, if you haven't had to break into a box to fix something at work, I assume you're not much of a sysadmin.
How can you feel "dirty" for having learned Perl from someone who risks jail time over helping his employer?
I love free books... (Score:2)
Yeah, but think of your market value. (Score:2)
First you should be in it for the honour
Re:I Feel That I Must Warn You... (Score:2)
Yes, Python over Java in education (please!) (Score:2)
An educational language should come with source - otherwise, I really don't see its usefulness as an education tool. Part of a language is its implementation - students need to be able to poke under the hood.
As it stands, the current pro-Java movement in education has been undertaken by profs who have fallen victim to Java hype. They have turned their classrooms into Sun training centers, and in turn are cheating their students out of a full programming education, which must include detailed research of the tools they are using.
Re:Object Oriented OS? (NOT) (Score:2)
Your assertion is incorrect. Encapsulation is about providing an interface that you can enforce. C++, Python and Java do enforce encapsulation - C and Perl do not. Even Perl's OO allows you to look at any variable in any package you wish to - there is no concept of hidden variables (although I don't know if the our keyword in 5.6 addresses this).
Re:~(Fudding in the (Forests (and Trees))) (Score:2)
Yup. I was picking on Java. Python is almost nearly the perfect language, although Perl has an implicit advantage in having so many people and packages already developed.
A trip through CPAN will show you the real power of a language is in libraries and packages - once you can literally download packages to solve nearly any problem you will reasonably encounter, syntax issues aren't a huge deal.
Will python reach this level of adoption? Lets hope so.
Re:Ageed: OO based on invalid assumptions (Score:2)
XP is a group of practices, not a coding methodology per se. It really has nothing to do with any particular language, and if memory serves correct, Kent never endorses on language over another.
Re:But...it...Makes me feel dirty! =) (Score:2)
First of all, salutations for staying level-headed throughout this language debate. Its a rarity on /.
For straight-up simplicity I find that you can reach a zen-like state in Haskell, although you have to work hard, really hard to get there (I can't see I held that state for too long).
I really think functional programming would take off if we were all just more intelligent and maybe better educated.
Perl seems to just accept that we're all basically dumb, which is how I like it.
Ageed: OO based on invalid assumptions (Score:2)
Yes, it looks good on paper. So does ML. That doens't mean it stands up very well to daily mangling, constant hacking, and continuous rework. Thats why perl and C are popular - they don't force a strict paradigm on you (all truly useful languages are multi-paradigm). Perl in particular maps very well to the psychology of human programmers - human think in terms of patterns, and perl is literally a pattern detection language.
Yet, people still continue to sniff the glue. Right now, out there, someone is using Rational Rose to construct a highly convoluted object hierarchy, mixing in as much Rumbaugh/Jacobson/Booch mumbo-jumbo as possible.
Then they'll implement and test. Chances are they'll find their model extremely brittle...the moment the first requirement change breaks their cute little hierarchy, they'll understand how they've been suckered.
Numerous false conjectures. (Score:2)
There are no popular operating systems built with OO tools. Your conjecture is false.
As to how it all relates to Java, well... At the core of both languages is a strong object model
Java does not have a strong object model. It offers neither functions as first order types, parametric polymorphism, or even simple consistency. There is no ability to circumvent polymorphism and the overhead incurred - the virtual keyword is assumed. Java is OO for idiots.
The Borg in Python is in how it's modules interact with other software.
Pelr talks as many protocols as python and more. By the way, this has nothing to do with OO at all in any case.
This means that the programmer can access and use a very large base of existing code
CPAN has at least ten times as many packages for perl as any other competing service for any other language. Its not even close.
I wish I had made it further into my Perl evaluation, but it is too obtuse for me
Oh I am so sick of hearing this. Its not sanskrit for God's sake - just open Programming Perl and start reading. If a twelve year old can do it (and many have), you can too.
Re:I Feel That I Must Warn You... (Score:3)
How about (Score:3)
use strict;
use POSIX qw(setsid);
use LWP::Simple;
# set costants
my $URL = 'http://www.slashdot.org/';
my $FILE = '/tmp/firstpostbaby.html';
# flush the buffer
$| = 1;
# daemonize the program
&daemonize;
# first post infinite loop
while(1) {
# mirror the file
mirror($URL,$FILE);
# wait for 20 seconds
sleep(20);
}
sub daemonize {
chdir '/' or die "Can't chdir to
open STDIN, '/dev/null' or die "Can't read
open STDOUT, '>>/dev/null' or die "Can't write to
open STDERR, '>>/dev/null' or die "Can't write to
defined(my $pid = fork) or die "Can't fork: $!";
exit if $pid;
setsid or die "Can't get a first post, start a new session: $!";
umask 0;
}
Odd choice of prize (Score:4)
At least money is involved, so the prize isn't _all_ useless...
Re:I Feel That I Must Warn You... (Score:4)