Slashdot Mirror


What is OpenLaszlo, and What is it Good For?

SimHacker writes to share an article he wrote recently that tries to answer the question; What is OpenLaszlo, and What is it Good For? From the article: "OpenLaszlo is an open source platform for developing user friendly web based applications, which work identically across all popular browsers and platforms (Windows, Mac, Linux, IE, Firefox, Safari, etc). It's ideal for presenting and editing raw XML data generated by PHP and other web services."

31 of 196 comments (clear)

  1. Drupal by dotslashdot · · Score: 3, Funny

    That cross dressing site management software "Drupal" says too many connections.

  2. Zero to Slashdotted by grasshoppa · · Score: 4, Funny

    Zero to slashdotted in no comments flat.

    --
    Mod me down with all of your hatred and your journey towards the dark side will be complete!
    1. Re:Zero to Slashdotted by Kuxman · · Score: 3, Funny

      their server: "What is it good for? Absolutely nothing!"

      --
      http://www.asti-usa.com
    2. Re:Zero to Slashdotted by theantix · · Score: 2, Funny

      That's okay, you can always check mirrordot.

      uh...

      --
      501 Not Implemented
    3. Re:Zero to Slashdotted by hdparm · · Score: 4, Funny

      You new here?

      That's because slashdoters generally rush over to read TFA and other stuff linked from TFA, so they can post informed and meaningful comments.

  3. I don't mean to troll... by celardore · · Score: 2, Informative

    Sometimes I find this AJAX movement annoying. Not because of the new technologies emerging, and not because of the amount of people wanting to learn it. I find it more annoying because of the whole dumbing down initiative.

    Work a little harder, learn a little more and create something a lot more intuitive.

    1. Re:I don't mean to troll... by Rdickinson · · Score: 2, Informative

      OpenLaszlo has nothing to do with AJAX per se.

      Its an XML based programing language, fully OO, using javascript, which is then rendered to target platforms, currently Flash or DHTML.

    2. Re: I don't mean to troll... by Graboid · · Score: 4, Insightful

      You say that like it's a bad thing.

      Dumbing down IT programming (and IT in general) has been a huge trend throughout the industry for years. I remember teaching Fortune 100 financial analysts Visual Basic and how to hook up to an Oracle stock database we built and they were on cloud nine. Later our secretaries setup and maintained our department's homepage - it was great and really represented a milestone in our company as well as a symbolic milestone within IT.

      The future of IT is all about dumbing down so technology just becomes a part of everyday life - not some uber-geeky medium that takes years to master. Letting 'normal' folks develop and support websites moves content from an IT shop to the business folks where it belongs!

    3. Re:I don't mean to troll... by colmore · · Score: 4, Insightful

      Lowering the entry barrier is always a good thing. When C compilers got good enough that applications could be written with only a minimum of assembly, people groaned about the same thing. There's a lot of hype right now, and a lot of interest, things will settle down.

      All of these frameworks and libraries and doohickies come about for a simple reason: web application programming is too complicated. Given the relatively simple functionality being designed, coding an (even non-AJAX) webapp is a pain in the ass involving a mostly stateless system running 4 or 5 languages. The techniques for getting around this problem are relatively cookie cutter, and we really should no more be coding them by hand than we should be rolling our own printf every time we write a terminal utility.

      There's more creativity and action in interactive online software than ever before, and it's nothing but a good thing.

      --
      In Capitalist America, bank robs you!
    4. Re:I don't mean to troll... by mcrbids · · Score: 2, Insightful

      Given the relatively simple functionality being designed, coding an (even non-AJAX) webapp is a pain in the ass involving a mostly stateless system running 4 or 5 languages.

      Right. So let's pile on another language to solve this problem. It would be really cool, hip, and exciting, and will be the grand mother of all abstractions, solving all our problems by providing a consistent, smooth interface into all sorts of technologies, ensuring that:

      1) Debugging a language change from version x.4.1 to x.4.2 is damned near impossible,

      2) Doing any kind of performance tuning is laughable,

      3) Forces you to write things in such an abstract way that you can't take full advantages of the tools you do have available,

      4) Sounds "enterprisey".

      As a language, it will take other languages (like flash, dhtml, xml, sql, asm) and compile them. It will be glorious! (as soon as all the bugs are worked out)

      I say we should give this new meta-meta-meta language the name "Laszlo"!

      --
      I have no problem with your religion until you decide it's reason to deprive others of the truth.
  4. Security? by vanyel · · Score: 2, Insightful
    Security restrictions prevent the Flash player from fetching XML from hosts other than the one it do wnloaded the SWF file from. It requires a crossdomain.xml permission file to exist on other servers from which Flash downloads content or calls web services.

    The solution is for the OpenLaszlo Server or PHP to act as a proxy for other servers.

    Isn't there a reason for that? I would like to see something that specifically addresses the security issues here...

    1. Re:Security? by SimHacker · · Score: 2, Informative

      The "reason" is just "that's the way Flash is, and Macromedia says it has something to do with security". I'm not claiming that it's a good excuse or a well thought out security model. Most browsers will let you fetch XML from other sites with XMLHTTPRequest, and Flash lets you fetch images from other sites but not XML. I can understand restricting executable SWF files, but Flash never actually executes the XML as code, so I never understood why Flash restricts XML but not images.

      Of course OpenLaszlo applications compiled for DHTML won't be restricted by Flash's bizarre half-baked security model. Just the browser's bizarre half-baked security model.

      -Don

      --
      Take a look and feel free: http://www.PieMenu.com
    2. Re:Security? by JahToasted · · Score: 2, Informative
      First of all, I think xmlhttprequest can only access stuff on the same server too, it would be a major security hole if it didn't.

      You're not thinking like a malicious hacker. Let's say I want to DDOS example.com. I find some popular webserver that's not exactly secure, lets say newestfad.com. Then I make a comment has a little javascript that requests a large file (or does a database intensive search) from example.com. Now everyone that loads up newestfad.com with my attached comment also loads that file from example.com. I could take it a step further and add that comment to every page on newestfad.com. Since newestfad.com doesn't have the sharpest admins, it might be a while before they fix it so that you can't insert javascript into comments. Meanwhile, example.com is being killed just because the developers at newestfad.com don't know what they're doing.

      The same could be done with flash, though you'd probably have to make a trendy game that included the DOS code.

      You don't think these things happen? Why do you think slashdot's search sometimes uses google, instead of their own native algorithm? It's because someone has jammed some iframes in some comments on a poorly done website that requests slashdot search through its comments. this hammers the database and kills slashdot. So they have to disable searching and use google for searching until the site that's causing the requests gets their act together.

      Macromedia is doing the right thing here. And you can easily have your own server just pass along the request to another server. prevents DDOS attacks.

  5. will it help? by gEvil+(beta) · · Score: 4, Funny

    Will it help me win all the prizes in a big sweepstakes?

    --
    This guy's the limit!
  6. Fantastic for thin client development by siberian · · Score: 4, Interesting

    Since Laszlo apps can be output either as DHTML or as SWF contained content it works wonders for embedded development.

    I'm building a small embedded linux based system to handle my A/V switching infrastructure in my home. The box itself can be considered a toaster, very much like a LinkSys router. Combining thttpd, Ruby (small footprint with Ruby2exe) serving POX(Plain Ole XML) and then Laszlo as the SWF contained client I can provide a hugely rich experience for the user on my minimalistic embedded platform.

    The Eclipe IDE tools are 'Ok' and do the job well enough at the start but you'll need to tweak it a bit more to get a really solid look.

    Overall this is a fantastic alternative to Adobe Flex in many ways, particularly in its openness, huge community support and low/no cost. Flex 2.0 is also low low cost now but we will see how that plays out.

    So, for me Laszlo is Rich App on a thin client primarily. Very nice.

  7. From a year long coder in Laszlo by spoco2 · · Score: 5, Informative

    Firstly, Google cache.

    I've been coding in Laszlo for almost a year now for a new product my company is launching soon, and I have to say it's a great language to use. A very easy way to create great web applications while still being able to write completely Object Orientated code... There's absolutely zero need to code in a WYSIWYG style method ala visual basic or the like, our application dynamically loads in its objects and layout from a db, completely configurable... it's all very nice.

    The article itself is quite a nice summary of what Laszlo is I suppose. It does seem to harp on a bit about PHP as a back end, when there is nothing tying laszlo to php at all... we were using Ruby, now we're using Java, and are able o talk directly to Java classes from within Laszlo code using a JavaRPC structure. As the Laszlo server is a Java app, it all sits together nicely.

    Also it's good to see it mentioning the alternate runtime of DHTML which is currently able to be played with at Openlaszlo.org (currently in pre-beta). So, in the future you'll be able to write your code and chose to render it to Flash OR DHMTL or Both... it's all very nice.

    Is there anything that people who are interesting in Laszlo would like to know from someone who's been coding in it for a while? As while I'm not a zealot of it or anything, I do like it a lot, and just would love to see as many people as possible using it. :)

    1. Re:From a year long coder in Laszlo by spoco2 · · Score: 3, Informative

      Did you see Pandora listed in the article? That's a fully fledged, and nice app. Also Laszlo mail is installed as the default webmail for Earthlink subscribers? And of course... there's this list of apps! :)

    2. Re:From a year long coder in Laszlo by spoco2 · · Score: 4, Insightful

      - I like the idea of using JavaServer Faces and renderkits, so you can easily migrate to different presentation technologies. Did you write directly to Lazlo's API or use a renderkit-type method? IBM has a Lazlo-JSF renderkit and that seems like the best way to go in that world.

      Laszlo's code is not tied completely to an actual final renderpath... ie. while currently your only option is flash, as can be seen on their homepage, they have a working DHTML output that works as well... and the idea is that the code you write is independant of what output it finally has.

      We code in Laszlo's mixture of XML and Javascript, and it compiles that to Flash for rendering. The final output may be in a browser, may be on a phone, or whatever.

      - If you're writing to the API, how tied to it are you? With a rederkit, you can quickly make changes from a web-browser to a PDA, with the components taking care of the display issues. Is display migration an issue?
      OK, so we're writing our own 'renderkit' if you will... we're using a modification of the Visual Proxy methodology and as such our final display objects can be changed and modified based on what it's rendering to. But we do use a number of the inbuilt Laszlo visual components (windows, buttons, sliders and the like)... but as they render in flash, anything you can run flash on, they'll run on.

      - How is performance? I've always found the examples on OpenLazlo to be slow, limitted, and not seem to be very useful in the real world.
      Performance is always something that we battle with, but we're trying to manipulate hundreds of linked visual objects onscreen at one time, with many calculations running in the background. You have to be tricky here and there, but you can do some amazing things. Basically, the limitations are not really a result of Laszlo as such, but the fact that you're running an app within a web browser, and you always have to be conscious of that. The more you use it though, the more you learn the tricks to get a great user experience... I would hate to be trying to do this in DHTML.

      - How much time have you spend on the UI versus other techniques (e.g. DHTML/AJAX)? If longer with Lazlo, do your customers see your UI as value-added? Does it reduce your time from working on the core business-logic?

      (First up... this is AJAX, very much so it's Asynchronous Javascript and XML)
      We spend a fair amount of time on the UI, but only because the main thrust of our app is presenting a whole lot of data in a visual way that the users can interact with in different ways to any other applications in this space... so it's a large portion of the appeal of this app. That it's targetted at the Marketing teams of companies means that it should be easy to use and appealing to work with, hence the flash interface.

      We have coded other PHP/Javascript/DB applications for clients (we have one being finished up at present), and while they're nice to work with etc. And do take less time to initially code they have a number of drawbacks:
      * Maintenance is harder as writing directly for HTML output means trying to be cross-browser friendly, which results in solutions for each of the major browsers. Flash means it just works the same, full stop.
      * It looks the same. While you can do some pretty great things with DHTML etc. It's all still pretty web browser looking, you're tied to that due to limitations of what you can do, and performance issues if you stray too far from the simple. Flash allows you to have nice transitions, animation of key things, fluid interface interactions etc. Plus it's can be very different visually if you so wish.
      * As for the time we can spend on Business Logic vs Interface. As in this space we are coding in an OO language, and can create nice class seperation and encapsulation, we can completely split off our business logic from our presentation code. This makes ongoing maintenance of either side of that equation

  8. OpenLaszlo's potential goes beyond the web by Trinition · · Score: 5, Interesting

    To me, OpenLaszlo is not about the web. If you think about what it does, it allow syou to specify a complete user interface and logic in an XML file. The layout is done with XML, and the logic is done with ECMAScript (yes, that's what JavaScript became).

    The first OpenLaszlo solution compiled this XML into Flash which can run in any browser. Then they made a new compiler which turns it into DHTML so youd on't need Flash any more. So now you can take the same application written once (as an LZX XML file) and compile it to Flash or DHTML and get the same behavior. Both of those are very ubiquitous mediums. If you read their roadmap, they also have plans for Java client.

    My hope is that one day, there will just be clients that read the LZX XML directly. These clients could be written in Java, .NET, TclTk, C++, you name it. They would all read the same LZX XML and render it for the user. That's very much how various different browsers all read the same HTML file and render it. So you might be thinking that its no better than HTML, but:

    • It is a tighter specification than the original HTML which planted the seed for incompatibilities
    • It is designed from the beginning for user interface declaration, not text markup
    • It leverages two well-accepted standards: XML and ECMAScript

    If I had to pick a solution for the world to use for rich internet applications, I'd choose OpenLaszlo over Java Applets, Java WebStart, Macromedia Flex, DHTML, etc.

    1. Re:OpenLaszlo's potential goes beyond the web by killjoe · · Score: 2, Insightful

      XUL only works in firefox, XAML only works in windows (vista) and probably only in IE.

      Other then that the same idea though. If you don't want to tell some of your customers to go away because they chose a different browser or a different operating system then you then you should use a technology that is supported by everybody.

      --
      evil is as evil does
  9. Re:HUH! Yeah, absolutely nothing, listen to me by SirSlud · · Score: 4, Insightful

    Its not edit, like YOU edit the XML, its edit as in have non-programmers edit data. You can use Lazlo to build web apps using SWF or DHTML for the view layer, and from my experience, Lazlo is makes quite a nifty RAD web platform to provide the view/edit layer for XML data (and under that, the database layer.) Others have pointed out that your Lazlo app can speak directly to java applications as well. Its an extremely thin platform to provide a really rich user experience on, with minimal re-inventing-the-wheel overhead.

    > The results (at least, with me as the creator) support every browser that at least basically conforms to the W3 standards.

    What do you want, a gold star? Why is this site full of programmers who discount new tools to add to the toolbox out of hand? Lazlo is pretty neat. I was a distributed web application programmer for a long time (FreeBSD, CORBA), now I write games for consoles like the PS2 ... if I didn't have tools to make my job easier, and had to do everything in vi just to prove I could, I'd go crazy. I think programmers who are so self-contented with being able to do things the 'hard-core' way just because they can are seriously missing the point. I can do everything you can do, but the more important question is why would I want to? Sure, I still use vi from time to time, but only when it makes sense to do so. I'm open to anything from vi to Visual Studio, as long as it saves me time and makes it easier for me to make my knowledge more valuable to people around me.

    --
    "Old man yells at systemd"
  10. Re:Dumbing Down? by mangu · · Score: 3, Insightful
    Are you the same guy that uses vi because it does the same thing as notepad?


    I'm the guy that uses vi because I could never guess how to make notepad do the simplest things one could imagine. Like indenting a function, showing code with syntax highlight or moving to the start of the next block.


    Those things that every programmer does all the time and are so simple in vi and so impossible to do in notepad.

  11. Mirror up by SimHacker · · Score: 2, Informative

    Owch! I restarted apache and mysql, made a static text mirror of the drupal page, and RewriteRuled it into place at the original url: http://www.donhopkins.com/drupal/124 Now maybe you can fetch the article, I hope.

    Sorry about the embarassing Dru Paux.

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
  12. Re:While you wait for a mirror... by SimHacker · · Score: 4, Informative

    There's a major and important difference between Flex and OpenLaszlo: Flex is designed to lock you into Flash, and OpenLaszlo is designed to free you from Flash and enable you to deploy your application on other runtimes like DHTML. Also, OpenLaszlo is true Open Source Software, and FLEX is not. FLEX has some strict licensing restrictions about how you can use it, how you can modify it, and what you can the source code.

    Why do you say that Flex 2 applications run much faster? They're both running on the same Flash player. The main overhead is rendering graphics on the screen, followed by interpreting the SWF byte codes. Why should FLEX applications be any faster then OpenLaszlo applications? What do you mean by "the programming model is better"?

    Are there any application as complex as Laszlo Mail implemented FLEX? Can you point us to any FLEX applications of similar complexity that we can test drive, and compare the speed for ourselves?

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
  13. One major shortcoming. by Schmig · · Score: 3, Informative

    I did a development job with Flex lately and was impressed, to say the least. In less than a day I had prototyped the entire interface of a rich administration UI, including tabbed panels, wizards, drag and drop between lists, etc.

    Contrast this again so called AJAX; the day would have spent trying to figure out why my resizable table columns were jumping across the page in internet exploder. A comparable prototype would have taken weeks.

    Once finished that work I thought seriouly about moving my own projects across to Flex but was put off by the prohibitive price (OK, I see this has changed in some way apparently...) So I investigated Lazslo, and herein is the point I want to make.

    Laszlo lacks an *extremely* important aspect of Flex; declarative bindings from client side flash controls/models to remote java beans. In Flex, you can provide a thin service wrapper for whatever API you want to work against and declaratively tie client apps to it in minutes. Flash looks after the (asynchronous) serialization of deeply nested java obj graphs to actionscript and vice versa; in my experience this worked flawlessly. Lazslo on the other hand required the client to invoke something akin to a servlet that would generate a bunch of XML; this could be parsed by the client runtime and various controls populated.

    Seems to me this is quite a major shortfalling compared to Flex which can for instance bidirectionally bind list controls to the return value of your service method public List getXXXXX. IMHO it puts the products in two different leagues. And mind you this was Flex 1.5 so probably the technology is better again. Apologies for sounding like a salesman..but I felt here at last was a web UI technology usable without selling one's soul...

  14. We wrote Gliffy in Laszlo... by vidog · · Score: 3, Interesting

    ...and it worked for us.

    Our web based diagram editor:

    http://www.gliffy.com/gliffy/

    Chris Kohlhardt
    Co-founder, Gliffy Inc.

  15. Just the tool for creating SUBSCRIPTION software? by macraig · · Score: 2, Interesting

    Yep, this is exactly the kind of tool that Microsoft and other Big Software wants to have and see widely used. The more that people begin seeing software as deliverable "content" rather than the buy-it-at-Sears appliance that it is, the easier it will be for Microsoft and other Big Software companies to force us to pay for it all every month.

  16. COMIX on LAZSLO by tiago.cardoso · · Score: 2, Interesting

    Hey, Laszlo also worked for us in a good way.

    MaiNada Comics use Open Laszlo for the drawing and displaying of comics.

    It's a new and free site, where users can draw their comic strips directly online. It's really fun and has some cool features. Other users drawing are drawn in "real time" and are ranked by everyone. Strips can be viewed by ranting, date or user. Anyone can even blog their comics with one line of code (an iFrame link). This is an important resource to artists wanting to publish their work online without the knowledge to create a website. And it's a good initiative for comic art.

    Chek it out and see what Lazslo can be used for!
    ( MaiNada Comics - Laszlo Drawing tool )

    --
    Tiago Cardoso
  17. Nope by The+Cisco+Kid · · Score: 2, Informative

    Well, it appears to be flash based, and while it sort of works, when I tried the laszlomail demo, none of the 'form' fields had labels, eg, I had no idea what to enter in each one. (FireFox, WITH the latest flash plugin, on FC5)

    If it was truly portable, it wouldnt depend on flash. And to be honest, flash is a horrific thing for anything interactive. Its great for cartoons and entertainment, but nothing that you actually need to use for anything serious.

    1. Re:Nope by SimHacker · · Score: 2, Insightful

      Kid, you are completely missing the point. Go back and read the fucking article. OpenLaszlo is a high level XML/JavaScript based language that COMPILES into SWF, and now also COMPILES into DHTML/JavaScript. It's INDEPENDENT of Flash, because it targets other runtimes, including browsers WITHOUT the Flash plug-in.

      Your misunderstanding is like complaining that C++ locks you into 68000 machine language, because the first version of CGG initially targeted 68k. C++ is a (moderately) high level language that can be compiled to many different platforms. GCC in no way dependent on the 68000 processor, and it doesn't directly expose any 68000 specific features, so code you write in C++ can compile to any processor that the compiler supports. Do you see the analogy?

      To take the analogy a bit further, Cygnus made their money by supporting GCC and porting it to other platforms like the Sony Playstation, in many cases paid for by the developers of the platforms themselves. Laszlo Systems uses a similar open source model, developing OpenLaszlo applications like Laszlo Mail for big corporate customers like Earthlink, and enhancing OpenLaszlo to support popular platforms like DHTML and the latest version of Flash.

      On the other hand, FLEX is like a proprietary version of GCC that only compiles code written in a non-portable platform-specific language that only runs on one vendor's processor, and the code you write is by design NOT portable to any other platform, and you're NOT allowed to look at or modify the compiler source code, NOR modify it to support other platforms. And that's a lot less useful than an open source platform independent language like OpenLaszlo. FLEX is a textbook example of vendor lock-in, because it's purposefully design so it doesn't support any other platform than Flash.

      Adobe has a long track record of using vendor lock-in to tie customers into their products, and then quietly dropping their support for products without warning developers that they're about to have the rug pulled out from under them. Case in point: SVG. The SVG generated by Adobe's tools only works in Adobe's SVG viewer, and do you really think SVG has a future at Adobe, now that they've bought Macromedia and moved onto Flash? Adobe was the main company propping up SVG, just because they were fighting against Macromedia Flash, and that's over now. The fat lady has sung, and SVG is dead.

      -Don

      --
      Take a look and feel free: http://www.PieMenu.com