Slashdot Mirror


User: p3d0

p3d0's activity in the archive.

Stories
0
Comments
3,023
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 3,023

  1. Re:GPL-Compatible? on Open source Java? · · Score: 1
    Actually it's not that simple. Modern JIT compilers do method inlining, and so the jitted code is a derivative work of the class library code, and possibly of some JIT intrinsics.

    IANAL, but if you were somehow to redistribute the jitted code including some inlined GPLed code, I think you'd be bound by the GPL to license your own code under the GPL.

    However, the usual use of Java is to run the jitted code once, in-place, without distributing it, and then to discard that code when that particular invocation of the JVM terminates. In this usage scenario, I don't think there's any problem with the GPL.

  2. Anyone got an idea what's going on here? on Excursions at the Speed of Light · · Score: 1

    I've heard that when you're travelling near lightspeed, things behind you (say, 120 degrees from the forward direction) appear to be in front of you. Can anyone give the Relativity for Dummies version of why this happens?

  3. Re:Regarding Lightsabers on The Feasibility of Star Wars Tech · · Score: 1

    Wow, that's a misuse of statistics. I know almost nothing of the millitary, yet even I can see that body count isn't all it takes to win a war.

  4. Re:Regarding Lightsabers on The Feasibility of Star Wars Tech · · Score: 1

    They show why Jedi use lightsabers in Episode I. In that movie, anyone attacking a Jedi with a conventional weapon is easily repelled.

  5. Gratuitous? on Roger Penrose and the Road to Reality · · Score: 1
    Flipping through the eleven-hundred pages, you notice the gratuitous inclusion of mathematical formulae...
    Do you really mean gratuitous? Are the equations unwarranted or unjustified?
  6. The so-called "p-n junction" on Nuclear Battery That Runs 10 Years · · Score: 1

    I'm sorry, is there anyone reading Slashdot that doesn't know what a p-n junction is?

  7. Re:Have you considered memory-mapped files? on Dumping Lots of Data to Disk in Realtime? · · Score: 1
    Remember that if you are putting pointers into the file directly, that it works better if the pointers are relative offsets rather than direct memory pointers, even though direct memory pointers are in theory possible during a single session run.
    Good advice. These are "self-relative-pointers". Instead of this:
    Foo *Bar::getFoo(){ return _fooField; }
    ...you write something like this:
    Foo *Bar::getFoo(){ return (Foo*)((char*)&_fooField + (char*)_fooField); }
  8. Re:Getting back to basics... on Low-Cost Space Shuttle Replacement Proposed · · Score: 1

    Hey, I like Wikipedia as much as the next guy, but you ought to find at least one reiable source to back up your claim that the Soyuz is the best thing since sliced bread. Quoting Wikipedia (without citation, no less) only demonstrates that someone who edits Wikipedia likes Soyuz, and that nobody who came after him has been able to refute any of the statements made.

  9. Re:Can someone explain to me... on Low-Cost Space Shuttle Replacement Proposed · · Score: 1
    Normally, in case of rockets like Soyuz, maybe 1% of the original mass is put in the orbit, a tiny, light reentry device, maybe some payload. In case of the shuttle we need to lift a huge, ultra-heavy vehicle into orbit, it requires vastly more fuel.
    Well, this is almost right. The Soyuz, being a 3-stage rocket, has a mass ratio around 34 compared with the Shuttle's 15.6. Hence, the Soyuz gets about 3% of its mass to orbit, while the Shuttle gets around 6.4%. However, this is actually a point in favour of the Shuttle: for a given vehicle mass, a high mass ratio actually means a craft needs more fuel. Therefore, the Soyuz needs twice as much fuel as the Shuttle per vehicle mass.

    The difference is that, once in orbit, the Shuttle outweighs the Soyuz 14.5 to 1 (cargo included). Factoring all these things together, the fuel used for one Shuttle launch could supply 7 Soyuz launches.

    In his book Entering Space, Robert Zubrin argued that the Space Shuttle got it backward: it made the upper stage reusable while the lower stage is not. Rather, the massive, powerful lower stages should be the reusable one, while the upper stage can be a light disposable craft. He summed it up this way: "In short, the Space Shuttle is so inefficient because it is built upside-down." (Emphasis in original.)

  10. Re:Not funny? on Firefox Promo Videos · · Score: 1
    You're not the only one. I didn't find them even mildly amusing. I want those 90 seconds of my life back.

    Uh huh huh. Uh huh huh. His head popped off, Beavis.

  11. Re:My Experience... on Writing Unit Tests for Existing Code? · · Score: 1

    Nice post. I just lost my mod points about an hour ago or else you'd have a well-earned Insightful from me. (Especially point #1.)

  12. Re:In a democracy/republic on Open Source Methods Useful Way Beyond Software · · Score: 1

    Yep, I agree.

  13. Re:In a democracy/republic on Open Source Methods Useful Way Beyond Software · · Score: 1

    Besides the objections named in another reply, there's also the fact that copyright and open-source are very much compatible. In fact, the GPL relies entirely on copyright.

  14. Those hyperlinks suck on First Image of Extrasolar Planet Confirmed · · Score: 0, Troll

    Before clicking, I figured out what "controversy" linked to. But "European Southern Observatory" didn't link to the ESO, "first picture" didn't link to a picture, "extrasolar planet" didn't link to a page explaining what extrasolar planets are, and who can guess what "indeed captured" should point to??

  15. Re:The Sky Is Falling!!!! on Safari And KHTML May Never Meet · · Score: 0
    But I don't want to hear anyone praise them for being CONTRIBUTORS to the open source movement, because it is clear they aren't.
    No, that's not clear to me. Apple does give their code back to the KHTML people.
  16. Re:Is this a joke? on Safari And KHTML May Never Meet · · Score: 1

    Nice.

  17. Target market has no memory on Dvorak Trashes Modern Gaming Industry · · Score: 2, Insightful

    Aside from the other criticisms posted already, I'd like to add that a sizeable part of the gaming target market is young teenagers with short memories. The quality of games for this market is about as important as the quality of boy bands.

  18. Hey, I went to high school with this guy! on The Darth Vader Blog · · Score: 1

    He's a genius. Check out this short story.

  19. Re:great result, but not really a "discovery" on Nuclear Fusion Discovered · · Score: 1
    And I'm afraid it's a little bit of a dodge to say it's "at room temperature". The article doesn't say this, but presumably this takes place in a vaccum, where temperature is basically undefined in any conventional sense.
    Isn't it valid to relate the "temperature" of a vacuum to the nature of the radiation passing through it? That is, if you put a black box at at a certain spot in that vacuum, how hot would it become before it reached thermal equilibrium?
  20. Re:Use long variable names on Comments are More Important than Code · · Score: 1
    Your example is not only patently absurd; it also misses the point. Your variable name doesn't say why you chose to write the code that way.

    Can we agree that the following variable name would be unwise?

    struct something *buffer_used_to_temporarily_hold_pointer_value_whe n_swapping_elements_of_the_array_chosen_because_al though_the_triple_xor_technique_saves_a_register_w e_have_found_that_xor_instructions_are_slow_on_som e_platforms;
  21. Re:Ballistic Conduction on Rice Contracted to Provide NASA's Quantum Wire · · Score: 1
    Uh, no, it would be more. Think about it.

    I don't know the first thing about the physics involved, but say the resistance is proportional to log_10(n+1) where n is the length. For n >> 1, this is roughly log_10(n). If you cut a wire of resistance r into 10 pieces, each one has a resistance of log_10(n/10) = r-1. Then the total resistance would be 10(r-1) which, I'm guessing, is roughly 10r for any reasonable macroscopic length. Cutting the wire into 10 pieces made the total resistance about 10 times larger. When you disturb the quantum mojo of one of these things, you lose the logarithmic resistance property.

  22. Re:Use long variable names on Comments are More Important than Code · · Score: 1
    Well, legibility is the primary concern. For instance, I work on a just-in-time compiler, and to use the name justInTimeCompiler everywhere, instead of "jit", would make the code harder to understand at a glance.

    Abbreviations are good if and only if they make the code easier to read.

  23. Re:Use long variable names on Comments are More Important than Code · · Score: 1

    Agreed. There are some circumstances where abbreviations are ok, but in general, for any given name, there are a huge number of possible abbreviations, and vice-versa, so it's bound to cause confusion.

  24. Re:Doxygen on Comments are More Important than Code · · Score: 1
    What I hate though are large blocks of commented code.
    I hope you meant commented-out code. If so, I agree. The code is no place for archaeology. That's what revision control is for.
  25. Re:Use long variable names on Comments are More Important than Code · · Score: 4, Insightful
    This same point arises every frigging time someone talks about comments. As I say every time: A variable name can only tell you what the variable is, not why you chose to make it that way.

    Now with that out of the way, here's my philosophy on variable names... Every variable name should be as long as necessary to describe what the variable is. Having said that, the shorter, the better. If you have a lot of long variable names, then you probably have not found the most elegant solution to your problem.