Slashdot Mirror


Plugging Internet Explorer's Leaks

jgwebber writes "If you're developing DHTML web apps, you probably already know first-hand that Internet Explorer has horrendous memory leak issues. You can't not run on IE, so you've got to find a way to plug those leaks. So I've created a tool to help you find them. So until Microsoft decides to fix its browser architecture (ha!), at least we can keep it from blowing huge amounts of memory."

312 of 480 comments (clear)

  1. How about firefox? by moz25 · · Score: 4, Interesting

    Is such an approach also useable for finding firefox leaks? As a user (not developer, alas) I'm noticing that it invariably gets sluggish after some period of time, even with few pages open.

    1. Re:How about firefox? by madaxe42 · · Score: 4, Interesting

      I'm fairly certain there's a leak somewhere in teh FF javascript handler - I've noticed memory usage rocketing on some pages which use JS.

    2. Re:How about firefox? by Anonymous Coward · · Score: 2, Informative

      Is such an approach also useable for finding firefox leaks?

      Doubtful. This is targeted at a very specific memory leak that Internet Explorer is known to have.

      As a user (not developer, alas) I'm noticing that it invariably gets sluggish after some period of time, even with few pages open.

      Apparently Firefox 1.1 will fix a lot of these memory leaks. You can try out "Deer Park" if you want a preview of Firefox 1.1.

    3. Re:How about firefox? by xtracto · · Score: 1

      I agree with you, I can not leave my computer with FireFox running for long time.

      Just yesterday I left my notebook turned on with firefox opened.

      After I returned 8 hours later I didnt payed attention and entered to some page with a flash game. Then I noticed my computer was very very slow, I pressed the ctrl-shft-esc to show the sysinternals proc. explorer and firefox was eating 99% of my CPU time and like 216 MB of memory (private bytes, the Virutal size was like in 300+MB).

      So if that happens when Fx is doing 'nothing' something is wrong in it.

      --
      Ubuntu is an African word meaning 'I can't configure Debian'
    4. Re:How about firefox? by ssj_195 · · Score: 4, Interesting
      There were many, many leaks in Firefox, and many have been fixed for 1.1 (do a search on their Bugzilla for "memory leak"). Hopefully, the situation is now much-improved, but I suspect it will be the case that long periods of heavy-browsing will require you to to restart Firefox for quite a while yet. For this reason, I always recommend the Session Saver extension - makes closing and restarting Firefox less painful.

      Memory fragmentation is a big issue for modern desktop systems as the heap used by programs written in C/C++ can't be compacted, and most memory allocation systems weren't necessarily designed to support programs that would be continually allocating and deallocating memory for days on end. Robert Love gave a (fairly detailed and technical) talk on it at while back, with some suggestions for combating it on the Linux desktop, which I recommend to anyone who is interested. It's about 126MB, Ogg format.

      http://stream.fluendo.com/archive/6uadec/Robert_Lo ve_-_Optimizing_GNOME.ogg

    5. Re:How about firefox? by CableModemSniper · · Score: 1

      Has anyone tried linking the B-D-W GC into FireFox?

      --
      Why not fork?
    6. Re:How about firefox? by dnoyeb · · Score: 1

      Interesting as my firefox stays on 24/7 just like my thunderbird. It does not increase its memory usage either. Its on Linux though and is probably missing some of the famous plugins like macromedia and adobe pdf...

    7. Re:How about firefox? by DrXym · · Score: 1
      Memory leaks don't cause sluggishness. Sluggishness is caused JS, flash players, chrome etc. all running on the same thread. Getting something like adblock is a good way to increase performance. These problems might not be so noticeable in IE since you can have multiple IE processes running at once.

      But Gecko does use something similar internally to IE called XPCOM. It's possible that some of the similar techniques that could track down memory issues in IE be adapted to work in Gecko. For example you can count when objects are addrefed and released for example. That's usually the most likely cause of such problems an object not being released so it lives forever, or two objects holding a reference each other.

      The problem is that tracking refcounting problems is horrifically complicated. Gecko has smart pointers, weak references and refcounting macros to debug problems, but at the end of the day good programming is the best defence.

      In the case of IE, I have no idea what it's written in but the chances are the code contains a lot of crap. It might use ATL or similar in someplaces and nothing at all in others. For all I know they're using raw interface pointers in places and forgetting to release them. Or two objects refcount each other so neither goes away. It's certainly possible when dealing with the DOM to run into these kind of problems since you have lots of relationships between objects. I imagine that it's a nightmare trying to figure out what to do when some JS holds onto a DOM element when the document that contains it has been replaced by something else.

    8. Re:How about firefox? by Negatyfus · · Score: 1

      So how does a managed environment with garbage collection like .NET improve this situation? Memory leaks should really be a thing of the past. Right? RIGHT!?

    9. Re:How about firefox? by ajs318 · · Score: 1

      Sounds more like Flash being the problem to me ..... if it was a problem purely with Firefox then it would have been noticed by now just through analysis of the source code. Flash is closed-source, it could be doing absolutely anything; and I wouldn't exactly trust the game either. Fortunately there is the killall command for just this sort of situation ..... if and not unless you have enough resources available to get an xterm to come up at all!

      I'm waiting with bated breath for the open-source Flash player clone precisely because of this. We have by popular demand installed Flash player on a few machines in the canteen at work; but not system-wide, so it's at least running non-privileged {not that I would trust Macromedia not to use a kernel exploit}. The general policy here is still very much "no source, no sale".

      --
      Je fume. Tu fumes. Nous fûmes!
    10. Re:How about firefox? by xtracto · · Score: 1

      You did not unterstand Macromedia Flash was NOT running all that time, I just went into that page [with the flash movie] after I returned to my computer, and no, usualy the movie does not make Fx behave like that (i.e. when you open Fx and go directly to the page...)

      --
      Ubuntu is an African word meaning 'I can't configure Debian'
    11. Re:How about firefox? by ssj_195 · · Score: 1

      Memory fragmentation should, but there is always the risk of an errant part of your code holding references to an object which is no longer needed, possibly until the program is closed. The situation is much-improved with languages that have garbage collection as it is more automated and remove some of the burden from the programmer, but the problem of determining when an object will definitely never be used again by a program and thus making it eligible for garbage collection is in general only solvable by strong AI (having no references to an object reachable by a chain of references stemming from the program root is a good heuristic for deciding that an object can be disposed of, but there are always cases it will miss).

    12. Re:How about firefox? by Momoru · · Score: 1

      f it was a problem purely with Firefox then it would have been noticed by now just through analysis of the source code

      Just because a problem has been found does not mean it has been fixed in 1.0* . If you look at the bug reports there are many bugs that have been in every version of 1.0*, are known (and seem easily fixable) but were not fixed yet. Supposedly this and others are fixed in 1.1 and beyond though.

    13. Re:How about firefox? by zootm · · Score: 2, Insightful

      Just to add on that point, it's probably worth noting that if you follow a pretty strict OO approach, most of the situations where these unchecked references occur become a lot less likely. There's still problems with non-terminating threads and things, people just have to be careful with the logic of their programs, which is a lot less common than I'd like it to be...

    14. Re:How about firefox? by mattspammail · · Score: 1

      uh... okay. So if an app slowly creeps up in memory usage, going from 20 MB or so to over 100 MB, you don't think that'll have an affect on other apps? The other apps will have to rely on virtual memory instead of real memory. Computers 101.

      --
      Now accepting PayPal donations!
    15. Re:How about firefox? by Skye16 · · Score: 1

      Thunderbird is absolutely horrendous on Windows. If I leave it on and don't touch it for 9-10 hours (a normal work day), when I try to do anything with it, it's like I'm trying to coax it to work on a 386. Most of the time I have to close it entirely and reopen it - the GUI may start responding again, but actually getting it to check email is impossible. I'll hit the check email button every 5 minutes for an hour and not have a single email, but as soon as I restart and check again, I have 10 emails.

      Something is up. I continue to use it, as its the only email client out there for windows that seems to manage imap the way I want it (as if I wanted a fucking mark-as-delete/purge process, microsoft!), but it certainly isn't performing the way it should.

      Granted, the system its on is only an XP 1900+ with 256mb of RAM, but still, it shouldn't be that sluggish. It's like wading through chest-deep molasses.

    16. Re:How about firefox? by ssj_195 · · Score: 1

      It most definitely affects Firefox on Linux, too. It depends a lot on your browser habits; the leak seems to get worse every time you open a tab i.e. closing a tab does not appear to free all of the memory that was allocated when it was opened, and this makes using Firefox with my personal usage pattern a nightmare :) I used Firefox fairly intensely under Linux last weekend, and eventually my 1/2GB of RAM and my 1/2GB of swap were all used up. Firefox had just ten tabs open at the time. The time taken to close Firefox, from clicking OK on the "Close all tabs?" prompt to the ceasation of the flurry of disk activity was at least one and a half-minutes (7200RPM SATA, 8MB cache). At this point, the memory and swap consumption reported by top both instantly halved :)

    17. Re:How about firefox? by eric_brissette · · Score: 1

      Would a utility such as AnalogX's MaxMem help the situation? I use firefox all day every day (being a web developer) and I haven't noticed any memory problems. (MaxMem runs all of the time keeping my physical memory free)

      Link to download MaxMem

    18. Re:How about firefox? by paulwomack · · Score: 1

      Robert Love gave a (fairly detailed and technical) talk on it at while back, with some suggestions for combating it on the Linux desktop, which I recommend to anyone who is interested. It's about 126MB, Ogg format.

      And thus is "rich, multimedia web content" revealed in all its dreadfullness.

      A textual transcription would be better; a properly thought out and written up document better still; diagrams would help. All nicely achievably in HTML 1.0, back in the day. 126Mb. Geez.

      BugBear (old guy)

      --
      Ignorance is curable. Stupid is forever.
    19. Re:How about firefox? by eraserewind · · Score: 1

      Is it not possible that there's a memory leak/hog in the javascript code on the particular page, or does javascript not work like that?

    20. Re:How about firefox? by Threni · · Score: 1

      > the problem of determining when an object will definitely never be used again
      > by a program and thus making it eligible for garbage collection

      Can't you write it to the hard disk? I've only got 1.5 gigs of ram but 100+ gigs of hd space - I'm guaranteed to be able to spare at least as much hd space as I have ram.

    21. Re:How about firefox? by Darren+Winsper · · Score: 1

      "it definitely needs work on fixing CSS/XSL because the box model they use is flat out wrong compared to the wc3 standard and isn't even consistent with how it's improperly implemented."
      Prove it.

    22. Re:How about firefox? by Taladar · · Score: 2, Interesting

      Without being too familar with Javascript I am reasonably sure Javascript uses Memory too like any other programming language on the planet.

    23. Re:How about firefox? by Sinus0idal · · Score: 3, Insightful

      Yes but like Java, Javascript surely uses a garbage collection concept meaning it is the browsers responsibility to free memory, and any leaks are thus due to the browser.

    24. Re:How about firefox? by peragrin · · Score: 1

      firefox 1.03 and OS X10.3 I could leave the browser running non-stop, for weeks.

      I upgraded to tiger 10.4 and firefox 1.03 and 1.04 both need restarts every other day. The system slows way down, with a spinning beach ball, but I can force quit it and restart in seconds to clean up the mess.

      I have been using safari but don't like how it deals with bookmarks.

      --
      i thought once I was found, but it was only a dream.
    25. Re:How about firefox? by DrXym · · Score: 1
      No it doesn't affect other apps significantly. If an app leaks memory, that memory gets paged out because it is unused. It would be different if all those objects were in use causing page faults but they're not. It might say 100mb on the task list but the chances are that the amount of physical memory is significantly less than that. There would be some minimal system impact because paging implies disk activity and depending on the heap, not every leaky object is going to occupy exactly a full page on its own.


      Then of course you would eventually hit a crunch time when the page file fills up, but an app creeping up from 20 to 100Mb isn't that likely to do it.


      But does an slowly leaking app kill performance in any noticeable way? Nope. If Gecko or IE is slowing the system down, it's more likely because something on the page or pages you're browsing is causing it. Examples might be funky JS that runs lots of timers, loops, DOM intensive stuff, or shock / flash content.

    26. Re:How about firefox? by Dan+Ost · · Score: 1

      What you just said has an intuitive appeal to it, but it's wrong.

      Memory lost to a memory leak is, by definition, not part of the resident set
      for the process and as such, is the most likely candidate to be
      swapped out to disk. Therefore, as long as you have swap space left on disk,
      other apps should not be noticeably effected.

      --

      *sigh* back to work...
    27. Re:How about firefox? by Evil+Adrian · · Score: 2, Informative
      --
      evil adrian
    28. Re:How about firefox? by tsphere · · Score: 1

      Depends on how you define a "leak." .NET (and i think java???) waits until an allocation request fails before it collects any garbage. As a result, long-running .NET apps tend to fill all availiable memory and swap before stabilizing their memory usage. (i'm thinking of SharpDevelop in particular, there aren't many other large .NET apps out there)

      And I don't have to remind anyone who uses Windows, the OS doesn't behave well at all when its main memory and swap are filled. So in my opinion, having long-running managed apps makes for a much worse interactive user experience.

      tangentially, remember that longhorn is planning to move many more shell programs to managed code...

      --
      Tetris rules.
    29. Re:How about firefox? by Mandrel · · Score: 1

      I have the same problem with Mozilla mail (1.7.7) on Linux. Eventually email stops popping, and I have to restart Mozilla to get the messages off the server -- sometimes a hundred if I've failed to notice they've stopped coming in.

    30. Re:How about firefox? by Enigma_Man · · Score: 1

      Really? Weird. I use Firefox (in Linux) to open sometimes hundreds of tabs, on a machine with 256 MB of memory and a 5400 rpm 4 gig HD, and it works fine (viewing all the recent pictures on collegehumor). I also have had it open for weeks at a time without a problem. Same thing with Thunderbird, which I use at work (on Windows), it stays open as long as Windows stays up (which is usually a week or so). And I always have about 30 things running on my machine at work all the time.

      -Jesse

      --
      Nothing says "unprofessional job" like wrinkles in your duct tape.
    31. Re:How about firefox? by xtracto · · Score: 1

      All this thread is kind of sensless, Javascript is as C,C++, Pascal, Java, etc a LANGUAGE, if the compiler/interpreter implementation is bad it is not the language fault, so if Javascript scripts get bloated in Fx it is because Firefox implementation of the JS interpreter is bad.

      It is like... saying that C programs are broken because they make core dumps...

      --
      Ubuntu is an African word meaning 'I can't configure Debian'
    32. Re:How about firefox? by pcidevel · · Score: 1

      It is like... saying that C programs are broken because they make core dumps...

      void main(void)
      {
      int *test;

      test = malloc(10);

      free(test);
      free(test);
      }

      Now, exactly how is it the COMPILER'S fault that the above program is going to dump core? I've rarely seen a core dump occur for any reason OTHER than because a C program is broken. It's very rarely a compiler issue.

      --

      I thought someone said there was going to be free beer!

    33. Re:How about firefox? by listen · · Score: 1
      The purpose of the stream is to let people see talks from a conference on the web. They didn't have a conference just to make these streams available on the web.


      "How can we get information on optimization to everyone on the internet? "



      "Lets all fly to Germany and then stream videos of ourselves! "


      Your dichotomy is idiotic.

      I expect he'll stick the slides up soon anyway.
    34. Re:How about firefox? by Sinus0idal · · Score: 1

      In C you can malloc a ton of memory and then never free it, thus wasting memory. Garbage collecting languages do not require manual allocation/freeing.

    35. Re:How about firefox? by EnderWiggnz · · Score: 1

      uh... i dont understand your comparison to C... of course a C program is broken if it core dumps... an extremely small percentage of core's are caused by broken compilers... i think that i've broken a compiler a total of twice in practical use...

      --
      ... hi bingo ...
    36. Re:How about firefox? by CProgrammer98 · · Score: 1

      If a c program core dumps it's because it's badly written c code - not the compiler's fault at all!

      --
      And the people shall be oppressed, every one by another, and every one by his neighbour Isaiah 3:5
    37. Re:How about firefox? by awhelan · · Score: 1

      I've also had some problems with Thunderbird. I'm a student in Northeastern's College of Computer Science and I was contacted by systems. They told me I was trying to make IMAP connections in a loop for hours at a time, the times corresponding to when I had Thunderbird open. I also have the problem of not getting emails when I hit the button to check it. Hours later I'll have 20 new messages dated from well before I started checking.

      Despite the complaints, it's still my favorite windows email client, but I can't wait for the port of Evolution.

    38. Re:How about firefox? by CProgrammer98 · · Score: 1

      and memory blocks not actively in use gets paged out to swapfile... Computers 101

      --
      And the people shall be oppressed, every one by another, and every one by his neighbour Isaiah 3:5
    39. Re:How about firefox? by theshowmecanuck · · Score: 2, Informative
      Yes but like Java, Javascript surely uses a garbage collection concept meaning it is the browsers responsibility to free memory, and any leaks are thus due to the browser.

      Bubble bustin' time! Garbage collection doesn't always live up to its reputation. I have seen Java apps leak memory like a sieve. This one project I was working at would start up a production (!) EJB container in the morning, and by 13:00, it would have run out of memory and crashed. I told them to fix their leaks. When they got over arguing that the garbage collector prevents memory leaks and checked it against a memory profiler... they started fixing the memory leaks and the problem was solve.

      In any case, I doubt that the garbage collection in the Javascript engines are anywhere near as sophisticated as in Java itself. So I would think it would be easier to leak memory. Anyway Mozilla has a bit of an article on this here.

      --
      -- I ignore anonymous replies to my comments and postings.
    40. Re:How about firefox? by theshowmecanuck · · Score: 1

      As an adendum, what I am trying to say that you cannot rely on a garbage collector to do everything for you. It cannot understand everything you are trying to do. As a programmer, you have to give it a little help.

      --
      -- I ignore anonymous replies to my comments and postings.
    41. Re:How about firefox? by DimGeo · · Score: 1

      Wish I had mod points!

    42. Re:How about firefox? by DimGeo · · Score: 1

      Well if you happen to browse sites with pictures and you open each picture in a new tab, save the picture, then close the tab, then you eventually get to the point where working with the browser is impossible until it is restarted (don't ask how I know that!).

    43. Re:How about firefox? by zootm · · Score: 1

      Should I be happy or sad that you don't? :D

    44. Re:How about firefox? by cosinezero · · Score: 1

      Almost, but not quite. Your first sentence is spot-on, but .NET's GC should have memory stable long before memory is full. The reason why .NET can appear to soak all available memory is the large object heap, which is rarely collected. This behaviour is by design and is not an instability, though it does require you to think before allocating / using large objects. Applications with few large objects should never appear to be soaking memory - if they are, you should be profiling your code for optimization.

    45. Re:How about firefox? by eraserewind · · Score: 1

      It is C's fault that programs make core dumps (or equivalent). It's not like core dumps, or rather the "undefined behaviour" that causes them when you do something nasty to a pointer, are not an intrinsic feature of the language. They are a flaw in the language that require the developer to do a lot of work to make sure the code doesn't trigger any undefined behaviour.

      C, as a language exposes the developer to a whole class of errors that another language does not, and so it's perfectly reasonable to say that C is a flawed language in this respect. I know there are reasons (good or otherwise) why C has chosen to behave like this, but it's still a language flaw rather than an implementation flaw, and one that leads to the majority of the security vulnerabilities in your favourite OS (whichever it happens to be), and most of the random crashes and resource leakeage in your favourite applications.

      Languages can be poorly designed just as much as implementations can be.

    46. Re:How about firefox? by DimGeo · · Score: 1

      I wanted to mod you up. :) Well said.

    47. Re:How about firefox? by Hinhule · · Score: 1

      I believe it's those flash ads.

      Firefox is normally fast, but for an ad heavy page it just slows dooown. Using the scroll wheel feels like having a 2000ms ping, so I always use the sidebar scroll to look further down on such a page.

      The old URL menu thing has the same lag when opening it. Sometimes pressing escape helps for the URL thingy. However I have started to just make a new tab and close the one I am in when that happens.

      Perhaps I should just look into adblock again. Now that I think about it, browsing slows down a lot when the browser insists on loading stuff from an ad server before loading the page content.

    48. Re:How about firefox? by masklinn · · Score: 1
      use some fully compliant XSL/XML and tables or divs to create a stack of layers consisting of images that are wrapped in tags. you can even define table cell heights, padding and borders. i can almost guarantee you if you have more than 2 layers and certainly in a situation where you have differing image widths and more than 2 layers that there will be ENORMOUS gaps between the images that otherwise should be packed with 0px between them. IE by default renders the page as it should.
      WTF? Last time i checked, normative documents didn't define any default style for HTML elements, at best guidelines (UAs may render X as Y) and never about margins/paddings
      --
      "The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler
    49. Re:How about firefox? by zootm · · Score: 1

      Thanks :)

      I feel guilty about wasting space on Slashdot for this little diversion now though. Although that said, there's plenty more wasted space on Slashdot that it won't be noticed...

    50. Re:How about firefox? by Darren+Winsper · · Score: 1

      "use some fully compliant XSL/XML and tables or divs to create a stack of layers consisting of images that are wrapped in tags."
      "vertical-align: bottom;" fixed the test case I came up with. It appears to be related to this "bug":
      https://bugzilla.mozilla.org/show_bug.cgi?id=5821 (Copy and paste into a new window/tab)
      However, I didn't have time to come up with more complex examples.

      Mozilla's box model is not perfect, David Hyatt found an interesting case, but IE is far worse:
      http://weblogs.mozillazine.org/hyatt/archives/2005 _01.html#007252

      If I get the time, I may give this "insane collection of images" issue a go, but some testcases would be really nice.

    51. Re:How about firefox? by DrXym · · Score: 1
      That appears to be more with how the garbage collector operates when the process is woken up. From the last comments in the bug it suggests it basically does a linear sweep of all JS / XPConnect objects which essentially means page faulting occurs randomly all over the address space. It also says that Java / .NET apps have similar issues.


      That isn't a good thing but it doesn't have much to do with memory leakage. Rather it seems that the GC shouldn't happen at wakeup, or if it does it should be smarter about how it walks that list. Perhaps it means that info pertaining to GC should be maintained in a discrete area, separate from the objects, or that objects of a similar type should be allocated from their own heap.

    52. Re:How about firefox? by Malc · · Score: 1

      There's definitely a memory leak somewhere... I closed down Firefox earlier when its memory footprint starting exceeding 150MB. I only had one tab open. Java is disabled too (I saw somebody mention it in another thread).

    53. Re:How about firefox? by Maian · · Score: 1
      That's probably caused by this bug.

      Fixed in Firefox 1.1 according to this.

    54. Re:How about firefox? by Richard_at_work · · Score: 1

      Quick tip with this, I found Firefox beachballed all the time after updating to 10.4, but when I deleted the .app from /Applications and replaced it with a fresh one, it started working as good as normal. Apparently something to do with prelinking/prebinding that a fresh copy (even from the same archive as the one you are currently running) fixes due to forcing it to be redone on first start.

    55. Re:How about firefox? by SilverspurG · · Score: 1

      So you're denying the existence of bugs in the compilers which can produce code which core dumps through no fault of the code's own?

      --
      fast as fast can be. you'll never catch me.
    56. Re:How about firefox? by grahamlee · · Score: 1

      Yes, in that case it is your compiler's fault if that segfaults, it shouldn't even bloody compile. For a start, the function main() is of type int, not void. Its arguments are (const int c, const char **argv). Your program's control reaches the end of a non-void function, which is naughty although IIRC not strictly an error condition. But you also have (an implicit) typing problem in the test=malloc(10); line, because you have not declared the malloc() function - return type defaults to int when you want int * (in fact, malloc() returns a void * so you should be casting anyway). You haven't declared free() either, but as it's used in void context that's not too much of a problem

    57. Re:How about firefox? by 19thNervousBreakdown · · Score: 1

      Sounds like the same problem I was having, although I have the advantage of running my own IMAP server...

      Many IMAP servers, Courier-IMAP for certain, come configured to limit the number of connections from a particular IP to 4. Thunderbird by default caches 5 connections, and doesn't handle it well when it can't. Change Tools -> Account Settings -> ${YOUR_ACCOUNT} -> Server Settings -> Advanced -> Maximum number of server connections to cache. I'd try setting it to 1 just to verify that's the problem, then see how high you can take it if it is.

      --
      <xml><I><am><so><damn>Web 2.0</damn></so></am></I></xml>
    58. Re:How about firefox? by Captain+Nitpick · · Score: 1
      I'm fairly certain there's a leak somewhere in teh FF javascript handler - I've noticed memory usage rocketing on some pages which use JS.

      Just a reminder: "memory leak" does not mean "uses a lot of memory". It means it doesn't release memory when it's done using it.

      --
      But then again, I could be wrong.
    59. Re:How about firefox? by Malc · · Score: 1

      FYI: you can't link to Bugzilla from /.. You need to just provide the URL for coping and pasting.

    60. Re:How about firefox? by madaxe42 · · Score: 1

      Realised - that was the intended meaning. Even after navigating away from sites no garbage collectino seems to be done.

    61. Re:How about firefox? by greenrom · · Score: 1

      It seems to me that the problem of memory fragmentation could be addressed at some level by the operating system by giving each process its own 32-bit virtual address space. By giving each process a full 32-bit address space, it's unlikely that a process could sufficently fragment a 32-bit address space to the point where large allocations can no longer be made. In a 64-bit address space, it would be nearly impossible. Of course, this scheme would impact performance as it would require the operating system to do a TLB flush after each context switch. It would also require more memory to map virtual pages to physical memory differently for each process. Still, it seems like it could be a workable solution for most memory fragmentation problems. Is there something I'm missing?

    62. Re:How about firefox? by dotlively · · Score: 1

      Links to Bugzilla from Slashdot work just fine for any follower that disables the referrer header the browser or proxy. see http://developers.slashdot.org/comments.pl?sid=124 646&cid=10453065

    63. Re:How about firefox? by Master+of+Transhuman · · Score: 1

      Yes, if you mean viruses, spyware, adware, Microsoft Office...

      But if you mean Windows ITSELF, no - that's just garbage. The collector is then the user.

      --
      Richard Steven Hack - This sig is TOO GODDAMN SHORT TO DO ANYTHING USEFUL WITH! MORONS!
    64. Re:How about firefox? by itchy92 · · Score: 1

      I could mod your comment down past the threshold, if you'd like.

      Wait, shit... nevermind.

      --
      Slashdot: News for nerds. Stuff tha-- MICRO$OFT IS THE DEVIL!!1
    65. Re:How about firefox? by owlstead · · Score: 1

      As long as you don't throw away the references objects, you can get memory leaks. Well, actually, they are more like object instance leaks, but it amounts to the same thing. That's the way garbage collection normally works - it checks which objects are referenced, if there are no references, the object is thrown away.

      Also, many garbage collectors only recycle memory if they get to a certain memory usage. With Java for instance, it looks at the maximum heap size. That is, unless it is triggered by the program or the user (see Java console) etc. JavaScript probably works the same way.

      I have not seen too many JavaScript problems though. I do see very high processor usage with the flash plugin though. Running a game togetter with a running flash thingy is horrendous.

    66. Re:How about firefox? by x0n · · Score: 1
      *bzzzzt* wrong. While I appreciate your rabid knee-jerk blame IE attitude, javascript -- like many dynamic languages -- uses a form of GC, it is not some magic memory handler. An object graph can only be freed if there are no other objects referencing it. Without getting too technical, it's possible to write JS code that cannot be GC'd. A circular reference, for example:

      var x = new Object();
      var y = new Object();
      x.y = y; // add expando to reference y
      y.x = x; // add expando to reference x

      The GC cannot free x because it references y, and vice-versa.

      - Oisin

      --

      PGP KeyId: 0x08D63965
    67. Re:How about firefox? by x0n · · Score: 1

      correction to self: The GC cannot free x because y references it, and vice-versa.

      --

      PGP KeyId: 0x08D63965
    68. Re:How about firefox? by Sinus0idal · · Score: 1

      But how can you help? You cannot release resources in Java. The garbage collector should automatically free up resources which no longer have any reference pointing to them...

    69. Re:How about firefox? by nazsco · · Score: 1

      yah, and redering incosistence should be left to the comitees, right?

    70. Re:How about firefox? by pcidevel · · Score: 1

      Nothing that you listed is goes beyond a warning. But it goes to prove my point, you are blaming the compiler for my poor code, when in reality it would be the poor code in my example at fault, not the compiler. If the compiler appropriately warns, the compiler is implemented correctly.

      Bad code is not the compilers fault.

      --

      I thought someone said there was going to be free beer!

    71. Re:How about firefox? by jp10558 · · Score: 1

      Generally such programs hinder performance. You don't really want much free physical memory.

      See:
      http://www.windowsitpro.com/Articles/Index.cfm?Art icleID=41095&pg=1

      --
      Opera, Proxomitron-Grypen,GPG 0x0A1C6EE3
    72. Re:How about firefox? by EvanED · · Score: 1
      For a start, the function main() is of type int, not void. Its arguments are (const int c, const char **argv)

      I have two problems with this statement. First and biggest, those arguments are optional:

      The function called at program startup is named main. The implementation declares no prototype for this function. It shall be defined with a return type of int and with no parameters:

      int main(void) { /* ... */ }

      or with two parameters (referred to here as argc and argv, though any names may be used, as they are local to the function in which they are declared):

      int main(int argc, char *argv[]) { /* ... */ }

      or equivalent; or in some other implementation-defined manner.

      (Draft C99 standard, 5.1.2.2.1 #1; footnote citation omitted)

      Secondly, implementations are allowed to allow main types of other than those two. Thus 'void main()' is not incorrect by the standard, it just isn't guranteed to be correct. (Note that this isn't true of C++. In C++ the implementation may provide other forms of main, but all must return an int.)

      Your program's control reaches the end of a non-void function, which is naughty although IIRC not strictly an error condition

      Again, this is perfectly kosher. Reaching the end of a non-void function may be undefined for other functions (I didn't bother to look), but both C99 and C++ provide that reaching the end of main is equivalent to exit(0):

      If the return type of the main function is a type compatible with int, a return from the initial call to the main function is equivalent to calling the exit function with the value returned by the main function as its argument; reaching the } that terminates the main function returns a value of 0. If the return type is not compatible with int, the termination status returned to the host environment is unspecified.

      (5.1.2.2.3 #1)

      (This provides further support for my statement that main needn't return int.)

      But you also have (an implicit) typing problem in the test=malloc(10); line, because you have not declared the malloc() function - return type defaults to int when you want int * (in fact, malloc() returns a void * so you should be casting anyway). You haven't declared free() either, but as it's used in void context that's not too much of a problem

      This is pedantic I think. People understand that if you use malloc and free you probably know to include stdlib.h. Typing it out everytime wastes the person's time, half the time in a context such as slashdot results in lines of just '#include' because the poster forgot to escape the <s and didn't preview (I'm just as guilty of this as anyone), and "wastes" space.
    73. Re:How about firefox? by EvanED · · Score: 1

      Standard C requires main to return an int

      I'm positive that's not accurate, unless it was changed from the final draft of the C99 standard*. Implementations are allowed to allow other types, so a compiler that accepts void main can still be conforming, and the program can still be an acceptable program. (You could say that it's non-standard because it uses implementation-dependent things, but it doesn't violate the standard either.)

      a conforming compiler is allowed to reject your code and laugh in your face if you do otherwise

      This is true, as the standard doesn't require that compilers accept mains with signatures other than int main() and int main(int, char**). But again, it doesn't mandate that conforming compilers must reject such programs.

      See my other post for citations.

      (Note that this is all not true for C++. C++ implementations are allowed to accept other signatures of main, but only if they return int. If a C++ compiler accepts void main(), it's non-conforming.)

      * Or used to be that way and was changed to the more lenient version in effect now, but I have severe doubts about that because it seems to be a trend in the opposite direction C and C++ have taken in terms of strictness.

    74. Re:How about firefox? by EvanED · · Score: 1

      That's still a problem with the GC.

      It is technically possible for the GC to detect such circular references by expanding the definition of "inaccessable". In fact, I believe your standard mark-and-sweep will be able to free x and y once they go out of scope.

      Now, depending on the GC algorithm detecting them may be much more difficult or slower, so a decision may be made that it will do less harm to not try to detect circular references than looking for them would cause, and such a decision is as valid as any other design tradeoff. However, such a decision does transform the GC from an exact to a conservative algorithm, and breaks its correctness. And because of the tradeoff, that decision is also as valid a target for criticism as any other design decision.

    75. Re:How about firefox? by Iffy+Bonzoolie · · Score: 1

      I don't know about .NET, but the Java's heap size is not really correlated to system memory. It starts off with a certain sized heap (optionally specifiable), and when a full GC doesn't free enough space for a pending allocation the VM grows the heap up to some maximum size (also optionally specifiable). So of course if you know what the working set size of your app is, you can set your initial/max heap size to be that, and hopefully that doesn't exceed your physical memory. I think, though, that Java will never shrink its heap, so that's also something to consider: if at some point your app requires a ton of memory concurrently, that will stretch your heap out for the rest of the lifetime of that VM.

      I think that long-lifetime applications, native or inside a VM, have to be developed with these kinds of things in mind or they will perform badly.

      -If

      --
      Run a pencil-and-paper RPG campaign with your far-off friends: Gametable!
    76. Re:How about firefox? by CProgrammer98 · · Score: 1

      well no, but it's EXTREMELY unlikely - especially if the compiler passes an ANSI C test suite - the program would have to be quite exotic to uncover a compiler bug...

      --
      And the people shall be oppressed, every one by another, and every one by his neighbour Isaiah 3:5
    77. Re:How about firefox? by cookd · · Score: 1

      No, no, no. Well, actually, Yes, no, no. .NET does wait until an allocation request fails before running the GC, but the allocation request is done against a pre-allocated pool much smaller than "available memory and swap". Once the pre-allocated pool is full, GC is performed. Only when the GC doesn't free up enough memory (as determined by some heuristic, not necessarily "enough to fulfill the current allocation request") does the system allocate additional memory from the OS.

      I've got plenty of long-running .NET apps that behave just fine and stabilize long before running Windows out of swap space. I don't work with SharpDevelop, but it sounds like it either has leaks, excessive memory requirements, or poor memory usage patterns, as the behavior you indicate is not an inevitable consequence of .NET or Java's design. It is a bug in the application, not a problem with .NET.

      --
      Time flies like an arrow. Fruit flies like a banana.
    78. Re:How about firefox? by theshowmecanuck · · Score: 1
      What I said was a memory leak in a Java app(lication). Meaning an application programmed in Java. And yes, you can have a memory leak in Java. Just as you can have a memory leak in 'C' (meaning in an application programmed in 'C'. When talking about a memory leak in Java (or any other language) the reference is to a memory leak caused by programming practices within an application... not in any runtime engine (like the JVM). If I was talking about the JVM, I would have said so. The link in my original post gives an example on how that could happen.
      (from my original post) Garbage collection

      Garbage collection is generally used to refer to algorithms that (1) determine which objects are still needed by starting from a set of roots and finding all objects reachable from those objects and (2) returning all remaining objects to the heap. The roots include things like global variables and variables on the current call stack. Mozilla's JavaScript engine uses one of the most common garbage collection algorithms, mark and sweep, in which the garbage collector clears the mark bit on each object, sets the mark bits on all roots and all objects reachable from them, and then finalizes all objects not marked and returns the memory they used to the heap.

      Garbage collection (at least when the term is not used to refer to lesser algorithms like reference counting) is pretty good at freeing memory that should be freed. However, in a fully garbage-collected system the programmer can still create leaks by leaving objects reachable that are no longer needed. For example, if an object's constructor adds the object to a list that is reachable from a global variable and nothing ever removes it from the list, the object will never be destroyed since it is always reachable from the list.

      And if you still don't believe me, read this IBM article on memory leaks in Java applications. The garbage collector does NOT always collect uneeded objects that bad coding leaves accessable.

      Memory leaks are caused by application programming. They happen when the programmer tells the program to ask for memory from the system, but doesn't return it to the system when done with it. In 'C' (malloc) and 'C++' (new) etc., the request for memory is explicit, and the programmer is responsible for having the program tell the operating system that it no longer needs the memory (e.g. 'free' for 'C', 'delete' for 'C++'... with C++ the implicit destructors can do some of the work, but it doesn't always let the programmer off the hook). The operating system is not responsible for reclaiming memory. It is told by the program, and not only that, the program tells it what block of memory to free up. If it doesn't and the program ends, then there is that much memory tied up that the operating system doesn't have access to any more.

      Java's GC is supposed to overcome that by collecting any unreferenced memory during a program's lifetime and before it exits. But if the programmer codes in a way that keeps open references to unused/unreachable objects, then the application will be said to leak. Granted it will 'leak' in the JVM (asking the JVM for more memory), but the JVM will in turn ask the O/S for more memory until it reaches some predefined maximum, at which time it will crash. In the meantime, it sucks up resources and slows things down on the box that the JVM is running on. If this happens in an enterprise application running in a J2EE container (which presumably is supposed to provide a stable application environment 24/7, which means little leaks will add up over time), this can cause very unhappy customers. If it happens in a web browser because the JavaScript code is leaking, then you also have unhappy customers. Any time you lose system memory to a leak (even if it will be returned once the runtime environment is shut down), you will have performance impact and unhappy customers.

      --
      -- I ignore anonymous replies to my comments and postings.
    79. Re:How about firefox? by Monkelectric · · Score: 1
      I have seen Java apps leak memory like a sieve.

      In my opinion thats the real problem with GC. its supposed to free us from the free/malloc paradigm but you still have to dereference objects... so I ask everyone whats the difference between Object = Null and free(Object) ?

      Sure GC is nice for cleaning up temporary variables, but its terribly expensive and as you say the program can't determine the programmers intent.

      I had a similar situation to yours back 3 or 4 years ago when I was a sysadmin... a researcher came to my office and demanded more ram for his computer (this was SUN ram BTW, extremely expensive). Some program he had written was using 2GB of ram (I think his machine had 512M which was a hell of a lot in 2000) and taking 24 hours to run a single simulation ... So I got him to walk me through the operation of the program, and we made worst case estimates about all the data structures involved, and basically came up with a worst case of his program requiring about 100 megs of ram. He was processing video frames and on a hunch I said, "how many frames are you processing?" ... multiplying the ammount of frames by the data structures storing them, came out to just around 2GB. Basically he was *never* deallocating a single frame structure. He went back to his desk, found a malloc he'd forgotten, and his program ran in 14 minutes after that :) -- long story short, programmers will blame EVERYTHING before themselves (and Im a programmer so its a fair cop).

      --

      Religion is a gateway psychosis. -- Dave Foley

    80. Re:How about firefox? by Captain+Nitpick · · Score: 1
      Realised - that was the intended meaning. Even after navigating away from sites no garbage collectino seems to be done.

      Just being explicit about it. A lot of Slashdot readers don't bother making sure they're operating under the correct definition.

      --
      But then again, I could be wrong.
    81. Re:How about firefox? by srcosmo · · Score: 1
      http://stream.fluendo.com/archive/6uadec/Robert_Lo ve_-_Optimizing_GNOME.ogg

      That ogg file crashes Winamp. Anybody have another copy?

      --
      free speach
      Did you mean: free speech
    82. Re:How about firefox? by Dan+Ost · · Score: 1

      What you've described is possible, but I would think that that would be
      a pathological case. It is extremely likely that there will be some page
      inflation, but whether or not this behavior dominates the virtual memory
      space depends largely on the design and implementation of the program in
      question. Your experiences may be different, but I've never seen a leak that
      didn't first exhaust swap space before causing program failure.

      --

      *sigh* back to work...
    83. Re:How about firefox? by chronos · · Score: 1

      Languages like LISP don't have memory fragmentation problems because they have support for updating references to heap objects. A copying garbage collector will defragment the heap as it reclaims memory.

      The practical result is that C++ has no support for garbage collection so pointers can not be updated. This means that any form of copying garbage collector is not possible and so memory fragmentation is a real concern.

      These days C++ is the last language I will choose. Only if I need to work directly with the hardware or if execution speed became a problem would I use C++. With a little care LISP can be quite fast if the implementation is good.

    84. Re:How about firefox? by Darren+Winsper · · Score: 1

      "but IE is just cleaner, easier and quicker to develop for."
      I'm sorry, but my experience is the opposite. The amount of comments along the lines of "/* Don't change this, IE will break */" we have in my employer's current project is rather alarming. I've got a barmy case where making the width of the banner 100% will cause IE to make the sidebar (which is semantically and CSS-wise independent from the banner) disappear!

  2. Not use IE? by Jawju · · Score: 1, Insightful

    You can't not run on IE...

    Um...I'll think you find I can actually.

    1. Re:Not use IE? by Anonymous Coward · · Score: 1, Insightful

      Um, he's not talking about using a different browser, he's talking about writing a website.

      Now most of the time you want as many people as possible to be able to view your site and as IE (unfortunately, but that's just the way it is) still has the biggest market share by far, writing websites that don't work with IE isn't really an option.

    2. Re:Not use IE? by Jawju · · Score: 1

      When writing a website, it does not have to be written for IE if the website is part of an intranet and none of the users use IE. You are right for the rest, but not for my case, hence my original comment stands.

    3. Re:Not use IE? by PDAllen · · Score: 1

      Would you care to take a guess at how many web apps get written for non-IE intranets, as compared to how many get written for everything else?

      You might as well say that cars don't need handbrakes because you and your mates never ever drive anywhere that's not flat.

    4. Re:Not use IE? by Jawju · · Score: 1

      This topic isn't about standards - it's about buggy IE and memory leaks. Just because a web app is written for an intranet doesn't mean it doesn't follow the correct standards. So once again, I'll reiterate that *I* don't have to worry about IE.

    5. Re:Not use IE? by ByeLaw · · Score: 1

      I think what he's saying is that under windows alot of applications invoke IE to do web based stuff, not that it's easy to change your browser to another one.

      I use firefox myself, but when writing code that needs to display HTML (rendered) I will use the common ActiveX control to do that...which is IE.

    6. Re:Not use IE? by zootm · · Score: 1

      He means that when developing a DHTML app, it must run on IE if you want it to have a wide audience. Obviously some audiences this doesn't apply to, but they're a clear minority.

    7. Re:Not use IE? by Skye16 · · Score: 1

      Sure, if it's your website. But when you're a small business trying to sell your goods, you're not going to tell potential customers "hey, you're using IE, so go fuck yourself". That's like telling everyone wearing jeans who came into your physical store to get the fuck out. Methinks you're not going to be in business too long.

    8. Re:Not use IE? by tomstdenis · · Score: 1

      not being a web-o-phile I dunno what this means. All I know is Google can make nice dynamic interactive pages that work with IE and Firefox.

      So maybe these "DHTML" developers are just narrowminded?

      I mean I'm sure there are many Win32GDI applications that don't work in X11 ... but ... if you're living in 2005 [as I am] you're aware of ... OTHER PLATFORMS.

      Why would you limit yourself to just one platform when others exist [which often have more merit anyways].

      Tom

      --
      Someday, I'll have a real sig.
    9. Re:Not use IE? by zootm · · Score: 1

      Exactly the point the guy was getting at in the original article. IE has some memory leak bugs, and with the tool linked you can get around them without too much trouble, making your system more multi-platform without much fuss. People were complaining that they wouldn't want to develop for IE anyway, or that they could generally do without, which is a little close-minded for a web app.

      Clearly it's valid when you completely restrict the terms (I'm writing for an intranet which only supports Firefox) but in general, not so good.

    10. Re:Not use IE? by dsci · · Score: 1

      when writing code that needs to display HTML (rendered) I will use the common ActiveX control

      Why not use the ShellExecute Win32 API call to use the default browser? That way, the user gets the html in the browser THEY chose, rather then you rendering in IE if they prefer FF or some other.

      Using ShellExecute is a single line of code (or a couple if you do some basic error checking), so it is not like it is harder to use.

      --
      Computational Chemistry products and services.
    11. Re:Not use IE? by tomstdenis · · Score: 1

      It has to?

      Again, self-fulfilling prophecy. The sooner you tell your users "use firefox or safari or opera or any number of others" the better off you and they'll be.

      I mean, here I am posting on slashdot, reading usenet and gmail, while checking up on my banking and reading web comics... I haven't booted a win32 box in over a year...

      You're likely to say "good for you tom, smartass, bahhumbug" or something like that. The point is, I'm not unique here. There are many more people in my camp [e.g. using OSS] and it's only going to grow.

      Companies which don't embrace newer [and often better though note I make the distinction] technology are going to just get left by the wayside.

      The only way IE can be improved [other than reliability issues] is through standards compliance. So design your websites to use W3C standards and if your users complain point them to Firefox and say "they take your security remotely serious."

      Tom

      --
      Someday, I'll have a real sig.
    12. Re:Not use IE? by KillerDeathRobot · · Score: 1

      That double negation doesn't equate to "you can run" but rather "you must run."

      --
      Thinkin' Lincoln - a web comic of presidential proportions
    13. Re:Not use IE? by prshaw · · Score: 1

      But it doesn't display the page in a window in my application, and how do I interact with the page that is displayed?

      If all I wanted to do was popup some page and forget about it ShellExectute would work, but often I need to interact with the page once it is displayed or have it as part of my window.

    14. Re:Not use IE? by ClosedSource · · Score: 1

      Even if you're using IIS and ASP.NET it isn't really necessary to use IE and client-side JavaScript. Sure, not all ASP.NET features can be used without it, but it's not a necessity.

      It seems to me you shouldn't depend on JavaScript being enabled on the client side.

    15. Re:Not use IE? by zootm · · Score: 1

      Well, the point here is that with the whole AJAX "thing", people have realised that they can make client-side systems be a lot more responsive than the simple request/response model. GMail and Google Maps are good examples of rich client-side apps written in JS. A lot of people wish to emulate these new systems, and so there's been an increased interest in JavaScript development. I think that's the basic point.

    16. Re:Not use IE? by ClosedSource · · Score: 1

      Clearly client-side techniques are going to be more efficient. It's nice to know that Google has caught up with everybody else's understanding of this.

      The problem is that the user can easily turn off AJAX futionality in their browser. It may not matter to Google whose business model is a bit murky, but for many businesses this is a fatal flaw.

    17. Re:Not use IE? by zootm · · Score: 1

      This is true. Of course, providers who are providing an apt-enough service should have the clout to ask people to turn it back on, or at least provide an exception for their service. Enabling JavaScript is safer and more convenient than installing a full-fledged app on your system for things like this, and a lot of the time JS is disabled by users simply because it rarely has "any good use". With popup blockers combatting a large proportion of the "downside", and systems fast enough to have a significant "upside" with JS systems, it might be time for people to re-evaluate their policies here.

      I think that time will tell on this issue, though. Since the only large implementations of this system that are currently widespread are written by Google, it's hard to tell its real validity right now.

    18. Re:Not use IE? by Stankatz · · Score: 1

      Well, you could use a different browser during development to avoid all of your resources being sucked up by IE, and then check for compatibility later.

    19. Re:Not use IE? by EvanED · · Score: 1

      You can follow the standards and still not have it work right in IE.

      I'm running into a problem now of IE not supporting CSS2 selectors of the form tag[attribute=value]. This is perfectly compliant CSS2, which has been around for about 8 years now, yet IE doesn't support it. So I'm gonna have to come up with a workaround.

    20. Re:Not use IE? by jbbrwcky · · Score: 1

      I agree. Don't use IE, don't develop in it, tell people on your web pages to get a decent browser. Eventually Microsoft will get with the crowd and stop trying to control standards and actually conform to them.

      Ok meds time ...

      --
      Honi soit qui mal y pense.
  3. Not Microsoft's Fault by robojamie · · Score: 4, Funny

    The true source of IE memory leaks?

    Korean outsourcing

  4. Pesty Internet Explorer Memory leak ... by weighn · · Score: 2, Informative

    here's something that helped me with this recently:

    --
    Mongrel News all the news that fits and froths
  5. Quick and dirty fix by Anonymous Coward · · Score: 3, Informative

    1. Open a new tab. Type "about:config" without quotes into the address bar and hit enter/click Go.

    2. Right-click anywhere, select New, then Integer. In the dialog prompt that appears, type:

    browser.cache.memory.capacity

    3. Click OK. Another dialog prompt will appear. This is where you decide how much memory to allocate to Firefox. This depends on how much RAM your computer has, but generally you don't want to allocate too little (under 8MB), but if you allocate too much, you might as well not do this. A good recommended setting is 16MB. If you want 16MB, enter this value into the dialog prompt:

    16384

    (Why 16384 instead of 16000? Because computers use base-12 counting. Thus 16 megabytes = 16384 bytes. Likewise, if you want to double that and allocate 32MB, you'd enter 32768.)

    4. Click OK to close the dialog box, then close all instances of Firefox and restart. If your Firefox still uses the same amount of memory, give it a few minutes and it should slowly clear up. If that fails, try a system reboot.

    1. Re:Quick and dirty fix by jrumney · · Score: 4, Funny
      Because computers use base-12 counting

      Please, tell us more about the fascinating workings of computers you seem to know so much about.

    2. Re:Quick and dirty fix by iceborer · · Score: 2, Funny

      (Why 16384 instead of 16000? Because computers use base-12 counting. Thus 16 megabytes = 16384 bytes...)

      I think you made a simple typo in this sentence. It should read Thus 16 megabytes = 1283918464548864 bytes.

    3. Re:Quick and dirty fix by gerddie · · Score: 1, Funny

      Probably that 12 is base 14?

    4. Re:Quick and dirty fix by Anonymous Coward · · Score: 1, Informative

      Because computers use base-12 counting
      Thus 16 megabytes = 16384 bytes

      (ha!)

      Mods: If this is informative, you are definitely insane.

    5. Re:Quick and dirty fix by rbarreira · · Score: 1

      Yeah, but from what I've seen, the number is supposed to be entered in Kilobytes, so 16384 is the number you should enter if you want to allocate 16 MB for Firefox.

      --

      The AACS key is NOT 0xF606EEFD628B1CA427BEA93A9CA9773F
    6. Re:Quick and dirty fix by matt+me · · Score: 1

      it's called dexidecimal 0 1 2 3 4 5 6 7 8 9 A B :P

      because 12 is a well known power of two. 2 ^ (2/3)? maybe. i can't figure out gnome calculator.

    7. Re:Quick and dirty fix by PeterPumpkin · · Score: 1

      Why 16384 instead of 16000? Because computers use base-12 counting. Thus 16 megabytes = 16384 bytes. Likewise, if you want to double that and allocate 32MB, you'd enter 32768.

      Uh...base 12? No. The answer you are looking for is that 16k kilobytes (16 megabytes) is what you want to enter, not 16 thousand kilobytes.

      A kilobyte is 2^10 (1024) bytes.

      A megabyte is 2^20 bytes, OR 2^10 kilobytes.

      So if you want 16 megabytes expressed in kilobytes (as this firefox setting wants), you take 16*2^20 megabytes, and divide by 2^10 kilobyte, giving you 16*2^10 (16384) kilobytes.

    8. Re:Quick and dirty fix by Unnamed+Chickenheart · · Score: 1

      That part isn't informative; but the browser.cache.memory.capacity thing was indeed so (if it works as it's claimed).

      There's no "Part of this was quite informative, but the submitter of this posts made a fool of himself with some obvious, dead-wrong claims"-moderation.

      --
      urd
    9. Re:Quick and dirty fix by Nintendork · · Score: 1
      Apparently, he's a real geek that made his own DuoDecimal computer. Sheesh!

      -Lucas

    10. Re:Quick and dirty fix by PagosaSam · · Score: 1

      Firefox on a PDP 8? No that's 12 bits... still expressed as 4 octals.

      --
      :q! Oh crap, not again...
    11. Re:Quick and dirty fix by Master+of+Transhuman · · Score: 1

      "Because computers use base-12 counting" /. - where a typo REALLY means something!

      Like five pages of posts as everybody demonstrates their community college math degree.

      --
      Richard Steven Hack - This sig is TOO GODDAMN SHORT TO DO ANYTHING USEFUL WITH! MORONS!
    12. Re:Quick and dirty fix by David+Gould · · Score: 1


      Yes, this new learning amazes me, Sir AC. Explain again how sheep's bladders may be employed to prevent earthquakes...?

      --
      David Gould
      main(i){putchar(340056100>>(i-1)*5&31|!!(i<6)<< 6)&&main(++i);}
    13. Re:Quick and dirty fix by DeafByBeheading · · Score: 1

      Yes. If they don't want to overwhelm users, why not just have a nested config menu hierarchy, with an "Advanced..." sub-menu offering a "More Advanced..." sub-menu, which subsequently gives an "Even More Advanced..." option, and so on...

      --
      Telltale Games: Bone, Sam and Max
  6. Has anyone used firefox? by MaGGuN · · Score: 5, Insightful

    Everytime I try to download ten things firefox goes up to 300 megs of memory usage and 99% cpu usage. And I took the screenshots to prove it.

    Frankly, I think you can find problems and features you hate in most programs of a certain size, what matters is that you find the tool for the job that you consider the best match for your needs.

    1. Re:Has anyone used firefox? by Errtu76 · · Score: 2, Interesting

      Haven't noticed the memory issue, but i can confirm the cpu usage being 99%. In my case it was caused by an embedded Flash movie on the site. As soon as i closed that (or even rightclicked within the flash movie and choose 'stop' or whatever) things went back to normal.

    2. Re:Has anyone used firefox? by molnarcs · · Score: 2, Informative
      Thanks for your comment! This has been driving me nuts. I installed firefox on various hardware, and on low and machines, it really really sucked. So I've been arguing for some time that the gecko engine (I notice the cpu-usage spikes as well) is really slow, compared to ie, opera or khtml. And always someone replied that he or she tried it, and it wasn't slow, like here. I had (and still have) little reason to doubt those comments, but they are run contrary to my own experience.

      Also, it's not on one machine, its on multiple machines running various OSs. The lower you go, the slower gecko gets. On a 533mhz machine (IBM PC 300) with 96Mb ram, firefox (and epiphany, tried both,hoping that epiphany might contain some gecko optimizations) was slower to render some pages while doing nothing else than opera was while compiling software in the background. The slowness is less pronounced on newer hardware, and curiously on windows! But I can still see it very clearly on my home pc (athlon xp 2400+ with 512RAM) if I do something CPU intensive in the background (like having multiple compiles running, downloading a huge file, listening to music at the same time). On an idle computer, you won't really see the difference, but if you have a cpu-monitoring tool running (I h ave kcpuload) you can easily notice that gecko to render the same pages with the same speed as khtml, grabs a lot more of the CPU than the latter. When those resources are scarce, it will be significantly slower than browsers built on other engines (Opera seems to kick ass along with khtml).

    3. Re:Has anyone used firefox? by Durzel · · Score: 1

      I think the first sentence of your second paragraph would me more appropriate if reworded to say:

      "Frankly, I think you can find problems and features in most programs you hate"

      Fact is - the principal of this application could be applied to any number of apps, and I'd wager there are just as many memory leaks in Firefox, Photoshop, CuteFTP or pretty much any program you care to mention.

      You could write the same app and call it a "Firefox memory leak finder", but I doubt it'd make front page news as in this case.

    4. Re:Has anyone used firefox? by MaGGuN · · Score: 1

      Yes, it is true that for things you like and cherish you learn to live with the flaws or even remain completely ignorant of them, "it's just the way it works", like women for example.

      However I disagree that you are likely to find equally many memory leaks or other flaws when comparing applications of different sizes and complexity. I am sure you didn't mean this literally and I get your point, but if I find a reason to argue and/or make a point I often find myself doing that.

    5. Re:Has anyone used firefox? by mopslik · · Score: 1

      Everytime I try to download ten things firefox goes up to 300 megs of memory usage and 99% cpu usage.

      I'm always fascinated when people get upset that a particular application uses a large amount of memory or CPU cycles. It really doesn't do you any good when your computer is in an idle state -- you're eating energy and doing nothing. If I was never supposed to use 300M of RAM, then why did I buy a 512M stick? What good is my fancy whizz-bang processor if it's looping through no-ops 99% of the time?

      Of course, if this 99% CPU usage / 300M memory consumption is causing your system to slow down while you're working on something else, then I guess it's a problem. But normally, when I'm surfing around clicking on multiple things to download, I'm generally doing only one task -- surfing. And when I am working on something else, I generally try to split things up so that I'm not downloading 10 things in the background. Maybe do 5 first, then do the other 5 later.

      Obviously, YMMV, depending on what you're doing.

    6. Re:Has anyone used firefox? by laffer1 · · Score: 1

      I understand what you mean. Firefox tends to be slower on some platforms than others. I have noticed the plugins added to the browser have a big impact on memory usage and sluggishness though. Firefox in windows occasionally crashes on me using flash, but often renders very fast. However, comparing firefox on my mac laptop to Safari or even IE often results in a big loss for firefox. The browser is slow and constantly crashes. The only OS I've never had problems in is FreeBSD 5.x. I suspect thats just the extra resources available.

      It does point to low memory causing the problem though. My desktop has 1 gig of ram, but my laptop only has 256mb of ram. It is a 1.0 release though.. it will get better. Its already better than the full bloated mozilla suite.

    7. Re:Has anyone used firefox? by MyHair · · Score: 1

      I've noticed Firefox (Windows) helping to peg the CPU when I'm doing something else on the PC when Firefox should be sitting idle in the background. It seems to compound any virus scanning activities or other file-access intensive apps like grep or gzip (Cygwin or native Windows compiled). My impression is that it's hooked into filesystem calls somehow, because if I close Firefox the other app goes much faster. I always close Firefox now before running disk-intensive tasks.

      I don't run it on Linux enough to tell if it does the same thing there.

    8. Re:Has anyone used firefox? by lisaparratt · · Score: 1

      I was under the impression most modern machines executed a halt instruction during idle time, which generally reduced their power consumption. They were then woken up when an interrupt went off to signify the beginning on the next time slice/something important happening.

    9. Re:Has anyone used firefox? by mopslik · · Score: 1

      Could be. I'm sure that there have been numerous improvements to reduce energy consumption during idle time.

      I was just commenting on the fact that lots of people see a high CPU usage while a program is running and think "that's really bad" without considering that, if you weren't using the CPU cycles for anything else anyway, then why not dedicate them to that particular program?

    10. Re:Has anyone used firefox? by molnarcs · · Score: 1
      Yeah, I noticed the memory too - that's why I haven't even tried it on 64meg machines :( WinXP is where the slowness is less pronounced (but maybe because I haven't stress tested it, I mean running cpu intensive tasks in the background), but it is there on FreeBSD (my desktop machine and the workstation I tried) and linux as well. (Slackware on my desktop machine).

      I tried several tweaks I found on the net (some specifically aimed at low end/high bandwidth machines) but they didn't make much of a difference - even though it was possible to limit memory usage. The problem is mem+cpu, in other words, it is a resource hog (which you won't notice if you run it on a more or less idle machine). Increasing memory has a huge impact on its performance, but it doesn make it on par with opera or khtml.

      Disclaimer: I don't write this because I don't like Firefox. I write it because I care about it and free software in general. I spent considerable time for writing howtos and tips for various OS software I install on the machines in the small comp. lab I sysadmin: gimp, gaim (the most popular among the users), firefox (made it the default, yet some more computer savy users put back the IE icon on the desktop, so it was not that successful), etc. Also, I have the get firefox logo on the page near my username (www.tftpanel.hu) as well as on another site I maintain. I'm afraid however, that as the feature gap b/w IE and FF closes (with tabbed browsing and all in IE 7) users would find even less reason to switch (ordinary users, no ./ readers mind you), especially if FF's performance is not on par with other browsers. There are three workstations that run FreeBSD with Blackbox and a simplified menu serving as "internet terminals" (that's how I named them so not to scare users with *nix talk). They are actually useful and well liked, but I had to install Opera on them, because they previously ran win98se (which was a nightmare to maintain), and my users only know that previously "the internet worked fine" (IE 5.x was not slow even on these machines) and now (with firefox) it doesn't (terrible load time, and clearly perceptible rendering slowdown). So firefox, after a short stay was replaced with Opera (even though opera is not a perfect solution either, because it has issues with more pages than FF).

      As sad as it sounds, sometimes only publicity of a problem convinces developers to shift gears or change attitude (like in apple vs. khtml case) - and I don't see that (negative) publicity for the slowness of ff and gecko. I see lots of apologies, and I understand that, because we care, and we want Firefox to succeed, but actually this does disservice to FF on the long run. FF devs should realize that there is a serious issue (I know they know about it, they just don't see their users clamoring for change). Then they should throw whatever resources they have (and they have more than some other, equally important open source projects) at the problem. I wait with great anticipation for 1.1, but frankly, seeing the attitude of some of their developers, I don't have high hopes - I'm thinking of criticizing khtml devs for not cutting corners and keeping correctness, compactness (only 140.000 lines?) and cleanliness of code as important as features, even though those qualities make optimizations easier.

    11. Re:Has anyone used firefox? by Narchie+Troll · · Score: 1

      It's not Gecko that's slow, it's Firefox.

      Seamonkey's Browser is very speedy and stable, even with dozens of tabs. I've never had any performance issues with it. My main computer is about the same as your home PC, but I've run it on machines as low-end as a PowerBook 3400c with decent performance.

      I haven't actually shut Seamonkey down for weeks, mind you. No memory leaks. No weird bugs.

      Firefox barely even starts up on machines that old.

    12. Re:Has anyone used firefox? by runderwo · · Score: 1

      They are talking about eating the CPU. You're talking about eating memory. Two completely different issues.

    13. Re:Has anyone used firefox? by poofyhairguy82 · · Score: 1
      So I've been arguing for some time that the gecko engine (I notice the cpu-usage spikes as well) is really slow, compared to ie, opera or khtml.

      Firefox renders slower and requires more CPU power to render pages than IE. This is true on all platforms, even my IE running in WINE in Linux displays pages in less time than in Firefox. I don't know if Safari is faster, but for older machines I know Konqueror is. Firefox loves memory and CPU and uses them both a lot. I don't think this is a gecko problem, as the newest mozilla displays faster than Firefox. For older machines I prefer to use Epiphany and Opera. The rest of the time I use Firefox because despite its resource problems it is my favorite program ever (based on looks, extensions, use of tabs in a mannor I prefer, etc.). I would never use IE again because its lack of tabs drives me nuts in seconds. I mean, I have a 2.6 GHz CPU and half a gig of RAM to mostly browse the web, so I care not if Firefox is actually using a good percent of those resources.

  7. To be specific... by Anonymous Coward · · Score: 1, Informative

    The type of garbage collection Internet Explorer uses screws up when you use ActiveX objects (e.g. XMLHttpRequest) or the DOM. More information is available from the comp.lang.javascript FAQ notes.

    Personally, unless I'm writing a web application, I say screw the users that use that substandard browser. Their browser will eat up more and more memory until they crash on some other website. This would have been fixed four years ago if Microsoft hadn't killed Internet Explorer development once they cornered the market.

    1. Re:To be specific... by mister_tim · · Score: 1

      Umm, just out of interest - but who do you write applications for? I understand the frustration at Microsoft, but it's a bit harsh to take it out on your users or customers, isn't it? I know there's the argument that MS won't patch these things until enough average users complain, but I don't think that's really the case. They know there are issues, but obviously haven't fixed everything yet for one reason or another. A few more people complaining because IE stuffs up after running your application won't make much difference. And beyond that, they'll probably blame your application first anyway.

    2. Re:To be specific... by indifferent+children · · Score: 1
      I understand the frustration at Microsoft, but it's a bit harsh to take it out on your users or customers, isn't it?

      Tobacco companies are evil, but smokers have been informed, and bear most of the responsibility for their lung cancer. Anyone stupid enough to browse the Internet with IE deserves what they get. Think of it as a non-/. kind of Karma.

      --
      Censorship is telling a man he can't have a steak just because a baby can't chew it. --Mark Twain
    3. Re:To be specific... by loqi · · Score: 1

      GP points out that memory leaks aren't exactly a smoking gun when it comes to web surfing. No one is going to know what web application is leaking memory, unless it's one they use almost exclusively.

      --
      If other reasons we do lack, we swear no one will die when we attack
  8. The cure for the plague by whatsup_will · · Score: 1

    due to this tool being out on the net, we will have more I.E. based memory leaks so that all I.E. computers stop running. Rejoice, the Internet will be free of this plague that we call Explorer.

  9. best plug for it by sl4shd0rk · · Score: 2, Informative

    would be sealing it in a cement box and chaining the lid shut. I cannot believe that after all the
    vulnerabilities, bad experiences, and poignant advice, people still continue to use it.
    The alternatives aint perfect but they are a hell of a lot better.

    "Microsoft Internet Explorer 6.x with all vendor patches installed and all vendor workarounds applied, is currently affected by one or more Secunia advisories rated Highly critical" ...

    "Currently, 20 out of 81 Secunia advisories, is marked as "Unpatched" in the Secunia database."

    http://secunia.com/product/11/

    --
    Join the Slashcott! Feb 10 thru Feb 17!
    1. Re:best plug for it by t_allardyce · · Score: 1

      without a doubt the absolute only two reasons people use IE are:

      1) because its already installed on most machines
      2) because everyone else uses it

      which by coincidence are the same reasons most dictatorships stay afloat..

      --
      This comment does not represent the views or opinions of the user.
    2. Re:best plug for it by fwitness · · Score: 1

      My brother is a high-end corporate kind of guy. He *refuses* to even try firefox. I've tried lulling him with tabbed browsing, pop-up blocking to no effect. I tried informing him about security holes, leaking memory and crashing problems to even less effect. I tried pointing out the articles in major, mainstraim news media who stress you should *absolutely not* use IE.

      Nothing. Some people love the 'it should just work' option and will continue to use it until someone fixes it. They do not, and will not understand that a product released by a company as large as Microsoft could be so horrid, and continue to be sold. In most markets this is true, you can't sell a defective product and continue to be in business. However, if no one understands, or cares, that your product is inherently broken, it'll continue to satisfy them. Especially if it's free and can't even be easily removed from your other product. /rant

      --
      -- I have fans? Wow.
    3. Re:best plug for it by aminorex · · Score: 1

      > My brother is a high-end corporate kind of guy.

      I think God likes him better than you. You should kill him and hide the body.

      --
      -I like my women like I like my tea: green-
    4. Re:best plug for it by stor · · Score: 1

      > My brother is a high-end corporate kind of guy.

      I think God likes him better than you. You should kill him and hide the body.


      Because as we all know, being a high-end corporate drone is nearing the pinnacle of human existence.

      Cheers
      Stor

      --
      "Yeah well there's a lot of stuff that should be, but isn't"
  10. Making sites not run on IE by ajs318 · · Score: 2, Funny

    Actually, it's very easy to make a site not run on IE; as the following example shows.

    <?
    if (preg_match("/MSIE/i", $_SERVER["HTTP_USER_AGENT"])) {
    header("Location: http://www.mozilla.org/products/firefox/");
    exit();
    };
    ?>
    <html>
    <head>
    <title>This site will not display in Internet Explorer</title>
    .
    .
    .
    </head>
    <body>
    .
    .
    .
    </body>
    </html>

    --
    Je fume. Tu fumes. Nous fûmes!
    1. Re:Making sites not run on IE by Anonymous Coward · · Score: 1, Insightful

      If it's that easy, then how come that code will block Firefox users too under many circumstances? Not to mention Opera users will get blocked by default.

      For a start, if you are going to send different content based upon the User-Agent header, you need to send a Vary header to indicate you are doing so.

      Short tags are non-portable too, so even your PHP knowledge is crappy.

    2. Re:Making sites not run on IE by kf6auf · · Score: 2, Insightful

      Don't be an @$$. Remember how annoying it was when people said that sites only displayed right in IE 5.5 or "better"? Yeah, you do. Did that get you to use IE? No, it didn't, unless it was your bank or something. So guess what? 90% of people won't go to your non-IE site. Period.

    3. Re:Making sites not run on IE by m4dm4n · · Score: 2, Insightful

      If the web designer is willing to go to the effort of excluding +-90% of browsers, the site probably isn't worth viewing anyway.

    4. Re:Making sites not run on IE by ceeam · · Score: 1

      Depends. If some book excludes 90%+ of readership based on some required knowledge it may still be worth reading. Like if it is some academic publication. If your site deals with... uhm, web-design or security issues you may well wish that people do the first step to continue reading. Plus - you have it wrong, it may not be "to go to the effort of excluding" but to "save the effort" of supporting not-quite-up-to-date browser technology.

    5. Re:Making sites not run on IE by Anthony · · Score: 1

      My bank upgraded it's "runs just about anywhere" net banking website. The upgrade pre-release had an annoying "we don't support your browser message". I whinged and a few days later they dropped the code. Nice bank. Thanks.

      --
      Slashdot: Where nerds gather to pool their ignorance
    6. Re:Making sites not run on IE by KiloByte · · Score: 1
      Or it's a niche site.

      The niches I can name outright include:

      • corporate intrawebs
      • highly-technical sites for non-MS environments
      • addons.mozilla.org
      For the first, the corporate policy forbids IE anyway. For the second, I don't expect kernel developers or KDE guys to come from a Windows platform. And for the third, what's the point?
      --
      The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
    7. Re:Making sites not run on IE by MrDrBob · · Score: 1

      Oh, it's much easier than that. ;)

      <?xml version="1.0" encoding="iso-8859-1"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      < html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
      <head>
      <title>I won't run on IE. I'm amazing :)</title>
      <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
      <meta name="author" content="Philip Withnall" />
      <script src="randomfoobar.js" type="text/javascript" />
      <!--The magic bit is the XML-compliant ending on the <script> tag. IE dies when it encounters this...-->
      </head>
      <body>
      </body>
      </html>

    8. Re:Making sites not run on IE by SenseiLeNoir · · Score: 1, Insightful

      When you become an Adult/Married, and havign a decent job, and move out of your mother's basement, then, maybe your views will change.

      --
      Have a nice day!
    9. Re:Making sites not run on IE by varmittang · · Score: 1
      I prefer:
      <!--[if IE]><p>Please Note: You are using a Microsoft Internet Explorer browser. To display this site as intended, you will need to use a more modern browser, such as <a href="http://www.opera.com">Opera</a> or <a href="http://www.getfirefox.com">Firefox</a>.</p>< ![endif]-->
      --
      -----BEGIN PGP SIGNATURE-----
      12345
      -----END PGP SIGNATURE-----
    10. Re:Making sites not run on IE by ajs318 · · Score: 1

      I haven't lived with my parents {whose house, incidentally, does not have a basement} since before there was any such thing as Internet banking, and I still don't see what good it is. The only benefit I can see is that you can check your bank balance online. But I already know {within a reasonable margin of error} how much money is in my account, by subtracting the amount that I have withdrawn from the amount shown in the "net pay" box on my payslip; and I also know it's not going anywhere unless I make a withdrawal. Which usually requires me to go to the bank -- or a bank, they all accept one another's cards nowadays -- and stand at the HITW machine, so I'm hardly likely to forget I've done it. After which, I can pay all my household bills in real pound notes at a post office -- which I have to walk past anyway on the way back from the bank. Alternatively, I can pay for my shopping by cheque {which, requiring a signature, is more secure than chip and PIN}; but that still requires me to go to the supermarket, so I can actually take my empty bottles and cans to the recycling centre there and bring my full bottles and cans back home.

      --
      Je fume. Tu fumes. Nous fûmes!
    11. Re:Making sites not run on IE by kmortelite · · Score: 1

      I felt the same as you for a long while. Then I reluctantly tried it, and I can't go back. Online banking rules.

      I can set up my payments so that they are paid on time, every time, without worrying. I can also easily put this information in my budget and see how I'm doing. It's really great. I can time payments so the money stays in my interest-bearing account for as long as possible and still gets there on time. Sure, it might not be much on my phone bill, but for my mortgage, that's quite a bit.

      So I guess what I'm saying is don't give it a try unless you're willing to accept the chance that you'll love it and need it.

    12. Re:Making sites not run on IE by skiman1979 · · Score: 1

      Actually I'd be willing to give it a try. However, my wife does not. Whenever I bring it up, she gets annoyed so I just leave her do it the old fashioned way.

      --
      Having a smoking section in a public restaurant is like having a peeing section in a public swimming pool.
    13. Re:Making sites not run on IE by l-ascorbic · · Score: 1
      Alternatively, I can pay for my shopping by cheque {which, requiring a signature, is more secure than chip and PIN}
      You what? How many cashiers actually look at the signature? A cheque may be marginally more secure than a signed debit or credit transaction, as at least that gets seen by the bank. Nevertheless, you can still get away with signing any scrawl. Signatures, are absurdly insecure. When I lost my Switch card a few years ago, it only took minutes before the person who'd nicked it to manage to make several large purchases with £50 cashback each time. With chip and pin he couldn't do that unless he'd managed to shoulder-surf for my pin, in which case there's worse things to worry about.

      As for your ability to mentally calculate your balance: you obviously have no direct debits, and don't make many other transactions. You may like to go through the palaver of carrying banknotes between bank and post office to pay bills. Maybe it's a nostalgia thing? Most people, however, prefer to not have to waste all of that time every month. It all seems a lot of hassle to avoid spending 5 minutes checking your transactions online, and either looking at the automated DD payments or doing them manually through BACS.

    14. Re:Making sites not run on IE by SenseiLeNoir · · Score: 1

      Ok, here it is from a Brit point of view.

      With my bank, I have 3 accounts, two savings, one current. One of the savings accounts provides a VERY good intrest rate. Online banking allows me to instantly transfer from my current account to my savings account, with the transfer occuring in seconds. Allowing me to keep as much money as possible in my Savings, and earning a lot more intrest, whilst also giving me the ability to transfer back to my current account when funds go low, something that cannot be done any other way with the sort of speed associated with online banking.

      Me and my wife do NOT share a joint account yet (for LEGAL tax reasons). SO money has to be transfered between us is done by online. Using cheques would mean that I woudl have to write a cheque, then she woudl need to find a ATM, or a bank to cash it in, and wait for the funds to transfer. Online its quick, and shows up clearly on the statement (instead of a reandom cheque number).

      I have two Credit Cards. Loads of bills (usually via Direct Debit, a sytem similar to standing orders). Via online banking, i can see when the money was taken out, and cancel any direct debit payment, without talking on the phone. Also payments to the credit cards, are done instantly, and quickly, wihtout the hastle of posting a cheque, and again, shows up clearly on the statement.

      Statements can be downloaded in CSV, Excel, Quicken or MS-Money formats.

      The bank site supports Firefox, and the bank takes some very sensible measures to protect against phishing, for example, if there is a case of many phishing emails involving the bank, they temporarily disable the ability to create new payment mandates, asking for you to phone in where they explain why, and are pretty good at explaining to the customerwhy the setting was done.

      ALso they use the login process to pass urgent security infomation, and phishing warnings.

      This doesnt mean i dont ever visit an ATM (i do need access to my money), but its need drops to simply withdrawing money/topping up my mobile.

      Also branch staff are very friendly and so is the telephone staff (who are based in the UK, and open 24x7).

      The point is, whereas Online banking doesnt replace everything, i find it a usefull component of banking, and is extremely valuable, and a must for any modern adult.

      --
      Have a nice day!
    15. Re:Making sites not run on IE by SenseiLeNoir · · Score: 1

      If your wife is any similar to my wife (and most women in the world) the best move is to simply NOT badger them. WOmen have this intristic defensive action when they are "told" to do something.

      Just go ahead and do it yourself, and she will follow, especially when you spend 3 minuites payign that bill via the computer, and she has to go out in pouring rain to find a branch.

      --
      Have a nice day!
    16. Re:Making sites not run on IE by Pollardito · · Score: 1

      i suppose one could take full advantage of the techniques that cause this IE memory leak and eventually the IE users would stop coming to your site on their own

    17. Re:Making sites not run on IE by ajs318 · · Score: 1

      You're right I don't have direct debits. They are out-and-out evil. If someone wants money out of my bank account, they can ask me to my face; and I'll fetch it and give it to them. But no way are they going to dip their own grubby fingers in. I don't have a savings account: I have a mortgage, and no savings account will pay more interest than that is costing. Not even the endowment policy that was supposed to pay it off; but fortunately the buildings insurance will cover it. If I had any amount of money bigger than loose change, it would come off the mortgage.

      If a supermarket cashier fails to check a signature and a fraudulent transaction goes through, then the supermarket is liable for the amount {and the cost probably will come out of that cashier's wage packet, by way of teaching them a lesson}.

      Shoulder-surfing for PINs is easier today with the Chip and PIN payment machines in shops everywhere, and people not properly used to the system reading their number out aloud. But if you hold a knife to someone's throat, they will gladly tell you their PIN. And while you continue to hold the knife and look menacing, your accomplice can go back into the store with the card, and a phone -- the victim's own is as good as any -- to tell you whether the PIN is good, or whether you need to increase the pressure a bit. I was almost thinking of patenting this, but the twist is that I would make a claim for a method for being robbed -- so it would be the victim, not the perpetrator, who owed me royalties. After all, you may never catch the perp, but you already have the victim, and they ought to be insured against inadvertent patent violations.

      And it's not a waste of time sticking with cash! I have to walk into town at least once a week anyway to do various stuff. I pass several HITWs and a post office. I can pay everything in cash -- you can't buy electricity or gas any other way anyway; after all, they have to have your meter key / quantum card to put the credit onto!

      --
      Je fume. Tu fumes. Nous fûmes!
    18. Re:Making sites not run on IE by nugneant · · Score: 1

      Why don't you belt the bitch across the face next time she gets annoyed? That'll shut her up and teach her to be on her rag all the time. Might fix her obseletion problem as well.

    19. Re:Making sites not run on IE by skiman1979 · · Score: 1

      actually she pays all our bills from the comfort of our house using the mail-in forms. One of us just drops it in the mail (usually me). Easier if I just have her do it, that way I save the 3 minutes of online banking :)

      --
      Having a smoking section in a public restaurant is like having a peeing section in a public swimming pool.
    20. Re:Making sites not run on IE by skiman1979 · · Score: 1

      _|_( 0-0 )_|_

      --
      Having a smoking section in a public restaurant is like having a peeing section in a public swimming pool.
    21. Re:Making sites not run on IE by Suddenly_Dead · · Score: 1

      That doesn't seem to work on the SP2 Internet Explorer. Little bar at the top tells you that it blocked some potentially dangerous thing from running, and if you allow it nothing happens.

    22. Re:Making sites not run on IE by l-ascorbic · · Score: 1
      Retailers have only been liable for fraud since chip and pin was brought in.

      Why would anyone need to go to the trouble of going into the store and using the stolen card and pin if they can just take the victim to the atm like they've always done?

      You do realise that most people don't have prepay electricity and gas, right? They pay the bills at the end of the month.

    23. Re:Making sites not run on IE by magefile · · Score: 1

      Dies how? I did this just yesterday in XHTML; it didn't die, it just didn't show anything (even View Source said it was empty). Then again, in Firefox, nothing shows up after that script tag until you have a close script tag. Which is really dumb, as that is *exactly* what self-closing tags are for!

    24. Re:Making sites not run on IE by drxenos · · Score: 1

      That because your Mommy and Daddy pay all the bills. It use to take me two hours to pay bills each week. With online banking, it takes five minutes, and I no longer go through checks, envelops, and stamps like crazy.

      --


      Anonymous Cowards suck.
  11. Um..I'll have a shot by SimianOverlord · · Score: 3, Interesting

    because it's your job?

    I don't know why you geeks have such a downer on Microsoft for writing buggy software. If it didn't, do you have any idea about how many of you would be out of a job? The capitalisation that flows from Microsofts inability to write good operating systems is immeasurable. If it worked first time - would there be any engineers?

    It's sort of analogous to cruise liners. Used to be, because ships weren't terribly well made, a clipper had a huge crew of dirty, scurvey suffering swabbers. Nowadays, you have one captain and a big computer. Currently, IT graduates, computer consultants and systems administraters are that huge crew of disease ridden reprobates, serving on the creaking, rotten, old fashioned Microsoft vessel. And all you want is to be out of a job?

    Where's the logic in that??

    --
    Meine Schwester ist sehr, sehr reizvoll - Nietzsche
    1. Re:Um..I'll have a shot by shywolf9982 · · Score: 1

      Spose you have a point on that. And, I might add, this also allows me to blame Microsoft for even my own faults. If something I write doesn't work on windows, my boss starts bitching against Microsoft instead of asking me if I'm sure I did anything wrong. I know, this encourages developers to write even more shitty programs, that doesn't work and requires other people to work on it, making the end user (which, thanks to Microsoft uber-simplified interfaces, is usually clueless) have to pay for a lot of work that wasn't really needed. I 3 uncle Bill

      --
      nbody2002:If you can read this you may be addicted to the internet
    2. Re:Um..I'll have a shot by databyss · · Score: 1

      "I don't know why you geeks have such a downer on Microsoft for writing buggy software. If it didn't, do you have any idea about how many of you would be out of a job?"

      Since this article deals with web developers... are you implying that without Microsofts buggy software, there wouldn't be an internet? There would be no browsers?

      If MS wrote quality bug-free software, there would be no internet... I see.

      --
      Hmmm witty sig or funny sig? Maybe elitest techy sig!
    3. Re:Um..I'll have a shot by Lonewolf666 · · Score: 1

      Ooh, I'm sure the dirty, scurvey suffering swabbers cursed their jobs too. Even if it pays the rent, you do not necessarily enjoy that sort of work.

      --
      C - the footgun of programming languages
    4. Re:Um..I'll have a shot by gl4ss · · Score: 1

      inefficiency doesn't create wealth.

      wealth creates free time.

      wealth creates fun. ...and you would have some other job, but you would be richer.

      --
      world was created 5 seconds before this post as it is.
    5. Re:Um..I'll have a shot by Skye16 · · Score: 1

      Actually, if it accumulates the garbage, but then moves off to another site, they'll probably just blame that site.

      Regarding writing websites that work properly under IE, despite it's flaws: true enough, but it's also possible to build a mansion at the bottom of the ocean (at least nearish to shore). Sure, it would probably cost trillions of dollars, but it's possible. That doesn't necessarily mean it's easy. : ]

    6. Re:Um..I'll have a shot by mdew · · Score: 1

      thats understandable, I've been in the same situation before where mozilla, firefox and opera would show the website perfectly, but not IE. Thus you have to find the timeconsuming work arounds :( One can only hope this will change when IE7 comes out.

      --
      http://www.fanboy.co.nz/adblock/
    7. Re:Um..I'll have a shot by zulux · · Score: 1

      And all you want is to be out of a job?

      As I've migrated my clients to better software and more robust operating system, I find that my business grows with them. Instead of spending my time patching and fixing - I spend more time programming and integrating. After migrating off of NT to OpenBSD for firewalls for example - they would ask me to firewall in users based on rank and lunch hour (port 80 would be open for all during lunch) for example.

      Just my experience.

      --

      Moneyed corporations, non-working 'poor' and criminal prisoners are turning productive citizens into tax-slaves.

    8. Re:Um..I'll have a shot by hey! · · Score: 1

      I could build websites and web applications in half the time it currently takes me.

      Which is hard to say whether it's good or bad depending on the price elasticity of demand for web development services among other things. Suppose people would buy twice as much web services at half the price -- you're pretty much at status quo. If they buy more than twice as much (say it becomes more important to the usual way people do business), then you're better off.

      If, on the other hand they buy pretty much what they do now, then there will be only half the jobs doing what you do.

      --
      Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
    9. Re:Um..I'll have a shot by crabpeople · · Score: 1

      you kind of have a point but i would really rather spend my time investigating interesting unix bugs and designing and implementing solutions than rebuilding outlook PST files for the 4th time this month. or disinfecting spyware or explaining to a user why they shouldnt ignore the helpful little triangle that says "WARNING: delayed write failed" on their primary hard disk, instead of just ignoring it and bitching that "i lost all their work" because there roaming profile didnt save to the server because their network card is flakey.

      sorry that was kind of a run on sentance

      --
      I'll just use my special getting high powers one more time...
    10. Re:Um..I'll have a shot by pebs · · Score: 1

      I don't know why you geeks have such a downer on Microsoft for writing buggy software. If it didn't, do you have any idea about how many of you would be out of a job?
      [...]
      And all you want is to be out of a job?


      Sorry, but I don't want a job dealing with Microsoft's (and other vendor's) problems. I want a job writing software that does what its supposed to. If the vendors and third party tools I depend on work without issue that makes my job and my life that much easier and allows me to deliver solutions quicker and satisfy my customers.

      I accept that, as a developer, I have to deal with all kinds of issues that arise. But I'd rather have these issues reduced to a minimum so I can spend most of my time creating, not fixing. That's one of the reasons I avoid Microsoft products when developing a solution.

      An analogy to your argument is "why do you geeks hate spyware/adware so much? you get paid to clean up the mess, don't you?" My job is not to scrub down Windows machines, and I don't want it to be, even if I was an admin. If I was an admin I would rather be busy writing utilities to automate business processes, not sitting around running adware-removal and virus programs.

      Granted, there is a demand for removing a lot of the ugliness that surrounds computing (viruses, adware, spam, insecurity), but to actually be glad that they exist so you can get paid is just idiotic, there is so much other creative work that needs to be done.

      --
      #!/
  12. First, is it a problem? by foreverdisillusioned · · Score: 2, Informative

    As I understand it, Firefox makes aggressive use of unused resources. If you're not having any slowdowns, then take a deep breath and realize that it's just doing what it's supposed to do.

    If you do have accompanying slowdowns, then you have a specific, rare problem. See the other replies you've gotten so far for suggestions.

    1. Re:First, is it a problem? by MaGGuN · · Score: 1

      You mean that when firefox stalls completely, is unresponsive after 5 minutes of waiting and consumes 99% cpu time during the whole sèance, "it's just doing what it's supposed to"? I think not. I have to kill it to fix it, hardly a design feature. It's not a single occurance thing, it is a problem I have had over several ff editions. And I can provoke it whenever I want.

    2. Re:First, is it a problem? by Secrity · · Score: 1

      "You mean that when firefox stalls completely, is unresponsive after 5 minutes of waiting and consumes 99% cpu time during the whole sèance, "it's just doing what it's supposed to"? I think not. I have to kill it to fix it, hardly a design feature. It's not a single occurance thing, it is a problem I have had over several ff editions. And I can provoke it whenever I want.

      I have never encountered this problem with Firefox and I have occasions where I have several (10 to 20) concurrent downloads running. What are you doing to provoke this behaviour, and have you reported it to the Firefox design team?

    3. Re:First, is it a problem? by Bigman · · Score: 1

      I was saving some PD J'pegs by the time-honoured right-click-save-as from an FTP site in Firefox the other day; every 30 or so pix the disk started to thrash and the system ground to standstill. This was on XP (I was at work) but I've noticed similar stuff with the Linux version at home. I assumed it was FF cleaning up the image cache but it still ain't right. It doesn't happen often enough to bother me so I'd not thought about reporting it.
      I've never had lockups/slowdowns on actual downloads, but then I'm on dialup at home so I never try more than a couple at a time!

      --
      *--BigMan--- Time flies like an arrow.. but personally I prefer a nice glass of wine!
    4. Re:First, is it a problem? by CastrTroy · · Score: 1

      It will if you try to open a 14 meg XML file. Firefox tries to parse the entire document before doing anything.

      --

      Anthropic principle: We see the universe the way it is because if it were different we would not be here to see it.
    5. Re:First, is it a problem? by Anonymous Coward · · Score: 1, Informative

      What are you doing to provoke this behaviour (sic), and have you reported it to the Firefox design team?

      Every Slashdot article on Firefox has people talking about this problem. If they design team doesn't know, then they are too far lost to be of any use. I kill Firefox about once a day. I mean kill, not quit. Many times it is far faster to relaunch the program than it is to get it to open a new tab for Google.

      The problem isn't while you are doing multiple things with Firefox. That works great. Do those things, leave a bunch of tabs open, and then minimize Firefox. Now do a bunch of file I/O and over an hour or so. When you reopen Firefox it is unusable. After minutes it will draw the screen, then when you click a tab it takes half a minute to draw that one. Try to quit and it takes half a minute to draw the "ok to close all these tabs" dialog. Drives me crazy and I'm sure it sends plenty of people back to IE.

      Don't believe me? Fine. Look at all the other people commenting here. Do you really think we are part of some grand conspiracy?

    6. Re:First, is it a problem? by Anonymous Coward · · Score: 1, Insightful

      and have you reported it to the Firefox design team?

      Have you seen how many open bug reports are in Bugzilla?

      Sure he should report it, but when there's "NEW"/"CONFIRMED" memory leak bugs from 5 years ago that are going unfixed, I wouldn't put too much work into it.

    7. Re:First, is it a problem? by packetl0ss · · Score: 1

      There is a rather long bug report open about this. Bug 76831. A workaround mentioned in it is to type: about:config in your address bar. Right-click the bottom pane, and add a new "boolean" value with the name config.trim_on_minimize, and set it to false, and then restart Firefox.

  13. Don't Bother by FellowConspirator · · Score: 4, Insightful

    If you work around a problem, it hides from the user that the problem exists. The demand to have it fixed, therefore, dissipates and developers accept the onus to repeat work-arounds everytime they deploy something. Ultimately, the browser fails to improve, and the costs of errors are passed from the vendor (Microsoft) who never fixes the problem to the public (developers that waste time with work-arounds).

    Anyway, if you write things specifically for IE -- then you've already got a more serious problem that you have to address first. There's no excuse for what you already know to be dismal practice.

    1. Re:Don't Bother by Hektor_Troy · · Score: 1

      So ... what you're suggesting is that people write webpages for IE, that don't crash is as such, but cause it to leak even more than usual, causing more and more people to be pissed off by it's horrible design?

      --
      We do not live in the 21st century. We live in the 20 second century.
    2. Re:Don't Bother by buro9 · · Score: 1

      " If you work around a problem, it hides from the user that the problem exists."

      This is VERY true.

      Which is why on my site I purposefully avoid giving a hoot that IE can't display PNG's properly.

      When I tell people to use Firefox, it's an added sense of wonder when they do and see that suddenly the images don't have grey backgrounds after all. It also helps hammer home just how cruddy the software (IE + Windows... it is an integral part of the OS afterall) that they were using actually is.

      It's the same with bugs. Providing that the bug doesn't lose me a user or breach security, I will leave the nagging ones there and let the user see it.

      Dev teams (esp. MS ones) are far proactive about fixing bugs when hordes of dumb users are complaining on their forums and community sites, than when a few geeks speak out... if we do the covering up for them, then all we're doing is prolonging the life of the bug.

    3. Re:Don't Bother by poot_rootbeer · · Score: 1

      If you work around a problem, it hides from the user that the problem exists.

      And why is that bad practice? I thought software designers are SUPPOSED to make things effortless and problem-free for the user?

      The demand to have it fixed, therefore, dissipates

      Users don't demand to have things fixed. They overwhelmingly either shrug and live with it, or they abandon your product entirely and go to your competitiors. And those that DO complain will be complaining to YOU that your site is broken, not to Microsoft that their browser is broken.

      Anyway, if you write things specifically for IE -- then you've already got a more serious problem that you have to address first.

      Only if you consider "keeping the customer satisfied" to be a serious problem. When there's money on the line, business pragmatism is ALWAYS going to take priority over technical idealism.

    4. Re:Don't Bother by Sky+Lemon · · Score: 1

      Sounds like you've never had to professionally support a large enough group of users to understand.

  14. even better by szo · · Score: 1

    if you make links that contain '\'-s. IE will convert them to '/'-s and the webserver will convert the links to 404.

    Szo

    --
    Red Leader Standing By!
  15. Will Internet Explorer 7 fix the existing leaks? by antdude · · Score: 1

    I wonder if the upcoming IE7 will even fix these existing memory leaks.

    --
    Ant(Dude) @ Quality Foraged Links (AQFL.net) & The Ant Farm (antfarm.ma.cx / antfarm.home.dhs.org).
  16. Well keep up the good work by ishrat · · Score: 1

    Please keep up the good work and maybe Microsoft will buy you. Or do we need to revert back to using netscape?

    --

    There's always sufficient, but not always at the right place nor for the right folks.

  17. Does it matter? by cablepokerface · · Score: 1

    They are after all web apps. They run on a client browser. Browser instances come and go. Client computers get rebooted. We don't really make web sites that will slurp up all the resources on the client, but if there is a small leak, I'm not too worried. (Not saying it's a good thing though).

    I guess as long a your development platform (whatever it is you use, we use .NET) doesn't leak, your app stays nice speedy and responsive. Especially with web apps, client uptime is important, but not that important.

  18. ECELLENT Work by MajorDick · · Score: 1

    I am working on a farly large asynchronous web app and , well memory leaks are the norm, I am by session end , usaually an hour, consuming some 125 meg for the IE instance.

    I will be using this on a regular basis. COOL Stuff at first glance, very cool....

  19. NOOB... by Anonymous Coward · · Score: 1, Informative

    This is very interesting, are memory leaks only a problem when running an application and the memory is returned when it closes, or is the memory gone and eventually you need to reboot?

    Where does the memory leak to?

    1. Re:NOOB... by Negatyfus · · Score: 2, Funny

      Well, the memory remains allocated to the application. The thing is, it's a programming bug. The application allocates a piece of memory but never releases it, not even when it's not needed anymore. In a managed environment like .NET or JVM, a garbage collector periodically checks whether a certain piece of code or memory is still active, and when it's not it gets "collected" (freed).

    2. Re:NOOB... by Anonymous Coward · · Score: 2, Interesting

      On un*x the memory is returned when you close the app. Usually that is the case on NT based (XP is just NT 5.1) systems as well. In Windows 9x normal memory is often returned but USER/GDI (only 64k of each) memory that has been leaked is lost until the next reboot. In Windows 3.x once USER/GDI memory is used by an app it can never be freed even if the app is very well behaved and tries to free all memory on exiting.

    3. Re:NOOB... by petermgreen · · Score: 1

      no it checks if its still referenced. depending on your design referenced does not nessacerally mean still in use.

      --
      note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
    4. Re:NOOB... by Monkelectric · · Score: 1

      For the purpose of implementing a VM referenced does mean in use :) Thats about as close to declaring intent as one can get.

      --

      Religion is a gateway psychosis. -- Dave Foley

    5. Re:NOOB... by Anonymous Coward · · Score: 1, Funny

      This is very interesting, are memory leaks only a problem when running an application and the memory is returned when it closes, or is the memory gone and eventually you need to reboot?

      Usually operating systems will free memory allocated to an application when it exists. There are probably ways to confuse every operating system and prevent this, though.

      In any case, it's generally considered bad form to ever rely on the OS to free your memory for you (at least in languages where you have to manage the memory), and leaks that accumulate in your main loop are obviously a big problem.

      Where does the memory leak to?

      If the leaked memory does not share a page with often-used memory in a separate allocation, it eventually gets push out to the pagefile. Eventually (could take a LONG time) the application will exhaust its address space and die, but it won't really affect other applications too much. (there's less virtual memory available, but you're probably in trouble anyway if you're that close to the limit)

      If the leaked memory DOES share a page with other goodies, it'll eat up part of your physical memory and ultimately lead to more heavy swapping, slowing down the machine.

      Most likely you'll end up with some combination of these two. Smaller leaks will tend toward using physical memory, larger ones (relative to the machine's page size) toward pagefile.

    6. Re:NOOB... by ScrewMaster · · Score: 2, Funny

      Normally, it leaks out onto the surface upon which the computer is resting, however I have connected some surgical rubber tubing to my computer and have thus routed the outflow into the sump in my basement, where it is periodically flushed into the rain sewer. I'm not entirely sure whether this is environmentally sound, or not, and I would appreciate anyone with more experience in proper disposal techniques for leaked memory giving me a heads up.

      --
      The higher the technology, the sharper that two-edged sword.
  20. Ships != platforms by Lifewish · · Score: 1

    Once you've built your ship, that's it. No-one's going to try constructing a small mansion on top of it, regardless of its stability.

    Bug-free operating systems and browsers, however, make it much easier and enjoyable to build fantastic castles in the air^Winternet. That's the part of the web designer's job that is actually enjoyable.

    We'll always need more software. Having a stable platform just means the work gets interesting and innovative faster.

    --
    For the love of God, please learn to spell "ridiculous"!!!
  21. RTFA by Anonymous Coward · · Score: 2, Informative

    If any of you would RTFA, you'd find that the tool doesn't address leaks in Internet Explorer: It identifies web page code that cause leaks because the developer coded poorly. It doesn't matter what browser you use, people can still write web pages that will cause it to leak memory...

    1. Re:RTFA by jhurshman · · Score: 3, Informative

      Not exactly.

      It detects memory leaks that are due to the two separate garbage collection routines that IE employs for DOM objects on the one hand, and JavaScript objects on the other. The leaks occur when a developer creates a circular reference between a JavaScript object and a DOM object, which is a very easy and natural thing to do.

      For example, this creates a memory leak in IE:

      someNode.onmouseover = function() { this.style.color = "#f00" };

      That is "poor" code only in the sense that it trips over IE's DOM/JS circular reference memory leak problem. Other browsers (e.g., Firefox 1.0.4, Safari 1.3+) handle that code with no memory leaks.

      So while it may be true that it is possible to write a web page that will cause a given web browser to leak memory, this DOM/JS problem is particularly evil because it occurs not with some obscure, complex, or malicious coding practice, but with one that is very common and natural.

      --

      Do not speak unless you can improve on the silence.
    2. Re:RTFA by shumacher · · Score: 3, Insightful

      While I don't think MSIE is inherently evil, I think I could argue that a browser that allows web pages (a resource that should not be trusted) to cause memory leaks is itself flawed. Part of the browser's job is to not expose the user to risk or instability while interpreting documents of unknown maliciousness and quality.

    3. Re:RTFA by cosinezero · · Score: 1

      Well, then perhaps you better get realistic here, because anyone can cause memory leaks in any JS-compliant browser in their own JS code.

  22. What I badly, badly want... by ceeam · · Score: 1

    I so wish that Mozilla ActiveX control were really ready to be drop-in replacement for MSIE ActiveX. So far it has issues that prevent this from happening (for once, tab key does not work in forms out of the box, or printing issues). I know that there are (probably) workarounds for those somewhere around but I'm just not all too ready to seek for those. Also - ActiveX for embedding Opera would be nice.

    Reasoning: I find that most of the apps I've been working on can benefit greatly from being done mostly in Web-style interface (you know what I'm talking about). But still they need something that you won't get right from the browser (like scanner interface or similar stuff). Having hybrid web/classic(*) applications turns out to be the sweet spot - it is easy to do, it is easy to maintain, it works mostly great (*"classic" can be Delphi, VC, or some Python/what-not toolkit, or maybe even WinForms).

    1. Re:What I badly, badly want... by Fuzzums · · Score: 1

      There seems to be an AX plugin for mozilla. Maybe it will help.

      But I'll never use it. AX opens all kinds of possibilities you don't want, like spyware and backdoors.

      --
      Privacy is terrorism.
    2. Re:What I badly, badly want... by Zontar+The+Mindless · · Score: 1

      Parent is talking about an ActiveX control that allows MSIE to use the Gecko (Mozilla) rendering engine, and not a plugin that enables ActiveX in Mozilla.

      --
      Il n'y a pas de Planet B.
  23. Worst IE hammering and flamebait article ever by Anonymous Coward · · Score: 4, Insightful
    It seems to me people are now attacking IE now from 3 major angles:

    • Memory and resource usage
    • Rendering and adhering to web standards
    • Security

    IMHO, It's laughable to mock IE for memory leaks when Firefox is X (where X > 1) times worse at sucking up and retaining memory.

    People have relentlessly said the reason IE is faster to load than IE on Win32 is because it is "embedded into the OS" and somehow brushed off this advantage in favour of it's debateable disadvantage in terms of security. What's next? Will slashdotters crying out something along the lines of "WOW! IE, an embedded part of the Windows, has memory leaks! What does that say for the Operating System? You better use Linux!"?

    IE may be guilty of having a buggy implementation of web standards such as CSS2.1 but during the browser wars wasn't it IE producing functionality that hadn't even been drafted by the W3C yet?

    Isn't that "Internet Explorer's architecture made this app fairly easy to build." as testament to the browser?

    This tool is interesing and useful for developers and I thank jgwebber for writing it as I'm sure it'll be useful even to lowly personal developers like me.
    On the other hand i'm a bit baffled as to why this article wasn't simply written as "Hey IE has memory leaks, checkout this new tool by jgwebber and see for youself. Let's discuss how sucky Internet Explorer is and cover up all the flaws in competitor browsers".

    It would have had the same effect as CowboyNeal's unnecessary "(ha!)"'s and claims of IE's "horrendous memory leak issues" without a link giving some evidence for these claims for those of us without first-hand DHTML development experience.

    I truly wasn't aware of any serious IE memory leaks..i'm going to, go off and Google for information now using the cumbersome Firefox. Any links would be much appreciated since CowboyNeal didn't bother.
    1. Re:Worst IE hammering and flamebait article ever by Epistax · · Score: 1

      If there exists Product X with an issue, and all of its competitors have the same issue, you can't just declare it moot. MSIE has memory leaks, sucks to be them. Firefox has memory leaks, sucks to be them. How about Lynx and Opera? Do they both have memory leaks just as significant? If they don't, I hardly think they'd appreciate you deciding that it doesn't matter since both IE and Firefox have them.

      In conclusion, IE has memory leaks. Nya nya.

    2. Re:Worst IE hammering and flamebait article ever by ArsenneLupin · · Score: 2, Interesting
      I truly wasn't aware of any serious IE memory leaks..

      You soon will... Even if jgwebber had the best of intentions when he wrote the tools (help Web developers write their javascript in such a way as too be easy on IE's leaky memory manager), I'm quite sure that is not what it will be used for in most cases. Quite the contrary! How long until we'll see a new flurry of "worst viewed with Internet Exploder" sites that throw your PC into a swap orgy seconds after they opened up and showed you their obgoats?

    3. Re:Worst IE hammering and flamebait article ever by dtfinch · · Score: 2, Interesting

      We have a kiosk running an html application in IE6. It uses lots of javascript and the front page reloads every couple minutes when idle. It's been running for 6 months on 64mb of ram with no issues. The same browser window has been open all that time.

      I remember one time writing a page which by accident, hit a memory leak in Mozilla (before there was a FireFox) which consumed about 1mb of ram a second. All the page did was draw a bouncing line, by creating a div for every line pixel of every frame and displaying them by setting the innerHTML property of another div. IE had no trouble with the page, except that it required some ugly hacks to make the page display correctly, unlike Mozilla, which displayed it perfectly as I had specified in the CSS, albiet leaky.

    4. Re:Worst IE hammering and flamebait article ever by redog · · Score: 1

      "Let's discuss how sucky Internet Explorer is and cover up all the flaws in competitor browsers"."

      No, it is not lets cover up all the flaws. Its lets fix them. See thats the great thing about Free(!tm) Software. Anyone one who gets annoyed enough at the flaws, and it doesn't matter if its 20 years later, can FIX them. But yea, lets discuss how sucky IE is because NOONE can(read:will) fix it.
      But they can write their own programs that detect the problems in it. Nice tool!

    5. Re:Worst IE hammering and flamebait article ever by SolidGround · · Score: 1

      I personally don't care if I can fix the code or not, that's not my job. When I encounter bugs or flaws in FireFox I'll be happy to report them and spend time with followups, but it's ultimately their problem. I don't have the time to dedicate days to track down some obscure bug in code I don't understand and then argue back and forth to get the patch into the code tree.
      So far my experience has been that there is actually very little desire to fix much of anything with FireFox or Gecko unless it's a security related issue. When confirmed bugs linger around for months without getting fixed Mozilla is really no different than any other piece of software or vendor.
      Bottom line, you're always going to be stuck with bugs that won't ever get fixed. The best you can hope for is that it's something you can work around.

    6. Re:Worst IE hammering and flamebait article ever by Mant · · Score: 1

      During the browser wars both browsers were producing non-standard extensions, Netscape came up with the Layer tag for example. IE had better non-standard extensions, giving much better control of page elements and could dynamically reflow much better.

      When the wars stopped though, so did the development, and standard stuff incomplete and buggy remained that way for years. IE4 was better then NS4, but that hardly excuses problems in IE6.

      A lot of people will have a go at IE because it is MS, and the don't like MS. On the other hand, a lot of people will have a go because it deserves it. MS has sat on IE and done nothing until another browser started to get popular. At least the Mozilla guys are working on the memory leaks, I've not seen them mentioned on any IE7 stuff from MS.

    7. Re:Worst IE hammering and flamebait article ever by mattOzan · · Score: 3, Insightful
      but during the browser wars wasn't it IE producing functionality that hadn't even been drafted by the W3C yet?

      Yes, and that was the whole damn problem.

      The point of HTML was universal interoperability (so Tim Berners-Lee's collegues could all read each other's stuff no matter what computer setup they had). But Microsoft sacrificed this in order to obtain control and market share. They encouraged web developers to use their proprietary markup, which forced people into using their browser if they wanted to access this content.

      This was not a benevolent gesture from Microsoft- it was nothing but a power-grab. Open, agreed-upon standards are the foundation of interoperability, and Microsoft always stands against this when it thinks it can monopolize a technology.

    8. Re:Worst IE hammering and flamebait article ever by poot_rootbeer · · Score: 1

      It's laughable to mock IE for memory leaks when Firefox is X (where X > 1) times worse at sucking up and retaining memory.

      Your allegations are intriguing. Do you have any empirical statistics that support your claim?

      IE on Win32 is [...] "embedded into the OS" and somehow brushed off this advantage

      Advantage? Why is it an advantage to have a userspace application inextricably commingled with operating system internals? Besides load time.

      IE may be guilty of having a buggy implementation of web standards such as CSS2.1 but during the browser wars wasn't it IE producing functionality that hadn't even been drafted by the W3C yet?

      Yes, and yes. Both of these implementation strategies are rightfully classified as Very Bad.

      There have only been a few instances in history where it was right for browsers to innovate beyond web standards due to foot-dragging by the W3C. Mosaic's IMG tag was one. The XMLHttp features are another (though Mozilla's implementation is far cleaner than IE's original ActiveX control).

      Most every other case where browser coders have spent time inventing new features out of thin air rather than aiming for compliance with existing standards is bad for the web as a whole.

    9. Re:Worst IE hammering and flamebait article ever by ClosedSource · · Score: 1

      MS was just using the model established by Netscape.

      The problem is that HTML/HTTP was great for simple hypertext web sites, but really wasn't capable of handling the interactive sites we use today. Had Tim Berners-Lee had a little more vision, many of these extentions wouldn't be necessary.

    10. Re:Worst IE hammering and flamebait article ever by pjrc · · Score: 1
      Yes, and that was the whole damn problem.

      Microsoft and Netscape introducing lots and lots of non-standard features was indeed a "problem". But to say "the whole damn problem", thus assigning 100% of the blame on browser developers, just isn't right.

      For starters, the standardization process for html was moving slowly. Or at least not nearly as rapidly as the market for improved browsers was developing, and thus exerting pressure on the browser developers to add certain features widely desired by most web developers.

      But at the height of the browser wars, the failed html 3.0 standard took far too long, attempted to achieve far too much, and largely strayed away from the then-pressing demands of wed developers.

      For example, one of the highly desired features was the ability to specify font faces and text colors. Web developers wanted this very badly. When Microsoft introduced the very shortsighted font tag, it was very well received by web developers and very widely used. Netscape resisted briefly, but ultimtely was forced to implement it because it was becoming so very widely deployed by web developers.

      Now you can try to lay all the blame on Microsoft, and perhaps netscape for following suit. Or maybe you can blame web developers for wanting this feature so very badly and immediately putting it to such widespread use in it's first available (shortsightedly designed) form.

      But I would argue that the html standards process failed to deliver what the market wanted, when the market needed it. It was no secret that virtually every web developer wanted this capability. But rather than forus on the real needs of the marketplace (web developers and users), the people involved in the standards process took a dim view of these requests. Afterall, it went against the ideals of multi-platform display. CSS was in the planning stages and that would ultimately deliver, somehow, someday, on all these desires to accurately control presentation.

      What were browser developers supposed to do. Wait years for the standards process to provide what their customers were begging for ASAP! What would you do, if you were running a for-profit company, in a tight race for a developing market against a worth competitor, customers calling up constantly begging and pleading for the same specific features.

      Yes, Microsoft was shortsighted. You can certainly call them that. They have over a decade of shortsighted history, coming late to markets and leveraging their monopoly position to take over. But to say:

      This was not a benevolent gesture from Microsoft- it was nothing but a power-grab.

      You cerainly might say that of some things they've done (especially later after Netscape went down). But back in the days of the browser wars, most of the non-standard stuff from Microsoft and Netscape was largely driven by nagging from web developers, who were in turn responding to their clients interests to provide nice looking, highly polished websites, which was in turn driven by end users.

      There's plenty of blame to go around. Microsoft has done plenty of underhanded things. In this case, made plenty of shortsighted design decisions and lots of shoddy implementation. But to put 100% of the blame on them is to utterly neglect the slowness of the html standards process and it's former disdain for the pressing needs of the marketplace during the browser wars. Microsoft and Netscape certainly did care deeply about marketplace needs.

    11. Re:Worst IE hammering and flamebait article ever by redog · · Score: 1

      "The best you can hope for is that it's something you can work around"

      You obviously practice what youv'e preached here.
      I don't care if you can fix the code or not either.
      I do care that I *can* fix the code If I do so feel like it.
      I report bugs too. Even though I don't always try to fix the problem, I don't care if my patches do get put into the program because the software is Free for me to build using MY OWN Fixes, alterations, patches, bugs etc etc...

      That is exactly my point. Not only can I not fix bugs in IE for the maintainer but I cannot fix them for myself.

  24. Re:Why should I care ? by PDAllen · · Score: 1

    Because your boss cares about selling product to IE users. If the users find bugs when your site is in their browser, they will not think 'If only I was using Firefox'. They will think 'What a piece of crap this site is, if the website is this bad I can't trust the product either, better find an alternative solution'.

    In any case, when you're talking memory leaks you have a serious case of the pot calling the kettle black - hopefully the FF leaks will be sorted sooner than the IE ones (since FF seem to care about them and God knows MS don't) but right now FF is at least as leaky as IE.

  25. Java applets on IE by GoatMonkey2112 · · Score: 1

    I've been having problems with a java applet on IE. Every time the applet reloads in the web page the memory usage increases. Until it reaches 150mb or so then the applet can no longer load and error messages pop up. I'm hoping this program will help me come up with a solution. I don't have access to the applet's source code. Ideally I would just leave the applet in place in a frame, but it doesn't seem to take the commands that it is supposed to take. Has anyone else had trouble with memory and applets in IE?

  26. Re:Why should I care ? by arkanes · · Score: 1
    On the other hand, if you're doing the kind of high end DHTML fiddling that would expose these kind of memory leaks on a customer-facing e-business site, you need to get the hell smacked out of you.

    It's worth pointing out that while FF certainly has it's share of leaks, in the *specific case* of JS garbage collection, it's much better than IE. Which is what TFA said.

  27. Not sure but.. by Blitzenn · · Score: 1

    I have a problem having someone check my code who can't spell or use proper grammer. A swift click on a spell checker sure would add a lot of credibility to some whois telling you their code will check your's for it's grammer and spelling.

    1. Re:Not sure but.. by Foolomon · · Score: 1
      A winner is you!

      I knew it! Yoda does read Slashdot!

    2. Re:Not sure but.. by KidWithTheSquid · · Score: 1

      You've got your references wrong, I think this is a pretty obscure reference to Pro Wrestling for the NES system. When you win a match, the screen shows "A Winner Is You!"

      Not to mention a green-skinned man known as the amazon who parades in red tights has a "bite-your-head" move in the game.

    3. Re:Not sure but.. by crabpeople · · Score: 1

      "A swift click on a spell checker sure would add a lot of credibility to some whois telling you their code will check your's for it's grammer and spelling."

      astounding. so when you run a spell checker over your document it makes you into a better speller? here i was thinking that the worst spellers are the ones who use spell checkers.
      oh and its GRAMMAR you stupid newbie. god damnit your an idiot man

      --
      I'll just use my special getting high powers one more time...
    4. Re:Not sure but.. by Jakeypants · · Score: 1

      "I have a problem having someone check my code who can't spell or use proper grammer. A swift click on a spell checker sure would add a lot of credibility to some whois telling you their code will check your's for it's grammer and spelling."

      You're code is all rong! Fix it plz!

    5. Re:Not sure but.. by wcdw · · Score: 1

      While I would normally agree with you, YOUR message would have had more credibility if you had used the correct form of possessive 'it' -- "its". "It's" is an abbreviation for "it is".

      And let's not even talk about the apostrophe in "yours"....

      --
      If you're not living on the edge, you're just taking up space!
    6. Re:Not sure but.. by Blitzenn · · Score: 1

      " sent by Slashdot Message System on Saturday June 04, @12:05AM

      unother (712929) has made you their foe. "


      Seems a bit childish that you would flag me as a foe simply because I made a mistake in grammar. I hope no one really pees you off or someone could die. Perhaps if you take such serious offense to grammatical errors, I do not want to be your friend. I am human and do make mistakes. How can I or anyone take anything you say seriously when you publicly display that your emotions and ego are truly in command of you and not your intellect?

  28. Re:Not true by GIL_Dude · · Score: 1

    Have fun going out of business. The rest of the developers in the world will eat your lunch. Wait until your marketing folks try to sell services to a large (50,000+ computers) company and they get laughed out of the office when they won't work on IE. Wonder who the marketing suits will come after?

  29. You're so right! by samael · · Score: 1

    After all, people haven't been working around these problems so far, which caused customers to complain and Microsoft to fix these problems- which is why Internet Explorer doesn't have any leaks any more!

  30. Re:Not true by eric_brissette · · Score: 1

    I wish I could do that... unfortunatly, I work for a University, and we have to worry about piddly things like accessibility.

    Developing only for one browser would make my job much easier.

  31. Firefox Sucks (Memory) by lseltzer · · Score: 3, Informative

    >>It's laughable to mock IE for memory leaks when Firefox is X (where X > 1) times worse at sucking up and retaining memory.

    Thanks, I'm glad someone pointed this out. My system has been up for many days now and IE and Firefox are both consuming about the same amount (90-something MB).

  32. Re:Not true by phongleland · · Score: 1

    My company and I are doing quite well, thanks. From a professional standpoint, the choice I fell I made correct for employees and customers. Every once in a while, each of us have to stand up on principal and shed our fear of losing money. Try it sometimes.

  33. What if this was Firefox by Twillerror · · Score: 1

    Would we have the same basic post. Would we have it at all?

    The post would be more like.

    "Firefox has some basic issue releasing memory in certain scenarios involving DHTML. Recently a tool has been released to help alleviate the problem until the problems are fixed."

    Do we have to act like children around here. It is a software program, not a brutal dictator.

  34. Exactly my point. by Blitzenn · · Score: 1

    I am glad to see that i made it so well.

    Now that we understand each other, may I check your code for you?

  35. Re:Not true by phongleland · · Score: 1

    ADVO

  36. The problem with IE is.... by Phil+John · · Score: 1

    ...that once Microsoft decided that it had the browser game all wrapped up it Disbanded the Internet Explorer team. This meant that a lot of long standing bugs are still present in the product, but hey, that really doesn't matter since 99% of people will still use it for years to come.

    Now that Microsoft has seen that Firefox could take their proprietary lock-in away they are starting development again.

    The thing is, Firefox does have memory leaks, but they are actively fixing them...can the same be said of Microsoft over the last 4 years with ie6? No, it can't, why should they spend money on fixing something that people use regardless.

    --
    I am NaN
    1. Re:The problem with IE is.... by RPoet · · Score: 1

      that really doesn't matter since 99% of people will still use it for years to come

      I don't know. Norway's most popular online newspaper (vg.no) today released fresh log analyses showing that only 86% of their visitors are IE users (compared to 95% one year ago). 8% use Firefox, and 5% use Opera. That may just be crazy Norwegians, though. I'd sure like to see what the numbers are for Slashdot.

      --
      "Oppression and harassment is a small price to pay to live in the land of the free." -- Montgomery Burns.
    2. Re:The problem with IE is.... by specialbrad · · Score: 1

      Slashdot wouldn't be a good example because of the technological skew here. I'm willing to bet on 40% or greater people here using firefox or opera, or possibly a small percentage using lynx even. I would like to see google's usage statistics.

    3. Re:The problem with IE is.... by cosinezero · · Score: 1

      Uhm... no. 1. MS never disbanded the IE Dev team... otherwise where is IE7 coming from?? 2. If you've ever done any serious app development you'd know that the work going into the product in the first few versions FAR outweighs the last few. Later versions of applications are often refactoring or building on your existing base. Early versions of code is where 90% of the functionality is solidified. Hence, later versions of applications usually need far less developers. 2. If you've ever taken a look at microsoft's roadmap throughout the mid-late 90's & early 2K you'd know why they needed many more developers; During that time they launched Win95 (new OS codebase), NT4, WinXP, and Win2K. Dramatically different and new OS's and APIs requiring a lot more developers at the time. With all the W3C spec changes plus all the OS changes... your team would be 2x the size it would be today.

  37. Memory leaks cause sluggishness indirectly by MikkoApo · · Score: 1

    If the OS starts to swap because one program is hogging up all the memory it will slow the machine possibly down what user will percieve as slow. Unused memory like memory leaks should be paged out from the physical memory, but sometimes (read: too often) this is not the case.

  38. Here's how. by Grendel+Drago · · Score: 1

    log_2 12 = log 12 / log 2 = 3.58...

    Man, this Google Calculator thing comes in handy.

    --grendel drago

    --
    Laws do not persuade just because they threaten. --Seneca
    1. Re:Here's how. by matt+me · · Score: 1

      so that's how you do it. didn't know that maths. thanks.

  39. Keep on hammering, nobody's listening by toby · · Score: 3, Insightful
    during the browser wars wasn't it IE producing functionality that hadn't even been drafted by the W3C yet?

    You say that like it's a good thing(!)

    "Internet Explorer's architecture made this app fairly easy to build." as testament to the browser?

    No; for some pretty obvious reasons: one obvious one being, you exclude anyone not using that particular browser. I thought everyone realised that was a Bad Thing - or maybe you haven't been one of those people who can't use their online bank because the bank decided to arbitrarily depend on IE. One can only hope that accessibility laws will put an end to such stupidities.

    It's not surprising that both browser products have memory leaks. However one could reflect deeply on the differences in responsibility and approaches to remediation. In Firefox's case - being open source - you have complete transparency; you can file a bug on it, check the bug db, or even fix it yourself (don't laugh). In M$'s case, all you can do is kiss your money goodbye and hope they fix it "one day".

    The same goes for all the rest of their system, too. It is not always obvious what a disturbing abdication of rights using a closed system is. A friend recently told me of a Visual $tudio crash triggered by a few \b backspace characters in a print statement. Not such a big deal, I thought at the time; but I found myself reflecting on his story later. Eventually the true horror of the situation sank in, which is that we have to completely trust the ability and goodwill of the vendor to deal with any and all issues in their O/S. That is no small responsibility and there is not much evidence that M$ is capable of fulfilling their end of the bargain. I would postulate, after RMS of course, that no closed and proprietary system on the scale of M$ products can be adequately maintained by one vendor. And of course maintenance becomes irrelevant when major "rewrites" are involved, such as have been prescribed by Longhr0n to fix W1ndows' fundamental ills (ref Spolsky on rewrites, Things You Should Never Do).

    The thought that one has no recourse and indeed not even any way to inspect the system one uses (livelihood, etc), is deeply, deeply disturbing, and I again have to thank RMS for pointing out long ago what a dead-end that is, and for putting in place viable alternatives.

    --
    you had me at #!
    1. Re:Keep on hammering, nobody's listening by Jakeypants · · Score: 1

      "You say that like it's a good thing(!)"

      You imply that it's bad without examples. Typical. In every case that I can think of other than ActiveX, it was a good thing!

      "you can file a bug on it, check the bug db, or even fix it yourself"

      It shouldn't be my problem to patch bugs in software written by someone else. It's my job to write code and patch bugs in my own software. It's the vendor's job to patch theirs.

      "we have to completely trust the ability and goodwill of the vendor to deal with any and all issues in their O/S. That is no small responsibility and there is not much evidence that M$ is capable of fulfilling their end of the bargain"

      OK. First, enough with "Micro$oft." Typing it like that is irritating and childish. Second, they have proven themselves capable of fulfilling their end of the bargain. What do you call Service Pack 2? Have you even used Windows since 98/ME?

      I've never been victim to any exploits in XP. I use IE as my main browser, and FireFox to test stuff I develop across multiple browsers. Both browsers have a weakness in the arena of memory leaks, according to previous comments (I've never noticed any in either browser). Enough of the FUD, troll. Nice sig.

    2. Re:Keep on hammering, nobody's listening by toby · · Score: 1
      In every case that I can think of other than ActiveX, it was a good thing!

      How is that possible - unless you are shooting for a browser monoculture?

      Have you even used Windows since 98/ME?

      I use it often enough in the course of work to know it's junk^H^H^H^H not really up to par. Of course, I prefer to use OS X most of the time. The comparison is not flattering to 'doze.

      I've never been victim to any exploits in XP.

      Nor have I - as far as I know, but how would I tell? By the sound of it, the anti-spyware is as bad as the spyware. It's so nice to have environments where one doesn't have to waste time with that nonsense.

      When did we start talking about exploits? If you want to win an argument about W1ndows it's probably best if we stay off the topic of security. Two words: Spam zombies.

      Both browsers have a weakness in the arena of memory leaks

      An obvious fact which I actually repeated in my own post.

      --
      you had me at #!
    3. Re:Keep on hammering, nobody's listening by 00lmz · · Score: 1
      In every case that I can think of other than ActiveX, it was a good thing!
      How is that possible - unless you are shooting for a browser monoculture?

      Um..., aren't extensible browsers good? I agree that web pages being dependent on ActiveX is a bad thing, but the tool in the article was a leak detector, made possible by the extensible COM architecture of internet explorer. That is a good thing (IMO). If you think that is bad, you must really hate Firefox, what with all its various extensions... Or do you think that the firefox extensions "are shooting for a browser monoculture" ?

      And by the way, Microsoft's COM architecture that makes IE so extensible (also by malware, sadly) has been one of their most successful (and most cloned) innovations. Mozilla has its own COM implementation called XPCOM to prove it.

  40. Re:Not true by WinterSolstice · · Score: 1

    Well, I work at a large company. Our system image has IE, but nearly everyone uses firefox. So many, in fact, that people say "site doesn't support firefox" when they have to send out an incompatible link for some reason.

    Priniciples are important. I'm glad you stand up for yours.

    -WS

    --
    An operating system should be like a light switch... simple, effective, easy to use, and designed for everyone.
  41. Re: Robert Love. by ThePhilips · · Score: 1

    Memory fragmentation is well known. That's true that there is no solution. But on the other side, there are technics one can employ to resist memory fragmentation.

    Check memory pools. Network equipment uses them (you expect router/gateway to run 24/7). Check Linux kernel for slab allocator. It is not ideal - but still works quite well.

    The problem one cannot solve is allocation of huge memory peice of continous memory. But on the other side, this is problem more specific to kernel.
    User space applications are much less constrained, compared to kernel space tasks. It is just question of willingness of developers to solve the problem. It is just all things will have to be splitted into manageable pieces. Unfortunately, in some cases it is just impossible (e.g. second party libraries).

    Web browser is quite complicated peice of software, with support of images, video, audio and various texts. Such changes might prove to be complicated to implement and maintain. With complications come bugs. I honestly rather relaunch Ff, rather have it crash by itself.

    But then detecting things like memory leaks is quite complicated. You cannot be sure that item has to be decallocated and will not be deallocated some time later. Memory management is lazy. And you never can be sure about it completly. Saying that you have found memory leak, by just watching memory consumption going up is of no help to developers. And is not proof of application bug.

    --
    All hope abandon ye who enter here.
  42. Serious? by JediTrainer · · Score: 1

    How come I've never run into this problem?

    Right now I'm typing on my "testing" machine at work, which is an old HP Kayak running WinNT 4, P2/450mhz with 256M of memory. I have Firefox open (with between 4 and 8 tabs, usually) and I also have Outlook open (yeah, I know - my office uses Exchange and IMAP isn't open).

    Suffice it to say, it works well enough that I never asked to upgrade this particular box. Granted, I do all my *real* work on my up-to-date speedy Linux machine (P4/2.8GHz/1.5GB memory), but I never had a problem with FF on this slower box. In fact, it runs significantly better than IE seems to.

    My home machine is also pretty low-end, an old Athlon 700mhz with 256M of memory running Windows 98 (again, I know. I just use it for browsing and email and it's good enough). Again, it runs fine there too.

    So basically I'm saying that I have three very different machines running different OSs, and I've honestly never seen an issue running Firefox. I do have issues running IE (though, interestingly it seems more stable when I run it using Wine on my Linux box than on the two Windows machines, but that could be because I appreciate that if it dies it doesn't take out the OS with it).

    --

    You can accomplish anything you set your mind to. The impossible just takes a little longer.
    1. Re:Serious? by molnarcs · · Score: 1
      I understand that - actually your experience is in line with mine :) One problem is memory: firefox needs a lot. These machines had 96Mb or below.

      Also, on windows, as I said, the problem is less visible. Moreover, if you want to see the problem, you have to do some CPU intensive task in the background (where CPU usage is more or less constant), start with a clean cache, and compare rendering some pages (especially ones with complex tables like this one. If your computer is more or less idle, and has plenty of ram (256 is fine, but if you upgrade to 512, it will be firefox where you'll notice significant perfomance improvement, especially with lots of tabs open) - you won't see much of a difference!

      To make this long comment short: gecko uses more memory and more CPU to achieve the same speed as other browsers, including IE. Plus some platforms are more affected than others (linux, bsd, don't know about the Macs).

    2. Re:Serious? by JediTrainer · · Score: 1

      I guess that would explain why it runs like lightening on my Linux box with 1.5G of memory.

      The thing is, I should have mentioned that I have FF installed on my wife's machine which is even lower-end than mine (P2/350/64M/Win98). She seems happy enough with it, although she doesn't do much on her machine besides browse a little with Winamp in the background (and maybe sometimes MS Word), so I suppose that's not a good test for what you're talking about.

      I can imagine that if I were compiling something in the background, FF would grind to a halt. On my previously-mentioned testing WinNT machine I simply don't do that. It's usually just Outlook and Firefox running. Sometimes Photoshop too. But never anything particularly CPU-intensive at any point.

      Interesting discussion. I'd definitely like to see it faster, at any rate. I'm just saying that in my particular case I haven't had any complaints. There's always room for improvement however, and I'll always be open to seeing that.

      --

      You can accomplish anything you set your mind to. The impossible just takes a little longer.
  43. Not on the to-do list by doublem · · Score: 1, Troll

    It's all about features.

    See, first you ball all of the security patches together, and have them all download, even if the user already has them. That way, because it takes longer and is bigger, they think it's a more substantial application.

    Second, you add some new features. Like stealing compression code from Stacker, MS will just steal one of the "Tabbed browsing in IE" Plugins and muck the variable names up a bit.

    Finally, you tweak the theme. You gotta make it LOOK like a new browser. This is more important than anything else. If it LOOKS the same, people will assume it IS the same. This is why the OS has gotten so much eye candy with each release, it's to make sure the users KNOW they're on a new OS by it LOOKING cooler.

    But fixing actual bugs? There's no real Return on Investment on that, so it won't be done.

    --
    "Live Free or Die." Don't like it? Then keep out of the USA
    1. Re:Not on the to-do list by RzUpAnmsCwrds · · Score: 2, Insightful

      "Second, you add some new features. Like stealing compression code from Stacker, MS will just steal one of the "Tabbed browsing in IE" Plugins and muck the variable names up a bit."

      Come on. That's a cheap shot. There is no indication that Microsoft stole any code whatsoever for IE7.

      Ever wonder why Slashdot gets the reputation of being a bunch of crazy coots? Yep, it's people like you lobbing unfounded allegations against Microsoft.

      There are plenty of valid reasons to attack Microsoft. You don't need to make shit up.

    2. Re:Not on the to-do list by spectecjr · · Score: 1

      Come on. That's a cheap shot. There is no indication that Microsoft stole any code whatsoever for IE7.

      Or that they stole any for Doublespace for that matter - that was a patent infringement dispute (and a very thorny one - both MS and Stacker had patents on the same technology) - not a copyright infringement one.

      --
      Coming soon - pyrogyra
  44. Memory leaks are no longer excusable by Julian+Morrison · · Score: 1

    I can see no sensible reason why firefox is not linked against the Boehm collector. You can use that for hunting leaks, for tidying after leaks, and for skipping the whole manual memory management hassle in the first place. I'm not sure if the Boehm collector does compaction, but a sufficiently clever "conservative" GC can also compact (some) memory.

    Nowadays the state of the art has moved on and there is no excuse, none at all, for malloc/free.

    1. Re:Memory leaks are no longer excusable by joshdick · · Score: 2, Insightful
      Nowadays the state of the art has moved on and there is no excuse, none at all, for malloc/free.

      You've obviously never done any embedded programming.

      The low-level capabilities of C/C++ are there by design. That's why it contains the keywords union and register, for example.

      What's more, if everyone jumps on the virtual machine and garbage collection bandwagons, new problems pop up. Abstractions and convienences inevitably foul up, and often lead to poor programs overall.

      The onus for performance should rest with application developers, not compiler developers. Thus, the solution here is for developers to be properly trained and then to take responsibility for such matters as memory leaks. It looks to me that that's exactly what the Firefox team intends to do.

    2. Re:Memory leaks are no longer excusable by viral-contagion · · Score: 1

      You have to start out at some point with a low level, assembly type language using constructs similar to malloc and free. Are you going to write your Java VM in Java, or your .NET framweork in C#? You have to use building blocks small enough to talk to the hardware, like c/c++ do with memory allocation, to give a foundation for higher level languages.

  45. Re:Not true by Shazow · · Score: 1

    Heh I would very much like to be with you, on the whole "dropping IE" dealie, except that I find it takes more effort to make things cross-compatable with Opera than it does with IE.

    A simple DOM-replacement function is all it takes for IE (and putting the 'var's in front of the variables). Opera simply hasn't implimented some javascript/DHTML/CSS features yet.

    - shazow

  46. Your website will be what's complained about by blakeyez · · Score: 1

    If you work around a problem, it hides from the user that the problem exists. The demand to have it fixed, therefore, dissipates and developers accept the onus to repeat work-arounds everytime they deploy something. Ultimately, the browser fails to improve, and the costs of errors are passed from the vendor (Microsoft) who never fixes the problem to the public (developers that waste time with work-arounds).

    The problem with that is that most Joe Users out there will think that your website is the one crashing their computer, NOT IE. Most people will be complaining that your website is broken, and will not be complaining on any MS forums about how Internet Explorer is leaking memory...

  47. Oh, the irony. by trezor · · Score: 1

    Using non-standard MS-HTML to promote non-MS standard-compliant browsers? You heathen!

    I bet Microsoft didn't see this coming :)

    --
    Not Buzzword 2.0 compliant. Please speak english.
  48. great idea by Trailer+Trash · · Score: 3, Informative

    But your inflammatory tone would be really cool if our open source alternative in Firefox were somehow better. Right now, Firefox is using 373M on my computer (334M resident) with three windows open, none of which have anything bigger than this /. page. Mozilla is using 279M (I'm also running it) with a single page open. Firefox usually gets up to around 600-700M over the course of 3 or 4 days, after which it generally just dies. Otherwise, I have to kill it due to its slowness.

    Why not leave IE to Microsoft; put your effort toward something you can actually fix rather than being an ankle-biting ass.

    1. Re:great idea by Rob_Bryerton · · Score: 1

      Sure you're reading the memory usage correctly? I think you're looking at virtual memory, not actual RAM being used.

      I had one window open w/3 tabs: Usage was ~42MB
      Opened 7 windows totalling ~60 tabs: Usage was ~143MB (virtual is ~512MB)

      My peeves w/Firefox on OS X are it's slow initial load time (no biggie as I leave it open) and focus issues after closing a tab...

  49. Re:Eliminate cybercrime. Eliminate MSIE. by borawjm · · Score: 1

    Couldn't you argue that the reason that MSIE is associated with cybercrime is simply because it is the most popular browser? It's equivalent to SAAB or Volvo saying that they have the safest car but, in fact, the reason that they are the safest, statistically, is because there are less of them on the road.

    Furthermore, FireFox and Opera users tend to be a little bit more advanced and experienced with computers. They can usually spot a malicious website easier where my mother wouldn't have a fucking clue, regardless of what browser she was using.

  50. Proofreading? by rrosales · · Score: 1

    You can't not run on IE You can not not run on IE, which means you can, or was this something the editor overlooked?

    1. Re:Proofreading? by Anonymous Coward · · Score: 1, Informative

      It was intentional. He meant that many web services (banks, etc.) require MSIE, so it's impossible not to use it at least once or twice. Hence, you can't not use it.

    2. Re:Proofreading? by Grey_14 · · Score: 1

      Did you by chance read past there? Where the blurb describes way's of making it run on IE properly?

    3. Re:Proofreading? by Jack+Taylor · · Score: 1

      No, "you can not not run on IE" means "you can do anything you like except not run on IE", or more simply "you must at least run on IE". So "can't not" isn't redundant, although it is slightly cumbersome.

      --
      One good turn - gets all the covers.
  51. Sorry... by gandell · · Score: 1

    But you can't. Unless you decide to stop browsing your hard drive using Windows.

    IE is embedded deep within Windows Explorer. Next time you wonder, try punching in a website into the address bar for My Computer.

    --
    Mercy was given to me by Christ...I must give the same to others.
    1. Re:Sorry... by pebs · · Score: 1

      But you can't. Unless you decide to stop browsing your hard drive using Windows.

      Yes you can. I browse my hard drive with either bash and other utilities or Konqueror ;)

      Oh, you mean if I was a Windows user...

      --
      #!/
    2. Re:Sorry... by adpowers · · Score: 1

      And I use Finder. No IE running here, and thank Jah for that.

    3. Re:Sorry... by jp10558 · · Score: 1

      Directory Opus... A43 .... There are lots of other file managers that are as good or better than Windows Explorer.

      --
      Opera, Proxomitron-Grypen,GPG 0x0A1C6EE3
  52. Re:Not true by Mant · · Score: 1

    IE still massively dominates the market. So if you actually want people to use your site (or your client does), you are going to have to code for it.

    It is nice you have an anecdote where you could ignore IE, but try it in another company, or under different circumstances and see what happens. If your boss said it had to work on IE, how much is your principle worth?

  53. Watch me by ArmorFiend · · Score: 1, Insightful
    You can't not run on IE

    Oh yes I can. When I do for-fun sites, and I need some feature like translucent PNGs, that I feel MS hasn't made a good faith effort to support, I drop IE compatiblity and put an add for Firefox on the page.

    Until many people start doing this, then suckers won't switch. And suckers are the bulk of the internet.

    1. Re:Watch me by Rits · · Score: 1

      There are more browsers that support alpha-transparency in PNGs. Actually, MSIE on Windows is the only serious graphical browser *not* supporting it. So don't forget to add those ads for Opera, Safari, Konqueror, Camino, Omniweb, Galeon, K-Meleon, etc as well.

      'Best viewed with' was evil, and still is.

      --
      If you don't like having choices made for you, you should start making your own. - Neal Stephenson
    2. Re:Watch me by ArmorFiend · · Score: 1

      If you look at the site, you'll see it has a
      "best viewed without internet explorer".
      I think that's fair.

  54. Purpose is but slave to memory --Hamlet by fm6 · · Score: 1
    You're right -- memory management can make a lot of difference. People tend to assume that pure native code is always going to be faster than VMs such as Java or .NET , because there's no interpretation layer. Which makes the common mistake of associating all performance issues with one well-known bottleneck. With big programs, getting the most out of your memory is at least as important as getting the most out of your processor.

    It's a little sad that when you raise this issue, you immediately think of .NET. Java was there first. But Sun's early Java implementations actually had pretty severe memory leaks, firmly establishing Java's reputation as a low-performance platform.

    Anyway, it's a moot point. All the major browsers are implemented in C++, which doesn't support VM-style memory management. There used to be several Java-based web browser projects, but none of them really got beyond the demo phase.

  55. HTH! by Grendel+Drago · · Score: 1

    It's equation fifteen on this page.

    Happy to help!

    --grendel drago

    --
    Laws do not persuade just because they threaten. --Seneca
  56. Re:Quick and dirty fix (Simplified number) by lcsjk · · Score: 1
    For the confused:

    It's really base 2. 12 was a typo.

    In decimal(base 10), 1 meg = (1k) x (1k)

    In base 2, the nearest thing to 1000 in decimal (base 10) is 2^10 or 1024 and that is normally called 1k when you are referring to computers (which use binary)

    So (for computers), we still say 1meg =(1k) x (1k) , but since we are referring to a base 2 munber, we are really saying 1meg = (1024) x (1024).

    Now back to the Firefox entry of 16 megabytes:

    16 megabytes = 16 x 1024 x 1024

    Firefox wants you to enter the number in binary kbytes so

    16 megabytes is entered as 16 x 1024 = 16384 kbytes.

    Just keep in mind that any time you are referring to bytes, you are referring to 1024.

  57. Limit Firefox Memory Usage by theManInTheYellowHat · · Score: 1

    I have limited Firefox's memory considerably with this:
    http://www.mozilla.org/support/firefox/tips#oth_me mcache
    user_pref("browser.cache.memory.capacity", 16000);

    I don't know of such a setting in IE but maybe there is some registry key that needs adding or tweeking.

  58. Re:Not true by phongleland · · Score: 1

    Everything you say is true. Maybe I should clarify. Most public websites do not use or even need a lot of Javascript/DOM/CSS/DHTML/XML. There is always exception such as Google Maps and Gmail. Web developer, as opposed to Web designers, mainly work on intranet applications, that supports a define number of users. My point is that, even if this number is in the tens of thousands, I don't find a lot of resistence from my customers when I force them to use Firefox. IE's dominate market share may mean something when your customer base is in the millions, as you say, under different circumstance. But IE's market share is overrated in situation where Javascript/DOM/etc is actually used, because it's much simpler to convince to users to use Firefox. Of course, I'm in the unique position in that I only have to convince a handful of people of the benefits of Firefox and they force it on their employees and customers.

  59. Re:Sick of standards weenies by ClosedSource · · Score: 1

    I mostly agree with you but I think it's best to insure that your site is the best it can be even if Javascript is disabled.

    So "AJAX" functionality should be "icing on the cake" rather than the foundation for mainstream sites.

  60. Re:Will Internet Explorer 7 fix the existing leaks by cosinezero · · Score: 1

    Actually, since a lot of the AJAX memory leaks are due to the external ActiveX XMLHttpRequest objects that Mozilla just built in to the browser, ...one might argue that Mozilla has sidestepped this issue by NOT adhering to standards by including their own XMLHttp implementation inside their object model.

    I mean, unless you can tell me which version of JS standards support XMLHttp??

  61. That's what I want by metamatic · · Score: 1

    When I read the article blurb, I immediately thought that I wanted the opposite.

    I'd like to know what features I can put on a web page that will cause IE to leak memory as quickly as possible, but not cause any harm to Firefox.

    That way I can sneak the appropriate code onto every web site I build, until people get so sick of IE running slow and swapping like mad that they switch to Firefox.

    Anyone have any recommendations?

    --
    GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
    1. Re:That's what I want by rice_burners_suck · · Score: 1
      That way I can sneak the appropriate code onto every web site I build, until people get so sick of IE running slow and swapping like mad that they switch to Firefox.

      You are a good and righteous person.

      By leveraging innovative technologies, content providers streamline compelling enterprise solutions.
      Keep up the good work.
  62. mc! by Teun · · Score: 1

    There is a Midnight Commander clone for MS Windows and it works reasonably well.

    --
    "The likes of Facebook and WhatsApp are free to those whose privacy is of zero value."
  63. Who says you can't NOT run on IE? by jms1 · · Score: 1

    My own web site does it... www.jms1.net... or for those not using IE, www.jms1.net/ie.html is what the IE people are seeing. (And before every moron on the planet decides to tell me this at the same time, I already know you can use google's cache to view the site.)

    Surely I'm not the only person out there who excludes IE from accessing their web site?

    (Self-slashdotting... is that like suicide?)

  64. huh. by coolGuyZak · · Score: 1

    I have heard the rumors that MS disbanded the IE dev team. I see them as "possibly valid". Overall, I don't care about it... I use Konq most of the time. However, I will take some time to point out a few flaws in your reasoning. :)

    otherwise where is IE7 coming from??

    Could it be that Microsoft, along with it's power to disband teams, can also put them together? Is such a thing impossible?

    If you've ever done any serious app development you'd know that the work going into the product in the first few versions FAR outweighs the last few. Later versions of applications are often refactoring or building on your existing base.

    Actually, that only applies for software that you don't plan on supporting. Software maintenance accounts for over 75% of the computer programming industry. This doesn't only include refactoring and adding/changing functionality. Finding and fixing bugs and security exploits is the most important aspect.

    Even excluding that, new standards for internet document design come out all the time. The past few years have seen the fall of HTML for XHTML, and CSS2 will be succeeded by CSS3. That alone should cause microsoft to have a full contingent of staff working on IE.

    2. If you've ever taken a look at microsoft's roadmap throughout the mid-late 90's & early 2K you'd know why they needed many more developers; During that time they launched Win95 (new OS codebase), NT4, WinXP, and Win2K. Dramatically different and new OS's and APIs requiring a lot more developers at the time.

    This point is already covered by my last paragraph--Web standards have sped up, not slowed down.

    Also, Microsoft claims to be incredably innovative, but what innovations have they touted with their browser?? None. Nada. Nothing Zip. Zilch. Zero. They haven't even add tabbed browsing in the past 4 years... (Yes, I know. IE7 has it)

    Meanwhile, let's look at how KDE has chosen to innovate their browser (I look at konq b/c I know it better than Mozilla):

    • Tabbed browsing
    • Integration with tons of internet resources -- from google to babelfish (granted, IE has plugins).
    • Integration with KWallet (KDE password manager)
    • Integration with KGet (KDE download manager)
    • Mouse gestures (via KHotKeys)
    • Text boxes that not only have their own undo & redo queue, but also save their text when you press forward & backward... and spellcheck.

    That in itself lends particularly well to the credability of the rumor.

    2 point 2's? heh. Sorry, just had to be a pedantic bastard.

  65. Problems with IE? by God+of+Lemmings · · Score: 1

    I'm yet again seriously tempted to start forcing IE to load popups saying "Your system requires one of these browsers to continue" with links to standards supporting browsers.... and perhaps load a page with a big blue question mark in the center.

    Or better yet, let them continue, but throw a warning popup that their system may become unstable if they continue... then crash IE with some trivial bit of code.... but this would take some kind of widespread grass roots movement to become effective.

    --
    Non sequitur: Your facts are uncoordinated.
  66. You can't not run IE... by Laconian · · Score: 1

    but you can not not run IE!

  67. Re:FF Solution to Speed by Teun · · Score: 1
    Sorry to say, I've tried it often but only switching it off completely cure the problem.
    After downloqading some 50-100 pics FF will lock up.

    And the problem is comparable under MS-XP and Linux (Ubuntu & Fedora)

    --
    "The likes of Facebook and WhatsApp are free to those whose privacy is of zero value."
  68. Java Garbage Collection by Iffy+Bonzoolie · · Score: 1

    Well, there is such a thing as concurrent garbage collection, which, as far as I know, is still basically experimental. The default garbage collection scheme in the Sun JVM (of which there are several) IS triggered by being unable to allocate space on top of the heap (due to its being full). When a GC is triggered, ALL threads are locked down during the GC, so nothing can be mutated which the GC goes through it's "mark" phase of flagging live objects. It then runs through the heap and compacts all the live objects, leaving all the empty space at the end of the heap. Then only at that point, does it allow the VM to continue running.

    Also the way Sun's JVM's stupid thread priority system works, a lower priority thread only executes when no threads of higher priority are "runnable", meaning they are all blocked. This makes it VERY easy to starve out lower priority threads, unless you are careful to ensure that ALL threads are in a not-runnable state - asleep, blocked, etc - periodically (hopfully when they don't have any work to do). Obviously the GC works even if you do a tight while (true) { new blah[100]; } loop in a higher priority thread.

    -If

    --
    Run a pencil-and-paper RPG campaign with your far-off friends: Gametable!
  69. Re:Not true by binary+paladin · · Score: 1

    Ignore IE? Develop for a single browser? These are very, very bad ideas.

    I'm an avid user of "other" browsers. I use more than just Firefox. I like Firefox fine, but I like Konqueror and Safari even better. Opera ain't bad either, but its quirks are too much for me to use regularly.

    Web standards are how we should focus our development and not simply on a single browser. Mind you, on the sites I develop there are often bonuses for people not using IE (:hover on things besides links being one of the most common as well as some sophisticated CSS that IE doesn't get) but everything still works and is perfectly presentable to IE.

    Force Mac users, when they have a compliant, modern browser, to use Firefox? What a joke. It might be superior in Windows, but on Macs Safari is king. It's lighter and it's WAY faster.

  70. Microsoft's innovation by jesterzog · · Score: 1

    So let's be clear where the blame belongs. Microsoft tried to innovate. They encouraged people to use the results of their innovation. And, people willingly did, thus creating the current situation.

    The most irritating part of Microsoft's "innovation" for me, when I was a web developer, was when Microsoft ensured that all of their Javascript example code in MSDN used curved brackets () for array accesses instead of square brackets []. There was no difference nor advantage of supporting curved brackets except to provide yet another way that naive developers could accidentally make their code incompatible with non-IE products.

    Trying to fix thousands of lines of co-worker's copied-and-pasted code was a nightmare.

  71. Re:Purpose is but slave to memory --Hamlet by EvanED · · Score: 1

    It's a little sad that when you raise this issue, you immediately think of .NET. Java was there first

    It's a little sad that you think of Java when complaining that he didn't think of the first. There were PLENTY of GC'd languages before Java came around.

    Java came out 1995ish. I'm pretty sure Smalltalk was GC'd, and that was from 1969. I'm pretty sure Simula was GC'd, and that was from 1964.

    So really, both Java and .Net are younglings when it comes to GC, and you complaining about him gyping Java is no less sad than him gyping Java.

  72. Re:Purpose is but slave to memory --Hamlet by Negatyfus · · Score: 1

    I didn't mean to bring up .NET first, or anything-- point is, that .NET is pretty good. It's no use denying it just because it's from Microsoft.

    I'll readily agree that Sun's first implementation left a lot to be desired. They shaped up nicely and added a lot over time. Their JVM is pretty nice these days and should be competitive with .NET. Still, .NET does most things right, as well.

    It really shouldn't matter who comes with the right technology. As far as I can see, Microsoft's solution is as open as they've ever been. It's all about the level of real implementations that are out there right now that *work*.

    I suppose that when Microsoft introduces more of their software on the .NET platform, more software will come to adhere to that frameworm, seeing as how most desktops are still run with Microsoft software. Hopefully the industry will stay competitive and technology will continue to progress.

  73. Re:Purpose is but slave to memory --Hamlet by fm6 · · Score: 1
    Java came out 1995ish. I'm pretty sure Smalltalk was GC'd, and that was from 1969. I'm pretty sure Simula was GC'd, and that was from 1964.
    You're right. In fact, the HotSpot VM, which is now Sun's standard Java VM, was originally conceived as a Smalltalk VM by Animorphic Systems. Then Sun, looking to beef up its own feeble VMs, bought Animorphic in 1997 and folded them into JavaSoft.

    But Smalltalk never got anything like the acceptance that Java got. It was just too far away from the way most programmers work. So even though there have been first-rate Smalltalk implementations from the very beginning -- and work on Smalltalk continues to this day -- it's never been a major contender as a programming language.

    Java, by contrast, made enough comprimises with C++-style programming to be quickly accepted by professional developers. Perhaps a little too quickly, because Java's reputation for poor performance was firmly established by the horrible VMs and compilers Sun released early on.

    So now .NET what people first think of when they think of VMs, because Microsoft has grabbed the ball that Sun dropped. They'll certainly drop it too, but that only makes it even more sad.

  74. There are realtime GCs by Julian+Morrison · · Score: 1

    There are GC algorithms that can be done in realtime (meaning known bounded time). They're slower, but they exist.

    Also don't assume that malloc/free are realtime! malloc/free has to traverse a free list, and will usually coalesce, sort and categorize blocks. new/delete in C++ may also run arbitrary amounts of setup or finalization. Depending how the free list is organized, deallocation order may affect performance in odd ways.

    If you're coding for hard realtime embedded apps, you shouldn't malloc. Predefine buffers or design the algorithm so it doesn't use heap.

    1. Re:There are realtime GCs by pthisis · · Score: 1
      If you're coding for hard realtime embedded apps, you shouldn't malloc. Predefine buffers or design the algorithm so it doesn't use heap.


      Not disagreeing, just clarifying:

      It's perfectly reasonable to use malloc at application startup (e.g. to create those buffers). You need to make sure you actually allocate that memory (many malloc implementations are lazy and only allocate the VM space at malloc time, but you need to touch it to actually get the pages allocated), and you should lock it in memory (along with every page you use--see, e.g., mlockall).

      And, of course, you need a hard-realtime scheduler (rtlinux, QNX, etc--there are ongoing efforts to bring hard rt responses to regular Linux, but it's not nearly there yet, nor are any other major consumer OSes).
      --
      rage, rage against the dying of the light
  75. Compacting conservative GC by Julian+Morrison · · Score: 1

    See here.

    Anything above writing your own heap allocator over raw OS calls is "a crutch". It's merely a matter of choosing the right crutch.

    File handles and network connections? That's none of the GC's business. The algorithm deals with that stuff - GC is there to save you the hassle of asking "who owns this object to delete it" and "is this pointer still good". GC lets you nest function calls in the knowledge intermediate objects won't leak. It lets you grab an arbitrary object and point to it from a data structure without worrying it will become invalid. It's not there to do shutdown housekeeping, that's a C++ism.

  76. You had 1's? We had to use litlle L's! by MarkusQ · · Score: 1

    Anything above writing your own heap allocator over raw OS calls is "a crutch". It's merely a matter of choosing the right crutch.

    Even writing your own allocator could be considered a crutch. Using a the operating system? Pshaw! Real men talk to the metal directly. C is a crutch. So is assembly.

    In short, I agree with your point completely. I've written microcode, when I had to. I've designed special purpose hardware (with the help of an EE to keep me from making too many dumb-programmer blunders) when it was needed. But 99.9% of the time I work with the strongest crutches I can find--though I tend more to think of them as power armor.

    C programmers who think they're living on the cutting edge of something should look around more.

    --MarkusQ

  77. RE: IE Leaks by JimGardner1973 · · Score: 1

    "..You can't not run on IE.." I take the point, but personally I can't imagine ever pandying to internet explorer ever again as long as I live. I couldn't care less if my "errors" cause people who use my sites difficulty, that's there look out for being stupid enough to use Windows in the first place. Buy a proper computer that runs proper software by people who know how to write good code, end of problem.

    --
    http://electricguitarlessons.blogspot.com
  78. Re:Not true by eclectro · · Score: 1

    Good call. Though it is actually saving money because of all the IE exploits you don't have to deal with it. This really is a stand that needs to be taken.

    If the website is IE only, it's not a website I will be visiting.

    I really amazes me the (unjustified) love affair some people seem to have with IE.

    --
    Take the cheese to sickbay, the doctor should see it as soon as possible - B'Elanna Torres, "Learning Curve"