Slashdot Mirror


User: peterpi

peterpi's activity in the archive.

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

Comments · 653

  1. Costs on Japanese Researchers Aim to Replace the Internet · · Score: 2, Funny

    Great. We can ask them how much it's going to cost

  2. Re:Just look at Forza 2 on Big Business Loves the Computer Gaming Industry · · Score: 1

    And a similar situation with Gran Turismo:

    http://en.wikipedia.org/wiki/Gran_Turismo_(series) #Demo_discs

  3. Re:Have it Your Way on Big Business Loves the Computer Gaming Industry · · Score: 1

    Blitz Games recently won Develop magazine's Industry Excellence award for Business Development, thanks in part to Pocket Bike Racer.

  4. Re:All the world is not a PC on Don't Overlook Efficient C/C++ Cmd Line Processing · · Score: 1

    Bollocks, wrong thread. See what tabbed browsing does for you!?

  5. Re:All the world is not a PC on Don't Overlook Efficient C/C++ Cmd Line Processing · · Score: 1

    Tabs are for indenting, spaces are for lining up. It's crazy that only about 5% of the programmers I've ever met seem to get the concept.

    Getting your editor to display tabs as something other than " " helps. I use ">---" on vim. If you press the wrong key, it looks wrong on the screen.

  6. Well, on Bionic Hand Makes it to Market · · Score: 1

    It gets the thumbs up from me!

  7. Re:That's cool.. on Text Compressor 1% Away From AI Threshold · · Score: 1

    Heheh, wonderful! :)

  8. Re:Bombula on Deathbed Confession Says Aliens Were at Roswell · · Score: 1

    A blue glow was seen coming from a television-like device inside the craft ;)

  9. Re:Finally, I'm not jealous! on Internal Microsoft Email about Life at Google · · Score: 1

    I got to exactly that point in my career, and went back to games. Happier now than I've ever been.

    I'm off home now. It's 7:10pm and I got in just after 10am. Not all game companies are sweatshops.

  10. Any record is a respectable effort. on The British Steam Car Challenge · · Score: 1

    TFWiredA states that "Britain has no official record, so just by turning up they win."

    It's not exactly that easy. In order to claim a British record, they'll have to undergo all sorts of safety checks, do the runs under recorded conditions in the presence of an official timer, probably turn the car round and do another run the other way. It's not as simple as just claiming a record.

    Unfortunately, it's so much of a faff that I doubt they'll bother. Similarly, the JCB Dieselmax broke the British diesel speed record while testing at RAF Wittering, but it wasn't an official attempt and so the run was not recognised.

  11. Re:Damned inefficient on The British Steam Car Challenge · · Score: 1

    I hope you'd use a silencer. Those son-of-a-bitch gun enthusiasts, tsk!

  12. Re:Nokia N800 should be on Comparison Chart on iPhone Gets Better Battery, Scratch Resistant Glass · · Score: 1

    Within 2m of the socket, my home phone is a cellphone!

  13. Re:All of these... on Linux Programmer's Toolbox · · Score: 1

    Ditto. Cygwin simply makes my job possible. I run it all day, every day and have done for the past six years.

  14. Re:Controversial ??? HOW ? on Torvalds vs Schwartz GPL Wars · · Score: 1

    Linus could fart in his sleep and it'd be up here in 10 minutes (in .ogg format, of course)

  15. Re:Most tools I've tried are useless on Memory Checker Tools For C++? · · Score: 1

    They share the characteristic of being things that you have to remember to do before you stop using an object. Otherwise, bad things happen.

    To put it another way, RAII is impossible in Java, as far as I understand it.

  16. Re:Most tools I've tried are useless on Memory Checker Tools For C++? · · Score: 4, Insightful

    I didn't explain it all that well. What I mean is; I love destructors.

    A good example of what I'm talking about is a std::ifstream versus a java.io.FileInputStream. If you make an ifstream on the stack, you can be absolutely certain that when it goes out of scope, the destructor will be called and the file closed. You can be certain that it will happen, and you can also be certain when it happens; at the very point it goes out of scope.

    With a heap based FileInputStream, you have no such gaurentee. You leak it, and you just hope that the finaliser gets called soon (if at all). I've had more than one occasion where I've been leaking FileInputStreams quicker than the garbage collector cares to clean them up, and sooner or later the OS says 'no' and you get an exception. And it's very difficult to reproduce, because it's all down to the whim of the garbage collector, and you always go slower when you're looking for a bug.

    Of course the answer to this is to say "Well you should Close() your input stream beforehand". But that's just as bad as saying "You should delete your heap based objects" in C++. It's that situation of having to manually shut down objects that seems old fashioned to me.

    Maybe there's a better way these days, I've been away from Java for a couple of years now.

    (I do enjoy coding in either language though!)

  17. Re:um on Memory Checker Tools For C++? · · Score: 1

    Volunteering to help? There's only 999,999,999 LOC still to go!

    Ctrl-f "*"

  18. Re:Most tools I've tried are useless on Memory Checker Tools For C++? · · Score: 2, Insightful

    I love this comment, from Bjarne Stroustrup's home page (href=http://www.research.att.com/~bs/bs_faq2.html #memory-leaks)

    Q) How do I deal with memory leaks?

    A) By writing code that doesn't have any. (goes on to advocate vector & string)

    And also: C++ Is my favorite garbage collected language because it generates so little garbage (http://www.research.att.com/~bs/bs_faq.html#reall y-say-that)

    Over the past 6 months or so, I've really made an effort to better my usage of C++ (using Effective C++, Effective STL and C++ Coding Standards). With a combination of STL, references, RAII, std::string and boost::shared_ptr, all of my memory, ownership & null-pointer problems just went away. I hardly ever actually write 'new' any more. The Java model of just leaking objects and hoping they'll get collected sooner or later seems horrible.

    But I'm not maintaining old code, so this is completely -1 Offtopic.

  19. Re:Anti-aliased / subpixel rendered fonts on linux on GNU Coughs Up Emacs 22 After Six Year Wait · · Score: 1

    Ok, this is -1 Offtopic, but:

    I run "the other editor" on a completely fresh debian system. It's running on X, inside whatever it is you get when you click "Terminal Emulator" (gnome-terminal?).

    My question is: Is there a way to get everything in gnome to use subpixel text rendering for everything apart from the terminal?

  20. Re:It may be known as "a teraflop", but... on Intel Shows Off 80-core Processor · · Score: 1

    A trillion flopses?

  21. -1 troll on A Snapshot of the Universe 3 Trillion Years From Now · · Score: 1

    3,000,000,002,007: the year of the linux desktop!

  22. Re:Wow on Top 10 Dead (or Dying) Computer Skills · · Score: 1

    The entire games industry needs to be killed, by your reasoning.

  23. Re:Propaganda on British Traffic Wardens Issued CCTV Head Cameras · · Score: 1

    I recently witnessed a peaceful demonstration outside a busy shopping centre in Brighton, UK. While the main protest group was sourrounded by a (completely disproportionate) number of police officers, the officers themselves were surrounded by a sparse second group of protesters armed with camcorders. Needless to say, everybody was on their best behavior.

    I can't remember what the protest was about, and to be honest I probably didn't agree with their goals anyway. But it was good to know that the technology works both ways.

  24. Re:Read Theodore Dalrymple on Spy Drones Take to the Sky in the UK · · Score: 1

    I was struck by all the kids wearing hoodies.

    Why? What was it they were doing that concerned you? Did you witness a crime?

  25. Re:The #1 rule of being in public on Spy Drones Take to the Sky in the UK · · Score: 1

    We've already seen, in society, how CCTV has "generally failed" to reduce crime, or the fear of crime.

    See http://www.homeoffice.gov.uk/rds/pdfs05/hors292.pd f

    In particular, the end of section 3 "Does CCTV work?"