Slashdot Mirror


User: Matchstick

Matchstick's activity in the archive.

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

Comments · 76

  1. Re:Mundane SF = Modern Novel? on Is Science Fiction the Opiate of the Geek Masses? · · Score: 1

    "Photons...cannot exist at a speed less than light"
    "And yet the stick looks bent when placed in water."

    They're still moving at the speed of light; just not c.

  2. Inaccurate article text on Halo Movie Deal Moves Closer · · Score: 2, Informative

    The GameSpot article has a factual error as a result of a typo:

    First, the two studios requested that Microsoft relinquish its demands and that the Halo movie strictly follow a Bungie-penned "bible,"

    The "bible" demand comes from Microsoft, not from the studios. One reference: http://www.scifi.com/scifiwire2005/index.php?categ ory=0&id=31144

  3. A relevant epigram on The End of Mathematical Proofs by Humans? · · Score: 1

    The sky is not falling, and Dijkstra can explain why better than I possibly could:

    The traditional mathematician recognizes and appreciates mathematical elegance when he sees it. I propose to go one step further, and to consider elegance an essential ingredient of mathematics: if it is clumsy, it is not mathematics.

    Edsger W. Dijkstra, from Predicate Calculus and Program Semantics

  4. You could at least use his name in the article on Classic Math Puzzle Cracked · · Score: 1, Redundant

    His name is Ramanujan. You may just be trying to be cute by calling him "Indian math guy", but give him some props too. Hiding his name in the URL isn't enough.

  5. Re:I'm pissed. on Grand Theft Auto Led Teen to Kill · · Score: 2, Insightful

    When will it be "Grand Theft Auto led teen to hijack ambulance, drive people to hospital"?

  6. Language link on Introducing The Heron Programming Language · · Score: 4, Informative

    Of course, the first thing I search for in the article is a link that describe the language itself. What a thing to leave out!

  7. Re:Rite of Passage on Database Error Detection and Recovery · · Score: 1

    That's as bad as that browser rendering bug that shows up on slashdot all the time. Most of the text except for the left bar disappears, but shrinking and then increasing the text size fixes it! The browser that displays that bug really is a piece of shit.

    (Note: I don't actually think Firefox is a piece of shit)

  8. Re:Rite of Passage on Database Error Detection and Recovery · · Score: 1

    A senior programmer should know that very little justifies a useless change just before one ships. Removing dead code -- especially suspicious looking dead code -- does not help a project in any appreciable way. So shame on the junior programmer for not putting in a comment, and shame on the senior programmer for taking the bait.

    The proper endgame mindset should be, "Does this change (or more generally, this action) help me ship the product? If not, I won't do it."

  9. Re:I will help YOU get a JOB! (Programming puzzles on Programming Puzzles · · Score: 1
    Taking the sum is tempting (or computing some other order-invariant property), but as other posters have found out, one can create input arrays that have the same value but aren't proper permutations.

    Computing something more complex might work, but all the schemes I can think of require arbitrary-size numbers. For example you could take the sum of 2^elt, effectively creating a bitstring; but that requires N bits.

    So how about reusing the solution that you didn't like: Sort. Return "duplicate" if you find a duplicate entry while sorting. Given the problem's constraints, the array can be sorted in O(n) time using something like an in-place radix sort.

    The inner loop is entered once per cycle within the permutation, and runs for the length of the cycle. The sum of the cycle lengths is N; thus the algorithm is O(n) even though it may not look like it at first glance.
    def HasDuplicates(array):
    for i in range(len(array)):
    while array[i] != i:
    val = array[i]
    if array[val] == val:
    return DUPLICATE
    array[i], array[val] = array[val], array[i]
    return NO_DUPLICATE
  10. Game development lists on Mailing Lists for Techies? · · Score: 1

    For technical game development discussion, gdalgorithms is good: info.

    sweng-gamedev is also sometimes interesting; as you might guess from the name, it focuses more on the engineering side and less on algorithms: info

  11. Re:Is this a double-blind test? on Dial-Up Audio Public Listening Test Opened · · Score: 2, Insightful

    It only needs to be a blind test, unless you worry that the computer administering the test is biased.

  12. Re:Digital Rebel on Seeking a Decent Digital SLR Camera for Beginners? · · Score: 2, Informative

    And be sure to check out this previously posted /. article.

  13. Re:Another solution looking for a problem on Stoplights to Mete Out Punishment? · · Score: 1

    For you who obviously didn't RTFA:

    "...revenue generation. This bad boy will probably pay for itself..."

    The light doesn't write tickets. It turns red. Turning red doesn't generate revenue.

    Take your blind cynicism to some other /. thread, thanks.

  14. Re:Truly Random Number ? on Quantum Random Numbers For Download · · Score: 2, Interesting

    That's not quite the same sort of "there is no equation". There are equations that describe perfectly the time evolution of the 3-body problem. There is just (in general) no closed-form solution for the state of the system.

    That said, even assuming a perfect integrator there's no way to measure the initial state precisely, so there are limits to how far you can evolve it computationally. However, similar arguments hold for the 2-body problem; so you'll have to find a more clever way of "macro-fying" quantum uncertainty effects.

  15. Re:Hungarian Notation on Why Programming Still Stinks · · Score: 1
    Basically, there are smart programmers that use good names which help convey the same types of "instant" type information


    This is the spirit of HN. It gives you an unambiguous grammar for constructing those "good names". This is similar to having coding conventions that standardize verbs and nouns (eg prefer "foo_num" to "foo_count")

    The "type changes" argument is rather ridiculous -- it's like complaining that refactoring makes you touch a lot of files. A type change isn't a trivial operation and shouldn't be treated as such. One could also ask what is so special about a name chosen by a smart programmer that makes it somehow more resistant? Perhaps because it specifies semantic information instead of raw type information. IMHO this is a smart thing to do in Hungarian. Instead of "int iNumFoo" and "Foo* pFoo", use "nFoo" and "aFoo".

    The reward of HN is that it gives you a consistent way to encode common sorts of semantic information, while separating it from the more useful content of a variable name. It is similar to the sort of thing as what we used to do with function names in the days before we knew we were being object-oriented:

    naive:
    ReadTexture(T*)
    DownsampleTexture(T*)

    hungarian:
    Texture_Read(T*)
    Texture_Downsample (T*)

    Long story short, there are smart programmers who actually think about why they do the things they do, and there are bad programmers who are parrots.
  16. Re:Python/PERL users unite! on Exegesis 7 Released (Perl 6 Text Formatting) · · Score: 1

    Parrot is being designed to accept all dynamic languages. OSCON 2004 will be when we discover who wins the Pie-thon competition; in it, we see whether parrot is faster at running _python code_ than the current cpython.

    You can bet that Dan wouldn't be risking a pie in the face if he didn't care about whether or not parrot could host python.

  17. Re:Perl 6 is hugely ambitious, and that worries me on Exegesis 7 Released (Perl 6 Text Formatting) · · Score: 2, Informative

    The reason Parrot is register based has nothing whatsoever to do with reduction in the number of opcodes. In fact, the Parrot VM opcode count is quite large, largely because of combinatorial issues. If every x86 opcode that used mod/reg/rm addressing was actually counted as (# mod/reg/rm combinations) opcodes, that would be roughly analagous to what's going on in Parrot.

    Parrot uses registers for speed, that's "all".

  18. Re:So many handheld from same company on Nintendo DS to Feature Wireless Connectivity? · · Score: 2, Insightful

    Bad comparison. The GBC doesn't "fight with" the GBA any more than the PS1 fights with the PS2.

  19. Re:Jailtime? on Videogame Pirate Gets Long Jail Sentence · · Score: 3, Informative

    The "jailtime" is for mail fraud. Read the article and you'll learn that he defrauded Cisco of $600K worth of hardware in order to sell it on the grey market.

  20. It's NOT a virus. on Buddylinks Stinks · · Score: 2, Informative

    It's a trojan!

  21. Re:Disyllabic Reduction on Why Such Unimaginative Nomenclature? · · Score: 1

    This has been going on in Japan for quite a while. Instead of acronyms, you have words made out of initial syllables -- pokemon being a fairly popular recent example.

  22. Re:These on Comfortable Stealth Headphones? · · Score: 1

    You meant discreet.

  23. drink less, RTFA more on Making Antibubbles in Beer from Belgium · · Score: 3, Informative

    An antibubble is not a bubble that floats downwards. It's a bubble whose membrane is made of air instead of fluid.

  24. Re:Original Joke on So You Think Physics is Funny? · · Score: 1

    I've heard the stick joke before. Usually it's accompanied by another couple:

    Q: What's red and invisible?
    A: No tomoatoes

    Q: What's orange and sounds like a parrot?
    A: A carrot

  25. Re:Ummm... on Conflict On Graphic Standards Hurting PC Gaming? · · Score: 1

    Without NVidia's financing, it would be called "Bridge Construction Set", and be available through Chronic Logic's web site.