Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror

Submission + - Apple announces new programming language called Swift

jmcbain writes: At WWDC 2014 today, Apple announced Swift, a new programming language. According to a report by Ars Technica: "Swift seems to get rid of Objective C's reliance on defined pointers; instead, the compiler infers the variable type, just as many scripting languages do. ... The new language will rely on the automatic reference counting that Apple introduced to replace its garbage-collected version of Objective C. It will also be able to leverage the compiler technologies developed in LLVM for current development, such as autovectorization. ... Apple showed off a couple of cases where implementing the same algorithm in Swift provided a speedup of about 1.3X compared to the same code implemented in Objective C."

Comment Incorrect Timescale (Score 5, Insightful) 189

One CPU cycle as one second might be a good metaphor for computer memory but not AI. It's closer to the equivalent of a neuron firing in the human brain, then it is to 1 second of human time. Human speech takes more than one neuron to fire, and it would take way more than one CPU cycle to process. An AI algorithm which is processing data, and analyzing it would literally take millions or billions of cycles most likely to do the most basic things. While no doubt speech recognition has gotten much faster, it is still and probably will always be a massive undertaking for a CPU to do, as opposed to say adding two 32-bit integers.

Comment Re:Code Complete by Steve McConnell (Score 1) 352

Yes this book (the 2nd Edition) is indeed something everyone should read. As is The Pragmatic Programmer, Gang of Four Design Patterns ( but initially I found it a bit terse, so Head First Design Pattern was a good initial grounding for OO), as well as whatever seminal books there are for your language of choice. For instance Effective C++ or Effective Java.

Comment Populism (Score 0) 245

While I can see the allure of being very responsive to voters, this seems to be a potentially dangerous idea. By being very receptive to voters immediate desires, voters who by and large are not informed enough to make good decisions, it seems like we could very easily be stuck in both political standstill or trap where required actions could not be taken. If the logic end of your idea is that more candidates should be doing this, it seems we could very quickly become paralyzed.

Comment I did something like this for a first year project (Score 1) 188

I did something like this for a first year project, it involved charged particles which obeys a similar inverse square as gravity does for determining position. You basically had a fixed set of charges, that users could toggle to be between {-8,-4,-2,-1,0,1,2,4,8} * K, then you'd hit start and you'd try to get the puck to go to the goal (It was very much based on this: http://phet.colorado.edu/en/simulation/electric-hockey). It involved basically looking at F_x (the force applied in the x direction, from every other point). F_y (the force applied in the y direction, from every other point). When you sum these up you get an instantaneous picture of the scene, that is you know it's position, and you know the forces acting upon it. Then I believe I used a technique called Runge-Kutta which gets me a prediction, of where it would be in a small time slice, (say 1/20th of a second), so I moved the particle there and repeat (This was all done in Java AWT I believe). All in all it was fairly straight forward, and gave the user the experience I think you are looking for.
Security

Submission + - Aussie researcher cracks OS X Lion passwords (delimiter.com.au)

daria42 writes: Thought your Mac was secure running Apple's latest operating system? Think again. Turns out that in some respects Lion is actually less secure than previous version of Mac OS X, due to some permission-tweaking by Apple that has opened up a way for an attacker to crack your password on your Lion box. The flaw was discovered by an Australian researcher who has previously published a guide to cracking Mac OS X passwords. Sounds like Apple had better get a patch out for this pronto.

Submission + - Best Smartphone Plan for Vacation in the US

SJrX writes: I am planning on visiting the Pacific Northwest for several weeks, and was looking for the best smart phone option available. Roaming Data rates and SMS rates are ridiculously high (best plans are $0.80 / MB, and $0.75 / message). Beyond AT&T, Verizon Prepaid are there any other options (I'm on an iPhone 4 so GSM is a must), I assume in the US, I have no credit history for which to qualify for a plan, and a contract is obviously out of the question. Data and SMS are the only important things with a few hundred minutes being plenty. I'm only planning on being in the US for 2 or 3 weeks, but mainly in rural areas (US Route 101) so large (3G) coverage is important.
Wireless Networking

Submission + - What's killing your Wi-Fi? (pcpro.co.uk)

Barence writes: "PC Pro has taken an in-depth look at Wi-Fi and the factors that can cause connections to crumble. It dispels some common myths about Wi-Fi problems — such as that neighbouring Wi-Fi hotspots are the most common cause of problems, instead of other RF interference from devices such as analogue video senders, microwave ovens and even fish tanks. The feature also highlights free and paid-for tools that can diagnose Wi-Fi issues, such as inSSIDer and Heatmapper, the latter of which maps provides a heatmap of Wi-Fi hotspots in your home or office."
Idle

Submission + - Geekiest marriage proposals ever (networkworld.com)

carusoj writes: Just in time for Valentine's Day, here's a collection of marriage proposals done in true geek fashion — from hacked video games, to an iPhone app, to CmdrTaco's own 2002 proposal here on Slashdot.

Submission + - Java Floating Point Bug Locks-Up Servers (exploringbinary.com)

An anonymous reader writes: Here we go again: Just like the recently-reported PHP Floating Point Bug causes servers to go into infinite loops when parsing certain double-precision floating-point numbers, Sun/Oracle's JVM does it, too. It gets better: you can lock-up a thread on most servers just by sending a particular header value. Sun/Oracle has known about the bug for something like 10 years, but it's still not fixed. Java Servlet containers are patching to avoid the problem, but application code will still be vulnerable to user input.

Rick Regan has the story at http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e-308/

Facebook

Submission + - Feds settle case of woman fired over Facebook site (sltrib.com)

Mr.Intel writes: Employers should think twice before trying to restrict workers from talking about their jobs on Facebook or other social media.

That’s the message the government sent on Monday as it settled a closely watched lawsuit against a Connecticut ambulance company that fired an employee after she went on Facebook to criticize her boss in 2009.

Idle

Blogger Sued By Restaurant For Bad Review 166

Voulnet writes "A recently opened Benihana branch in Kuwait sued 248am.com, a well known Kuwaiti blog, for posting a bad restaurant review about its food, asking for the blog to be shut and more than $17,500 in damages (5000 KD). Kuwaiti bloggers everywhere have announced their support for the reviewing blogger; even though it is highly unlikely the restaurant will get anything from the court, since journalists are almost always favored in libel cases in Kuwaiti courts. It seems Benihana hasn't heard of Cooks source magazine."

Slashdot Top Deals

One picture is worth 128K words.

Working...