Slashdot Mirror


User: mcgroarty

mcgroarty's activity in the archive.

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

Comments · 575

  1. Re:Extensive template use is dangerous on C++ Templates: The Complete Guide · · Score: 1
    Presumably these are the same people who've never heard of typedef.

    That helps out with writing code, but the link names and the names you see in the debugger (gdb, VS6 and CodeWarrior at least) are still blown up.

  2. Extensive template use is dangerous on C++ Templates: The Complete Guide · · Score: 4, Insightful
    Despite C++ templates having been around for quite some time, development environments still haven't caught up.

    Debugging heavily templatized code is thoroughly nasty. Names are mangled beyond recognition for anyone not using a 500 column display or lots of scroll bars. Stepping through code in the debugger often yields senseless results -- you often cannot see the source for the instructions being generated without manually tracing through the headers and looking for every overload and template body declaration. Templates thorougly ambiguate linker symbols. Templates slow compiles to a crawl, often adding tens or hundreds of thousands of lines to every inclusion of a given header in order to define the types it uses. With subtly improper use, templates can bloat code size astronimically and create horrendous execution bloat.

    I don't know how many weeks I've lost to helping others debug or rewrite their code because they thought they would do something "clever" with templates and they ended up creating a maze. And bringing in third-party code with templatized interfaces has frequently required more time to debug and adapt than it would have taken to create the code anew.

    If you're going to use templates, stick to simple container classes for now. Anything else should be considered theoretical research until the tools catch up. Let me repeat: development tools HAVE NOT CAUGHT UP WITH C++ TEMPLATES. There is no debugger available which makes templates as transparent as normal code, inline functions or even #defines.

    And please save your first forray into templates for private projects. Don't inject your template experiments into code others are trying to use!

  3. Re:Getting busted for movies eh? on Users Conned by Cable Con · · Score: 1

    What software do you recommend for this? I'd like to run a test through and see how well it works out.

  4. Re:Getting busted for movies eh? on Users Conned by Cable Con · · Score: 1
    obviusly you have not seen a good divx movie

    Seen nothing that's approached DVD qulity without going back up to MPEG data rates.

  5. Re:Getting busted for movies eh? on Users Conned by Cable Con · · Score: 2, Insightful
    Morons for not downloading a divx movie on Kazaa instead

    Maybe they didn't want the movie to look like it was being played through a bunch of grease-smeared glass blocks?

  6. Re:Almost. So close, if only for the screen! on Sharp Ships Zaurus SL-5600; 5500 Available Cheap · · Score: 1

    The one thing that really, really worked well on the Newtons was the font. As I remember it, the font was a slightly tweaked version of the old Mac system font, which was really wonderful for LCD use.

  7. Re:Almost. So close, if only for the screen! on Sharp Ships Zaurus SL-5600; 5500 Available Cheap · · Score: 1
    The problem is that I see the individual squares. The thing looks too blocky. If I were getting glasses, it'd be to blur the thing -down!- :)

    Maybe some sandpaper and a light touch and I could 'frost' the display...

  8. Re:Almost. So close, if only for the screen! on Sharp Ships Zaurus SL-5600; 5500 Available Cheap · · Score: 1
    I read on a color iPAQ 3975 at that resolution. It's nice for fifteen minutes or half an hour, but not much more than that. I have to end up bringing the fonts up to large sizes and holding the device at arm's length to get comfortable with the text.

    I borrowed a Sony Clie for a while at a slightly higher resolution, and it made all the difference in the world.

  9. Almost. So close, if only for the screen! on Sharp Ships Zaurus SL-5600; 5500 Available Cheap · · Score: 4, Interesting
    This is very close to being a perfect device. The only complaint I've got is that it's yet another 240x320 screen device. At that size, it's not quite enough to make it easy on the eyes for extended use.

    For eBook use, one of the more popular applications for PDAs, you really need something more like the newer Sony Palm devices. This resolution isn't quite enough for crisp fonts (even with subpixel rendering) and it's small enough that most preformatted PDF/Web content still needs to scroll half a screen horizontally to be read at a legible magnification.

    Can we please please see a Zaurus with a 360x480 display?

  10. Re:It's funny on Texas Bill Would Require Open Source Consideration · · Score: 1
    Gee I wonder... what powered that whole "Internet" craze? Sure as hell wasn't Windows 3.1.

    Yeah. But the Windows dudes brought the money. Missed again, Slashdot ha ha!

  11. Re:FreeBSD on Free Software Operating Systems for Old Laptops? · · Score: 1
    FreeBSD didn't install in 4M of RAM in 1997, so you'd have to go back more than a few versions

    The default installer disk suggested 8mb, but worked with less. For a 4mb notebook, it might come down to installing on an alternate machine then dropping the drive in, but it'll definitely run.

  12. Re:FreeBSD on Free Software Operating Systems for Old Laptops? · · Score: 1
    I can get a decent minimalistic 2.4 kernel in about 400k compressed.

    400k compressed doesn't help. It still needs to be decompressed in order to be run.

  13. Re:FreeBSD on Free Software Operating Systems for Old Laptops? · · Score: 1

    In all fairness, OpenBSD and NetBSD can likely accomplish this as well. I only named FreeBSD because I helped a friend set up a 6 meg system for his kids a few years back, and it performed admirably, despite the low clockspeed and tight memory.

  14. FreeBSD on Free Software Operating Systems for Old Laptops? · · Score: 4, Informative
    It's easy to set up a tiny FreeBSD install. You can build a usable and full-featured kernel for your hardware in around 700k so you're not eating up half the memory with locked pages before you've actually done anything. You may have to step back a few versions to get the smallest kernel.

    While X and all may take a little time to start up, FreeBSD performs exceptionally well under low memory situations. It does very little redundant copying, and tunes the swap and scheduling policies as the load increases to try and help keep interactive applications responding smoothly at the expense of some services.

    Many of these features are now in the Linux kernel, but I don't know that it'll be too easy to pack them into a tiny kernel to maximize the amount of pageable memory for applications.

  15. Not only... on Suggestions for Functional Jewelry? · · Score: 0, Offtopic
    Not only can a napkin ring be used as a napkin holder, but it's also a good size for a midget needing a cock ring!

    Please mod me down. I never get that done anymore.

  16. Re:Read Pragmatic Programmer on Software Craftsmanship · · Score: 1
    Oh ho, dear sir! And I do stand corrected.

    We both got a +5 Funny today. It's a regular LOLocaust!

  17. Re:who did it? on Software Craftsmanship · · Score: 1

    (...not to mention, having seen the kitchen, he was obviously allowed to peek inside!)

  18. Re:who did it? on Software Craftsmanship · · Score: 4, Funny
    Bejaysus! did Microsoft build your house?

    I'd think he would've said something about the toll booth in the driveway...

  19. Re:Read Pragmatic Programmer on Software Craftsmanship · · Score: 1

    Begging your pardon, but I think you forgot the funny on this one.

  20. What does it offer over downloads? on Apple and CompUSA Working on 'Software on Demand' · · Score: 2, Informative

    More and more people are getting broadband. Call me unimaginative but, in the long run, what would this scheme offer over downloadable software? I'm sure some people will still be lacking internet connections, but will it really be enough people to subsidize this form of software distribution?

  21. Burn their playhouse down! on Brain Prosthesis Ready For Testing · · Score: 5, Funny

    o/` Everybody wants prosthetic
    foreheads on their real heads o/`

  22. Making Work Not Suck on Good Job Experiences? · · Score: 3, Interesting
    I won't be overly specific, as many of my coworkers read Slashdot.

    As a programmer though, the things where I've felt the best have been where we've pulled together as a team and delivered on something tough, where I've been in a more competitive environment and charged ahead of the other guys enough that it was clear who was top dog a while, and where I've had a tough problem thrown at me and been left with enough time to do some research and lay out a clean and elegant solution.

    it's really tough to find an environment where you're working with good people who are all already dedicated. It's tough to enjoy competition in an environment where management aren't very clueful about measuring accomplishments, or are so touchy-feely that they won't vocalize that this guy's leagues ahead of that guy. And there's not much joy in constant-pressure environments where managment won't let you invest time in creating quality, reusable systems.

    The team dedication and energy you can create yourself, if you spend some time on building relationships with the people around you and learning their skills. A good programmer knows who shares interest in what kind of problem, and can leverage that to get buy-in and support. I'm sure that's true in other kinds of work as well.

    The second and the third, competition and deep work, are tough to create, unless you're willing to take charge yourself and rally coworkers around while still pushing credit for most things off on your manager so he doesn't stand in your way.

    The folks who complain about their work the most tend to be the passive kind who are idly waiting for things to get interesting. That doesn't happen most places. You've got to create that if you want to be part of something big and interesting, or if it's really not possible to do that where you are, start figuring out how to get out.

    Make it happen, dudes.

    </ramble>

  23. Bochs also does this on Debugging SMP Code with UML · · Score: 4, Interesting
    Bochs will also emulate SMP machines. Bochs pretends to be an x86 machine with one or more processors, and runs on all Linux architectures, as well as Windows, Mac OS X and several BSDs.

    It's no speed demon, but it's about the nicest free tool for machine-level debugging.

  24. Are they available for general use? on China's 64bit Homegrown CPU · · Score: 2, Interesting
    I'd love to find an offbeat processor like this on a board which still accepted standard PCI cards, or at least a few USB peripherals.

    Does anyone know if this, or another like it, will ever be available stateside with an ATX-mountable motherboard?

  25. Satan meets Santa on Funny and Irrelevant Program Names? · · Score: 3, Interesting
    I didn't write it, obviously. But there's a security auditing tool called "satan" which probes a system for many known vulnerabilities. It was originally a black hat tool, as I understand it, but it was adopted by the white hat crowd for testing their own systems.

    Now, many white hat folks are affiliated with businesses or other groups who don't take kindly to running something called "satan." It looks bad in the company reports, and some take personal offense. The solution?

    Many releases came with a utility which simply moved the n up a bit, renaming the built executable as "santa." :)