Slashdot Mirror


User: aled

aled's activity in the archive.

Stories
0
Comments
1,216
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1,216

  1. Re:Interface vs implementation, shared libraries, on Abandoning Header Files? · · Score: 1

    It isn't exactly the same. nm works just with some compilers (or is it a gcc only utility?), and can't really extract all the type information, that isn't really there. Except may be in C++ decorated object code but I don't remember it now.
    Also most C/C++ code doesn't make clear in a nm listing which aftifacts are public, a programmer has to extra steps to prevent this. nm is at least confusing when you want to get the public API of an object compared to other language tools that just do it.
    I'm not an expert in nm, feel free to correct me if I'm wrong.

  2. Re:Incremental compilation on Abandoning Header Files? · · Score: 1

    Gcc for example spits out the dependency information if you ask it to, and then you can suck that into a makefile automatically.

    Gcc does that but it is a kludge to me because you are expected to maintain it by yourself or include it on the makefile. This is the kind of thing that should be automatic, without you having to setup the dependency data.

    Java's compiling technique seems to me to be quite broken

    I don't agree with you. First, this is not a problem with Java but a limitation of some tools, notably the javac compiler from Sun. In some cases it may not possible to detect all dependencies if you use dynamic loading of classes, but that is a feature and one should be aware of its limitations before using it.
    Ant has a depend task that deletes older classes. It uses the dependency information stored in the class file : "The depend task works by determining which classes are out of date with respect to their source and then removing the class files of any other classes which depend on the out-of-date classes.

    To determine the class dependencies, the depend task analyses the class files of all class files passed to it. Depend does not parse your source code in any way but relies upon the class references encoded into the class files by the compiler. This is generally faster than parsing the Java source."
    Then a pass from the compiler will generate all missing class files. You can find the details at the Ant manual, search for javac and depend tasks.
    Just watching the files opened is dangerous because Java can generate multiple .class file per source because of inner classe (example: a.java can generate a.class, a$1.class, a$2.class, etc). The tool may miss something.

  3. Re:Why? on Abandoning Header Files? · · Score: 1

    For starters it will be even better if you remove all whitespace and tabs. For more advance examples of better practices of C programming learned over decades of good coding take a look here.

  4. Re:Incremental compilation on Abandoning Header Files? · · Score: 1

    I don't remember if Sun's javac compiler does dependency checking but others like IBM's Jikes does . Using an Ant build script may do it for you for free.
    I think you are wrong on that using header files would make it better. Just doing the check on the source .java and the generated .class works without introducing redundancy and creating less files to compile. C compilers don't do dependency checking, most of the time you must set it in makefiles or your IDE, and with makefiles it's usually a by hand work, nothing elegant to see there. What modern C compilers usually do is to avoid recompiling headers, a kludge that is needed by the use of including files that's ineficient in the first place. Java does it much better IMHO.

  5. Re:Interface vs implementation, shared libraries, on Abandoning Header Files? · · Score: 1

    Header files aren't a good way to separate interface from definition. For one, the programmer can still put the entire program code in the header file. And in C++ the private parts of classes end in there too.
    Java and Delphi use just one file but the interface could be easily obtained from the binary object. That way prevents duplicate definition and I like it better.

  6. Re:J2ME is worthless on Five Years On, Has J2ME's Time Finally Arrived? · · Score: 1

    Sorry, but running code in a Sandbox (separated from the DATA) makes it pretty much worth a pinch o' bat guano.

    Can you present some case to your proposition or are you expecting that people take it axiomatically? I wonder why a perfectly good method for code security is not good. And for old ActiveX, Microsoft is doing pretty much the same as Java in .Net.

  7. Re:Anyone? Anyone? on Five Years On, Has J2ME's Time Finally Arrived? · · Score: 1

    did you mean J2ME? or you are confusing J2EE with J2ME?

  8. Re:Honest question: on Aspect-Oriented PHP · · Score: 1

    and sounding like a complete hack

    Indeed, that what I thought the first time I saw PHP...

  9. Re:I don't believe... on Free IDE Gambas Reaches 1.0 · · Score: 1

    quantity != quality

  10. Re:Obligatory Slashdot cliche on Caltech and JPL Build 50ft Robot · · Score: 2, Funny

    What kind of lame robot wouldn't want to enslave the crowd?
    Now a 50ft Bender would be something...

  11. Re:International relations on US to Pay to go to ISS · · Score: 1

    That was at first. Spain, Nicaragua, the Dominican Republic, Honduras, the Philippines and Thailand withdrew their troops in 2004. And other countries are very seriously considering it after seeing it is not the parade they thought it would be.

    Afghanistan? still ocupied by US forces and frankly it hardly counts as a country. Of the list many are third world countries ("out of power") that felt the pressure of Bush administration and contributed a very small number of troops, just for the photos.

    Few first world countries contributed significant numbers of troops, mainly UK but in those countries the polls usually were much against sending troops like in Spain (even Foxnews accepts this). Blair doesn't get support from it's own party.

    You couldn't even convince Canada and Mexico, your two neighbors. That should tell you something.

    I'm writing this mostly on memory but you would have read it anywhere in the last year provided you don't just read one-sided media like Fox, CNN or Rupert "$20 a barrel oil" Murdoch's media.
    But you really don't want to hear other people opinions, or you would already done.
    And I didn't even touched the motivation of the war, that started pissing countries in the first place.

  12. Re:No "Open a new tab" button on Mozilla 1.7.5 Released · · Score: 1

    I think that the tabbrowser preferences extension does that and some other useful things. Search for it on http://update.mozilla.org/.

  13. Re:The horror, the horror on NetBeans 4.0 Release · · Score: 1

    it was other line but:

    "Project metadata are Ant build scripts
    Ability to build apps outside of the IDE using Ant, no special action ("export to Ant") is required"

  14. Re:subversion? on OpenBSD Project Will Release OpenCVS · · Score: 1

    Subversion is modular, has 2 backend and many client protocols that are all used in different projects because there are needs to each one. With mainly good results, some with projects of many gigabytes. Pointers at http://subversion.tigris.org/propaganda.html.
    The n you prejudice without any concrete evidence, without other knowledge than that is "new" and is somehow obscure because of layers, abstractions and framworks. But again without any concrete evidence.
    If you think I'm wrong please give some real facts, for example: point to the framework that you think is over-abstract.

  15. Re:What is wrong with subversion? on OpenBSD Project Will Release OpenCVS · · Score: 1

    I like Subversion but you are command line parameters is the least problem in this kind of migration. There are cultural problems and difference in the work model.
    Take a look at the Mono case study is really an eye opener.

  16. Re:What is wrong with subversion? on OpenBSD Project Will Release OpenCVS · · Score: 1

    In this line of work there is always changes, new products replace old products, new unproven technologies. Otherwise we would not have innovation. That's why we have plans and QA.
    I really don't see the point of redoing CVS. It's time to grow. Better to start planning a migration to something better. CVS has way too many limitations. This isn't a tech problem but a people problem.

  17. Re:I'll have to "Check It Out" on OpenBSD Project Will Release OpenCVS · · Score: 1

    You update from the repository.

  18. Re:The horror, the horror on NetBeans 4.0 Release · · Score: 1

    "Perhaps the most significant improvement is that the IDE's native build system is the latest version of Apache Ant."

    RTFA

  19. Re:Why ? on New BSD licensed CVS replacement for OpenBSD · · Score: 1

    They are still coding because they are actively adding features and correcting bugs, unlike CVS.

  20. Re:That's great. . . but, um, why? on New BSD licensed CVS replacement for OpenBSD · · Score: 1

    "those who wish to release closed-source versions of the source can--how that benefits the community is beyond me."

    grandparent post points that the BSD licence is "freer" than GPL, that has nothing to do with helping the community, which may be a noble cause but it's a different thing.

  21. Re:Norway real estate on Human Activity to Blame For 2003 Heatwave · · Score: 1

    May be now, but think in the future beach that will be there...

  22. Re:java? on Java-Centric Grid Computing: Ibis 1.0 Released · · Score: 0, Troll

    Nah, people likes more simple languages that allow this:

    map{map{tr|10|# |;print}split//,sprintf"%.8b\n",$_}
    unpack'C*',un pack'u*',"5`#8

    But don't believe me, after all is your code.

  23. Re:what else? on Serenity Pushed Back to September · · Score: 1

    in you great disappoinment I sense?

  24. Re:My guess on The Definitive Guide to MySQL, 2nd Ed. · · Score: 1

    Interesting. Is there any theory on why mysql is popular to web hosts?

  25. Re:Translation? on LAMP Grid Application Server, No More J2EE · · Score: 1

    There's a theorical probability of solving the problem by shuting down energy levels and doing a level 3 system check on all computer modules. Or like the old 21st century enginers used to call it a 'reboot'.