Slashdot Mirror


Apple Quietly Fixes DTrace

In January we discussed a blog entry revealing that Apple had "crippled" its DTrace port. As the author notes in a followup post, to say that DTrace had been "crippled" was at least overstated: "Unfortunately, most reactions seized on a headline paraphrasing a line of the post — albeit with the critical negation omitted." In an updated entry, the poster notes that Apple has made good (so we have too): "One issue was that timer based probes wouldn't fire if certain applications were actively executing (e.g. iTunes). This was evident both by counting periodic probe firings, and by the absence of certain applications when profiling. The good news is that Apple has (quietly) fixed the problem in Mac OS X 10.5.3."

144 comments

  1. Took them long enough by cibyr · · Score: 2, Insightful

    These sort of concurrency issues are bad enough when they're bug in your *own* code. When it's stuff in other apps producing what appears to be strange behaviour in your own (perfectly fine) code, that's a BIG problem.

    This sort of issue wouldn't survive for a week on Linux.

    --
    It's not exactly rocket surgery.
    1. Re:Took them long enough by morgan_greywolf · · Score: 4, Insightful

      While it might have seemed to some that tinfoil hats were in order (and maybe some might think they still are), it seems to me that this was likely just a bug in Apple's port of DTrace. Does anyone know if they posted (or will post) any patches for DTrace upstream?

    2. Re:Took them long enough by powerlord · · Score: 5, Interesting

      This sort of issue wouldn't survive for a week on Linux.


      Developer specific issues like this would certainly be fixed quickly under Linux, since it is a developer OS. On the other hand, usability issues that get fixed quickly under OS X, are often left to languor under Linux.

      In both cases those features may never be fixed under Windows (or would be broken again after the next "Service Pack" :P )
      --
      This space for rent. All reasonable inquiries will be entertained at proprietors discretion.
    3. Re:Took them long enough by Anonymous Coward · · Score: 5, Informative

      But that's exactly what Apple's done with their DTrace implementation. The notion of true systemic tracing was a bit too egalitarian for their classist sensibilities so they added this glob of lard into dtrace_probe() -- the heart of DTrace:

      #if defined(__APPLE__)
      /*
      * If the thread on which this probe has fired belongs to a process marked P_LNOATTACH
      * then this enabling is not permitted to observe it. Move along, nothing to see here.
      */
      if (ISSET(current_proc()->p_lflag, P_LNOATTACH)) {
      continue;
      }
      #endif /* __APPLE__ */
    4. Re:Took them long enough by jonwil · · Score: 5, Informative

      Its clear from the DTrace source from Apple that this is intentional. The OS has a "this app cannot be debugged" flag and they deliberatly made the decision that "cannot be debugged" == "cannot be DTraced"
      Most likely they are trying to prevent tracing/debugging/reverse engineering of apps like iTunes and QuickTime that host ITMS DRM content.

    5. Re:Took them long enough by Lally+Singh · · Score: 5, Informative

      It was apple-specific. They had a "don't debug me" flag that a process could set at startup (to protect DRM). But there was a bug in the interaction of these processes that could cause dtraced processes to take *forever*.

      --
      Care about electronic freedom? Consider donating to the EFF!
    6. Re:Took them long enough by Ephemeriis · · Score: 2, Informative

      These sort of concurrency issues are bad enough when they're bug in your *own* code. When it's stuff in other apps producing what appears to be strange behaviour in your own (perfectly fine) code, that's a BIG problem.

      This sort of issue wouldn't survive for a week on Linux. If you read the original story, which this one is an update to, then you'll see that there are no bugs - only features.

      Apple intentionally disabled DTrace on some software.

      You can actually take a look at Apple's DTrace source.
      --
      "Work is the curse of the drinking classes." -Oscar Wilde
    7. Re:Took them long enough by Anonymous Coward · · Score: 5, Insightful

      Surely you could just recompile dtrace for mac os x without the check though?

    8. Re:Took them long enough by Anonymous Coward · · Score: 0, Interesting

      On the other hand, usability issues that get fixed quickly under OS X You mean like your machine getting pwned by a malicious iCal file? Is that fixed yet? You know, the vulnerability that was reported to them months and months ago?
    9. Re:Took them long enough by somersault · · Score: 5, Funny

      Obviously DRM crackers are incapable of this level of ingenuity (if you live in cuckoo land that is..)

      --
      which is totally what she said
    10. Re:Took them long enough by somersault · · Score: 1

      How is that a 'usability issue'? It's a security issue.

      --
      which is totally what she said
    11. Re:Took them long enough by argent · · Score: 1

      On the other hand, usability issues that get fixed quickly under OS X, are often left to languor under Linux.

      That's an ongoing problem with open source software, even on OS X. Camino, the "usability" oriented Gecko browser on OS X, has years-old issues.

      On the gripping hand, Apple still hasn't cleaned up Finder, though I congratulate them for finally ditching Metal. The "Cocoa-ized" Leopard Finder has major regressions (for example, it no longer tracks different views of different folders).

      Safari on Windows has a long way to go.

      Their passive-aggressive relationship with multiple mouse buttons is a crying shame.

      They haven't had a decent keyboard since Jobs took over.

      And they badly need a new input handler and API. They could call it "Core Input", and have applications register with it to receive events like "menu request" or "next page" instead of having to track mouse and keyboard actions and having three hundred different ways of saying "I want to use control-meta-cokebottle-left-fish as page down" in as many different preference panes. They could even hook it in to Automator and Applescript...

    12. Re:Took them long enough by init100 · · Score: 1

      On the other hand, usability issues that get fixed quickly under OS X

      One area where they haven't fixed serious usability issues is in Spaces. They updated the behavior in 10.5.3, but I wouldn't call that an improvement. Until they fix Spaces to work better, I'd consider it a case of shipping beta-quality software.

    13. Re:Took them long enough by init100 · · Score: 1

      Apple intentionally disabled DTrace on some software.

      Yes, but did they intend to disable tracing of all applications running concurrently with a non-traceable application? Which is what they did.

    14. Re:Took them long enough by Crazyswedishguy · · Score: 3, Informative

      Their passive-aggressive relationship with multiple mouse buttons is a crying shame. To be honest, to me this seems like a thing of the past. Apple-critics tend to use it as an argument against Macs but really, that was fixed when the Mighty Mouse came out. I would argue even before that, since I was using out-of-the-box (as in drivers already installed) a Microsoft 5-button mouse on my first Powerbook, and could configure all the buttons. If you're working on a Macbook or Macbook pro, I find the "double-finger click" (whatever you want to call it) equally if not more convenient than having a right-click button.

      I know Macs aren't perfect, and there are other issues with them, but is the "passive-aggressive relationship with multiple mouse buttons" really still a reality?

      (Obligatory disclaimer: I am, admittedly, somewhat of an Apple fanboi, but I do agree that Macs have their flaws as well. I just tend to prefer Apple products for design and usability - they fit my needs. I made the switch about 5 years ago)
      --
      This space up for sale.
    15. Re:Took them long enough by 99BottlesOfBeerInMyF · · Score: 2, Informative

      Their passive-aggressive relationship with multiple mouse buttons is a crying shame.

      I find their stance on mouse buttons to be ideal. As a usability expert, I can assure you misuse of secondary mouse buttons is one of the most common usability problems, even for more advanced users, although they often do not consciously note it. For novice users, a single mouse button is by far preferable. For trackpad users, both novice users and power users complete tasks faster using two-finger taps or chording... with only midrange users having issues. Standardizing one one button as the requirement for developers to target also improves overall usability. It means if you are using an alternate input method like a stylus, voice interface, handicap interface, or if you are scripting actions within an application, all functions are accessible in the same, standard way, with no functionality exclusively available to users that can easily access a second mouse button. This also means the second mouse button functionality can be customized by the user, since it is not required to operate any application. That means in my text editor on OS X I don't have useless option in the context menu brought up by the second button (as is the case in Wordpad in WinXP). Instead I assign useful items to that context menu, like a service for auto-replacing line endings. Basically, I think you're way off when it comes to the multi-button mouse thing. The "might mouse" is an ideal new mouse for home computers with multiple users as it is the first I know of that lets software decide if the mouse is multi-button or single button based upon the user account. Apple has its share of usability problems, but their practices with regard to mouse buttons are not one of them. Mostly it is just Windows users complaining because it is different or people who don't actually use OS X regularly complaining about what they assume would be a problem.

    16. Re:Took them long enough by petermgreen · · Score: 1

      To be honest, to me this seems like a thing of the past. Apple-critics tend to use it as an argument against Macs but really, that was fixed when the Mighty Mouse came out.
      for desktops yes (and as you say you could use a third party multi button mouse before that) thier laptops still come with only one button below the touchpad though.

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
    17. Re:Took them long enough by argent · · Score: 2, Informative

      As a usability expert, I can assure you misuse of secondary mouse buttons is one of the most common usability problems,

      Argumentum ad verecundiam. I've been seeing people make claims like this for almost 25 years now, and I have yet to see a single credible study that supports it.

      Single button mice are more "demo friendly". That's it.

      * Applications are *not* as consistent as you claim. There are many actions even in Apple's apps that are only available through the contextual menu, or through magic chords.

      * These magic chords, the alternate mechanisms for replacing the context menu in Mac OS, are not "discoverable". I've been using the Mac almost as long as it's been out... my first Mac was the original 128K Macintosh, I'm definitely a "power user", and I'm still discovering new command-option-shift-double-click combos.

      * Using contextual menus does not prevent user configuration.

      Mostly it is just Windows users complaining because it is different or people who don't actually use OS X regularly complaining about what they assume would be a problem.

      Argumentum ad hominem, too. Not guilty. I use OS X regularly, I've used Macs for almost a quarter of a century. OS X is my primary desktop.

    18. Re:Took them long enough by argent · · Score: 1

      To be honest, to me this seems like a thing of the past. Apple-critics tend to use it as an argument against Macs but really, that was fixed when the Mighty Mouse came out.

      The mighty mouse is exactly the kind of passive-aggressive **** that I'm talking about. The Mighty Mouse does not allow chording, and to reliably get right clicking out of it I have to hold my hand in an uncomfortable position tat severly aggravates my RSI. I use a Microsoft wheel mouse, the two-button-plus-wheel cheap mouse, and it works far better than any mouse Apple has produced.

      If you're working on a Macbook or Macbook pro, I find the "double-finger click" (whatever you want to call it) equally if not more convenient than having a right-click button.

      I've been working on the Macbook Pro since it's been out, and it doesn't work worth a damn for me.

      Is the "passive-aggressive relationship with multiple mouse buttons" really still a reality?

      Not only reality, but what you're pointing to are the symptoms.

    19. Re:Took them long enough by krunk7 · · Score: 1

      for desktops yes (and as you say you could use a third party multi button mouse before that) thier laptops still come with only one button below the touchpad though.
      I've come to prefer this setup in laptops. Most clicking done is left clicking, when I switch to a windows laptop I find myself inadvertently hitting the right click constantly. I prefer the precise control offered by a ctrl+click which is (for me) less prone to accidental clicking. I'm not saying your preference is bad, or that mine is superior. But it would appear that it is a preference. I've heard this from many switchers as well. So I'm not unique in this. As far as the desktop, I've never used a one button mouse with osx. Nor have I noticed any differences in functionality from windows.
    20. Re:Took them long enough by Anonymous Coward · · Score: 1, Interesting

      For example, I can't use Mail.app because it has this bug where it automatically sends events to iCal, even if both are set up to not exchange events. So if I get an email with a malicious file, it'll compromise my system. I have to use some other mail reader until they fix it.

      Unfortunately, I need to follow other sources to find out when they fix it, because Apple won't say when they've fixed it. They will include a vague line something like "Improved reliability of iCal".

      Usability, to me, means you know what's going on. Hiding all the details of everything from your customers so they can't make informed decisions is not usability.

    21. Re:Took them long enough by krunk7 · · Score: 1
      I've never used a one button mouse with mac. I've never used the bundled mighty mouse. I've never used the bundled mouse with OEM windows machines (hate them, very un ergonomic and give me carpal).

      In this sense (using a 3rd party multi-mouse button with my desktop purchase), nothing has changed from windows to osx.

      For my thoughts on the one button laptops, I prefer it. Some folks like one model of car, some like others. I wouldn't say it's because one car manufacturer has a hatred for features in the other. It's just a matter of options/choice/preference. Choice is good? amiright?

    22. Re:Took them long enough by confu2000 · · Score: 1

      If you're working on a Macbook or Macbook pro, I find the "double-finger click" (whatever you want to call it) equally if not more convenient than having a right-click button.

      I've been working on the Macbook Pro since it's been out, and it doesn't work worth a damn for me. I hope you realize that two-finger click isn't active by default and you need to activate it in the system preferences. I have a first-gen Macbook Pro and it works fine for me along with two-finger scrolling.

    23. Re:Took them long enough by NMerriam · · Score: 2, Funny

      Argumentum ad verecundiam. I've been seeing people make claims like this for almost 25 years now, and I have yet to see a single credible study that supports it.


      Anyone who has spent a day answering phones on a tech support line can confirm that mixing up mouse buttons is a common issue.

      "right click on the icon"
      "double click?"
      "no, ma'am, click the right button on your mouse"
      "how do I know which button is the right one?"
      --
      Recursive: Adj. See Recursive.
    24. Re:Took them long enough by 99BottlesOfBeerInMyF · · Score: 1

      Argumentum ad verecundiam. I've been seeing people make claims like this for almost 25 years now, and I have yet to see a single credible study that supports it. Single button mice are more "demo friendly". That's it.

      What are you talking about? Have you ever performed a usability study on a modern computer? There is always at least one person messing up and hitting the wrong button. I once thought I was going to get away without that problem when testing an interface for network security experts, but sure enough one of the top guys at AT&T (a really bright guy by the way) who was helping us test accidentally clicked the wrong button while trying to access a menu. This is an absurdly common issue. To claim it has never been demonstrated in a credible study either shows complete ignorance of the topic at hand or some bizarre selection criteria for said studies.

      * Applications are *not* as consistent as you claim. There are many actions even in Apple's apps that are only available through the contextual menu, or through magic chords.

      Really. Care to cite an example? I know of only two applications on OS X that are exceptions to this rule, one of which is an abysmal custom interface trying to exactly mimic the Windows version and the other is a high end graphics application that specifies users must have a multi-button mouse to use it. I'll give you a hint, look in the regular menus.

      These magic chords, the alternate mechanisms for replacing the context menu in Mac OS, are not "discoverable".

      True, they are not easily discoverable, but that is only one part of usability. Novice users don't need to discover them. Advanced suers have no problem figuring them out quite quickly. The only people at risk are those who want to be more advanced, but are both too cheap to buy a multi-button mouse and too lazy to look up the chording key or that they can use two fingers on the track pad.

      * Using contextual menus does not prevent user configuration.

      Yes it does, at least as currently implemented on Windows and in many custom interfaces for programs. You either can use a custom menu or you can use the one supplied by the developer, but usually you cannot merge the two into one menu and often there is no way to add the functionality from the custom menu into a standard menu. This is an extremely common problem for people trying to use an alternative input device, like people with palsy.

      Argumentum ad hominem, too. Not guilty. I use OS X regularly, I've used Macs for almost a quarter of a century. OS X is my primary desktop.

      This is not an ad hominem attack, nor was it a description of you. This was describing the characteristics that lead people to repeat this misperception in the media. So tell me, are you one of the people who is too lazy to learn or too cheap to buy a new mouse?

    25. Re:Took them long enough by flithm · · Score: 1

      Not necessarily. If they did their jobs correctly then the "check" wouldn't be in the dtrace app itself. It would be at the operating system level... an app would designate itself not debuggable, then the kernel api calls that dtrace uses to enumerate the list of running apps it can investigate simply wouldn't return the non-debuggable apps.

      Although I've no idea if this is the case, or what they've done, I suspect they simply fixed the underlying calls that dtrace uses to report on non-debuggable apps, while still leaving those apps unable to be debugged.

    26. Re:Took them long enough by PitaBred · · Score: 1, Informative

      ...really? It's active by default under Windows and Linux. I'm 100% sure on Linux, not as sure about Windows since I haven't used it in quite a while...

    27. Re:Took them long enough by Anonymous Coward · · Score: 0, Funny

      Mac users- unable to differentiate between the right and left mouse buttons. They should put that in the next "I'm a Mac, I'm a PC commercial".

    28. Re:Took them long enough by somersault · · Score: 4, Informative

      Fair enough, though 'usability' generally refers to interface design, I'd definitely still refer to it as a security issue, which I'd say is more important than 'usability', though successful software companies like MS and Apple don't seem to agree!

      --
      which is totally what she said
    29. Re:Took them long enough by kscguru · · Score: 1
      Wishful thinking.
      • Linux STILL doesn't have DTrace, they use kprobes(?) instead because somebody claimed it was almost as good (DTrace users know the Linux equivalent is woefully inadequate and needs several years to even reach feature parity). Not-Invented-Here syndrome.
      • Look at kgdb, which Linus finally merged parts of after many years. Linux feels developers shouldn't be using debugging tools on the kernel. Any bets on whether he would merge DTrace at all?
      • Even if Linux had DTrace, this fix would be applied in source - which might be good enough for the few thousand people who always run the bleeding edge kernel, but has to trickle through a kernel release cycle (~3 months) or even wait for a distro upgrade cycle to pick up a newer kernel (~6 months for Ubuntu / Fedora, ~2 years for RHEL, maybe 4 years for Debian-stable?). No shortcuts, this isn't a backportable security fix.
      For an average Ubuntu user (just picking a popular Linux distro here, no flamewars) and an average Mac OS X user, the 10.5.3 update came out a LOT sooner than the next Ubuntu 8.10 update. Sure the five people who actually care about this have the option of recompiling on Linux, but for everyone else, the closed-source product cycles are moving a lot faster. There's a world of difference between fixing in source and fixing on my local machine, a world open-source zealots conveniently omit when mouthing off about how fast open source can fix things. (Hint: I'll bet Apple fixed DTrace in source in a week also.)

      Linux is quite good about cycling security fixes through very fast. Anything else - new features or non-security/stability fixes - tends to take many months or even years to percolate to the world at large. Which puts Linux-based OSes (e.g. distros) squarely between Apple (updates every few months) and Microsoft (SPx every few years) for slow product cycles. Note that this isn't the fault of Linux kernel people - it's the whole distro model, which should be a sign that an OS - even an open source OS - is a complicated beast that necessarily has long release cycles.

      --

      A witty [sig] proves nothing. --Voltaire

    30. Re:Took them long enough by argent · · Score: 1

      I hope you realize that two-finger click isn't active by default and you need to activate it in the system preferences.

      Yes. It "doesn't work for me" means "I do not find it an adequate replacement for a second button. I need to be able to activate the contextual menu without tapping the touchpad, because it's too easy for me to jiggle the mouse in the process whether I'm one- or two- finger tapping.

    31. Re:Took them long enough by Crazyswedishguy · · Score: 1

      for desktops yes (and as you say you could use a third party multi button mouse before that) thier laptops still come with only one button below the touchpad though. Note my comment above:

      If you're working on a Macbook or Macbook pro, I find the "double-finger click" (whatever you want to call it) equally if not more convenient than having a right-click button. Essentially, on Apple laptops, if you put two fingers on the touchpad and click the button below it, that's a left click. In my personal opinion, this is more convenient than having two buttons which you sometimes accidentally click (my work computer is a Dell, it definitely happens).
      In a similar fashion, the touchpad also allows vertical and horizontal scrolling by dragging two fingers. This means you're not wasting touchpad real-estate with the scroll areas on the side of the touchpad.
      It's a matter of opinion, but I prefer the way that Apple does it now. (but it's a relatively recent improvement) YMMV
      --
      This space up for sale.
    32. Re:Took them long enough by Crazyswedishguy · · Score: 1

      Essentially, on Apple laptops, if you put two fingers on the touchpad and click the button below it, that's a left click And by left, I mean right.
      --
      This space up for sale.
    33. Re:Took them long enough by argent · · Score: 1

      Have you ever performed a usability study on a modern computer?

      No, but I've read as many of them as I can get my hands on, and have found none of them credible. It's easy to see the errors: you'll find them comparing mockups of user interfaces that never actually got implemented, or user interfaces that are clearly designed to make one or another operation work better, or have taken the interface the experimenter doesn't like to extremes (like the "five button mouse"). I have, for the past quarter of a century, rarely even had any user interface experts provide an example of a study other than Apple's original flawed work.

      I can also use argumentum ad verecundiam if you want. I have 20 years of experience as a system administrator, supporting users that ranged from clueless executives and secretaries to programmers with PhDs. The biggestTrue, they are not easily discoverable, but that is only one part of usability. Novice users don't need to discover them. Advanced suers have no problem figuring them out quite quickly.

      I'm an advanced user. I have decades of experience with Macs and just about every other user interface that uses a mouse and windows, including every version of Mac OS, the Lisa, and all three of the GUIs Xerox developed on the Dorado and Dolphin boxes. I am still discovering magic keys in Apple applications by means of word-of-mouth and google.

      Care to cite an example? I know of only two applications on OS X that are exceptions to this rule, one of which is an abysmal custom interface trying to exactly mimic the Windows version

      If you mean iTunes, that's a custom UI developed on the Mac and ported to Windows that Apple has used as a testbed for user interface ideas. If any application should have evolved into a witness for the best that Apple could do, that's the one.

      [contextual menus preventing customization] Yes it does, at least as currently implemented on Windows

      I'm not a Windows user, and I'm not comparing OS X with Windows. I'm right now using contextual menus WITH user customization on OS X. I have done the same on other window systems... all the way back to the beginning, back before the Mac wis a twinkle in Raskin's eye.

    34. Re:Took them long enough by prockcore · · Score: 1

      On the other hand, usability issues that get fixed quickly under OS X, are often left to languor under Linux.


      I have only one thing to say on that: FTFF.
    35. Re:Took them long enough by Crazyswedishguy · · Score: 1

      I use a Microsoft wheel mouse, the two-button-plus-wheel cheap mouse, and it works far better than any mouse Apple has produced. The point is, you can easily use a Microsoft wheel mouse on a Mac. I've had Microsoft (or other brand) mice for my laptops for several years. I used to have a 5-button mouse on my first mac, it worked great.
      Personally, I agree with you about the Mighty Mouse. I don't like using it, I haven't gotten one. It looks pretty, and some people swear by it, it's not for me.

      Macs support multiple mouse buttons just as well as any PC I've ever had or seen, and most of the drivers already come installed. So I would still challenge your assertion that there's a passive-aggressive relationship with multiple mouse buttons. They maybe haven't built a mouse that you like, but it works absolutely great with, I believe, just about any third-party mouse you're using on your Windows PC.

      As for using your Macbook Pro, have you activated multiple finger scrolling and clicking? Most comments I've read either say it's as good or it's better than two buttons below the touchpad. It's not on by default though, so if you haven't already enabled it, just go in your system preferences and give it a try.
      --
      This space up for sale.
    36. Re:Took them long enough by ORBAT · · Score: 1

      for desktops yes (and as you say you could use a third party multi button mouse before that) thier laptops still come with only one button below the touchpad though. Did you actually read what parent said? The laptop trackpads implement right-click as a gesture (tap with two fingers instead of one) so your point is pretty much moot. I have a MacBook and I never use the "regular" button, but tap or "double-tap" the trackpad when I click.
      Can we just forget the "LOLZ U CANT RIHGT CLIK ON A MAC" crap and move along?
    37. Re:Took them long enough by 99BottlesOfBeerInMyF · · Score: 1

      Have you ever performed a usability study on a modern computer? No, but I've read as many of them as I can get my hands on, and have found none of them credible.

      So you're claiming the entire field of scientific research into usability is not credible, and the alternative you're proffering, is your own personal opinion backed up by no data whatsoever? I've got to tell you, that's not very persuasive.

      I have, for the past quarter of a century, rarely even had any user interface experts provide an example of a study other than Apple's original flawed work.

      Have you considered actually going to HCI conferences, subscribing to the journals, or just reading the academic papers published online. There are a lot of rigorous usability studies, usually testing a particular interface and looking for problem tasks/workflows.

      I'm an advanced user. I have decades of experience with Macs and just about every other user interface that uses a mouse and windows, including every version of Mac OS, the Lisa, and all three of the GUIs Xerox developed on the Dorado and Dolphin boxes. I am still discovering magic keys in Apple applications by means of word-of-mouth and google.

      Hold your horses there partner! We're talking about chording keys that substitute for extra mouse buttons, not any other UI features. Stay on topic. Are you still looking for the ctrl key to use with your muse button or trackpad? Are you still trying to figure out that if you have two fingers on the trackpad when you click it works like the second button on other systems?

      Care to cite an example? I know of only two applications on OS X that are exceptions to this rule, one of which is an abysmal custom interface trying to exactly mimic the Windows version If you mean iTunes, that's a custom UI developed on the Mac and ported to Windows that Apple has used as a testbed for user interface ideas.

      I don't know of any functions in iTunes that I have to use a second mouse button for. I'm not seeing you support your assertion with any examples. If the problem is real, surely you can think of some application where you need the second mouse button on OS X.

      I'm not a Windows user, and I'm not comparing OS X with Windows. I'm right now using contextual menus WITH user customization on OS X.

      So what is your problem with Apple's implementation of the second mouse button? You claim to be using it, so how have they hindered that use case? They support features by default if you have a second button and it is possible to customize them, unlike other popular implementations where you are forced to use them and they cannot be customized. I'd say Apple is ahead of the curve here.

    38. Re:Took them long enough by makomk · · Score: 1

      Apparently, some of the code required to do so isn't available - you can read and modify the code responsible for the DTrace lockout, but without the rest of the code - just as object files and headers, source code isn't needed - there's no way to replace it with the modified version. (Since DTrace is under the CDDL and not the LGPL, I don't think there's any requirement for Apple to provide the necessary files to replace the code with a modified version.)

    39. Re:Took them long enough by Crazyswedishguy · · Score: 1

      Really, are there actually Windows laptops with multitouch touchpads, i.e. multiple-finger tapping, clicking or scrolling? I don't know of any, but it might be recent development I've missed.

      --
      This space up for sale.
    40. Re:Took them long enough by Anonymous Coward · · Score: 0

      Yes, you can. But you can't recompile a kernel that has DTract threaded through it that will support MacOS X. Darwin's kernel is very similar to MacOS X's, but there are areas where Apple has not open-sourced it, and those are exactly the areas that they want to protect with this limitation on DTrace.

      At this point this is a non-issue for people who are not doing development in non-iTunes areas. It sort of sucks for people developing iTunes visualizations, and for people who are trying to crack Apple DRM, but Apple seems ok with that in excahnge for protecting their DRM (as is required by the content vendors they want to deal with).

    41. Re:Took them long enough by argent · · Score: 1

      So you're claiming the entire field of scientific research into usability is not credible

      No, I'm claiming that I haven't had anyone provide a credible study. There may be some, but they all seem to be locked up somewhere.

      Most people respond by asserting that I am rejecting an entire field of scientific research, but decline to actually provide a reference to a single study to support this assertion.

      Have you considered [...] just reading the academic papers published online.

      Well, hey, you want to be an exception to the rule? You know what to do.

      There are a lot of rigorous usability studies, usually testing a particular interface and looking for problem tasks/workflows.

      I haven't seen any studies comparing a computer system with a single-button mouse and menu buttons (eg, Apple's menu bar), versus one with multi-button mice and contextual menus (eg, the Xerox Star), where both are designed for the interface and consistently implemented across the UI. I have seen Apple's study, I have seen studies of X11 (which loses immediately against EITHER of the options I'm talking about), and I have seen studies of user interfaces for specific applications. I have NEVER seen a study that actually supports Apple's claims that contextual menus are bad.

      We're talking about chording keys that substitute for extra mouse buttons,

      There's only one of those, control-click. I'm not at any point advocating five-button mice (even though Apple has effectively created one on the Mac by putting four of the buttons on the keyboard), I'm talking about the original three-button Xerox Star design that Apple hacked into a one-button model:

      Select - Usually click, sometimes not available.
      Execute - Usually double-click, sometimes single-click.
      Menu - Usually control-click, sometimes in some third-party applications it's option-click or command-click, often not available.

      That's the original design. Simple and consistent. You have to learn what three buttons mean, but they mean the same thing in all applications.

      On the Mac, now, I'm talking about command click, option click, shift-click, as well as things like option-delete in iTunes and command-double-click in Tiger text widgets and the terminal, and the various key-drag variants in Finder. You can't discover all these by exploring the interface, because some of them are destructive and others are hard to back out of.

      So what is your problem with Apple's implementation of the second mouse button?

      * It can't be used one-handed.
      * The control-key moves. It's in a different place on my Macbook Pro and on my desktop keyboard.
      * It's different on different devices. On the Mighty Mouse it's "lift the index finger and click", on the older mice it's "press the Ctrl key (no not that one, that's the Fn key) and click, on the Trackpad it's "control-click or two-finger-tap". You can also get it with tap-and-hold, so if you're going to drag a file, don't linger!
      * It's badly implemented in the API. Applications STILL have to handle at least three separate events (control-click, right-click, and click-and-hold) explicitly. Many applications don't bother. The result is more inconsistency.

    42. Re:Took them long enough by wootest · · Score: 1

      Finder was only "Cocoa-ized" to the point where Cover Flow is a Cocoa view. The rest is Carbon, it's just mostly a lot faster. The regression is actually, if you're to believe Apple design documents, a 'feature' since the view is now global. I guess it does solve the nearly impossible-to-predict mess that was there before to determine the view for a particular folder, but only in the same way that blowing up a car with a flat tire solves having a car with a flat tire. And for fucks sake, who decided we only needed three static columns in Spotlight? (All this metadata...)

      I'm right with you on Core Input. Almost every Carbon-level API needs to be replaced and moved upstream. Objective-C if it provides helpful abstractions (or C++ if it is *really* performance-sensitive, like I/O Kit for drivers, which already exists), otherwise just clean, consistent and predictable CF-like C. I hope this is what Snow Leopard does that wasn't hot enough to reach the press release or sneak peek page.

    43. Re:Took them long enough by JonathanBoyd · · Score: 1

      If you already have a finger on the pad (which you presumably do as a result of having moved the pointer to where you want to click), placing a second finger on the pad doesn't jiggle it at all, so you can right-click in safety by tapping he button with your thumb. Even if you don't have a finger on the pad, plonking two down at the same time shouldn't result in any pointer movement and even a bit of a delay between the first and second hitting rarely produces movement and even then only by a couple of pixels. If the pad is set for tap-clicking, it could be that everything I've just said is rendered invalid, but I hate pad-clicking because it's too easy to move the pointer when you want to click or click when you want to move, so all my clicking is done by the button. Of course chording is impossible under this setup, but it's very rarely needed. Where do you need chorded-clicks? I can see them being useful in some games, but you'd probably want a mouse anyway and there's nothing stopping you from getting a Microsoft one. If only Microsoft made one with a scroll-ball.

    44. Re:Took them long enough by Anonymous Coward · · Score: 0

      On the gripping hand, Apple still hasn't cleaned up Finder, though I congratulate them for finally ditching Metal. The "Cocoa-ized" Leopard Finder has major regressions (for example, it no longer tracks different views of different folders). The worst thing is that it's not a regression, it's intentional. Somebody tried reporting it as a bug and the response indicated that Apple decided that remembering the view used for each folder in previous versions of MacOS X confused users, so they took it out. (That sound you just heard? Me slapping my forehead so hard that it actually went through the Internet.)
    45. Re:Took them long enough by argent · · Score: 1

      The point is, you can easily use a Microsoft wheel mouse on a Mac.

      Indeed, there isn't even a clue-anticlue explosion when it's plugged in. Though you couldn't under OS 9, and Apple still doesn't ship an actual two-button mouse, and application support for the right button is still not universal (which I elaborate on in another comment in this thread).

      your Windows PC

      You take that back!

      have you activated multiple finger scrolling and clicking?

      Yes, I have already explained this in far more detail in another followup.

    46. Re:Took them long enough by argent · · Score: 1

      If you already have a finger on the pad

      I don't rest my finger on the pad, because any subsequent motion of my hand causes small movements, and because I have to make muliple strokes on the pad to move the mouse any distance so I am in the habit of stroking the pointer around and only touching the pad when I'm actually moving the pointer.

      Even if you don't have a finger on the pad, plonking two down at the same time shouldn't result in any pointer movement

      I find that plonking down *one* at a time can cause movement.

      Where do you need chorded-clicks?

      Paste in XTerminals and other X11 clients.

    47. Re:Took them long enough by Anonymous Coward · · Score: 0

      Argumentum ad verecundiam If usability is his field of expertise (there are jobs that revolve around usability), his argument is not "ad verecundiam". An argument ad verecundiam is when someone prestigious/famous/important makes a statement about something which he is not qualified to judge.

      e.g. 1. "The brilliant William Jenkins, the recent Nobel Prize winner in physics, states uncategorically that the flu virus will be controlled in essentially all of its forms by the year 2,050. The opinion of such a great man cannot be disregarded." (quote stolen from the page linked below) ==> ad verecundiam
      e.g. 2. "The brilliant physicist William Jenkins said [insert physics statement here]. The opinion of such a great man cannot be disregarded." ==> not ad verecundiam, since it's the guy's area of expertise, and what he's famous for.

      I can't assess whether 99BottlesOfBeerInMyF is actually a usability expert, but if he is, it's not an argument ad verecundiam and I would be prone to believe him rather than you. This being said, I take everything on /. with skepticism, therefore I agree his argument is frail unless he can support it with something else (nothing proving that he's a usability expert).

      (so yeah, I'm not really arguing with you about his argument being weak, just about it being an argument ad verecundiam :P This being said, his argument doesn't sound unreasonable - I myself click the right button accidentally on my laptop way too often, especially when working on a plane, when arms are pressed to my sides, and I'd love to have the double-finger tap)

      Argument ad verecundiam
    48. Re:Took them long enough by argent · · Score: 1

      For my thoughts on the one button laptops, I prefer it. Some folks like one model of car, some like others. I wouldn't say it's because one car manufacturer has a hatred for features in the other. It's just a matter of options/choice/preference. Choice is good? amiright?

      When I can buy OS X retail and install it on a Thinkpad I'll be happy to agree with you.

      Since that's not going to happen, where's the choice?

    49. Re:Took them long enough by LordGilman · · Score: 2, Informative

      You don't even have to recompile dtrace, there's a kernel extension that patches around Apple's code. http://landonf.bikemonkey.org/code/macosx/Leopard_PT_DENY_ATTACH.20080122.html

    50. Re:Took them long enough by PitaBred · · Score: 1

      Most newer laptops are, I'd think. My Compal HGL30 and my Lenovo Thinkpad T61 both definitely do it, not sure about other models.

    51. Re:Took them long enough by JonathanBoyd · · Score: 1

      I don't rest my finger on the pad, because any subsequent motion of my hand causes small movements, and because I have to make muliple strokes on the pad to move the mouse any distance so I am in the habit of stroking the pointer around and only touching the pad when I'm actually moving the pointer.

      Ok. Though I would have thought that most of the times when you want to click, it would come immediately after movement, so your fingers would already be there. I can see how it would be an issue though if there is a time gap between positioning and clicking.

      I find that plonking down *one* at a time can cause movement.

      But right-clicking involves two and in my experience, putting two down causes movement less often than one, which I suspect is down to the system being designed to recognise two fingers as indicating an intention to right-click or scroll. Putting one finger down carries no such connotations, so I would expect to see more movement then. Try it yourself and see: tap the pad a few dozen times with a one finger (with 'tap to click' disabled of course) then repeat with two fingers and compare how much the pointer moves. With one, it flutters about, but with two, it rarely moves. Therefore, right-clicking by putting two fingers on the pad and clicking the button with your thumb is actually quite safe from the perspective of pointer-movement.

      Paste in XTerminals and other X11 clients.

      It just occurred to me that chorded can be meant in the sense of modifier key+mouse button or clicking two or more mouse buttons simultaneously. Instead of asking which it was you required, I had assumed it was multiple mouse buttons being simultaneously clicked. It's been a while since I last used X11, but IIRC it's middle-click for paste, which would be a case of modifier key+mouse button being necessitated by Apple's design and a very legitimate objection. If you need a middle-click and don't like using a modifier key to simulate it, then yeah, Apple's design is unsuitable. Taking the market as a whole, it's not a remotely significant issue, but for you as an individual, it is and I can see why you wouldn't want an Apple laptop.

      I wonder if putting three fingers on the pad and click the button could potentially be a workable replacement, if they ever make a hardware+software combination that could handle that. You could even have four fingers for a fourth button, but things start getting a bit silly at that point (if they haven't already).

    52. Re:Took them long enough by Anonymous Coward · · Score: 0

      Argument from authority is an informal fallacy of relevance, because it does not actually provide a middle term.

      Arguing from logical formality is of course its own fallacy...

    53. Re:Took them long enough by Anonymous Coward · · Score: 0

      I'm not joking, and don't call me you.

    54. Re:Took them long enough by Dog-Cow · · Score: 1

      I've been working on the Macbook Pro since it's been out, and it doesn't work worth a damn for me. You should go to an Apple Store and have the local Genius teach you how to use it. It's so simple, even a slashdotter should be able to figure it out.
    55. Re:Took them long enough by Dog-Cow · · Score: 1

      When I can buy a Focus with the interior of a Jaguar, your analogy might make sense.

      Since that's not going to happen, what the hell are you talking about?

    56. Re:Took them long enough by argent · · Score: 1

      I think you understand exactly what I'm talking about.

      The message I was responding to was talking about having different kinds of input devices on laptops being good because it gives you a choice.

      An operating system is not just bucket seats and woodgrain steering wheels. Windows is not an option (don't even think about arguing with that one) and until I can get the same variety of commercial desktop software for Linux as I can for OS X then Linux is not an option (don't even start on running Windows in a VM under Linux, or dual booting, I did that stuff for more years than most of the people reading this have been alive, I've had it with that), so there is no choice.

    57. Re:Took them long enough by Anonymous Coward · · Score: 0

      "On the gripping hand" ...

      OK, we get it; you've read "The Mote in God's Eye"; you're an elite nerd. Whoop-de-fucking-doo.

      STFU already with this worn-out phrase. (I like Niven's stuff in general (although "Ringworld's Kids" (or whatever it's called) was a bit lame), but this "On the gripping hand" phrase started getting tired halfway through the book. We really don't need to see it anywhere else.) WTF is wrong with "on the other other hand"?

    58. Re:Took them long enough by steeviant · · Score: 1

      I can't say I prefer having one button on the trackpad on my PowerBook, but there's another method to right click than the one you mention. You can just tap instead of scrolling with two fingers for a click, no need to touch the mouse button.

      Being able to "tap" a right button with two fingers would be a valuable feature on PC laptops (I virtually never touch the trackpad button), but a right mouse button on the MacBook (Pro) would be of more value IMHO since they are hardware compatible with Windows and "right dragging" is a useful gesture in Windows that I find uncomfortable to do with the 2 fingers + button method.

    59. Re:Took them long enough by SteeldrivingJon · · Score: 1

      Macs support multiple mouse buttons just as well as any PC I've ever had or seen, and most of the drivers already come installed.

      You can even use PC-oriented gaming zillion-button USB control pads, although the manufacturers don't generally support the Mac. There are third party products like ControllerMate that let you program the device's buttons however you wish.

      --
      September 2011: Looking for Cocoa/iOS work in Boston area Cocoa Programmer Quincy, MA
  2. Good news by Anonymous Coward · · Score: 3, Interesting

    This was blogged about some days ago, but I'm glad that the news is out.

    DTrace is used in all sorts of interesting ways. On the Belenix project, for e.g., we've sped up the LiveCD boot enormously, and this innovative use of DTrace is now part of the Distro Constructor Toolkit at opensolaris.org.

    On my Dell D620, Belenix boots in about 3 and a half minutes (with KDE), while Ubuntu 7.10 boots up in about 8 minutes.

    -- Sriram
    http://www.belenix.org/
    http://dynamicproxy.livejournal.com/

    1. Re:Good news by Constantine+XVI · · Score: 1

      The better question is: how bad is your D620 that Ubuntu takes 8 minutes to load? I've never seen longer than 5, and that was on a Celeron 633 w/ 96MB of RAM.

      --
      "I think an etch-a-sketch with an ethernet port would beat IE7 in web standards compliance."
    2. Re:Good news by Anonymous Coward · · Score: 5, Funny

      That's just sad. You shouldn't flash those numbers in public.

  3. Good going apple! by YeeHaW_Jelte · · Score: 4, Funny

    Your evilness index has just dropped from 45.8 to 45.3

    Keep up the good work!

    --

    ---
    "The chances of a demonic possession spreading are remote -- relax."
    1. Re:Good going apple! by Anonymous Coward · · Score: 0

      Come on, everyone knows that they got karma to burn that's why they took their precious time to deliver.

    2. Re:Good going apple! by sootman · · Score: 1

      My first thought was that the headline was misleading. "Fixes" implies fixing existing bugs, like when Apple fixes things in KHTML. The proper headline should have been "Apple quietly un-fucks-up DTrace."

      --
      Dear Slashdot: next time you want to mess with the site, add a rich-text editor for comments.
    3. Re:Good going apple! by shutdown+-p+now · · Score: 1
      What's the Google's one?

      Microsoft, I would assume, is +INF. No matter what they do, they're pure evil personified, at least on /.

  4. Re:22 January - 11 June by Anonymous Coward · · Score: 1, Insightful

    Are you really going to sit there and tell me that there are no bugs in Windows (or Linux) more than five months old? Don't be ridiculous.

  5. Re:22 January - 11 June by falcon5768 · · Score: 1

    how long was that Vista service pack? A year and a half? Yeah I thought so.

    --

    "Slashdot, where telling the truth is overrated but lying is insightful."

  6. Apple fixes overstated bug... by Anonymous Coward · · Score: 1, Interesting

    ...and slashdot bends over backwards to apologise for ever doubting them.

    You'd never see that happening if the same thing applied to Microsoft.

    1. Re:Apple fixes overstated bug... by jeiler · · Score: 1

      Don't blaspheme, AC. Microsoft is Teh Evil (TM).

      --

      If you haven't been down-modded lately, you aren't trying.

      Sacred cows make the best hamburger.

    2. Re:Apple fixes overstated bug... by Anonymous Coward · · Score: 0

      You'd never see that happening if the same thing applied to Microsoft.

      Maybe. Can you provide an example of Microsoft independently deciding to be less evil? Hard to know until it's actually happened.

    3. Re:Apple fixes overstated bug... by bytesex · · Score: 1

      Oh I don't know - betting the shop on C# and bringing the spec under certification ? Just my first thought.

      --
      Religion is what happens when nature strikes and groupthink goes wrong.
    4. Re:Apple fixes overstated bug... by Dog-Cow · · Score: 1

      MS did nothing of the sort. They bet on .Net, which is most definitely not a public standard.

  7. Quietly, quietly by gonerill · · Score: 4, Insightful

    What is the connotation of "quietly" supposed to be in stories like this? (Not just with Apple.) It seems like a weasel word. Is the intention to give the impression that Apple embarrassedly corrected themselves, or that they were forced to give into pressure from the developer community, but don't have the cojones to admit it, or what? Because, anyone honestly expecting something other than a "quiet" fix is deluded. Is a bug fix in DTrace supposed to get a slide at a Stevenote or something?

    1. Re:Quietly, quietly by hostyle · · Score: 1

      Quietly, as in with a minimum of fanfare or huge public announcements ala "Announcing Leopard with better spots (comes with paint remover for the ones we painted ion before)".

      You know the way MS markets things: Windows XP SP3 - "Like omg its the bestest SP we've ever released! Now with 10% less bugs! PS. we recycle chairs - XP is now more green. Save the trees, send your old chairs to Steve."

      --
      Caesar si viveret, ad remum dareris.
    2. Re:Quietly, quietly by stewbacca · · Score: 5, Insightful

      "Quietly" infers that the slashdot crowd should get credit, where no credit is due, as if our overwhelming numbers and sheer pressure forced Apple to change. Unfortunately, in the real world, we are such an insignificant demographic, that any changes are thus labelled as being done "quietly".

    3. Re:Quietly, quietly by Wooky_linuxer · · Score: 1

      Yes, because it is not a bug fix; it is a feature fix, if such a thing exists. The previous design was intentional. So, yes, if someone changes a design decision in a software I buy, I'd like to know why they did it - and in this case I'd like to know why it was there at the first time. I wasn't expecting a big announcement but a single line in OS X update page saying something along the lines of "revert DTrace to original behavior due to ___ " would do.

      --
      Where is that guy who'd die defending what I had to say when I need him?
    4. Re:Quietly, quietly by x_MeRLiN_x · · Score: 1

      Ummmm.. no. Windows Service Packs are comparable to point (e.g. 10.1 as opposed to 10.0) releases of OS X.

      Microsoft patches are almost always* accompanied with installation instructions, affection products and possible caveats. At no point do they market bug fixes. Service Packs are made up of hundreds of patches - not one.

      *Slashdot has in the past been very keen to point out Microsoft patches ushered in without notifying users.

      Get a grip.

    5. Re:Quietly, quietly by timeOday · · Score: 3, Informative
      Looking at the blog entry, no mention is made of an apple announcement at all; this blogger infers it is fixed based on what he would expect to see. What better definition of "quietly fixed" do you want?

      From a developer standpoint, this is a very bad thing apple did. Understanding what's going on and getting stuff to work is hard enough without zombified debugging tools that lie to you.

    6. Re:Quietly, quietly by cgreentx · · Score: 1

      Quietly as in Apple rarely even gives the bugs/issues they fix a single line in the release notes, much less a KB Article explaining the bug. In supporting OSX I've recently spend months fighting AD Authentication issues only to have the issue suddenly fixed in 10.5.3 with no acknowledgment from Apple there was ever even a problem.

  8. "Quietly" by Plantain · · Score: 5, Funny

    What did you want, a friggin' parade?

    Jeez, give a fruit a break.

    --
    No, but I did throw granola at a deaf person once
  9. Re:Mac's Suck by antifoidulus · · Score: 2, Insightful

    Don't use xcode?

    Seriously, unless you are developing Cocoa(or Carbon) apps, there is very little reason to use XCode. There are better free software programs out there for writing c++ code, not to mention you could always just call good ol' gcc on the command line....

  10. Re:Mac's Suck by Plantain · · Score: 5, Informative

    Lifted from http://developer.apple.com/qa/qa2001/qa1118.html because I know no one will RTFA

    Q: I'm trying to link my binary statically, but it's failing to link because it can't find 'crt0.o.' Why?

    A: Static linking of user binaries is not supported on Mac OS X. Tying user binaries to the internal implementation of Mac OS X libraries and interfaces would limit our ability to update and enhance Mac OS X. Instead, dynamic linking is supported (linking against crt1.o automatically instead of looking for crt0.o, for example).

    We strongly recommend that you consider the limitations of statically linking very carefully, and consider your customer and their needs, plus the long-term support you will need to provide. Apple provides support and attempts to insure complete compatibility through the published APIs, but cannot insure that compatibility in a statically linked project. Any change to Mac OS X, in a system update, security update, or major revision, may break statically linked code.

    If your project absolutely must link statically and need crt0.o, you can get the Csu module from Darwin and try building crt0.o statically. Please bear in mind that you must then clearly specify to your customers the compatibility risks involved in installing a product that relies on statically linked code.

    --
    No, but I did throw granola at a deaf person once
  11. Re:Mac's Suck by Halo1 · · Score: 5, Informative

    Write a simple c or c++ hello_word program. Then try to compile and link it with Xcode using -static. It won't work b/c Apple has fucked-up ld. It has nothing to do with ld. The reason it doesn't work is that there is no static version of libc (aka libSystem) on Mac OS X. And the reason for that is that on Mac OS X, libc is the lowest level publicly supported system interface.

    There are of course system calls (both BSD-style and Mach-style ones), but they are undocumented and can change from one Mac OS X version to another (even between minor system updates). The reason is that Apple wants to have and keep full freedom in changing the systemuser space interface at any time it wants whenever that's convenient for whatever reason (performance, security, getting rid of legacy cruft, ...).

    So if you'd statically link a program, it would be linked to a particular libc version which in turn would use the system calls as they work on the particular version of Mac OS X this libc version was compiled for. The end result would be that your program would only be guaranteed to function correctly on that particular OS revision.

    libc's interface on the other hand is kept backwards compatible between OS revisions, so as long as you dynamically link against it, your program will work fine on pretty much any OS version out there (except if you use APIs which didn't exist yet in older versions).

    This is more or less the opposite case as on e.g. Linux, where glibc breaks binary compatibility every other full moon (so you need to distribute different binaries for different glibc versions if you want to link dynamically to it), but the kernel's system call interface is pretty much guaranteed to remain backwards compatible for a very long time (so statically linked binaries are generally much more portable across distributions â" the downside is that you then should link everything statically because installed dynamic libraries may rely on features provided by a newer glibc than the one you statically linked, and in case of e.g. a KDE or GNOME app you'd end up with immense binaries).
    --
    Donate free food here
  12. Boot times... by argent · · Score: 1

    I'm sick of boot times measured in minutes.

    What is this, 1980?

    1. Re:Boot times... by rekoil · · Score: 1

      Don't forget he's talking about LiveCD boot times, not boot times from hard disk...

    2. Re:Boot times... by Anonymous Coward · · Score: 0

      I'm sick of boot times measured in minutes.

      What is this, 1980? Well, we could always measure it in microseconds and give it in standard form to 3sf, if you'd like. We'll even throw in SI compliance, free!
  13. Re:Mac's Suck by autophile · · Score: 1

    So.... I guess this won't be the Year of the Linux Desktop?

    --
    Towards the Singularity.
  14. Re:22 January - 11 June by somersault · · Score: 1

    True, if not for the fact that it's not a bug but rather the intentional behaviour of Apple's version of DTrace. What other reasons do you have? I'm very happy with OSX for home use. Issues like this don't bother me because I'm not trying to reverse engineer the DRM in iTunes - in fact I don't even use iTunes, I use VLC.

    --
    which is totally what she said
  15. Re:Mac's Suck by imus · · Score: 0, Troll

    I still contend that ld is fucked-up... they have changed it.

  16. Give me a break. by ipjohnson · · Score: 0, Flamebait

    How many people here where actually affected by the D-Trace bug in OS X. I'd be willing to lay down 100 bucks that say 90% of the people that complained had no idea the bug was there until the story was posted ... including you. So why get so high and mighty about something doesn't even change your day to day activities. Seriously I own a Mac and I write software on it from time to time but does some missing functionality in D-Trace make a difference NO!

    Its just another reason for D-Bags like you to make a stink.

  17. Re:Mac's Suck by vijayiyer · · Score: 1

    No they haven't. They just didn't provide the static libc. If you install the static libc, you can compile static binaries. What does that have to do with ld?

  18. Re:Mac's Suck by Anonymous Coward · · Score: 1, Informative

    There are better free software programs out there for writing c++ code Really? What? The only open source IDEs I've found that come close to being as powerful as Xcode are KDevelop and Eclipse. KDevelop is a bit buggy, its autocompletion is slow an inaccurate, and, obviously, you have to be using KDE and X; Eclipse is a massive memory hog, slow, and looks ugly as sin on OS X.

    not to mention you could always just call good ol' gcc on the command line... You must be joking. Have you ever written a project that had more than 5 C++ files? I work on projects that have dozens -- if not hundreds -- of different files, organized into multiple different directories, with many different library dependencies and different configuration options. Manually calling gcc is simply impossible, unless I want to waste half a day every time I need to compile something.
  19. Re:22 January - 11 June by Anonymous Coward · · Score: 1, Insightful

    Isn't Windows one big bug? :P

  20. DTrace 2.0: Now 30% Less Crippled! by NoCowardsHere · · Score: 2, Interesting

    Apple designed their port of DTrace so that any program could "opt-out" of profiling if the developers are concerned about reverse-engineering. An unintended consequence of this was that it sometimes broke profiling of other apps while those apps were running. They've fixed that bug in their implementation of crippling, but that doesn't mean they've un-crippled it.

    It's a big step forward, because now at least developers can properly profile their own code. However, one of the purposes of DTrace is to profile _anybody's_ code, in order for example to diagnose performance problems on your computer perhaps caused by those programs. Apple has intentionally left that feature out. So it's arguably still pretty crippled.

  21. They haven't "fixed" it at all by gleffler · · Score: 1

    There are still several apps to which you can not attach DTrace, such as iTunes. The issue described in the first blog post hasn't been corrected, you can still set NOATTACH and your process is then untraceable. (Not that shitty movie, but you know what I mean.)

    The issue isn't (really) that timer counts are wrong, but instead, the far more interesting thing is that there are "special" processes that you can't touch and everyone is now suddenly OK with that because the timers count correctly.

    1. Re:They haven't "fixed" it at all by ahl_at_sun · · Score: 1

      The issue isn't (really) that timer counts are wrong, but instead, the far more interesting thing is that there are "special" processes that you can't touch and everyone is now suddenly OK with that because the timers count correctly. Yeah not so much. I hate to be put in the position of defending DRM, but Apple clearly had some external motivation for limiting access. Apple, I think, has had a relatively non-evil position on DRM: do what they have to do while gently pushing folks toward free formats. Further they've created a protection scheme that is as pro forma as you could imagine.
    2. Re:They haven't "fixed" it at all by Mr2001 · · Score: 1

      Apple, I think, has had a relatively non-evil position on DRM: do what they have to do while gently pushing folks toward free formats. They don't have to do anything to help DRM. Look at Linux: it works just fine without kernel support for DRM, doesn't it?

      Further they've created a protection scheme that is as pro forma as you could imagine. There's still no way to play a DRM'd Apple video file outside of iTunes/iPod/AppleTV. That's significantly more restrictive than, say, a DVD.
      --
      Visual IRC: Fast. Powerful. Free.
    3. Re:They haven't "fixed" it at all by ahl_at_sun · · Score: 1

      They don't have to do anything to help DRM. Look at Linux: it works just fine without kernel support for DRM, doesn't it? Right, that's why you see so much content available from record and movie companies available on Linux.

      There's still no way to play a DRM'd Apple video file outside of iTunes/iPod/AppleTV. That's significantly more restrictive than, say, a DVD. Totally. And there's absolutely no DRM on a DVD player and Blu-ray is making things even less restrictive. But surely this was posted by a slashdot-focused eliza program -- no human is this naive.
    4. Re:They haven't "fixed" it at all by Mr2001 · · Score: 1

      Right, that's why you see so much content available from record and movie companies available on Linux. Yes, I hear Amazon and eMusic have plenty of MP3s for sale.

      Totally. And there's absolutely no DRM on a DVD player There basically isn't anymore, since CSS is such a joke. But in any case, it's undeniable that a DVD is less encumbered by DRM than an iTunes video.

      But surely this was posted by a slashdot-focused eliza program -- no human is this naive. Hmm, maybe. But it looks like your response was written by an Apple investor; no one else would be so eager to make excuses for them.
      --
      Visual IRC: Fast. Powerful. Free.
  22. CD vs Floppy by argent · · Score: 1

    They should still be able to beat 1980 floppy boot times using a CD-ROM.

    Yes, I know they're doing a lot more than in 1980.

    That's the problem. How much of what they're doing is necessary?

    1. Re:CD vs Floppy by laffer1 · · Score: 1

      I don't think you realize how big gnome/kde actually are.

    2. Re:CD vs Floppy by swimmar132 · · Score: 1

      I'd say a graphical user interface, word processor, web browser, programming/debugging tools, all that should be necessary for a modern live CD.

    3. Re:CD vs Floppy by argent · · Score: 1

      You don't need to load a word processor, web browser, or programming and debugging tools during boot.

      You do need to load the GUI, yes.

      If you cant boot to a GUI from a CD faster than an HP Integral (running System V UNIX on a 68000!) could from a floppy, there's something wrong with your GUI.

      That's running UNIX, mind. I'm not expecting you to beat an Amiga 1000, though that *was* loading firmware as well from the kickstart, but you should at least be able to do better than a mid '80s UNIX box.

    4. Re:CD vs Floppy by argent · · Score: 1

      I don't think you realize how big gnome/kde actually are.

      I don't think you're looking at the problem right. :)

      "How big Gnome/KDE are" is part of it.

    5. Re:CD vs Floppy by laffer1 · · Score: 1

      Well people expect different things from a live CD than an DOS boot floppy.

      Now boot media has to support networking, and include as a full desktop environment. Imagine trying to boot dos + WFW 3.11 on floppy, plus a dialer and netscape. Not to mention people used to tweak boot floppies for their systems and not load extras.

    6. Re:CD vs Floppy by argent · · Score: 1

      Well people expect different things from a live CD than an DOS boot floppy.

      What does a Live CD need to do *at boot* that an HP Integral or Amiga 1000 don't? They all boot to a GUI with windows, icons, a desktop, and so on.

      Imagine trying to boot dos + WFW 3.11 on floppy, plus a dialer and netscape.

      I don't have to imagine it, I've done it. Pointing to a REALLY bad implementation that (by the way) Gnome is doing a really BAD job of emulating is hardly the way to convince me that the bloat of Gnome and KDE is justified.

      Not to mention people used to tweak boot floppies for their systems and not load extras.

      And the problem with this is what?

    7. Re:CD vs Floppy by laffer1 · · Score: 1
      You're misinterpreting what I'm saying. I agree that Gnome and KDE are too bloated. Most software is these days. People are taught that memory and disks are cheap so it's OK to code badly. My point is that people expect more from a "boot disk" now than they did 10-20 years ago. So any benefit from new hardware is lost on the extra cruft we get along with it. Many gnome applications are written in python now. I find that insane.

      Most people do NOT tweak live CDs. So comparing them doesn't make sense. As a baseline, let's say the windows 98 se boot floppy. That loaded a memory disk with scsi drivers and a bunch of crap most people don't need. Some people did have scsi drives, but it slowed down booting up while all the adaptec drivers for each version scanned for controllers. Just by eliminating that crap, one could get a quicker load up with cdrom support intact. So we could compare the boot speed of a linux or midnightbsd console only live CD to that windows 98 se floppy with hardware from their release period. I bet it's closer than you think. I know my live CD sucks. I admit that.

    8. Re:CD vs Floppy by argent · · Score: 1

      My point is that people expect more from a "boot disk" now than they did 10-20 years ago.

      And I'm not talking about "how much stuff do you put on the disk". It doesn't matter if the CD image is 2M, 20M, or 200M, that's not going to change how long it takes to boot!

      I'm talking about "how long does it take to boot to the GUI".

      As a baseline, let's say the windows 98 se boot floppy.

      Let's not.

      Windows is also too bloated.

      I bet it's closer than you think.

      The fact that your CD boots as slowly as a floppy means CD's still take as long to boot as floppies used to.

      That's what I'm complaining about!

    9. Re:CD vs Floppy by laffer1 · · Score: 1
      "I'm talking about "how long does it take to boot to the GUI".

      yeah. Well it's not a 1:1 relationship, but more on the disk does mean it takes longer. I don't see why you can't connect what I'm saying to what you're saying. It takes time to detect and setup hardware during boot. It takes time to init a display, setup a login or window manager, etc. If we're talking about boot to gui time, dos doesn't matter. Mac OS matters. NeXTSTEP matters. THings that existed during that time period which had guis. I have a NeXT, and I can tell you it doesn't boot all that fast, especially with OpenSTEP 4.2. My old sun machine doesn't boot very fast either. Both of them have guis and hard drives. You also forget that often things are not in order on a CDROM drive (or floppy). Seeking has to occur. So more stuff means more to go through before you find something. That's clearly going to slow it down. So more stuff = slower. Most people try to blame one aspect of a system on it's slow boot time. For instance, many linux fans think replacing init will make it go super fast. It may help, but there's still other things that happen in the kernel before you get to init. Linux boots faster than FreeBSD (at least 6.x) in my experience. I'm referring to kernel + init. However, I think it's mostly the kernel from my own informal benchmarks. Another thing that is different now is hardware. We have SMP as a common case. Doing locking for SMP is very expensive and slows things down at startup.

      You seem to be complaining about something that you can't demonstrate an example of when it did work right. It's true that hardware got faster, but we also threw a lot of new things at it to do in the process.

    10. Re:CD vs Floppy by argent · · Score: 1

      If we're talking about boot to gui time, dos doesn't matter.

      Who the hell is talking about DOS? I certainly aren't.

      Amiga 1000: 1985
      HP Integral: 1985

      THings that existed during that time period which had guis. ... and BOOTED OFF FLOPPIES.

      Like the Amiga 1000 and HP Integral.

      I have a NeXT, and I can tell you it doesn't boot all that fast, especially with OpenSTEP 4.2.

      I had a NeXT, too. Gave it to someone who wanted one and whose wife didn't object to bringing it home, when I left ABB.

      It was running Display Postscript on a 68040, mate. It's amazing it booted at all.

      Today's boot CDs aren't running DPS, they're just running X11. Which is bloated compared to Intuition, but it's no Display Postscript.

      You seem to be complaining about something that you can't demonstrate an example of when it did work right.

      Amiga 1000.
      HP Integral.

    11. Re:CD vs Floppy by Dog-Cow · · Score: 1

      Amiga 1000.
      HP Integral. Neither of which did extensive hardware discovery. A LiveCD (and the Windows 98 boot disk) doesn't know what hardware it's going to find. It probes for everything it has drivers for.

      That takes time. Period.
    12. Re:CD vs Floppy by argent · · Score: 1

      You only need to probe for legacy hardware. Any hardware since, oh, sometime in the '90s should have already been enumerated during POST.

  23. Re:Mac's Suck by Anonymous Coward · · Score: 0

    I can prove it. You can't even spell "Macs suck," much less prove it.

    Try this yourself. Write a simple c or c++ hello_word program. Then try to compile and link it with Xcode using -static. Why? No, really - why? The limitation you refer to only applies to executables, not to libraries. If you want functions that are in your executables to be dynamic and shared with other apps, just move them into a dynamic library of their own.

    It won't work b/c Apple has fucked-up ld. You can even compile a GNU GCC suite from xCode, but there is no way to get around the fucked-up ld. How stupid is that? How stupid is it to use dlopen() on an executable, instead of factoring its shared functions into a separate dynamic library?
  24. Re:Mac's Suck by mwlewis · · Score: 3, Insightful

    You must be joking. Have you ever written a project that had more than 5 C++ files? I work on projects that have dozens -- if not hundreds -- of different files, organized into multiple different directories, with many different library dependencies and different configuration options. Manually calling gcc is simply impossible, unless I want to waste half a day every time I need to compile something.
    WTF? It's called a makefile. "Manually invoking" gcc goes something like this:

    $ make

    --
    JOIN US FOR PONG!
  25. Good news doesn't sell by snowwrestler · · Score: 2, Insightful

    The previous discussion generated hundreds of posts within a few hours, and topped out at 476. This one is at 60 comments after 3 hours and will be lucky to break 100. If you've ever wondered why Slashdot posts flamebait stories, there's your answer. "If it bleeds it leads."

    --
    Build a man a fire, he's warm for one night. Set him on fire, and he's warm for the rest of his life.
  26. Re:Mac's Suck by Anonymous Coward · · Score: 0

    Manually calling gcc is simply impossible, unless I want to waste half a day every time I need to compile something. Are you being deliberately argumentative, or does typing "make" really take you half a day?
  27. ptrace() by Anonymous Coward · · Score: 0

    Any idea when they'll fully implement ptrace() or is that not on the table?

  28. Apple Quietly Fixes DTrace but by pandrijeczko · · Score: 0, Flamebait

    ...for those fanbois who still feel the need to personally thank Uncle Steve, he is currently bent over in reception with his trousers round his ankles waiting for you.

    --
    Gentoo Linux - another day, another USE flag.
  29. Re:Mac's Suck by mzs · · Score: 1

    The the gp was a troll. For what he/she wants to do you can just copy the archive you need and then do cc foo.a bar.o and then ./a.out and it runs fine. I do it all the time to make big static binaries that run on vanilla OS X.

  30. Not much of a hurdle? by eudaemon · · Score: 1

    So just as a tought experiment, what's to keep me from compiling code that sets this flag and then
    using oh I dunno any hex dump program to see what the system call and parameters looks like?

    Once I know that pattern I can easily patch any binary in the system with perl and remove the offending
    system call by instead setting the syscall parameter to a safe value, substituting in NOPs, etc.

    I guess what Apple is saying is they don't want casual dtracing of their binaries because anyone
    savvy enough can remove the system call, as of course they still have root.

    Unless OS X supports hardware-enforced signed binaries, of course. Which it doesn't.

    1. Re:Not much of a hurdle? by nuzak · · Score: 1

      > Unless OS X supports hardware-enforced signed binaries, of course. Which it doesn't.

      It could. Every mac has a TPM module. They just don't use it yet (and likely won't for a long time if ever)

      --
      Done with slashdot, done with nerds, getting a life.
    2. Re:Not much of a hurdle? by Anonymous Coward · · Score: 0

      No, they don't. No currently-shipping Macs include the TPM chip. It was in the first-revision MacBook Pro, iMac, and MacBook only. None of the Core 2 Duo models have it.

  31. Re:Mac's Suck by dadragon · · Score: 1

    That's not really a static binary. It's statically linked to one library, and not the system library. The system library can't be statically linked in Mac OS X for reasons given in another branch of this thread.

    --
    God save our Queen, and Heaven bless The Maple Leaf Forever!
  32. Re:Mac's Suck by keytoe · · Score: 1

    So I should write a program that knows how to compile my program then? This is an improvement over Xcode how?

  33. Menus are far away by tepples · · Score: 1

    I'll give you a hint, look in the regular menus. The menu bar can be up to 1,000 pixels away from the current position of the mouse. Sure, you can increase sensitivity, but then you lose pixel-level control of the mouse pointer due to your hand tremors.
    1. Re:Menus are far away by 99BottlesOfBeerInMyF · · Score: 1

      * Applications are *not* as consistent as you claim. There are many actions even in Apple's apps that are only available through the contextual menu, or through magic chords. Really. Care to cite an example? I know of only two applications on OS X that are exceptions to this rule, one of which is an abysmal custom interface trying to exactly mimic the Windows version and the other is a high end graphics application that specifies users must have a multi-button mouse to use it. I'll give you a hint, look in the regular menus. The menu bar can be up to 1,000 pixels away from the current position of the mouse. Sure, you can increase sensitivity, but then you lose pixel-level control of the mouse pointer due to your hand tremors.

      Yeah, selecting things from the regular menus when you can use a right-click context menu can be slow, which is why it is nice to have both options. The point of standardizing on one button is it forces developers to put them in the regular menus, even if they also put them in the the right-click context menu as well.

      The reason the above is advantageous is for all the novice user who don't properly use the second mouse button and for all the people using alternative interfaces that don't have a second button either. If you're blind and using an audio interface and a function is only in the right-click context menu, well you generally can't use that program at all. If it is in the regular menu or the regular menu and the right-click menu you're okay. The same goes for styluses, touch screen kiosks, voice activated interfaces, etc.

      It would be nice to think developers would always include a function in a place other than the right-click context menu as well, but that simply doesn't happen as may years of experience has shown. Having a one-button default is the only method that has succeeded.

    2. Re:Menus are far away by Anonymous Coward · · Score: 0

      Fitz law says that the Apple menu bar is easier to reach than a Windows menu bar, even if the Windows menu bar is nearer.

      The reason is because the Apple menu bar is flush with the top of the display, so it is effectively infinitely tall. You can slam the mouse over there at high speed with little need for precision.

      A Windows menu bar, on the other hand, is only a few pixels tall. You can accelerate the mouse towards it, but you need to slow down and stop carefully on it, in case you go past it.

    3. Re:Menus are far away by tepples · · Score: 1

      The reason is because the Apple menu bar is flush with the top of the display, so it is effectively infinitely tall. This is true if you have the menu bar on the top display.

      You can slam the mouse over there at high speed with little need for precision. Even if you have to move the mouse up, pick up the mouse from the mouse pad, move the mouse down, place the mouse on the mouse pad, and then move the mouse up again? Fitts's law assumes O(log(d/w)) to move d pixels toward a target of size w pixels, but above some distance, this becomes O(d).

      A Windows menu bar, on the other hand, is only a few pixels tall. As is each menu item. Under Windows or many recent X11 environments, I can move the mouse in the general direction of the menus, press Alt+E to open the Edit menu, and then move the mouse to the specific menu item.
  34. Re:Mac's Suck by mwlewis · · Score: 1

    If you like XCode, and don't see the need to ever not use it, then it's probably not an improvement. And the people using MSVS probably aren't building makefiles, either. So what? But it's an improvement over "manually invoking" gcc, which is what the AC was talking about. It's also not tied into a specific IDE, which may or may not be important to you.

    In any case, it has nothing to do with the OP's issue...

    --
    JOIN US FOR PONG!
  35. Re:Mac's Suck by chthonicdaemon · · Score: 1

    Have you ever seen the linux kernel sources? Many, many files. Or the emacs sources, or the gcc sources? Many people working/leading these projects use vi/emacs and make. They are not dumb. Many of them have tried the alternatives and gone back to tools that do what they want. I can honestly not believe that any one development tool can be optimal for all programmers simultaneously. So if you dig Xcode, that's fine -- many people do. Many people like a good text editor and a Makefile and really don't suffer for it.

    --
    Languages aren't inherently fast -- implementations are efficient
  36. PROTIP: Press Shift+F10 for a context menu by tepples · · Score: 1

    If you're blind and using an audio interface and a function is only in the right-click context menu, well you generally can't use that program at all. Most applications for Windows allow the user to focus a control, then hold Shift and press F10 to open the control's context menu. Many keyboards manufactured since 1996 have a special key that also opens the focused control's context menu, located between the right meta key and the Ctrl key.
  37. Re:Mac's Suck by Anonymous Coward · · Score: 0

    Agreed - linux binary compatibility - now theres an oxymoron.

  38. Re:Mac's Suck by Johnny+Mnemonic · · Score: 1

    using reason and facts will just confuse them. Macs suck this week, please read the memo.

    --

    --
    $tar -xvf .sig.tar
  39. Ahhh... make and makefile???? by mario_grgic · · Score: 1

    I work with hundred thousand files and compile from the command line (a single command even):

    $ make

    does the trick at the top directory. Yes, that means you have to maintain the makefile but that's not that hard to do and is not done daily or even weekly.

    --
    As the island of our knowledge grows, so does the shore of our ignorance.
  40. Re:Mac's Suck by GrahamCox · · Score: 1

    Write a simple c or c++ hello_word program

    On the other hand, try this. Create a new project in Xcode. Open mainmenu.nib in Interface Builder. Drag an NSTextView to a window, save, compile, run. Result - a complete functional word processor. You can even type "hello world" into it if you want.

    Fuckwit.

  41. Re:Mac's Suck by Guy+Harris · · Score: 1

    Static linking of user binaries is not supported on Mac OS X.

    And, to the extent that it's supported on Solaris, there's no guarantee that a binary statically linked in Solaris N will run correctly in Solaris N+1.

    OS X's and Solaris's ABI's are defined in terms of calls to routines in dynamically-linked libraries, not in terms of system calls.

    There may well be other UN*Xes that work the same way. I have the impression that's how Windows works, as well. This allows the implementation of routines in those dynamically-linked libraries to change, as long as the binary interface remains the same.