Slashdot Mirror


User: jgrahn

jgrahn's activity in the archive.

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

Comments · 1,247

  1. Re:That's great and all... on C Programming Language Back At Number 1 · · Score: 1

    It's (void *)0 in C, and 0 or 0L in C++.

    Just 0, or "nullptr" or whatever the new C++0x keyword is. I suppose 0L might be guaranteed to translate down to 0, but using it instead of 0 has no benefit; it just looks funny.

    Also, there were architectures way back where memory address 0 wasn't a guaranteed segfault. It had a different value there.

    I think you are mixing up two different things. The real, MC680x0, Commodore-Amiga had a writable address 0, and yet NULL was that address. The C language never guaranteed a crash when you dereferenced a NULL pointer.

  2. Re:Beware the key term there: on Memory Management Technique Speeds Apps By 20% · · Score: 1

    Beware the key term there: "up to."

    Yeah. And also: you don't normally even *notice* a 20% speed increase. If you have to wait 5 seconds or 4 seconds doesn't really matter -- you're annoyed in either case.

  3. Re:Flash and HTML5 make Java look efficient. on Multi-Platform App Created Using Single Code Base · · Score: 1

    When the industry as a whole moved from C and C++ to Java in the late 1990s

    Uh, speak for yourself, or define "the industry". I've used C, C++, Perl, Python, Tcl (yuck) and shell script over the years, but only once, briefly, have I had to touch Java code.

    Apps that would've taken us a year to develop using C++ could be finished in a couple of months using Java. We could also develop much more complex software than we could using C++.

    I find that hard to believe (unless of course all of you know Java well and C++ badly).

  4. Re:That's fine on Solaris No Longer Free As In Beer · · Score: 1

    No, it is not 'fairly similar' to the other Unix-like systems, though. Actually, it is the furthest away from those systems.

    Citation needed. Linux was (it seems to me) modeled on Solaris; the BSDs are ... well, the BSDs, and AIX is famous for being weird. What other Unixes are alive today -- HP-UX? HP have hundreds of servers in our labs, and they all run Linux.

  5. Re:In other news... on Russian ASCII Art Animated Cat From 1968 · · Score: 1

    ASCII art is one of these things that has been around since the dawn of telecommunications.

    Since the dawn of typewriters, too. I had endless fun with my mom's Facit portable back in the days.

  6. Why you have to wait on Multicore Requires OS Rework, Windows Expert Says · · Score: 1

    'Why should you ever, with all this parallel hardware, ever be waiting for your computer?' [Probert] asks.

    I haven't read TFA, but quoted like that it looks pretty daft.

    • Because disk and network I/O is slower than your CPU.
    • Because if you *never* have to wait, you have an overpowered computer.
  7. Re:The are multiple document management solutions on Business-Suitable Document Authentication System? · · Score: 1

    But no real authentication systems that accomplish the goals you lay out. Even PGP (if you can convince people to use it and educate people on how it works) only accomplishes signing. It will not track these documents in the manner you describe. And PGP has significant problems. People understand what passwords are. They do not have a clue what a 'private key' is, or what it means to use one. This requires significant education effort.

    But the OP's people want the thing they get from a piece of paper with a signature on it -- surely they would be willing to spend some money on it, too? You cannot expect to switch to new procedures without anyone having to learn anything.

    And unfortunately the user interfaces surrounding products that use PGP do little to help this educational process. Most of them seem to be designed by crypto-geeks who assume that everybody already knows these things and just wants a convenient way to manage them.

    The most confusing part IMHO is the web of trust stuff among people who don't know each other. In a closed organization, I'd expect you to generate a key at the same time you get physical access. A secretary would sign the key on behalf of the org, and everybody would be told how to set up PGP to trust the org key. There'd be an org-wide key server, or they'd simply use the public ones. There'd be key escrow too I suppose; an unlocked copy of every key kept in a safe. That's pretty much what's needed, I think.

  8. Re:Great. Just what the DNS infrastructure needs on ISC Releases the First Look At BIND 10 · · Score: 1

    Dude, you have fucking got to be joking!

    [snip source code quote]

    You have variables name like "s" and "c" and you declare and init a variable inside a while loop, and assign it the incremented value of a dereferenced pointer!?

    I'm assuming s and c are part of the idiom in this code. And it's good practice to declare variables in the smallest possible scope, and init them at the same time. It sounds like you think it's inefficient, but any decent compiler will optimize away 'c'; it's only there for readability.

    I'm more worried by the mention of "patterns". And by the C++-style comments, which prevents the code from being compiled as good old ANSI C. Hopefully they use the *useful* C99 features too.

  9. Re:Correlation/causation on Opera Sees "Dramatic" Rise From Microsoft's Ballot · · Score: 1

    Also it's unclear whether the webpage problems were due to bugs/limitations in Opera, or because of poorly written webpages that are only written for IE and Firefox.

    As a web developer, when my pages are 100% valid XHTML and CSS, work properly on IE 7+8, Safari 2-4, Chrome, and Firefox 2-3.6, and they still break on Opera (which has a visitor rate of less than 1%) I'm not going to do much to support Opera. At that point, the ball is in their court to fix. I don't care if you get 100 on the Acid3 test if your browsers still chokes on things when surfing real sites.

    I'm an Opera user, and I very rarely have problems with real sites. So I'd tend to think your problems say more about your code than about Opera ... Did you report these bugs to Opera, by the way?

  10. Re:Pascal on Good Language Choice For School Programming Test? · · Score: 1

    Pascal has a is very simple and clear syntax and semantics. It has strong and static typing, making many errors very easy to catch at compile time.

    It's also useless in the real world. I haven't seen Pascal since 1996 (VaxPascal, which my C code was to replace).

    C is terrible to teach, they'll have to deal with pointers all the time. Reading something from input? Pointers. Passing by reference? Pointers. Strings? Pointers.

    Yes, it's pointers. But correctly taught they aren't too hard to understand. I don't believe C is a good beginner language, but the concept of pointers is not the reason

    Same for C++.

    That makes me think you haven't seen C++ since about the time I saw VaxPascal. You can get a long way without pointers, if you stay away from the C compatibility parts.

  11. Not asking for libc on Simpler "Hello World" Demonstrated In C · · Score: 1

    FTS: She found that gcc was including libc even when you don't ask for it.

    Shouldn't come as a surprise. C has a runtime, like most other languages. -- But really, this was a good article. Looking under the hood and finding the few things that are there is very instructive.

  12. Re:All of the 8 and 16bit machines were knowable on Programming the Commodore 64: the Definitive Guide · · Score: 1

    And that was a big part of it, the stability of the platforms during that era. A C64 was exactly the same as every other one, a Tandy Coco was identical to the million others of it's kind. Later models tended to retain as close to 100% backward compatibility as possible so knowledge and software tools retained value.

    And because those computers insisted on remaining frozen in time is why vanished - because they became irrelevant as the world moved on and they didn't.

    That's either a truism, or a really strange thing to say. I don't know which. Would anyone want a faster C64 today, with a 1TB hard disk? If not, does that somehow negate the fact that the C64 was a kick-ass machine in its day? If yes, what would make it a C64 -- a chickenhead label on the keyboard?

  13. Re:Flash aint so bad on A Skeptical Comparison of HTML5 Video Playback To Flash · · Score: 1

    Sure it gets bashed on Slashdot for not being open source but so what?

    The practical results range from extra trouble (doesn't come prepackaged with my OS) to showstoppers (have a 64-bit CPU? Sorry, we don't support that.) The only application good enough to make up for that kind of trouble is Opera.

  14. Re:Most important free software project? on OpenBSD 4.7 Preorders Are Up · · Score: 1

    Just because they created OpenSSH doesn't mean the OS is the most important open source project on the planet.

    OpenSSH was a huge improvement in the security of networks the world over

    Well, we already *had* the original ssh, but it was being weakened by the original author's effort to build a company around it. OpenSSH saved it,

  15. Re:Some of these might be interesting... on The 10 Most Absurd Scientific Papers · · Score: 1

    Actually, *all* of them seemed valid to me. Except maybe the Facebook one, but that's based on the silly journal name "Cyberpsychology and Behavior". Mocking them because they mention illegal drugs, curses and cock-sucking seems ... childish.

  16. Re:damned faintly praising? on Schooling Microsoft On Random Browser Selection · · Score: 2, Informative

    Is picking a worse random number generation function (the default one in C and JS) really fucking up?

    The default rand(3) in C doesn't have to suck -- it doesn't on Linux or the BSDs. I see no evidence that it does in *any* major systems today, though apparently it did back in the 1980s when it got that reputation.

  17. Re:Wikipedia needs a Flash editor on Developing a Vandalism Detector For Wikipedia · · Score: 1

    Wikipedia, the encyclopedia that anyone can edit - in my ass. [---] I am convinced that the current state of affairs is a conscious choice. The way to maximise 'insider power' and minimize 'outsider power' is to make editing as hard as possible, and the rules and traditions needed not to be revoked as many as possible.

    Yes. That was also the main driving force behind RUNOFF, troff, TeX, LaTeX, HTML and all other non-WYSIWYG systems back into the 1960s. It's a conspiracy.

    Seriously: no. It's just that it's the easiest system to work with, unless you are too lazy to learn a little bit of syntax. The HP text you quoted looks bad because (a) they didn't use line breaks to make the code readable and (b) OK, the system with citations inline in the text sucks.

  18. Re:Wake up!!! on Hackers Target Tsunami Search Results · · Score: 1

    This is /., right? Can we please STOP calling these FUCKTARDS hackers!!!

    AOL. The unwashed masses can call them "hackers" all they want, but the word shouldn't have that meaning here.

  19. Re:Seriously flawed logic on Use Open Source? Then You're a Pirate! · · Score: 1

    We used to laud those benevolent spirits who contributed to the public good with no thought of remuneration. Now it seems we try to outlaw them. There might be a movie idea here.... The Police unions get together and sue Batman for doing pro bono work..

    Don't know about the movie, but there idea is taken already by four books: Matthew, Mark, Luke and John.

  20. Re:If you use open source, you're a pirate... on Use Open Source? Then You're a Pirate! · · Score: 1

    And here's an interesting point: DHS already uses Apache for dhs.gov, and I'm sure plenty of other government programs use and work on open source platforms, even if their main desktop deployments are Windows.

    Bind, the name server, is a more obvious example. Or the BSD IP stack. You cannot get much useful work done without using free software in some form, no matter how hard you try,

  21. Re:FUD on The Future of OpenSolaris · · Score: 1

    Sun lost the desktop wars years ago, but never admitted defeat. It challenged Windows with SunView, NeWS, OpenWindows, CDE, JavaOS, and finally Java Desktop, and failed each time.

    Surely SunView wasn't a challenge against Microsoft Windows. SunView was old stuff when I used it in 1990, and PCs at that time generally ran MS-DOS and Norton Commander. I suspect NeWS and OpenWindows ignored the toy computers too, but am too lazy to check the timeline.

    I *do* feel that the Solaris desktops got worse and worse over time, though. Plain X11 with twm as a window manager is OK. OpenWindows was odd but tolerable. Motif sucked. CDE looks and feels like a toy, with that silly control panel at the bottom center.

  22. Re:Prepare for all on Which Linux For Non-Techie Windows Users? · · Score: 1

    if you have to ask this question on /. you'd better not start [lots of snipping]

    Every single Ask Slashdot story gets a response like this, and it's always a jackass thing to say. The whole reason Ask Slashdot exists is to allow technically competent people to share their expertise, and help others get up to speed. "RTFM n00b" responses like this are a major contributor to the negative geek stereotypes we all claim to hate, and in this specific case, a major barrier to Linux use. If you like seeing yourself as a member of a small, impenetrable elite possessed of special and arcane knowledge, go right ahead, but don't expect the rest of us to play along.

    You are overreacting to a very sensible posting, What *are* you supposed to respond with if you believe the OP is heading towards a disaster, involving him and his relation with family and friends?

    I've set my brother up with Linux. He's extremely bright, has never used Windows at home and is an ex-Amiga user. Not even that has been problem-free. Now, the poster is aiming for several "Grandma" users, and is willing to choose a distribution he has never configured or administered before. Not *necessarily* a disaster, but IMHO it's a high-risk project.

    (The problem is not even Linux-specific. Offering help a friend with any computer (including Windows) means you either commit to spend a lot of time and patience, or let a friend down.)

  23. Re:Let the Name Confusion BEGIN! on Opera Open Sources Dragonfly · · Score: 1

    Opera was originally a Norwegian company, right? They should have went with the Norwegian word for Dragonfly: "Øyenstikker." Which literally means "Eye Poker." Well, okay, maybe not ...

    Yeah, dragonfiles were not well-liked in N Europe in the past. I particularly like "troll's spindle" and "Satan's little horse".

  24. Re:Yeah, right. on The 25 Most Dangerous Programming Errors · · Score: 1

    Yes, I see. In order to use an open source tool securely, I have to force all my clients to use the Windows tool TortoiseSVN, because the default tool for UNIX and Linux is so badly written.

    Or you could just RTFM. CVS has worked tunneled over ssh(1) for more than a decade, and it has known *nothing* about the authentication phase. It hasn't even known what ssh *was*, other than a funny command it can fork and exec and use to contact the repository. It's such an obvious, safe and convenient design that I refuse to believe that even the SVN developers can get it wrong.

  25. Re:Yeah, right. on The 25 Most Dangerous Programming Errors · · Score: 1

    I agree writing password to the disk is bad, but have you ever used CVS/SVN/etc. without stored passwords? You end up typing your password a thousand times a day, which is simply unusable.

    I don't get why CVS/SVN/etc even should deal with security. They're source control/management systems. [...] For situations where security, is required, set up SSH access, or some other secure access (and use an ssh keyagent if you don't like typing your password in heaps).

    Which is how I've used CVS for the last ten years. CVS isn't even aware that the transport is ssh. I don't use SVN, but I hear they too have managed to implement that in recent years.