Please create an account to participate in the Slashdot moderation system


Forgot your password?
DEAL: For $25 - Add A Second Phone Number To Your Smartphone for life! Use promo code SLASHDOT25. Also, Slashdot's Facebook page has a chat bot now. Message it for stories and more. Check out the new SourceForge HTML5 internet speed test! ×

Comment Re: please use a password manager.... (Score 1) 81

Doesn't even require Safari - there's a password assistant built into the OS, even though it's not exposed as an application.

For those wanting more than a vague hint: it's in the Keychain Access app. The New Password Item menu item brings up a dialog box that lets you generate a password matching various criteria.

Comment Re:Slower than what reference point? (Score 1) 242

I disagree with rarely obvious. For example, I've inherited C# code before where the code performs thousands of type conversions in a loop - i.e. string to integer, and does so using a method that throws an exception (i.e. Int32.Parse) when there are exceptionless alternatives available (i.e. Int32.TryParse).

In cases like this is simply obvious that the exception throwing and catching solution is wholly sub-optimal, it's performance is worse by several orders of magnitude, with no benefit to be obtained whatsoever - it's not even more readable, or more maintainble, it's just outright bad.

This is just one example, but there are many cases I've seen over the years where there is just an objectively superior way of doing things that can save on all resources - CPU, memory, and improve by all metrics - readability, maintainability, security.

Mostly, these problems arise because of inexperienced programmers such that an experienced programmer can implement an all-round superior solution.

Comment Re:Plans for Planes (Score 1) 79

People used to think that, so Concorde was built, but it turned out that not very many people thought speed was enough of a problem to actually pay for it.
London to Paris is less than 350 kilometres.
Even a plane flying at 350 kilometres per hour or a bit less is going to take less time getting from one to the other than driving a car across either of those cities.

Comment Re:No thanks (Score 2) 85

neither of them are serious text editors for power users.

No but it's a good example of drastic changes to a functioning piece of software that leave some users unimpressed.

Comment Re:Finally, I can switch to Gnome! (Score 1) 85

There is a thing called "mwm" which stands for the motif window manager.
Given how sloooooooow gnome can be at times despite using video acceleration hardware to attempt to make up for poor coding (problably in gtk and not the actual window manager) it's tempting to use almost anything else other than gnome once you have a few windows up.
While the idea seems to have been to sacrifice speed for shiny it falls well behind on both to things like Enlightenment.

Comment Re: A Very Old Performance Problem, Mostly Forgott (Score 1) 242

Every numerical methods text involving a scientific math library has warnings about the array-transposition bug. Huge math optimization work has gone into dealing with it. The problem is much worse in modern super-computers than in the older computers. In the old computers, memory accesses were fairly predictable. New supercomputers are clusters of computers. Each node can only hold a small section of a large array, and communication time is often a function of both the distance between nodes in hops and total communication load (saturated interconnects).

Huge work goes into figuring out how to do array operations in a fast manner. The work often becomes highly application dependent. Find special short-cuts that apply to particular matrices that allow one to make use of special theorems.

Comment Re:The devil needed an escape route (Score 1) 279

Whoever the small number of Stratfor people clipped those articles from should be congratulated then.
They are no more original than Slashdot and are in the same sort of business of collating information from other places.

Being able to see the future that others can't

Others saw the future and they relayed the message. Your local newspaper would have more employees than the 100 that Stratfor reported as their peak staffing level.

Comment Re:Losing Battle (Score 1) 242

Using SSE on an Intel processor is not always "the fast" an optimization due to the "special cases." For example:
- Does the processor have SSE?
- Is the target class guaranteed to fit inside one-page? If you can't guarantee the n-byte class fits cleanly inside a page boundary, then doing a 2^n byte copy could cause a page fault.
- What is the page length anyways? It varies - more special cases.
- What does the C/C++-standard say? Have you considered unions of structs with class wrappers? Just because any "good" programmer wouldn't do it, does not mean that these code sequences aren't used in production. MFC wraps the Windows API in an interesting ways.
- Is the operation likely to be bandwidth limited? Essentially, the main memory is bandwidth limited on a modern Intel processor. As such, when doing copies, the code with the smallest number of main-memory accesses wins. Which piece of code is fastest can be really non-obvious when caching effects and misaligned accesses are considered.
- The "string" MOV assembly instructions are so frequently used in Intel assembly, that the processor is heavily optimized to do them. This gives SSE such a minimal advantage that you need to know that the code your are writing is the special case where the SSE optimization is valid.
- Compiler/programmer debug time factor. Is this optimization so incredibly specific that it depends on classes of exactly the correct sizes? Overly specific optimizations can cause numerous problems. For instance, the optimization may be wrong. The optimization may be correct, but it induces unsuspected bugs (say in code involving specific-sized unions, structs and classes.) The optimization may be indecipherable - other programmers may waste tremendous amounts of time on subtle compiled code changes.
- Finally, is this optimization a better than other potential optimizations? There are lots of possible optimizations.

Comment Re: Thanks Hillary! (Score 1) 107

No, that's what people don't understand. CU wasn't some general-purpose corporation, it existed just to pool resources to run a political film. That ruling did not allow normal corporations to buy political ads.

If you allow newspapers to run political commentary at all, then the very rich can get their message across by simply buying the whole thing.

Another point the court made is that the New York Times is a corporation, and does quite a bit of political speech, as directly permitted by the 1st. Do you really want the government saying this corp that exists to publish speech can publish political speech, but that corp that exists to publish speech cannot? That would be the end of free speech.

Slashdot Top Deals

About the time we think we can make ends meet, somebody moves the ends. -- Herbert Hoover