Slashdot Mirror


User: maxwell+demon

maxwell+demon's activity in the archive.

Stories
0
Comments
12,279
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 12,279

  1. Re:Meme overload! on Russia To Develop a National Operating System · · Score: 1

    Won't anyone please think of the child processes?

  2. Re:Hrmmm. on Survey Says C Dominated New '08 Open-Source Projects · · Score: 1

    ... speaking words of wisdom: Let it crash ...

  3. Re:c-derived languages? on Survey Says C Dominated New '08 Open-Source Projects · · Score: 3, Funny

    From the draft of the next C++ standard, n2798, 1.9 [intro.execution]/16:

    If a side effect on a scalar object is unsequenced relative to either another side effect on the same scalar object or a value computation using the value of the same scalar object, the behavior is undefined.

    Since the built-in == operator doesn't have a sequence point between its argument, the side effect of c++ is unsequenced relative to the value computation of c on the left hand side of the ==, and thus the behaviour is undefined.

    Also you find in the latest public draft of the 1998 C++ standard, CD2, 5 [expr]/4:

    Between the previous and
    next sequence point a scalar object shall have its stored value modified at most once by the evaluation of an
    expression. Furthermore, the prior value shall be accessed only to determine the value to be stored.

    Note that in c == c++, on the LHS the prior value of c is accessed not in order to determine the new value, but only to compare it with the result of the right hand side. Therefore it was undefined in C++ even back then. I don't have access to any version (draft or otherwise) of the C standard, but I think it's undefined in C, too (although the exact wording probably is different again).

  4. Re:c-derived languages? on Survey Says C Dominated New '08 Open-Source Projects · · Score: 1

    Historically speaking, there haven't been any useful Microsoft technologies that were or are completely interoperable, stable, relatively bugfree, and secure.

    Hey stupid, ever heard of the INTERNET?!

    The internet is secure?

  5. Re:Why are people surprised? on Survey Says C Dominated New '08 Open-Source Projects · · Score: 0, Troll

    C isn't the slightest bit more performant than C++. Everything you can do in C, you can do in C++ with exactly the same performance (often even by using exactly the same code). However, in C++ you can restrict that low-level stuff to those tiny parts of your application where ultimate performance matters, and use higher level stuff everywhere else. Not that always higher-level stuff is less performant anyway; unless you have a very good optimizer for C, I'd bet that an optimal C++ std::sort implementation consistently beats an optimal C qsort implementation, despite being higher level (no messing with void*).

  6. Re:Wait till Perl 6 arrives on Survey Says C Dominated New '08 Open-Source Projects · · Score: 1

    Yes ... but will it arrive before Hurd 1.0?

  7. Re:Just because PHP is popular on Survey Says C Dominated New '08 Open-Source Projects · · Score: 2, Insightful

    Of course you can write Facebook in ASM. It's just a lot of work (and you'll be bound to the platform you've chosen forever).

  8. Re:Just because PHP is popular on Survey Says C Dominated New '08 Open-Source Projects · · Score: 1

    Both C++ inheritance and C++ templates allow that, too (with both methods having different trade-offs). But static typing will still check that you file-like object indeed supports everything needed, even if it is used only by some deeply nested function under extremely obscure circumstances which you happen to never hit with your test suite.

    Assuming you have written a streambuf class (say it's named httpbuf) for accessing web pages (or found a pre-written one), you can just use a normal filebuf for testing (or you can even test on program-internal data by using a stringbuf), and using httpbuf for the actual code. The only point Python might have here is that it might already come with the class needed to read web pages, while C++ doesn't provide that out of the box. But that's of course completely orthogonal to the question of static typing.

    I guess most anti-static typing people think of static typing as it was in original Pascal. But developmment didn't stop there (and even Pascal implementations provided more than that more than ten years ago).

  9. Re:c-derived languages? on Survey Says C Dominated New '08 Open-Source Projects · · Score: 1

    Which it shouldn't, as C, C# and C++ seem pretty distinct.

    And what about Objective-C?

    And what about Objective C++? And C++/CLI?

    BTW, when will we get Objective-C++/CLI? :-)

  10. Re:-1, Hoary old joke on Ubuntu Download Speeds Beat Windows XP's · · Score: 1

    Can you also do things like middle-drag?

  11. Re:Linux on the desktop on Ubuntu Download Speeds Beat Windows XP's · · Score: 1

    If you are going to plug in an external mouse anyway, then why use a crippled two-button one instead of a reasonable three-button or even scroll-wheel mouse?

  12. Re:So if he starts with PacMan ... on Can We Create Fun Games Automatically? · · Score: 1

    It's not on the list, because part of what is nethack also comes from subtle and not-so-subtle references to hacker culture (e.g. "a scroll named HACKEM MUCHE"). Also, will an automatic program ever get the idea to include features like recieving your (real) mail from inside the game (as a "scroll of mail")? I strongly doubt so. Even the idea that you can find your own grave from an earlier unsuccessful playing in a later game session is something very unlikely to be invented by a program.

    The point is, much of the fun is in such details which cannot be created by a simple optimization process, but have to be invented through creativity and cultural knowledge.

    Moreover, even if you concentrate just on the game mechanics, a computer couldn't create anything like nethack without providing extensive information. That's because the various numbers mean something. Simply making arbitrary rules simply will not give a consistent experience. A shop keeper will never give you money if you buy something. You cannot find a negative amount of money. A monster hitting you will never increase your hit points. Such rules are obvious when you know the meaning of the points, but how would a computer figure this out? The result of making those rules arbitrary would just result in rules which seem as arbitrary as they are, and therefore much reduced fun.

  13. Re:ATTN: SWITCHEURS on Can We Create Fun Games Automatically? · · Score: 0, Offtopic

    Novell is one or two nerds in a basement together?

  14. Re:So..what? on Can We Create Fun Games Automatically? · · Score: 1

    Nethack.

  15. So if he starts with PacMan ... on Can We Create Fun Games Automatically? · · Score: 1

    ... will he eventually reach nethack? After all, it's also basically things moving around (you, your pet, monsters, etc.), and actions on getting together (fighting with monsters, picking up things, ...). Ok, it has a third dimension (stair up/down) and a few other degrees of freedom (e.g. additional actions like casting spells or putting on/removing rings) and a few more parameters than just one score, but I'm sure you can generalize the description enough to be able to describe nethack.

    But somehow I doubt that he'll create a new nethack this way.

  16. Re:$400 a month? on Switching To Solar Power — Six Months Later · · Score: 1

    But how do you read Slashdot without a computer? :-)

  17. Re:I'm not a copyright lawyer on Qt Becomes LGPL · · Score: 1

    If you have a piece of GPL code in your program, all of the program must be GPL. LGPL only applies to the LGPL code and any changes you make to it (your original code can be under any license)

    Not any license. For example, if the license specifically says that the code may not be linked with LGPLed code, you certainly cannot link it (legally) with LGPLed code. More likely, if the license is a GPL-like "you must license the whole code under this", but contains any clause incompatible with the LGPL, then you cannot link to LGPLed code, because then both licenses would conflict.

  18. Re:Wow on 30th Anniversary of the (No Good) Spreadsheet · · Score: 1

    If a bank trusts a spreadsheet based on a bad formula that is provided by the bank itself, is it the spreadsheet's fault?

    Of course. A good spreadsheet would have invoked its mind reading module to find out what the formula is supposed to do, then consulted its extensive database of everything known to man to find out the rules, then the logic thinking module to check the formula, and finally the psychology module to determine how to successfully tell the writer of that formula that he f*cked it up.

  19. Re:Worth $500? on Call For Grant Proposals In Perl Development · · Score: 1

    Sorry, your program hard-coded the path of perl. That disqualified it. I'm going to get the $500 instead with the following masterpiece:

    #! /usr/bin/env perl
    print "Hello world!\n";

    SCNR

  20. Re:Wishlist on Call For Grant Proposals In Perl Development · · Score: 1

    No, you'll see, Duke Nukem Forever will be written in Perl 6, at least the Hurd version.

  21. Re:Wishlist on Call For Grant Proposals In Perl Development · · Score: 1

    4 is the smallest composite number.

    BTW, are you a numeric co-processor? :-)

  22. Re:Wishlist on Call For Grant Proposals In Perl Development · · Score: 1

    First, write a specification for the perl 5 language.

    Simple: A program is well-formed Perl 5, if the Perl v5.10.0 interpreter doesn't give you any error for it. The semantics of a Perl 5 program is defined by the behaviour exhibited when run on the Perl v5.10.0 interpreter. :-)

  23. Re:Global Economy == Global Poverty and Ruin on Dell Closes Ireland Plant; 2nd Largest Employer · · Score: 1

    except that the world wide economy has been destroyed. All the capital ends up in the hands of a very very small number of people.

    If the world wide economy has been destroyed, that capital will be worth exacly nothing.

  24. Re:willingness to relocate on Dell Closes Ireland Plant; 2nd Largest Employer · · Score: 1

    There are plenty of Poles working in Ireland now.

    So maybe Dell thought that if there are so many Poles working in their Irish factory, they can as well relocate that to Poland anyway ...

  25. Re:Obvious solution on More Brains Needed · · Score: 1

    I didn't know George W. was reading Douglas Adams.