Slashdot Mirror


User: chicoryn

chicoryn's activity in the archive.

Stories
0
Comments
4
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 4

  1. Probably "Olof Palme" @ ~700 000 on Pirate Bay Gets a 4,000-Page Complaint · · Score: 5, Informative

    The second biggest murder case required 1500, how much did the biggest require? The biggest would probably be the Olof Palme assassination which remains unsolved and have been under investigation since 1986. Current page count of the investigation is approximately 700 000 based on the wikipedia article.
  2. Oh right... on Perl 5.10, 20 Year Anniversary · · Score: 1

    Readability? You do realize this is Perl we're talking about? Oh come on, you can write readable Perl code. Never mind that it is never practised.
  3. Re:Switch statements are syntactic sugar on Perl 5.10, 20 Year Anniversary · · Score: 2, Interesting

    Switch statements are syntactic sugar. They're really not needed. Nested if/then/else do the same thing.

    They do not! Not only do they increase readability of the code in many cases they do not even generate equivalent RTL. When you do a if-else if-else... you tell the compiler that it MUST check the first condition before the second, a subtle but important difference. What this means to the compiler is that an if-else if-else... must have O(n) complexity!

    An switch statement on the other tell the compiler each item is independent of any other (and comparison is generally enforced as side-effect free). This means a switch statement can be converted to a binary-search or even a jump-table giving us a best-case complexity of O(1).

    As you can see they are hardly equivalent but a really good compiler might be able to convert a if-else if-else... to a switch statement. But considering a switch statement is usually easier to read, write and understand in the first place why bother?

  4. Re:Solution without a problem on First Quantum Cryptographic Data Network · · Score: 3, Interesting

    I can't claim to be an expert on the subject but rather then an actual new encryption quantum cryptography is an way to ensure no one can listen without you knowing(Making use of the "Can't watch without changing" law in quantum physics), while it isn't that much of an problem right the computer power will continue increasing, better to have the solution before the problem right? And yes this isn't going to be an home device anytime soon since it's WAY to expensive for home use.