Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 Internet speed test! ×

Comment Re:Why perl? (Score 1) 263

I never did get the hang of using OO in perl whereas python OO was natural to me....

... which is amusing because other than the surface syntax, the object models are so similar that they have the same fundamental and simplistic flaws.

Comment Re:Unicode support? (Score 1) 263

Not all of the world is UTF-8. Assuming that it is is, in fact, wrong.

I appreciate your confidence that things you've never heard of before must exist and work properly, but I'll take that with a grain of salt. Unicode isn't merely UTF-8 and BOMs and hand-waving. Unicode is a set of properties and rules about how to use those properties correctly. If you don't know what they are and when to use them, no language can use them automatically for you on this side of the strong-AI singularity.

(It's easy for me to imagine reading from a filesystem that doesn't return data encoded in UTF-8, or data from the network which doesn't supply a correct encoding or any encoding, because that happens all the time. You can expect that everything always does exactly what you expect, or you can write correct and robust code. You cannot do both.)

Comment Re:Unicode support? (Score 1) 263

Python automatically guesses encodings, automatically normalizes into the proper form, automatically casefolds, and automatically applies the correct collations especially respecting the sources and sinks of data?

If that were true, I would be quite impressed.

Comment Re:Testing (Score 2) 263

... what does the much-vaunted CPAN contain within it that has unit tests?

Any serious distribution on the CPAN has at least a decent test suite in its t/ directory. Everything uploaded to the CPAN gets run through the CPAN Testers service, often within minutes of the upload.

search.cpan.org has over 3200 results for module names which contain the word "Test".

Comment Re:Full classes? (Score 4, Informative) 488

Coming from you?

I know a little bit about compilers.

Every language has its ugly spots that make optimization difficult...

"Every number is a float" is one of them in JavaScript. "All objects are associative arrays" is another. "Object prototypes are mutable everywhere" is yet another.

... a large amount of the performance improvements that have come in recent years have nothing to do with the language syntax of javascript...

Some, yes, but many also come from tracing the flow of data as the program runs to figure out which pessimizations inherent to the semantics of JavaScript it's safe to undo. That's why modern JavaScript JITs work so hard to perform side exits with their guard clauses to produce code that runs in as straight a line as possible. Ask Jim Blandy about it sometime.

Perl would have to do similar optimizations. So would Python. So would Ruby. (It's instructive to talk to the people behind Rubinius and Unladen Swallow, if not people who've spent years optimizing Smalltalk implementations.)

Comment Re:Assuming Infringement by Default (Score 1) 130

If Amazon wants to be the publisher of choice for independent writers, it seems to me that at least one person involved in creating policies should be familiar enough with copyright and Internet publishing to understand Creative Commons. That's the part of this whole process which baffles me.

Comment Re:Assuming Infringement by Default (Score 1) 130

... in the absence of sufficiently strong indicators to the contrary.

In my case, this is a revision of the second edition of a book also available for sale as hard copy, uploaded from the publisher's account.

I can understand being stricter about the initial upload of a work, but letting the first upload through and only enforcing the copyright detector on a minor revision seems counterproductive.

Slashdot Top Deals

In the realm of scientific observation, luck is granted only to those who are prepared. - Louis Pasteur