Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:Scala seems to be Java+/- (Score 1) 324

I know. I didn't imply no other languages allowed this (especially for "high level" data structures such as list). I was just replying to gp that indeed, the article is about scalable infrastructures/systems rather scalable languages.

On the other hand Scala goes quite far in that approach; Ruby and Scala are also often compared for the ability to define embedded DSLs. In Ruby it is handled with meta-programming whereas Scala has made the choice of offering language-level DSLs (that make use of Scala syntax smartly), thus offering the typing system for the definition and usage of DSLs. People coming from Ruby especially enjoy a strong typing system that helps them and doesn't get in their ways.

Here's something I read tonight on IRC, and I read it quite often :)...
<against_logging> i learned ruby for nothing, i found scala

Now, Ruby is nice -- but just like a lot of people didn't care much before Rails came, right now a lot of people are dismissing Scala because "we don't need another language". Scala is not just another language, really. It finally provides an "enterprise-friendly" functional language: enterprise-friendly, because a lot of companies are sold with Java and the JVM, it's easy to let Scala in. But it gives the power of ML and functional languages, all the libraries written for Java, and the lightweight syntax of Ruby or Python (with a much better performance).

Finally, Scala matters because this is the Free alternative to F#, which is basically Ocaml for .NET. OCaml is Free (even if the policy is a bit restrictive with contributions), but it isn't part of a larger platform such as the JVM or the CLR. In the upcoming years, functional languages will get a boost because they handle multithreading better (they make it more practical to use immutable data) and because finally people understand that a typing system makes complex programs easier to re-use and maintain. Scala is very much the contender for the Free Software community -- and it's not only more innovative than F# (which is very similar to Ocaml, which is awesome but has been around for a while), but also in my opinion offers developers from the world of Java & dynamic languages with a stairway to functional programming: they can learn step by step.

Comment Re:Scala seems to be Java+/- (Score 1) 324

A language scales if the language itself (not the "runtime" or whatever) can grow with user constructs to suit the ever-changing needs. For instance, in Python, if you write
l = [a]

you will end up with a Python built-in list. Squared-brackets are part of the language syntax and will always refer to Python builtin lists.

In Scala, which is meant to be a scalable language (as the name implies: SCAlable LAnguage), if you write
val l = a :: Nil

you will end-up with a Scala list only because the ::' "keyword" (which in fact isn't) is in the scope, but you could specify another class if you'd like. Use another implementation, yours if you'd like.

All of Scala is made this way and that's why the *language itself* is scalable.

Now, the article talks about scalable architectures, not scalable languages -- they use Scala because they like it :). Yet since Scala compiles to Java bytecode, it offers all the JVM's scability features (clustering with terracotta, ...) and it's a great language to write scalable software in :).

Comment Re:Scala seems to be Java+/- (Score 4, Insightful) 324

I read between the lines that you call C or C++ solid-code, and if I'm not mistaken, you will find that the kids are doing Scala because the code is more solid. Scala benefits from a typing system close to OCaml's which makes Scala code very, very solid -- especially if you keep away Java specifics (such as nullable objects) in your code and take special care when interacting with Java libs that may do so.

If I'm mistaken and you're not talking about C/C++, I hope you are not talking about dynamic languages which offer no guarantee whatsoever; you know as a developer I enjoy actually spending my time on working on the business side of my application -- and how to make it scalable, rather than working on low-level specifics and on testing if every pointer is null before dereferencing them. A type system that does this for me (which Scala or ML's parametrized type Option allows) is a bliss.

Now, I'm not enumerate every language under the sun to see what code you call solid, I guess your answer would be that the code is solid whatever the language it's written in. In the end, it all comes down to binary instructions, right? The question is: how many guarantees do the tools give you? In the case of Scala's compiler, it gives you a lot AND offers you a very enjoyable, lightweight yet powerful syntax.

Comment Re:Scala seems to be Java+/- (Score 1) 324

What? Scala is Java mixed with OCaml -- you get an extremly powerful typing system, but it feels like a "dynamic language" such as Python or Ruby. With the performance of Java. Under the hood, it's a brand-new language, very different from all those: it merges functional and object-oriented programming. Yet, for the regular programmer, it feels like Ruby... until he gets used to more powerful features and learns how to designs more complex libraries as embedded DSLs. All that while running on the JVM and thus giving free access to all Java/JVM libs out there with no overhead. The really odd part is that not more people are using Scala as a replacement as most languages -- except C for device level and Erlang for distributed stuff.
Patents

Steve Jobs Patents "The Dock" 580

theodp writes "If you're a PC, you may be unfamiliar with The Dock, the bar of icons that sits at the bottom or side of a Mac and provides easy access to Apple applications. But don't count on it becoming a standard on the PC. On Tuesday, the USPTO awarded Apple — and inventor Steve Jobs — a patent for their User Interface for Providing Consolidation and Access, aka 'The Dock,' after a rather lengthy nine-year wait."
It's funny.  Laugh.

Prevent Gmail From Emailing Under the Influence 258

mikesd81 writes "Google has developed 'Mail Goggles,' a Gmail add-on that makes sending email from Gmail more difficult during certain times (which you can set). If you have Mail Goggles installed, it will force you to answer a series of math questions before sending out any new messages. You can adjust the math difficulty and times this option is in effect. If you get any of the questions wrong, Mail Goggles will say, 'Water and bed for you. Or try again.' Of course, if you set the math settings too high, you may have a tough time solving some of those problems in under 60 seconds, even when sober. Then again, if you're sober, you could just turn Mail Goggles off and hit send on that impassioned letter to your ex-boyfriend/girlfriend or that flame to your boss."
Encryption

Google's Obfuscated TCP 392

agl42 writes "Obfuscated TCP attempts to provide a cheap opportunistic encryption scheme for HTTP. Though SSL has been around for years, most sites still don't use it by default. By providing a less secure, but computationally and administratively cheaper, method of encryption, we might be able to increase the depressingly small fraction of encrypted traffic on the Internet. There's an introduction video explaining it."
Portables (Games)

Nintendo DSi Software Will Be Region Locked 148

aliquis writes with news that software made for the recently announced Nintendo DSi will be region-locked. Nintendo's reasoning is that the DSi "embeds net communication functionality within itself and we are intending to provide net services specifically tailored for each region." It's also been discovered that accounts with the DSi's online store won't be linked with the Wii store, so points for one won't work with the other. Nintendo has stated that they don't intend for digital distribution to replace retail sales. We discussed the DSi's announcement last week.

Comment Re:The blog is right (Score 1) 353

My only experiences with HP are good. That is, calculators from HP48GX to the HP49 line ;). Best calculators ever :P.

