Slashdot Mirror


User: thechao

thechao's activity in the archive.

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

Comments · 135

  1. Re:He's partly right. on Are All Bugs Shallow? Questioning Linus's Law · · Score: 1

    Now, when he says "truly correct", I'm assuming he doesn't mean formal proving. That would be absurd, especially for an operating system as complex as Windows or Linux (or really anything with limited resources). Anything short of the formal proof and you just have empirical evidence that it works - but if there's a billion branches and trillions of code paths, nobody will hit all of them with all data.

    I used to hear similar sentiments with regards to compilers. Check out Xavier Leroy's work: http://pauillac.inria.fr/~xleroy/ Yeah, that's mainly the work of one guy; his students' work is related, but not necessarily in support of his project.

    There are a lot of us who are spending serious time understand Coq et al. because formal verification is advancing to the point where if you don't understand the technology and how to use it, you're going to be out of a job.

  2. Re:3D chips on Graphene Transistors 10x Faster Than Silicon · · Score: 1

    Screw the heat, you're going to have an IO and power deliver problem. Assuming a cubic uptake of density of transistors, you'll only have quadratic uptake in IO ports. Right now we use the 3rd dimension to help increase IO and power density (lifiting it up/down a layer; because we have a quadratic/linear problem with current chips). By the time you've managed to solve those problems (lowering transistor density to allow IO/power paths) you'll end up with a plain-old-chip, anyways.

  3. Re:Assembler? Really? on Facebook Rewrites PHP Runtime For Speed · · Score: 1

    Hold on, there, Sparky. Assembly, C/C++, your-favorite-compiled-language ... are all just as "fast" as each other. They're all dependent upon the compiler for "speed". I recently moved to Big Company where we do Serious Embedded Programming. The old-skool assembly programmers were always bitching that "compilers were no good" and that to get real speed you had to "program to the iron." Here's what I observed: they redesigned the algorithms when moving to assembly. So, basically, they had algorithmic improvements. This was generally true except, in certain cases, when it was impossible to completely annotate the "hot" variables and how register spill/fill should be performed. In this case I suppose we are just dealing with a lack of expressiveness, and not any sort of fundamental problem with "high level" (or lower level) languages.

  4. Re:Incorrect analogy. on Judge Lowers Jammie Thomas' Damages to $54,000 · · Score: 1

    None. Copyright should protect against commercial uses -- as was its original intent.

  5. Re:RTFP on Microsoft Ordered To Pay $290M, Stop Selling Word · · Score: 1

    Just read through the patent. (1) The writing is quite clear and understandable -- kudos; (2) the patent is obvious to any member of the field. I cannot believe that any software engineer/equivalent-expert could sit in front of a court and claim that it is not obvious without perjuring themselves. Literally, all this patent does is separate the "control" codes from the "content", where the control codes include indirection information. Even in school when we had to encode data with metadata, this is one of the techniques we used (the other is markup).

  6. Re:breaking my heart on Times Are Tough For Nigerian Scammers · · Score: 1

    School of hard knocks?

  7. Re:Papering over the mold on Bjarne Stroustrup On Concepts, C++0x · · Score: 1

    I don't even know where to begin a serious criticism of this. Let me start by asking a question: which computer is it, exactly, that you use supports a native array type? In x86 I suppose the closest would be a 4-way SSE vector? This only captures a subset of the cases you mention. Let me continue point by point:

    (1) Escape hatch. Name a real language without an escape hatch? Haskell, O'Caml, LISP, Java, C#, VB, Cobol, FORTRAN, etc. can all link to C-binaries.
    (2) Distinction between arrays and pointers. Misinformation: the problem is that an array decays to its equivalent pointer type with little effort. Any conformant C++ compiler can, will, and does reject passing an explicit array, i.e., char-string literals, to a parametric type expecting a scalar; even GCC does this.
    (3) "Responsible for most buffer overflows". Is it? Data? My recent reading of bug-sources in the literature does not support this.
    (4) "C++ didn't have &". Again, C++ inherited the array-decaying-to-pointer from C. Maybe this is a bad idea. If you could please write a short document explaining a backwards-compatible fix for this, that'd be great.
    (5) I don't really understand your STL comment. At what point is the STL --- an algorithms library --- going to replace a data-structure? Perhaps you mean that the limited set of containers in the std namespace don't fully replace an array? Perhaps. I think there are some missing random-access containers: fixed-length arrays and wrappers around raw pointer-buffers are examples. There is also a regrettable lack of trie's, R-trees, quadtrees, 2-3-trees, and the rest.
    (6) "Most modern languages approach iteration...". Sure. That's why C++0x is introducing a for (i : X) [foreach] construct.
    (7) "Safety." First, there is no definition of "safety." Second, even if I admit there is a workable definition of "safety", it has never been a concern for C or C++.

  8. Re:Template la-la land. on Stroustrup Says New C++ Standard Delayed Until 2010 Or Later · · Score: 2, Insightful

    Okay, IAAEOC++0x (I am an expert on C++0x), one of my group's PIs is Bjarne Stroustrup and my committee consists of members from both the Indiana & Texas concepts proposal; the extended group is responsible for lambdas, concepts, variadics, for-each constructs, etc. Credentials aside, "templates" != "generic programming". Concepts were designed to provide a predicative type-system for templates [think of this as a kind-system] which allows us to get rid of most of the template metaprogramming hacks (SFINAE enable-if/disable-if, type computations, etc.). Variadics (also for templates) get rid of list-like type-computations. At the cost of adding a relatively light-weight description of an interface (think of a concept as a compile-time only interface) we can get rid of almost all of the hairy bits of template coding.

    The reason why concepts was rejected is due to some of the uglier corner cases stemming from a requirement for soundness in the type-system using concepts. As we are slowly approximating second-order types with C++ (all typeful languages end up doing this to increase expressivity) there are bound to be some hiccoughs. What happened at ISO (as far as I know) came from an argument on the reflector which revolved around the default of whether a concept was auto(matically) satisfied by a type or if it must be explicit [a fairly arcane argument], in addition to the handling of associated and intermediate generated types. It is not clear if a simpler solution can be constructed for a decidable type-system.

  9. You're desire is for a language that supports "gradual typing"; read about it here: www.cs.colorado.edu/~siek/pubs/pubs/2006/siek06:_gradual.pdf

  10. Re:What kind of verbosity? on Comparing the Size, Speed, and Dependability of Programming Languages · · Score: 1

    Let me amend that last line of code for you (C++0x, auto variables and for-range loops):

    for (auto it : list)
      cout << (*it)->name << "\n";

    ... although, I am not going to argue that, in general, C++ is a damn wordy language.

  11. Re:Intelligent Design on Should We Just Call Dog Breeds a Different Species? · · Score: 1

    Whoah, there, Sparky. Natural selection is well-and-alive; the dogs that are the cutest, most adequately serve function, match form best, etc., are selected for in their environment. Remember that the "natural" part of natural selection is similar to nondeterminism: it is something that happens "from the outside." In this case "outside" is the non-Dog world. Just because a terribly complicated (possibly intelligent) force is acting on the dogs doesn't change anything.

  12. Re:And I reserve the right... on FCC Reserves the Right To Search Your Home, Any Time · · Score: 1

    Hey ... I've been looking for this state, UK, for like an *hour* now. It sounds New-Englandish, is it next to Delaware?

  13. Re:So what the hell is it? on Interview With UIzard Creator Ryu Sunt-tae · · Score: 1

    It appears to be free marketing for some webcompany. I don't speak or read marketroid in any language, but it appears to be a UI designer for web-apps. So... probably 3% of the functionality of Visual Studio (15% of Anjuta) but 1000x slower.

  14. Re:Ya I would compare it to long division on Old-School Coding Techniques You May Not Miss · · Score: 1

    I've got the pencil in my left ear to stay. Do I roll up the paper, or what? Should I cut a hole in it and hang it on my nose?

  15. Re:Awesome on World's First X-Ray Laser Goes Live · · Score: 4, Informative

    IAAECXRPX (I am an ex-computational-x-ray-protein-crystallographer). Lasers a bit left wing, since we usually use anode sources for x-rays on the home source and synchotrons for MAD sets. However, if the laser has tight enough phases (60-degrees) and coherency this is not just big but HUGE. Currently, there are two difficult steps in PX: (1) crystallization; and (2) phasing. The first is becoming easier using automated screening and robots (although we are only at the beginning of this process, so probably still 5--10 years out). The second has been considered one of the outstanding problems in (at least) biology if not all of science. To put this in perspective, it was only a few years ago that just *finding* the structure (phasing) was enough to warrant a Nature or Science paper. Nowadays you're gonna need some function, too, but the phasing is still spectacularly hard. If these guys have really done this, and they're getting good power, this will be a watershed event for all of biology.

  16. Re:Possible applications on Reflected Gravitational Waves · · Score: 1

    The wind can shake a sail, but the sail will not make a nor'westerly.

  17. Re:Great alternative on Asus Eee Top All-In-One Touch Screen PC Tested · · Score: 2, Insightful

    Make sure the touch screen works through pressure and not some electric effect. If it's in the kitchen you'll soon find you need to put some sort of saran wrap on the computer because the back-splatter from grease will coat the damn thing. Also, make sure the covering is easy to remove and replace, as this will need to be done fairly regularly, depending on your menu. We had a similar problem for a small company w.r.t. children and food.

  18. Re:JavaScript assembly language on The Future of Google Chrome · · Score: 1

    Given a fast-as-C javascript engine, you could have a pretty decent VM to share between several dynamic languages, and due to JS's dynamic nature compiling these languages to JS is fairly trivial.

    You made me snort coke out of my nose. Hold on ... let me contact Goto, and tell him to port Goto BLAS to JavaScript right now!

  19. Re:Stupid, expensive, and ineffective. on A Peek At DHS's Files On You · · Score: 1

    Wait ... let me try to understand this: you mean a good offense is the best defense? BRILLIANT!

  20. Re:Sent off for mine this morning.... on A Peek At DHS's Files On You · · Score: 1

    It mentions that by law they have 10 days, but the backlog is 2--3 months. You would think that someone could take legal advantage of this, a la, trying to forcefully break the DHS piggy-bank. If all they can afford is FOIA requests, maybe some good could come of that...

  21. Re:The Ultimate Steal? on Microsoft Invents $1.15/Hour Homework Fee For Kids · · Score: 1

    $60 is expensive; ours is cheaper ($15? $20?). Also, I cleverly note that even as a student I recognize that at least in this one case, MS produces a better product than Sun.

  22. Re:Job security through obscurity in mathematics on Crackpot Scandal In Mathematics · · Score: 1

    "the inventor of matrix theory"

    I think you may be talking (obliquely) about Cayley or Sylvester and the numeric representation of vector algebras. However, linear algebra (and matrices in particular) were developed with the specific intention of solving a broad class of problems related to analysis and physics. To be clear: matrices, their "weird" multiplication and other properties as formalized in 7th-grade maths books everywhere were developed by asking what properties of a particular class of numbers were needed, and finding a representation that fit that need.

  23. Re:Not a good example... on When Teachers Are Obstacles To Linux In Education · · Score: 1

    By definition, information is always "physical": whether it is a pattern of electrons, disturbances in the air, or an arrangement of neurons along with their chemical pulses. Just because you can't see it or taste it doesn't mean it is not there. Or... did you invent a way to grab Ideas out of the Platonic Ether? 'Cuz that'd be cool.

  24. Re:Start making economic sense on Obama Team Considers Cancellation of Ares, Orion · · Score: 1

    The 18th c. called. It wants its mercantilism back.

  25. Re:Oh, the potential on New Asimov Movies Coming · · Score: 1

    No, the only thing changing is your elitism. Please, go on, point to all the "lesser" and "dumb" people out there! I had a number of friends, years ago, who always claimed that "most people were X"; oh, really? Most people? If asked for a percentage---say 75%---then I'd ask which three of the four of us were dumb? Which 3 of the 4 of us had plebian desires, and no ability to appreciate higher art?

    Stop being an elitist, and start realizing that, just like everyone else, most of your tastes are plebian, and that (maybe, just maybe) in one area of your life you have an advanced notion of art, knowledge, or understanding.

    Also, just to drive this home---most people who claim to be elite (or above average) do so because they actually are unable to identify what is above average, and believe their average abilities are above average.

    Welcome to the herd.