Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:Javascript is becoming an assembly language (Score 2, Interesting) 258

I agree that Javascript is quickly becoming an assembly language. GWT (the tooling Google used to get Quake running in Javascript) is exactly that. Java code is compiled to "native" Javascript.

Although, what you say about browser oddities is largely irrelevant with the usage of toolkits like jQuery, Prototype, Dojo, etc. Instead of targeting the Javascript DOM API, you target your toolkit's API. The DOM API is the part that differs between browsers, except for a few very rare cases. Targeting a toolkit's API is a thinner way to abstract the differences between browsers instead of inheriting the overhead of compiling one language to another before running against a machine. For instance, managing C++ pointers in a language with built in garbage collection is probably not the most performant process.

Additionally, there is a subset of the actual language that some consider the "good part" from which you can also target at the language level. This is a great book about how to do that:
http://oreilly.com/catalog/9780596517748

Image

Disputed Island Disappears Into Sea 460

RawJoe writes "India and Bangladesh have argued for almost 30 years over control of a tiny island in the Bay of Bengal. Now rising sea levels have ended the argument for them: the island's gone. From the article: 'New Moore Island, in the Sunderbans, has been completely submerged, said oceanographer Sugata Hazra, a professor at Jadavpur University in Calcutta. Its disappearance has been confirmed by satellite imagery and sea patrols, he said. "What these two countries could not achieve from years of talking, has been resolved by global warming," said Hazra.'"

Comment Re:amazing! (Score 1) 365

You can import class files compiled from other languages such as Scala, Jython, etc.

http://blog.headius.com/2009/08/return-of-ruboto.html
http://www.scala-lang.org/node/160

With Java's built in support for dynamic languages, and a little more time, you'll able to compile any language of your choosing into a .class that can be used in Android.

Comment I don't get to choose my body's operating system. (Score 1) 577

The difference between Health Care and Computer Security is that I don't get to choose my body's operating system, and I have limited control over the hardware and software in my body (short of diet, cleanliness, and exercise, but not genetic issues, or living “malware” from other humans). If I have a living virus, I need to clean it, else spread it to others and then die. On the other hand, a computer virus is not a life or death problem, and some users chose to run systems that are more susceptible to viruses only because it is more convenient or the cost to learn is too high for them. In other words, the opportunity cost associated with being completely virus-free is higher than the value of the convenience of not having to be bothered worrying.

The free market is fully capable of controlling viruses in computers up to the extent that it feels that they need to be dealt with. Government-sponsored virus cleaning will attempt to completely eradicate viruses at all cost (or whatever cost it deems necessary). While we have the same issues with health care, I think more people can agree that the life of a human is a lot more worth the extra work than the life of a machine or network. A certain acceptable level of community virus activity is cheaper than attempting to completely eradicate viruses or the cost of a bureaucracy that attempts to control that activity.

Government

Leak Shows US Lead Opponent of ACTA Transparency 164

An anonymous reader writes "Throughout the debate over ACTA transparency, the secret copyright treaty, many countries have taken public positions that they support release of the actual text, but that other countries do not. Since full transparency requires consensus of all the ACTA partners, the text simply can't be released until everyone is in agreement. A new leak from the Netherlands fingers who the chief opponents of transparency are: the United States, South Korea, Singapore, and Denmark lead the way, with Belgium, Germany, and Portugal not far behind as problem countries."

Comment Algorithms, Patterns, Refactoring (Score 2, Informative) 293

If you want to work in the real world, writing software, you're going to have to speak to other engineers about what you are doing at a level of abstraction higher than "for loop" or "switch statement". You'll want to talk about algorithms and even more commonly, patterns. You may already be familiar with "tree" and "linked list" so you're off to a good start. But, in the future, you'll find yourself saying: "This is a visitor", "this is a controller", "this is a command pattern", etc. The current "bible" of these patterns is known as the Gang of Four book:
http://www.amazon.com/Design-Patterns/dp/0201633612

That one is a hard read. I understand that a more digestible book is this one:
http://www.amazon.com/Holub/dp/159059388X/

Two other routes you will want to go down is that of algorithms, like you already mentioned, and refactoring. Algorithms are the most common next step in College, so it might be wise to do that before patterns and refactoring, but I don't think either is a prerequisite for the other. But, knowing what "Big O notation" is, and understanding why a divide and conquer sort is so fast is helpful in your career.

