Domain: perlmonks.org
Stories and comments across the archive that link to perlmonks.org.
Comments · 240
-
Schrodingers cat paradox
-
Quantum::Superpositions
Anyone interested in doing any type of quantum computing should check out Dr. Damian Conway's excellent Quantum::Superpositions. It is an extension to the perl language which adds the operators "any" and "all"... it's lets you do *incredible* things like:
use Quantum::Superpositions;
if ($x == any($a, $b, $c)) { ... }
while ($nextval < all(@thresholds)) { ... }
$max = any(@value) < all(@values);
A good place to go and discuss the in's and out's of the cooler aspects of the perl community is perlmonks.org, check it out some time... -
Re:Kudos, but not yet...
I won't give them a dime until they put more effort into being a bit nicer to people who need help.
You are entitled to do whatever you think is appropriate with your money.Personally, I've found them to be extremely helpful and a great resource. I've also seen them be downright nasty and arrogant towards people they perceive to be less than "elite".
You must have gotten this impression from the Usenet perl newsgroups. For a long time, the newsgroups were the resource for perl-related things. Usenet being a public forum, there are all kinds of people frequenting them. You cannot take any subset of them as representing the "perl community".I know there's been some effort to do that in the past, however it seems to have died out from a public image point of view.
Please visit Perl Monks and the perl beginners and the perl beginners-cgi mailing lists. These are amazing resources. /prakash -
This contest is most likely already solved.
See the perl golf tournament on the base 36 problem at perlmonks.org.
-
Compression of random data is impossible
-
And don't forget Perlmonks
You can also give to PerlMonks, using the appropriately named Offering Plate (they use Paypal but you can also just send a check).
-
And don't forget Perlmonks
You can also give to PerlMonks, using the appropriately named Offering Plate (they use Paypal but you can also just send a check).
-
Perlmonks.orgYou might want to reconsider perl as the language of choice for a large scale application. I realize I'm posting this comment to a Perl system, but Perl hangs together like an immense kludge of a language.
What a monstrous Christmas troll you are. What qualifies you to make this judgement? Perl, like any other mature language, has people who write kludges with it and people who write clean, elegant code with it. Your lousy Perl code is not indicative of a language problem.
That said, you're probably stuck with it, and AFAIK, you may be forging new paths in programming for reusability by applying the above concepts to Perl.
And this shows how much you know, since the Perl community is full of activity around design patterns, refactoring tools, unit-testing, and other practices which are in favor among experienced people trying to write solid, maintainable code.
My suggestion for those who are looking for actual useful advice rather than this kind of "throw away all your work and learn Java" crap, would be to head straight for http://perlmonks.org/ and read up. There's tons of advice there for serious Perl coders. You would also do well to start reading the mod_perl mailing list, which often has informative discussions about these issues.
-
Should be relatively easy
With Perl. Try asking on Perlmonks. Perl has modules for both database types, and handles to both databases can be opened simultaneously in a single script, reducing the need for intermediete format conversion. If there is a mapping of all datatypes, I have not worked with Postgres, then it should be doable.
-
Re:Yeah C sucks...
I heard it was writen in Self. Sorry no real evidence - it almost impossible to find anything relevant with 'Java Self' on google. Only this link.
-
The music city people are slimeballs anyways
and are in no way interested in furthering opensource, p2p networks or any of that. they want to peddle porn and sell ads. thats it.
hasn't this already been hashed over here before?
see perlmonks for more info. -
Re:Just what Perl needs - more syntax
In Perl, that's called Regexp::English, and should be on the CPAN soon.
-
Re:PERL - the "Write-Only" language...I've had that problem with PERL, but then I discovered its predecessor, Perl. It's a much nicer language -- it has warnings, an optional pedantic compiler mode, lexical variables, embedded comment support, a debugger, copious documentation, numerous libraries, and active user communities. Best of all, it's not limited to CGI!
If you've had a bad experience with PERL, give Perl a try!
-
Re:When will they start an obfuscated perl contest
There already is one!
Also, if you go to Perl Monks, there are heaps of people submitting obfuscated Perl code for judgement ...
-
Computer Science Majors at Liberal Arts Colleges
I graduated from Earlham, a Liberal Arts College, with a computer science major in 1998. I've been involved in managing a website development company since then. I've found the required broad liberal arts base
very useful in the real world. I came out equipped with writing skills and the ability work well with groups of people, not just computers. I can't say I felt everything was 100% relevent, but I know CS at liberal arts schools has produced some other notable web ventures: Slashdot and PerlMonks come to mind. -
Re:Somebody has to say it, but...
I think I will become a monk somewhere
as long as you are talking about becoming a perl monk, that's cool
-sam :) -
Re:Not this stupid 'programming is art' BS again!
-
Re:Large Files?
Actually, There's a perl script out there somewhere... (i think i saw it on perlmonks) that when used on an Apache server, it limits all users to whatever bandwidth cap you have set.
John
newrisedesigns.com -
Familiar
Anybody recognize the fifth guy from the left?
http://www.perlmonks.org/index.pl?node_id=966&last node_id=9953 -
extra $ and @ charactersThey had to invest large amounts of money in custom typesetting machines that were outfitted with extra $ and @ characters.
This is more true than the average Perl acolyte knows. The devout Perl monk has as many nuances on the $ as the eskimo has words for snow. To the uninitiated, they all look the same, but let me open your eyes.
- $i is a faithful servant, to whom you entrust the results of your most elaborate calculation.
- $i is an ignoramus who can do little more than count to 10.
- $i is steadfast and will never change value.
- $i is liable to disappear, and can only be counted on when you're nearby.
- $i is a conniving back-stabber, who will change values in defiance of all laws of logic and program flow.
TPJ, to its credit, has commissioned fonts for dozens of variants and pays a premium to the printer. They are pressing for inclusion into Unicode; but if they don't make it, Perl 6 will specify them in the Unicode private-use range, so everyone can use them in programs.
-
Re:as the owner of a professional training company
And as a plus, instead of training we can just 'borrow' code from Perlmonks anyway..
:) -
IndefensibleI almost felt bad for Mundie when it seemed he was getting pushed into doublespeak to defend Microsoft's right to run a business.
But of course that quickly evaporated as he completely ignored most accusations of rapacious business practices. This is obviously more of the same, too bad he (Microsoft) cannot screw up the courage to just tell the truth, that they can make up any liscense they want and print it as long as they can get away with it.
But it was really a neat trick, to say the GPL sets up a wall when Microsoft, through this liscense as well as through its entire business history, has done exactly that. They have intentionally made a liscense which is incompatible with the GPL and immobilizes users of both. But it really takes guts to be so blatant as to attempt the "cleansing" of free software from the development environment including tools which are just there to get the job done. If they want a holy war they can get one (spoken as a Perl Monk
:).Supposedly someone who purchased software with this liscense would be agreeing with their MS operating system and MS applications spying on them for the presence of gcc or Mozilla on network drives.
As for the suggestion that the existence of free software is dangerous to business, this also is clearly refuted. Sleepy Cat and Reiser which are both referenced offer commercial liscenses. And other (BSD, MIT) liscenses can be used if the author just wants his or her software to be as widely used as possible. The other thing is why I like Perl for example, or any of the other tools in GNU/Linux. They work. I can get the job done, and get into a wide development community of leading edge technologists with minimum investment. I also don't have to pay MS money every time I need to do something, just remembering someone I know who had to pay $2000 for VB to get a little component that would let him download a web page. I know a bunch of ways to that with Perl/GNU/Linux. So I respect the desire of a company to make a profit but not if the only company allowed to be successful is Microsoft.
If Microsoft spins the liscense they are analyzing into more of its software I and lots of other people will transform into vengeful consultants who will do everything possible to remove Microsoft's products (now viral due to their new liscense) from our places of work and those of our clients. I was about to spend time getting an open source system of mine to work well on an NT box. Well, can I even do so? If someone installs this Microsoft Mobile Internet Toolkit on their system, it sounds like they no longer can install a Windows port of Mysql, Perl, or any other piece of open source software including my own. I can only imagine this will be ignored by users but will remain as a gotcha which MS could use at whim. Microsoft doesn't just sound like the monopoly run by the richest man in the world, it's beginning to sound like an enemy. They'd better backpedal fast.. There are still more of us than them.
-
WHEW! TPJ's comming back...
Whew. That means we PerlMonks don't have to create our own parish newspaper... just yet...
--
WolfSkunks for a better Linux Kernel
$Stalag99{"URL"}="http://stalag99.keenspace.com"; -
Perl 6As a perl scripter, I should probably keep up on perl development. A few `features' I hope I find in Perl 6 are:
Threading - MP3::Napster, a popular module written by Lincoln Stein requires a threaded perl interpreter; I happen to use this module for my project (spam, spam [grin]).
More perl ports - I would like to see perl ported to PalmOS; some nodes on PerlMonks reveal that there is a lot of interest in this; Although I sometimes wish they would take a look at the projects on handhelds.org.
Dusk begins to realize that he is ranting....
Anyway, I am sure that I will be pleased with the results; Saint Larry will not let us down
:) -
Perl 6As a perl scripter, I should probably keep up on perl development. A few `features' I hope I find in Perl 6 are:
Threading - MP3::Napster, a popular module written by Lincoln Stein requires a threaded perl interpreter; I happen to use this module for my project (spam, spam [grin]).
More perl ports - I would like to see perl ported to PalmOS; some nodes on PerlMonks reveal that there is a lot of interest in this; Although I sometimes wish they would take a look at the projects on handhelds.org.
Dusk begins to realize that he is ranting....
Anyway, I am sure that I will be pleased with the results; Saint Larry will not let us down
:) -
Everything made me make AnythingCall it a mini-everything I coded up in Perl. It's a little less complex web-baised item, but still...
--
WolfSkunks for a better Linux Kernel
$Stalag99{"URL"}="http://stalag99.keenspace.com"; -
Algorithm Design is the Barrier, not Language
Having spent 10 years developing software, let me assure you that your greatest speed gains come from the algorithm design, not the language used.
The best example I have is from 2 years ago when I worked for Motorola. I wrote a simulator that performed a large file with a real device on the other side. The simulator was also responisible for multithreading other tasks from the real device at the same time (although the program only used one unix thread to do this). We wrote our simulator in Perl and the actual device ran compiled C code.
It turned out that our interpretted Perl code sent packets to the C program so fast that the hardware running the C code crashed. We literally had to cripple our Perl code so it sent the data at a slower rate.
That said, I firmly believe that it's far more important to choose a language that best suits your development abilities and choose language speed second. C++ and Java are great languages if you want to be forced into object oriented development, and sometimes that's what you need. Personally I love perl, but learning how to write clean perl code is extremely difficult (though rewarding).
So if everyone really knows what they're doing (cross fingers), go with Perl, because you cannot get that much expressiveness in any other language. If you think your development skills would benefit from additional structure, go with C++.
-Ted -
Fear my patent!I have been watching nearly the entire population of the planet for a year, and I think it is time to inform you that I have a patent for numerical precedence based on ascension. I have felt it was necessary to gather enough evidence that the entire population was infringing on my patent before bringing it to the legal system. It appears that major sites like eBay, PerlMonks, this, among other sites are in non-compliance.
The primary infringement is that each new item posted to the sites that are non-compliant are numerically assigned a value that has incremented from the last previous item posted to the site. The infringement is not limited to the Internet, however, and it appears that the methods involved with my numerical ascension have been stolen by numerous companies, organizations, and groups. Furthermore, the methods have been provided without my permission for use to be taught to children in our school systems.
This post (which ironically enough is in non-compliance), will serve as my notice to cease using the methods for determining numerical precedence based on ascension.
Thank you.
-
Elegant beautiful code? try perlmonks..I've seen more elegant code on perlmonks.org than anywhere else. I've learned a lot there. People submit their craft, and more advanced disciples of perl comment on it and occasionally turn it into beautiful code.
--
Q: What do you get when a Postmodernist joins the Mafia? -
Schwartzian TransformPerlmonks page on it
my @output =
map { $_->[0] }
sort { $a->[1] cmp $b->[1] }
map { [$_, expensive_func($_)] }
@input;
The question is: Is this code that is "really bad"? Or "code that shows elegant and masterful design"?
Or is it both?
My vote is for both... Elegant, masterful, excellent and beautiful, yet can be really bad in certain uses.
-
Basic can.
Chances are, this version of BASIC will make QBASIC look like a programmer's wet dream.
More can be done with [Basic] than you think. I was able to do write a complete TUI-based gambling simulation suite for Apple II (called place.your.bets) using only [Applesoft BASIC] and two [6502] assembly subroutines.
Still, at least they didn't try and release Perl on it. Then nobody would have been able to program the damn thing...
-
Re:Geeks who cut their teeth on it malign it?
Looks like you forgot the pointer to the monestary:
http://www.perlmonks.org. -
Re: Re: Short answer: not anytime soon
the built-in hash routines are algorithmically superior. (i.e. I don't think they have a worst-case of Order-n-squared...)
Close. Hash lookup takes a constant amount of time, O(1), as explained in Uri Guttman's and Larry Rosler's article A Fresh Look at Efficient Perl Sorting. For more information on algorithmic efficiency of Perl's builtins, see Shift, Pop, Unshift, and Push with Impunity!.
-
I hope not from Matt's Software Script Archives
If so then you have a ton of major problems in your code and just don't know it yet. I wish I was kidding.
:-(
A site I think does a pretty good job of helping Perl newbies learn is Perl Monks. OTOH I like to answer questions there so I am biased. :-)
Cheers,
Ben -
Re:mmm, such tasty flamebait...
This reminds me of a post I saw on Perl Monks. The author described how, in one of his English/Literature classes, his teacher defined poetry as being a succint and condensed use of language. Later, while writing perl, he was commenting everything and trying to describe the script completely. When he finished, he realized that the comments were much, much longer than the code they attempted to describe. Therefore, he said, perl (arguably this could be extrapolated to programming in general) is poetry.
-
VB Is horrid.
I wish it was never even a langauge. And can in some ways barely be considered one.
Go look at Perl. Go look at C. Dont go and look at some nasty creation of MS! =D
A suggested site would be Perlmonks, my favorite perl site. There is code poetry there as well. -
More on this at Perlmonks.
There's a good thread on this topic over a PerlMonks. Just do a search on "Visual Perl and ActiveState". Its not very long, but interesting to see what the day-to-day users have to say about this.
-
All Scripting Languages are EvilVBScript may be causing billions of dollars in semicatastrophic losses -- people have the right to bitch about it and Microsoft.
Has anyone considered blaming Netscape and Sun for the even greater, incremental loss of money from JavaScript? How many billions of dollars in coding, design, and bandwidth have gone into popup windows, status bar theft, and rollovers?
Perl is such a spirit fouling venture that there is even a monastic commune for people who grok it.
bash scripting is by far the greatest sin, for it mimics C in an almost mocking way -- K&R would not be pleased...
-- -
Perlmonks.org? Site down due to Perl error. :-P
*cough*
Hemos, did you actually check the Perlmonks link before putting it up? It's entire possible that the site has become so overloaded that it's caused their Perlscripts to freak and die, but it looks more like a simple configuration error.. when I went there, at 12:36pm GMT, I saw the following:
--
Software error:
Can't use string ("") as a HASH ref while "strict refs" in use
at /usr/local/lib/perl5/site_perl/5.005/Everything/HT ML.pm line 1550.
--
That looks like either a miscompilation or a bad configuration error. I hope the Perlmonk guys will manage to fix the problem ASAP - it's not often that your site gets the opportunity to be Slashdotted by so many geeks who are genuinely interested in Perl.
Anyway, so what about PHP, then? ;-) (*duck*, *run*)
Alex T-B
PS: And no, this isn't meant to be a troll or flamebait against Perl. I genuinely like it. So there.
PPS: I am just being told that the site has recovered. Ah, so Perl not only solves all problems, but can be fixed easily as well? Downloaditnow! -
Perl, Python, and Religion
That's really good, the way I wrote it didn't make a statement. I really like the way you tied it together, especially the idea of Python vs. Perl having a religious impact. That would relate back to the Slashdot story regarding Freeman Dyson's work on religion's role on society, except here you would have an example of technology impacting religion. We can see some evidence of that already with the new Perl Monks website. Why "monks" unless their are religious implications? Pretty soon there will probably be a Python Priests website since Python fans would want their language to offer a religious form of expression/membership as well.