Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Move Over AJAX, Make Room for ARAX 409

sasserstyl writes "eWeek reports that Microsoft's Silverlight platform will support Ruby client-side scripting, enabling ARAX — or Asynchronous Ruby and XML. Would be cool to have the option to script client-side in something other than Javascript. 'In essence, using ARAX, Ruby developers would not have to go through the machinations of using something like the RJS (Ruby JavaScript) utility, where they write Ruby code and RJS generates JavaScript code to run on the client, Lam said. "Sure, you could do it that way, but then at some point you might have to add some JavaScript code that adds some custom functionality on the client yourself," he said. "So there's always that sense of, 'Now I'm in another world. And wouldn't it be nice if I have this utility class I wrote in Ruby...' Today if I want to use it in the browser I have to port it to JavaScript. Now I can just run it in the browser."'"
This discussion has been archived. No new comments can be posted.

Move Over AJAX, Make Room for ARAX

Comments Filter:
  • Look at ol' MS (Score:4, Interesting)

    by flanksteak ( 69032 ) * on Friday June 06, 2008 @01:51PM (#23684651) Homepage

    Doing a little something for developer mindshare. But then this is really just a way to push .NET.

    Questions:

    1. Anybody see Firefox adding support for other scripting languages as a result of this?
    2. Does this bode well for things like Moonlight and Mono?
  • by bsDaemon ( 87307 ) on Friday June 06, 2008 @01:53PM (#23684677)
    If they extinguished it, who would notice? Seriously -- I'm not trying to troll. WTF is Ruby and what is so great about it? It just seems like Java for people who hate Java from what little research I've done on it, but it also seems to be very popular (of course, hating Java is popular, too).

    Can someone please tell me?
  • by hostyle ( 773991 ) on Friday June 06, 2008 @02:02PM (#23684803)
    Note that Ruby scripting is being integrated into Silverlight - which is similar to Flash - not Internet Explorer. While it offers more than Flash does (you can write full applications ala XUL with Silverlight) it also does similar embedded rich apps ala Flash, but its not a browser (yet).
  • by Simon (S2) ( 600188 ) on Friday June 06, 2008 @02:04PM (#23684827) Homepage
    Weak security because of dynamic typing? You really have to elaborate on this, because like this it just makes no sense. How is a strong typed languare more secure than a dynamic typed one?
  • It's like java, but not as fast, secure, or scalable.

    It's syntax is "intuitive" which would mean good things if you were someone off the street, but for the rest of us who've spent decades working with languages that are basically C syntax, it's a p.i.t.a, and the syntax doesn't really add anything.

    Rails is a cool new idea, but the implementation is horrorshow; Django got a later start and is already ahead in performance.
  • Re:Look at ol' MS (Score:3, Interesting)

    by flanksteak ( 69032 ) * on Friday June 06, 2008 @02:10PM (#23684905) Homepage

    What's malicious about it? They're not going to be able to kill Ruby by adding it to Silverlight.

    I have no doubt that AJAX works just fine in .NET, but nothing gets developers more excited than a surplus of options. Even if the options don't add anything other than choice.

    It will be interesting to see how much traction IronPython and IronRuby are able to get with non-MS devs. I have no experience with Ruby and only a little with .Net and Python, but I keep hearing about these integrations in places I least expect.

  • by nuttycom ( 1016165 ) on Friday June 06, 2008 @02:20PM (#23685051)
    Its syntax isn't like C? Cry me a river. Sure, the syntax could have been made more c-like (braces instead of do/end - and you can use braces if you like anyway) but the syntax isn't where you get the benefit of ruby.

    The most important thing that Ruby has done, in my mind, is to make blocks, closures, and runtime metaprogramming mainstream. So while the syntax may not add much, the language features add a hell of a lot. After writing code in C and Java for a number of years, switching over to Ruby took me all of a week.

    That being said, the supposed productivity gains are mostly hype, because you end up spending the time you gained in writing the code to begin with having to write a lot more integration tests to ensure correctness for things that the compiler deals with in a typesafe language.

    Rails has been pretty important insofar as it's given a kick in the ass to a bunch of other languages. I agree though that the implementation is a bit of a nightmare, and the lack of built-in dependency injection is a hassle.
  • by Lobster Quadrille ( 965591 ) on Friday June 06, 2008 @02:23PM (#23685111)
    http://www.google.com/search?q=%22Type+conversion+error%22+attack

    Dynamic type conversions are a pretty common way to exploit SQL injection holes and circumvent input validation.
  • by ShieldW0lf ( 601553 ) on Friday June 06, 2008 @02:27PM (#23685161) Journal
    Rails isn't cool. It's a poor concept from the word go. They make the thing so damned weighty in their blind adherence to the flawed premise that just because MVC is a good model for desktop applications, it's a good model for everything, and that single premise is an insurmountable barrier to good performance.

    Fact of the matter is, MVC is a piss poor model for stateless client-server applications, but it's not till you've wasted your time building a solution in this fashion and watching it fail to scale that you realize that.
  • Re:Look at ol' MS (Score:3, Interesting)

    by orasio ( 188021 ) on Friday June 06, 2008 @02:27PM (#23685171) Homepage

    But AJAX works great in .NET already and it does everything you want it to do and you don't need to know javascript to make it work.
    I code .NET for a living, and that is just not true.

    Ajaxcontroltoolkit is nice, but far from complete.
    Lots of things I have to do with JScript/JavaScript
    There are other frameworks that help with Ajax, but at the end of the day, you need to work with JS.
  • by sm62704 ( 957197 ) on Friday June 06, 2008 @02:37PM (#23685301) Journal
    Rails is a well done framework for Ruby that opened up the language to the masses.

    Am I the only one who sees something bad about that?

    Does a plumber do electrical work? No? Then why does anyone but a programmer do programming in a professional environment?

    It must be this nasty cold I've contracted, I can't seem to understand anything today.
  • by Blnky ( 35330 ) on Friday June 06, 2008 @02:40PM (#23685365)

    Not only that, but they're not adding a language that's significantly different. They're not adding Java (which Google might appreciate) or C/C++, they're adding Ruby, which is a language very similar to javascript (certainly more similar than JS or Ruby are to Java and their ilk). Port a language with better scalability and modularity, not more of the same.
    Unlike Javascript, C++, Java, and Ruby all support encapsulation, built in inheritance, and explicit class declaration. Unlike Javascript, Java and Ruby are strongly typed. Even though Ruby supports duck typing, it still uses the explicate conversion similar to what is required in Java whereas Javascript uses implicit conversion. The closure in Ruby is one of its major strengths. Javascript can at most use anonymous functions. Having extensively used all of the languages you mention, Javascript really appears to be the outlier to me. Would you please explain why you think that Ruby is more like Javascript than Java or C++? Additionally, what well known scripting languages are you referring to when you request more scalability and modularity? Or are you assuming that a compiled or non well known language would be better?
  • by ZephyrXero ( 750822 ) <.moc.oohay. .ta. .orexryhpez.> on Friday June 06, 2008 @02:47PM (#23685477) Homepage Journal
    This does bring up an old question of mine... how come no one has made a Python plugin for web browsers, like Java has?

    Just think how much more awesome projects like TurboGears/Pylons could be if you could run Python on both the client side as well as the backend.

    Where's APAX when we need it?
  • by encoderer ( 1060616 ) on Friday June 06, 2008 @02:49PM (#23685505)
    Ok, I'll bite. What makes MVC a "piss poor model" for web applications?

    The only thing you mentioned was scalability.

    Personally, I find the MVC pattern applies to web apps wonderfully. Being able to "plug and play" views is far more helpful in the web universe than it is in rich client programming.

    I can create a default view, lately that's been a standard XHTML interface with Ajax, usually leveraging the ext.js library.

    And I also create a simplified HTML-only view for graceful degredation on clients that are not using JavaScript.

    And a view for mobile interfaces.

    On "data grid pages" I can plug-in a view that outputs the data in XML or Excel format.

    For reporting I can create a view for an on-screen HTML based report, or I can plug in a view that displays it as a PDF or, again, XML or Excel.

    Meanwhile, I only create the data models and controllers once.

    This is FAR easier and faster to create and maintain.

    And in todays world, unless you're a top-1% web destination it's a FAR wiser move to optimize for development time and cost than it is to optimize for the machine.

    Adding a server is much cheaper than adding a developer.

    Believe it or not, I'm not a fan of Rails. I'm especially not a fan of ActiveRecord. In ruby, DataMapper is a much better Db layer than is ActiveRecord.

    But to denounce Rails because it's MVC? I'd love to hear why you feel that way.
  • by stoolpigeon ( 454276 ) * <bittercode@gmail> on Friday June 06, 2008 @02:55PM (#23685593) Homepage Journal
    They say Silverlight works with Firefox on Linux- I say that is an overstatement. I went to a technet event where they tried to demo silverlight with firefox on windows and it wouldn't work.
     
    Silverlight on linux, is in my opinion, broken.
  • by Mctittles ( 973829 ) on Friday June 06, 2008 @03:06PM (#23685757)

    While it offers more than Flash does
    I don't know where people keep getting their ideas on "more" than flash does, but I'm suspecting it is from some dirty marketing campain from microsoft. You know if you search for silverlight you will find at the top of a google search are blogs about silverlight vs flash, but after reading a couple paragraphs you realize that it is no more than a commercial for silverlight...they even sound like a scripted commercial...and they compare flash from 15 years ago to silverlight instead of flash from today. Then after more digging I've found the comments for sites that write about silverlight are scripted half the time too. I've even found comment sections on articles written by microsoft staff in defense on their product so you know they are spending many hours searching the net to try and make sure anything within the first few pages of a search is biased.....it's annoying because it seems to be working, although very little people have actually used both silverlight and flash extensively, hearing a random person say "it is better" leads them to believe it. (END RANT)
  • by an.echte.trilingue ( 1063180 ) on Friday June 06, 2008 @03:16PM (#23685933) Homepage

    NEVER
    You almost had a good argument until you used a superlative. Google Apps for domains is clearly superior to Outlook/Exchange* for small businesses, for example. SugarCRM and other web-based application customer management systems such as pyrameed are at at least as good as solutions such as SAP for up to medium sized businesses. Web based apps offer:
    • easier administration for both systems as a whole and the client machines
    • world wide access
    • real-time collaboration
    Our business runs entirely on web-based applications except for MS word, and like I said, google docs is getting there. The net is only getting faster and I can't image a single advantage of client-side software for business administration. Applications like photoshop and autocad will probably remain local for years to come, but that is a pretty small niche in the overall scheme of things.

    *: somebody always counters this with "but you don't control the server!!!1!" Look, no small business has its own mail server. Google's is just as secure as Joe Blows ISP.
  • by Jesus_666 ( 702802 ) on Friday June 06, 2008 @03:28PM (#23686113)
    Actually, AJAX is good for very large (have the manpower to deal with its complexitied) and very small (won't encounter its complexities) projects.

    I occasionally use it in a very rudimentary way - I use the AJ part and forget about the AX. What I mean with that is that I simply reload part of a page, whatever it may contain. It's a simple GET, no bells and whistles. The XMLHttpRequest part and the connection handling are abstracted away in a drop-in function that handles everything for me. It's not very flexible but usually it's enough.

    Of course it does get more complex once you want to do anything that goes past putting the reply to a GET into a <div>, especially if you use JSON to pass around tuples and don't trust the server to send clean code...
  • Re:This time (Score:3, Interesting)

    by Tweenk ( 1274968 ) on Friday June 06, 2008 @03:47PM (#23686379)
    Under 1000 lines for drag & drop support? This looks like a moderate amount of code, taking into account that you only get raw mouse coordinates from the browser in JS, and that it supports IE.

    People dislike Javascript, but in fact it's very powerful. Its Achilles' heel seems to be that no one cares to really learn Javascript like a regular programming language. Rather, people doing Web development look at it as a hacky tool to add bling to their website. They learn small bits of it whenever they want some new effect they saw on the other guy's site, but never stop to learn how to use the vast array of built-in functions effectively, how to create objects, how closures and functional primitives work. Javascript is very much a "real" programming language, but its niche causes most to overlook its powerful and one-of-a-kind features and instead view it through the multitude of browser quirks one has to deal with when using Javascript in Ajax.
  • Learn JavaScript? (Score:4, Interesting)

    by KermodeBear ( 738243 ) on Friday June 06, 2008 @04:12PM (#23686729) Homepage

    [...] Ruby developers would not have to go through the machinations of using something like the RJS (Ruby JavaScript) utility, where they write Ruby code and RJS generates JavaScript code to run on the client, Lam said.
    They never DID have to go through something like RJS. They could just, you know, learn JavaScript. It isn't very difficult.
  • by AnomaliesAndrew ( 908394 ) on Friday June 06, 2008 @04:26PM (#23686957) Homepage
    So far everything I've seen that was at all "special" about Ruby is available in just about every other language via helper classes (like Integer for ints in Java) and perhaps slightly less graceful structures like callbacks (just look at jQuery, for example.)

    Usually the reason I've picked a language to do a job has had nothing to do about syntax. The three biggest factors have always been: what do I already know, what has the best performance, and what can be developed quickest? It's always a balance of those 3.

    I'll never use Ruby until it's supported widely enough, matured enough, and provides me with some reason to bother learning its API.

    Considering I'm already intimately familiar with C, Java, PHP, and SQL, I think hell freezing over is a safer bet. In my limited observation, most of the people who tout Ruby as the future have never extensively programmed in another language (except maybe a handful of people who coded in the much older languages similar to Ruby.)

    I especially love it when somebody claims to write a web server in 10 lines of Ruby... and all it took was using a 10,000 line library and a however-large interpreter. I'd like to see that stand up to a slash-dotting. Puh-lease...
  • Why Ruby? (Score:5, Interesting)

    by qazwart ( 261667 ) on Friday June 06, 2008 @04:34PM (#23687087) Homepage
    Because Ruby on Rails developers will not have to switch to JavaScript in order to do AJAX like stuff.

    One of the problems in Web Development is using one language for the back end (whether Java, Ruby, or PHP) and then when you need some asynchronous action on the client side, you have to switch your syntax to JavaScript. It can be a bit of a pain. It's not that you may not know both JavaScript and Ruby, but that you have to keep switching between the two and that can make brain hurt.

    I take it that Silverlight will be doing the "ARAX" side of things. It's actually a neat idea. You can use a single language for both the Client and Server side, but where JavaScript is built from the ground up to live inside a webpage, Ruby isn't. I guess that's why there's IronRuby which will be a bit more "JavaScript" like.

    The big problem is that the Ruby interpreter will be Silverlight. Where as JavaScript is built into WebKit, an open source project, Silverlight is proprietary. If you create a new web browser, you can easily adopt WebKit and get a standardized JavaScript implementation. With ARAX, you're either going have to role your own or depend upon Microsoft to create a Silverlight interpreter.

    The whole thing is to push not .NET, but Silverlight in order to take over the Flash market. The funny thing is that Flash is probably peeking in popularity. The problem is one of the shear diversity of web browsing platforms that will be coming out soon. The iPhone is just the first such device, and already sites are removing flash from their webpages in order to make them iPhone compatible. Yes, Adobe is going to release flash for the iPhone, but what happens when Android comes out? Is Adobe really going to build flash for each and every version of an Android handset? They simply don't have the resources. Microsoft will find the same situation with Silverlight. They simply won't be able to support all the platforms that people want to use.

    In the old days, this was okay because it brought people into the Windows world. But, as people move from the desktop, Windows isn't the end all/be all platform it use to be. People like their iPhones and iPods. People will start buying Android based stuff. Symbian and RIM both are larger platforms. Windows Mobile is a distant fourth in sales this year. Measured in licenses, Windows Mobile is still more popular than the iPhone, but that doesn't include all the devices laying in some drawer gathering dust. Assuming a 2 year average product lifespan, Windows is fourth behind the iPhone which hasn't been out for a year yet. Can Microsoft (or is Microsoft even willing) to put Silverlight on all the various platforms out there? If not, developers just won't use ARAX.
  • by drew ( 2081 ) on Saturday June 07, 2008 @04:09AM (#23691843) Homepage
    The problem with JavaScript has nothing to do with the language itself, the problem is that no two browser implement it quite the same way. Adding another language that's only supported in a proprietary and still not very widespread plugin isn't going to help that one bit.

    Browser compatibility aside, JavaScript is actually very solid and is a great language to program in for people who actually bother to learn it (unless you are really stuck up about static typing or class based OO, in which case, sorry...) Why so many people work so hard in trying to convert Ruby or Java into JavaScript (e.g. RJS or GWT) or make JavaScript look like a language that it isn't (e.g. ASP.NET AJAX) rather than just learning the damn language I will never figure out.

    This of course brings me to JavaScript's second biggest problem - it's users. Why is it that JavaScript, apparently alone among languages, can attract so many programmers that have absolutely no desire to even try to learn the language? I've heard people who programmed professionally in JavaScript for years claim that it doesn't support inheritance. In any other OO language that would be the sort of thing that a new programmer would learn in the first week. Most experienced programmers when learning a new language would sit down with a book or a quickstart guide or tutorial of some sort and learn at least the basics of the language before they tried to take on a meaningful project, but apparently with JavaScript it's OK to just jump in and learn as little as you have to as you go along.

If all else fails, lower your standards.

Working...