Finally, refactoring seems to be the hidden art of writing good code. So few programmers really understand how to refactor bad into good. This advanced topic will be what sets you apart from the other engineers you compete with for a job. This one is a good "bible"
http://www.amazon.com/refactoring/dp/0201485672

Graphics

NVIDIA Shows Off "Optimus" Switchable Graphics For Notebooks 102

Vigile writes "Transformers jokes aside, NVIDIA's newest technology offering hopes to radically change the way notebook computers are built and how customers use them. The promise of both extended battery life and high performance mobile computing has seemed like a pipe dream, and even the most recent updates to 'switchable graphics' left much to be desired in terms of the user experience. Having both an integrated and discrete graphics chip in your notebook does little good if you never switch between the two. Optimus allows the system to seamlessly and instantly change between IGP and discrete NVIDIA GPUs based on the task being run, including games, GPU encoding or Flash video playback. Using new software and hardware technology, notebooks using Optimus can power on and pass control to the GPU in a matter of 300ms and power both the GPU and PCIe lanes completely off when not in use. This can be done without being forced to reboot or even close out your applications, making it a hands-free solution for the customer."
PlayStation (Games)

PS3 Hacked? 296

Several readers have sent word that George Hotz (a.k.a. geohot), the hacker best known for unlocking Apple's iPhone, says he has now hacked the PlayStation 3. From his blog post: "I have read/write access to the entire system memory, and HV level access to the processor. In other words, I have hacked the PS3. The rest is just software. And reversing. I have a lot of reversing ahead of me, as I now have dumps of LV0 and LV1. I've also dumped the NAND without removing it or a modchip. 3 years, 2 months, 11 days...that's a pretty secure system. ... As far as the exploit goes, I'm not revealing it yet. The theory isn't really patchable, but they can make implementations much harder. Also, for obvious reasons I can't post dumps. I'm hoping to find the decryption keys and post them, but they may be embedded in hardware. Hopefully keys are setup like the iPhone's KBAG."

Comment Why AOL Yahoo, Hotmail and maybe even GMail (Score 1) 1049

I don't understand why AOL is ripped on so much in the community. AOL mail supports unlimited IMAP/POP3/SMTP storage. REAL IMAP. REAL.

For those of us who prefer non-web-based mail readers such as Thunderbird or mutt (for their speed, configurability, or better offline-support), full and complete IMAP is a MUST. Gmail supports the IMAP protocol, but the mapping between tags and folders is so disparate that I find it completely useless.

Earth

Minnesota Introduces World's First Carbon Tariff 303

hollywoodb writes "The first carbon tax to reduce the greenhouse gases from imports comes not between two nations, but between two states. Minnesota has passed a measure to stop carbon at its border with North Dakota. To encourage the switch to clean, renewable energy, Minnesota plans to add a carbon fee of between $4 and $34 per ton of carbon dioxide emissions to the cost of coal-fired electricity, to begin in 2012 ... Minnesota has been generally pushing for cleaner power within its borders, but the utility companies that operate in MN have, over the past decades, sited a lot of coal power plants on the relatively cheap and open land of North Dakota, which is preparing a legal battle against Minnesota over the tariff."

Comment PasswordMaker (Score 1) 1007

PasswordMaker is a great way to hash a master password with the URL of the website you are visiting. You only need to remember one or a few master passwords and have access to PasswordMaker. Passwordmaker supports several different hashing algorithyms as well as lots of other options, so you can customize the security of your passwords.

There's a firefox extension:
https://addons.mozilla.org/en-US/firefox/addon/469

There's an open source javascript passwordmaker for when you are on the road, it runs completely client side - and you can self-host it if you are paranoid:
http://passwordmaker.org/passwordmaker.html

And, theres an Android app in the Market as well.

Comment Re:Touch typing is irrelevant (Score 1) 705

You'd be surprised. Touch-typing doesn't just teach "how to type fast and accurately", it also teaches "how to type with minimum strain on your hands/wrists".

If this hasn't affected you, you're lucky. If this has, you know exactly what I mean.

I'm not entirely sure that that's true. Shouldn't you use your pointer and middle finger more and your small and ring fingers less that what touch typing teaches to reduce strain? My understanding is that touch typing is for speed and accuracy, and may actually INCREASE strain because so much emphasis is placed on the smallest and weakest fingers to do the majority of the reaching.

Slashdot Top Deals

Any program which runs right is obsolete.

Working...