Become a fan of Slashdot on Facebook


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:Why are strings passed by value? (Score 1) 339

Structurally, you have to jump through hoops to explicitly see that mutation occur (using types that don't support copy-on-write, aka not String). So answering your question, structurally, you're rarely mutating the string in place, unless the code can be certain that it's uniquely referenced. Since you aren't mutating in place, any other threads with a reference, end up still pointing at the static previous data.

In your example: thread A wouldn't successfully change S. instead, it would create S-prime, and thread B would still be pointing at S.

In the code though, thread A can have syntactically nice methods that look like they're mutating, but they only actually mutate the same memory, if it's uniquely referenced. If it's not uniquely referenced, the underlying system performs the copy-on-write, before then mutating the new, uniquely referenced object.

Comment Re:It's not innovation, it's the market (Score 2) 266

Honestly, this shouldn't be a big debate should it? If you have any user generated content at all, you're going to want emoji and and other language support. Might as well pick UTF-8. Heck, it's really easy to use in many common programming languages these days. We now know more about the right abstractions to use when building APIs, and every year they get better.

Comment Re:Kittens? (Score 1) 260

Also, Google gets to keep the boxes for over 100 hours, and you'll only be guaranteed to have power for 100 of those hours, and they make no guarantee of the storage conditions when it's not being tested, so if you want to have a living kitten at the end of it, you may need to do a lot of work.

Comment Re:Fail by all posters so far on the issue (Score 1) 692

I think we might be past simple vandalism. A couple busted windows and some graffiti is annoying but certainly doesn't seem enough to reverse the current gentrification trend. People nearly have walled gardens at office and home. There's enough interest and money around now that I bet it's more likely that people will figure out how to pay the cops to hang around the affected areas. More vandalism will just lead to more walled gardens, and if the cops don't enforce the law in broad daylight, no regular residents will be safe, either.

Comment Re:Fail by all posters so far on the issue (Score 1) 692

The grandparent post was hidden for me so I didn't see it till now. I get your point. It is a curious post.

I think vandalism is a curious response to gentrification, it's like celebrating baseball wins by setting busses on fire, it just makes your own neighborhood worse :(. I count myself among the many people who would love to live in SF but can't justify the cost. Many people make the point that rent-control is great, but clearly the demand is high enough that the artificially restricted housing supply leads to ridiculous purchases of existing buildings just to destroy them and replace with condos that can never be rented. If taller buildings could be built, or the rent across the city could evenly rise, a few people might be priced out, but the interest in living in SF would be balanced across all housing. Is that a better idea than the mess we're in now?


Emscripten and New Javascript Engine Bring Unreal Engine To Firefox 124

MojoKid writes "There's no doubt that gaming on the Web has improved dramatically in recent years, but Mozilla believes it has developed new technology that will deliver a big leap in what browser-based gaming can become. The company developed a highly-optimized version of Javascript that's designed to 'supercharge' a game's code to deliver near-native performance. And now that innovation has enabled Mozilla to bring Epic's Unreal Engine 3 to the browser. As a sort of proof of concept, Mozilla debuted this BananaBread game demo that was built using WebGL, Emscripten, and the new JavaScript version called 'asm.js.' Mozilla says that it's working with the likes of EA, Disney, and ZeptoLab to optimize games for the mobile Web, as well." Emscripten was previously used to port Doom to the browser.

Misconfigured Open DNS Resolvers Key To Massive DDoS Attacks 179

msm1267 writes with an excerpt From Threat Post: "While the big traffic numbers and the spat between Spamhaus and illicit webhost Cyberbunker are grabbing big headlines, the underlying and percolating issue at play here has to do with the open DNS resolvers being used to DDoS the spam-fighters from Switzerland. Open resolvers do not authenticate a packet-sender's IP address before a DNS reply is sent back. Therefore, an attacker that is able to spoof a victim's IP address can have a DNS request bombard the victim with a 100-to-1 ratio of traffic coming back to them versus what was requested. DNS amplification attacks such as these have been used lately by hacktivists, extortionists and blacklisted webhosts to great success." Running an open DNS resolver isn't itself always a problem, but it looks like people are enabling neither source address verification nor rate limiting.

Comment Re:Still waiting for a real Linux virus (Score 1) 187

Do you count PHP Worms? Linux runs many webservers that spread various kinds of php worms and spam machines.

The exploits were in poorly configured PHP instances, and poorly written PHP applications, but even if those worms didn't care what OS their server was running, the worms still technically ran on linux (at least some of the time).

Comment Re:Why Apple is good (Score 4, Insightful) 715

Dude, the whole job of software is to "hide messy reality from the user", otherwise the user would still be doing everything by hand. We have a fantastic device that can do many millions of things faster than a human can do one. Don't get me wrong, Apple certainly errs on the side of over simplification and preventing power users from configuring what they want. But building in systems that permit users to avoid worrying about external(to them) complexities is nearly the whole point of what we do.

I also disagree with your statement that the "fallacy of equating an assumed incomprehensible complexity with uneeded complexity is what's killing growth in technology". On the other hand, I totally agree with your subsequent statements surrounding what Developers *should do*, however I see no evidence of the drain on growth in the market.

If there is a market (money) need for the power user UI, the market will eventually produce it barring severe ongoing shortage of qualified engineers. When there is a shortage of workers, they will pick to work on either the most exciting, or the most profitable targets.

Power-User UI is what you expect from internal tools. The software industry's infancy was basically *internal tools* packaged and dumped into the market. The fact that power-user UIs are disappearing (are they? -- at least in relative concentration vs simpleton UI) is a symptom of the maturation of the software industry, for maximizing breadth of reach. The unnecessary sharp edges of Power tools are what gets polished and removed as various products improve.

Physical analogy: Circular saws usually have a finger guard around the blade these days. The finger guard does sometimes get in the way of work. Is this a sign that the tool has been dumbed down? Or that the design was polished for market appeal? Internal tools get the job done at the expense of such polish. Published tools in a mature industry have exactly the sharp edges they need for the people they are selling to.

Comment ngmoco:) (Score 2) 435

If you are looking in SF or the bay area, you'll definitely find a job. Be sure to specify what you actually want to do. Be honest about your transition, and explain your desires. That way, you shouldn't have people trying to force you into the activities you're no longer interested in.

My company is hiring: and on my team we've recently had other engineers transition back from more marketing-focused jobs into day-to-day coding.

Contact me if you want to chat.

Slashdot Top Deals

Work is the crab grass in the lawn of life. -- Schulz