The scandals that happened (pretexting, spying and whatnots) have little to do with the engineers. However you're right, HP and Compaq (now merged, that can be only worse) always tried to make their memory incompatible, and their hardware seem pretty cheap (then again, nowadays most hardware is). The problem with HP is that they lack a vision, they don't "Invent". Mainly because it's a management/marketing driven company. So I wouldn't mind having HP "on my side" the day they ditch all the white-collars and have a CEO with a vision. HP's CEOs, including the current one, really suck.

On the other hand, HP is the largest technology vendor in terms of sales (before Dell), and thus probably first Windows vendor. They could hurt Microsoft badly if they made the move :).
Novell

Submission + - SPAM: Novell's de Icaza criticizes Microsoft patent deal

alphadogg writes: Open-source pioneer and Novell Vice President Miguel de Icaza Thursday for the first time publicly slammed his company's cross-patent licensing agreement with Microsoft as he defended himself against lack of patent protection for third parties that distribute his company's Moonlight project, which ports Microsoft's Silverlight technology to Linux. "I'm not happy about the fact that such an agreement was made, but [the decision] was above my pay grade; I think we should have stayed with the open-source community," de Icaza said. He was speaking on a panel at a conference in Las Vegas that also included representatives from Microsoft and open-source companies Mozilla and Zend.
Link to Original Source
Security

Submission + - Fake nuclear explosion on Czech television

ledvinap writes: Those who watched a Czech public TV channel in the morning could have seen the nuclear explosion (youtube) in the Krkonose Mountains during a program that normally shows weather at different places.

Artistic group Ztohoven broke via the internet into a camera / camera server which provided images from the Krkonose Mountains as part of the morning panorama program. They fed a 30 second film which showed images of an atomic explosion and the group's web address. According to initial investigations by the Czech authorities, the CT2 network itself was not affected, the compromised camera server was operated by an outside contractor.

CT2 has reported the matter to the police, and should someone be successfully prosecuted, a one year prison sentence could be imposed.

English links here and here, lot's of coverage in Czech media media
It's funny.  Laugh.

Submission + - Undeletable porn video on YouTube (alx5000.net)

alx5000 writes: "meneame.net (the Spanish Digg) is reporting that a German hacker has posted an undeletable porn video on YouTube. So far, the video has been watched more than 100,000 times since it was posted 2 days ago, and the account of the poster blocked, but the video still remains viewable. You can watch it here (NSFWFGS!)"
Operating Systems

Submission + - GPL Code Found In OpenBSD Wireless Driver

NormalVisual writes: The mailing lists were buzzing recently when Michael Buesch, one of the maintainers for the GPL'd bc43xx Broadcom wireless chip driver project, called the OpenBSD folks to task for apparently including code without permission from his project in the OpenBSD bcw project, which aims to provide functionality with Broadcom wireless chips under that OS. It seems that the problem has been resolved for now with the BSD driver author totally giving up on the project and Theo De Raadt taking the position that Buesch's posts on the subject were "inhuman".

Slashdot Top Deals

It is clear that the individual who persecutes a man, his brother, because he is not of the same opinion, is a monster. - Voltaire

Working...