Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Comment Re:Forgive my ignorance WAS:re: Garbage collector? (Score 1) 587

There's no need. There are no segementation faults in Java. There's no way you can access memory you don't own. And then, any error just provokes an exception, which can be catched.

You are right that Java model help with the need of having finer-grain-than-a-process security. It's partly because it was made for applets. Java supports running safely completely untrusted code.

And your objection to "virtualness" can be replied with an analogy of C vs assembly language. In Java you loose control, but the VM gains control to optimize... just as in C, gcc usually knows more about how to optimize. And speed-wise Java is very good, is at most 2x slower than pure C (I think it's even faster), which is a great thing actually.

Comment Re:Forgive my ignorance WAS:re: Garbage collector? (Score 1) 587

Java "machine code" targets an abstract CPU which can handle "objects", "methods". You can disassemble compiled Java code and you see "invokevirtual" which means "invoke a virtual method on an object".

Then, an object in Java is a fundamental thing, there's no way to "decompose" it. There no way of getting its memory image. This has some nice properties:

  • The vm can reorder object fields to play nice with machine's alignment.
  • Security, you only can access the objects you have been given to. There's no pointer arithmetic. At all.
  • All objects know who they are, there are no undetected wrong casts (similar to the newer dynamic casts C++ now have)

Comment Re:There are certain things capitalism can't produ (Score 1) 562

What I say is it wasn't created for profit, it was created very far from the market. There were no MBAs involved, no managers. It was a community puting out software and RFCs. The corporate world, at that moment was busy creating zillions of incompatible little LANs, onthe low end, or a monstruosity (the ISO/OSI model... X.25) on the high end.

Comment There are certain things capitalism can't produce (Score 5, Interesting) 562

Capitalism can't produce common goods. Internet would've never had existed if it weren't for the US government. It was created in an academic environment, by passionate people that cared about the advance of technolog (indirectly: of mankind). Internet advanced quickly, different protocols appeared, once replacing the other (Gopher, SMTP, HTTP, POP, IMAP, NNTP, etc.).

Then the companies came. Those set of protocols froze, some began to fade. Companies didn't care about "what's right". They didn't care about advance the network. The HTTP/1.0 -> 1.1 transition took years, and still hasn't finished (e.g. http pipelining). IMAP mail stalled, and got replaced by webmail. Multicast was never deployed at large. Newsgroups got replaced by phpbb.

These companies hate Internet. If they praise it, it's only when they realize they can't afford to ignore it (or destroy it).

Comment Re:Bolivia's new future (Score 1) 291

You certainly don't sound like you know. Saying "trust me, it was my minor" is not very interesring or useful... The US has a history of messing with LA, an History other countries don't have. Nnot only private companies, but the CIA itself had participated in many LA tragedies. Go read a bit about this, very interesting.

Comment The big question (Score 2, Interesting) 207

The big question is if Oracle will keep being Oracle. This company has swallowed something bigger than him. Oracle might be more firmly sat on top of a revenue generator product, but Sun is a much larger operation, involving a dektop presence pretention, mobile, high end hardware design, high end software (Solaris), etc. (That's a reason IBM was a less conflicting buyer for Sun). In turn, Oracle sells a databse, and some enterprise programming tools, they have a much narrower scope (even the name implies this focus).

Perhaps, Oracle should rename themselves to Sun, and just sell a database called Oracle. =)

Programming

Twitter On Scala 324

machaut writes "Twitter, one of the highest profile Ruby on Rails-backed websites on the Internet, has in the past year started replacing some of their Ruby infrastructure with an emerging language called Scala, developed by Martin Odersky at Switzerland's École Polytechnique Fédérale de Lausanne. Although they still prefer Ruby on Rails for user-facing web applications, Twitter's developers have started replacing Ruby daemon servers with Scala alternatives, and plan eventually to serve API requests, which comprise the majority of their traffic, with Scala instead of Ruby. This week several articles have appeared that discuss this shift at Twitter. A technical interview with three Twitter developers was published on Artima. One of those developers, Alex Payne, Twitter's API lead, gave a talk on this subject at the Web 2.0 Expo this week, which was covered by Technology Review and The Register."

Slashdot Top Deals

A rock store eventually closed down; they were taking too much for granite.

Working...