Slashdot Mirror


Linux 'Weblications' with SashXB

Ches2000Pro writes "Via Wired News, IBM has announced a new Linux scripting environment called SashXB. From their description: SashXB is an open source application environment that exposes native functionality to JavaScript. It's ideal for web developers with HTML and JS skills who want to write full-featured native applications, as well as experienced programmers who'd appreciate the convenience of rapid application development. SashXB is being released under the LGPL license." It's not exactly new, but seems to be quite usable now. Has anyone used this?

181 comments

  1. exposes native functionality to JavaScript by wiredog · · Score: 2, Informative

    Am I the only one who gets hives thinking of the security implications of that?

    1. Re:exposes native functionality to JavaScript by SquadBoy · · Score: 1

      No No you are not. That is just wrong in *so* many ways. /me shudders

      --

      Cypherpunks: Civil Liberty Through Complex Mathematics. Those who live by the sword die by the arrow.
    2. Re:exposes native functionality to JavaScript by Anonymous Coward · · Score: 0

      No. The authors thought of it too. Hence the security model.

    3. Re:exposes native functionality to JavaScript by SCHecklerX · · Score: 2
      Am I the only one who gets hives thinking of the security implications of that?

      No, you are not. It's the same thing as ActiveX that everyone always complains about, judging by the description in the slashdot post.

    4. Re:exposes native functionality to JavaScript by hrieke · · Score: 2

      This is what is posted in IBM's forum:
      http://sash.alphaworks.ibm.com/framer/?//d eveloper . ash.alphaworks.ibm.com/community?.ee75bb2::4

      Begin Quote:

      Mike Oliver - 05:31pm Sep 24, 2001 GMT
      Chief Architect, Morningstar Systems Inc.

      to various IE and Windows Explorer functionality well beyond normal javascript and that is exciting.

      Here are my questions as it relates to this expanded functionality access:

      1) What are the differences in power between Windows Explorer Plug-ins and Sash Weblications for Windows Explorer? i.e. what can I do in one I can't do in the other.
      2) What are the differences in power between Internet Explorer Plug-ins and Sash Weblications for Internet Explorer? i.e. what can I do in one I can't do in the other.
      3) Since IE is cross platform with versions now for the Mac and others, will the Sash Weblications for IE be equally cross platform?
      4) One of the shortfalls of Java Applets has always been the sandbox. With the Java 2 plug in that is relaxed some, please discuss the advantages of Sash Weblications with regard to Java Applets.

      Can't wait to hear the responses.

      ----

      no response (sigh)
      Sean Martin - 10:01pm Jan 18, 2002 GMT ( 3.2)

      Hi Jan,
      Sorry if it seems that we are ignoring you on your last post (we certainly read it and don't mean to be rude at all), but I guess we had nothing constructive to respond with. Clearly the sash team strongly feels there is a market for something like Sash and we are finding many folks outside and inside IBM that agree with us... but then we *are* terribly biased ;-)

      One thing that may interest you that we are working on is a fusion between sash and a jvm.. this is no where near ready for public viewing yet, but will eventually allow mixing and matching between java and javascript code in a weblication, a unified security model, but with all the desktop integration and other system services sash currently enjoys.

      Finally I can assure you that the sash team is alive and well, although somewhat consumed building a family of killer applications using sash for our intranet.

      Kindest regards, Sean

      End Quote:
      I should point out that Mike Oliver originally posted this back on June 25, 2001.

      --
      III.IIVIVIXIIVIVIIIVVIIIIXVIIIXIIIIIIIIVIIIIVVIIIV IIVIIIIIIVIII...
    5. Re:exposes native functionality to JavaScript by xinit · · Score: 1

      Are you suggesting that a skilled web 'developer' who writes slick JavaScript wouldn't have a clue about system security? Or that perhaps giving the world at large access to your lower level functions is a bad idea? I mean, if that were the case, wouldn't MS have revamped IIS well before now?

      --
      --- http://foo.ca
    6. Re:exposes native functionality to JavaScript by Anonymous Coward · · Score: 0


      Am I the only one who gets hives thinking that this poster didn't actually read the article?

      The user has fine-grained control over a weblication's access to his or her system. If the weblication ever tries to do anything out of line (like access the filesystem or the network), the user has the option to terminate it or allow it to continue (as in the dialog above). Extensions can specify their own custom settings, maintaining the security architecture even as functionality increases.

  2. popups by Anonymous Coward · · Score: 2, Funny

    great, now native apps will be opening popups!

    1. Re:popups by phyxeld · · Score: 1

      great, now native apps will be opening popups!

      Actually, popups (and any untrusted web stuff) getting access to native apps should be a far bigger concern.

      --
      __
      Choose mnemonic identifiers. If you can't remember what mnemonic means, you've got a problem. - Larry Wall
  3. Huh? by Camel+Pilot · · Score: 1

    exposes native functionality to JavaScript

    You mean things like `rm -rf /*`

    1. Re:Huh? by Asprin · · Score: 4, Funny

      exposes native functionality to JavaScript

      You mean things like `rm -rf /*`


      YOU SEE, YOU SEE! LINUX *IS* BECOMING MORE LIKE WINDOWS!!!!!!

      --
      "Lawyers are for sucks."
      - Doug McKenzie
    2. Re:Huh? by Anonymous Coward · · Score: 0

      Next thing you know some evil M$ mole will expose 'rm' to shell scripting. Think of the security implications!

    3. Re:Huh? by The+Original+Bobski · · Score: 1


      I don't trust anything that exposes itself natively.

      Some things just aren't meant to be seen!

      --
      satire, n: 1) witty language used to convey insults or scorn; 2) a form of humor lost on most slashdot moderators.
    4. Re:Huh? by Asprin · · Score: 0, Offtopic

      Next thing you know some evil M$ mole will expose 'rm' to shell scripting. Think of the security implications!

      Ya know, now that you mention it... didn't MS and IBM work together at one point? Hmmmm.... OS2, I think it was....

      WOW! Can you say, "CONSPIRACY"! What if IBM's newfound "leadership" role in establishing Linux is really a cleverly disguised ploy orchestrated by Bill Gates to establish MS-style data/code comingling on the Linux platform with the eventual intent of equalizing the IT security/stability playing field by crashing EVERYONE's boats on the rocks! Then you go out and buy NT^H^H XP anyway because, shoot, if it's gonna get infected and send all your credit card numbers to Nigeria anyway, you might as well do it in style with really groovy lookin' pastoral wallpaper!

      Genius! Sheer GEEE-NEEEE-US! Muhuhahahahahaha!

      If you can't beat 'em, show 'em how to beat themselves - odds are, they'll do it!

      --
      "Lawyers are for sucks."
      - Doug McKenzie
  4. too bad by GutBomb · · Score: 2, Funny

    another reason billg can claim that a web browser is an integral part of the OS.

    1. Re:too bad by Heironymus+Coward · · Score: 1
      another reason billg can claim that a web browser is an integral part of the OS.

      I doubt he will use Sash as a defense of his claim. remember when microsoft didn't have a web browser, and netscape was the leading browser? and some pc magazines, caught up in the hype, suggested in the future, the OS could be replaced entirely by the browser?

      remember how bill freaked out about it? and took everyone off the other projects and made the internet the top microsoft priority?

      Sash does not sound like the sort of thing microsoft wants to endorse. especially since it does not need to run in a browser.

  5. JavaScript? by Anonymous Coward · · Score: 1, Funny

    So it'll need code forks for every OS and every distribution and every processor and every case color? Sounds like fun.

  6. Cool! Another way to gain root! by Papineau · · Score: 1, Interesting

    So now, it'll be even easier to do nasty things with JS!
    Who wants to take bets on when the first JS rootkit comes out?

    Of course, this is hypothetical as long as nobody actually uses it. If somebody takes it and puts it a a web browser, that will be the end (or the beginning).

    BTW, Windows already has that: ActiveX. You can see what kind of mess it can do.

    1. Re:Cool! Another way to gain root! by Anonymous Coward · · Score: 0

      ^ Knee Jerk Slashbot exposing no technical understanding whatsoever, but getting moderated up for saying something vaugely agreeable.

    2. Re:Cool! Another way to gain root! by Anonymous Coward · · Score: 0

      +2, 0.

      Look who's talking.

    3. Re:Cool! Another way to gain root! by Anonymous Coward · · Score: 0

      oh, no! you got modded up! you MUST be right!

      eat me.

    4. Re:Cool! Another way to gain root! by Anonymous Coward · · Score: 0

      ActiveX is OLE 2.0...

      ur r33t

  7. why by Anonymous Coward · · Score: 0

    i dont get this... spend your time learning a real programming language instead.

  8. IBM Supporting Linux by splume · · Score: 0, Offtopic

    At least IBM is contributing to the Linux cause. I'd like to see Sun do some actual application development for the env. rather than just throw it on their cheap boxes. This is definitly a good step in the right direction for the community!

    --

    Who is John Galt?
    1. Re:IBM Supporting Linux by Anonymous Coward · · Score: 0

      Humm..Sun is doing alot..
      Java(java.sun.com), Netbeans(www.netbeans.org)
      Star/Open-Office(www.o penoffice.org) comes to mind..
      as well as supporting lots of projects(www.isc.org,
      jakarta.apache.org etc..)
      And expect Sun to help alot on Gnome in the future..

  9. Browser OS by TheViffer · · Score: 4, Funny

    For instance, SashXB weblications can currently run in a simple window, in a Glade-designed UI, in a GNOME panel, or even in a console-based scripting environment. Future locations might include ScreenSaver, Nautilus, and an embeddable Bonobo component. We have also written extensions to access the native filesystem, play Vorbis files, parse and construct XML documents, communicate with other machines using the Jabber protocol, use FTP, and interact with the UI using GTK and Glade, among other things.

    Dang. Makes me wonder why we even need operating systems anymore.

    --
    -- Knowing too much can get you killed, but knowing who knows too much can make you rich.
    1. Re:Browser OS by h4l0 · · Score: 1

      Dang. Makes me wonder why we even need operating systems anymore.

      i thought that was the point of all these things like java and this was so that you could get away from OS specific development. who knows maybe one day we can get away from using an operating system on our computers, and when that day comes i will welcome it, as long as it works.

      --
      Avoid The Rush, Start Thinking NOW!
      --
      Any Spelling Or Gramatical Errors In This Post Are There On Purpose.
    2. Re:Browser OS by goldenfield · · Score: 1

      But AFAIK this guy is pretty Linux specific. It relies on Mozilla, GTK, etc...

      They mentioned a Sash for Windows client, so you can write some cross-platform apps (and they showed an example), but I think this SashXB client allows access to some X based UI toolkits - GTK, Glade. So I think you're SOL if you want to write cross platform.

    3. Re:Browser OS by jcorwin · · Score: 1

      Actually, many of the Sash extension APIs are cross-platform, and thus weblications written using these extensions will work on both SashXB and Sash for Windows. For example, the SashXB team has written a Checkers weblication that runs on both platforms.

      Other extensions, such as GTK and Glade, are linux-specific, so you still use the full functionality of a specific platform if you choose.

  10. Tried this before... by lkaos · · Score: 4, Interesting

    Many, many, moons ago when NS first released the Mozilla code (and the source for the JS API) for a research project I added a bunch of low-level classes to JS in order to allow it to be used for more advanced applications (independent of a browser).

    This was long before MSJScript, but anyway, while it worked out pretty cool for the most part, it was horribly painful to add classes and especially painful to map APIs (I was using Win32 at the time) to JS objects.

    My second problem was that as a language, JS is just to forgiving. Optional use of semi colons and other things such as that make it a little confusing to distribute and debug.

    I always have liked JS though and I'm glad someone wrote a good backend to it. I'll have to check it out...

    --
    int func(int a);
    func((b += 3, b));
  11. SashXB Testimonial by goldenfield · · Score: 5, Informative

    I figure we're all going to be asking what this is about...

    This is a reprint of text from MartinG from the old thread:

    > Can anyone point to a coherent explaination of what
    > Sash can offer on Linux, and what it's parts are?
    >

    This question is probably going to be asked a lot, so I guess we should
    start creating a FAQ somewhere.

    Anyway. This is of course by no means an official position on anything;
    these are just my thoughts.

    The Sash end-user gets:
    * Painless installation (no command line necessary -- straight from the
    browser to the [graphical] installer).
    * One-click uninstallation, with recursive dependency checking to prevent
    the removal of vital components.
    * A point and click interface for the execution and management of all of
    his weblications
    * Automatic updating of programs/extensions (this is in the works)
    * Tiny download sizes for native, fully functional weblications
    * Highly componentized infrastructure avoids bloatware -- a program only
    fetches and loads exactly what it needs to run.
    * Tight security controls every single thing a weblication tries to do

    The Sash developer gets:
    [from a structural point of view]
    * Rapid deployment and easy management of programs
    * Powerful native functionality without having to learn a new skill set
    (provided that he already knows JavaScript and HTML)

    [from a design point of view]
    * Ridiculously easy drag-and-drop design for his weblication's UI
    * Painless integration of UI with SashScript
    * A full-featured IDE which takes him from start to finish in creating a
    weblication, including:
    - syntax highlighting
    - syntax assistance (a la Microsoft's Intellisense)
    - multiple document/multiple window interface
    - Druids (wizards) which aid in the creation of any given action,
    or in the creation of the weblication as a whole

    I'm sure there are more features which I am missing right now.

    Yeah, this sounds terribly hokey, but it's actually true. We've created a
    sample text editor, a web browser, even a simple Lotus Notes mail client
    (as demos), each in about an hour, start-to-finish.

    Man, I really do sound like a salesman ;).

    As for parts, perhaps that's for another email. There are two main parts:
    the runtime, which runs the weblications, and the WDE (development
    environment) which aids developers in writing weblications. For more info,
    check out the README.* files in the source tree...

    AJ

  12. Weblications == bad by Arethan · · Score: 2, Offtopic

    I finished doing a web-based application for a client about 4 months ago. That was a complete nightmare. They wanted native gui functionality, yet cross-platform, and it had to work on netscape (all vers) and IE (all vers). Oh, did I mention that we couldn't expect the users to download anything additional, EVER? So that ruled out java applets (since xp doesn't have a jvm by default). The whole thing was done with ASP, Javascript, and plain html forms.

    Making a long story short, the Netscape 4.x functionality ended up being severely lacking (since 4.x JS engine wasn't capable of performing most of the functionality they wanted). Oh, we weren't allowed to refresh the pages very often, so almost everything had to be done with JS actively manipulating the current document. To make matters worse, my spineless boss allowed them to change the spec several times throughout the project. When you have 1000+ lines of JS per page, any little change is a pain in the ass.

    1. Re:Weblications == bad by kato · · Score: 4, Informative

      That's irrelevant to SashXB, though. SashXB uses standard JavaScript and HTML (which is supported brilliantly in Mozilla) and does not even require network access to run the weblications. A weblication runs inside of a container called a Location, which uses a JavaScript interpreter to handle calls from a HTML DOM or a glade layout. So, although the entire application may be written in JavaScript, it is far from a traditional web application.

      I would suggest that everyone try out SashXB before they make a judgement. Try the FTP client, it rocks.

    2. Re:Weblications == bad by zmooc · · Score: 3, Interesting

      So does that make web-applications bad? No. It sounds project which should never have been accepted with those requirements. And with 1000+ lines of JS per page, I hope there's only 1 or 2 pages? If not: how many code did you duplicate? Quite a lot I believe. As a company developing web-applications, you should know that it is almost impossible to deliver an application with a lot of JavaScript for all platforms. If the client still wants it, don't accept the project or you'll be screwed.

      --
      0x or or snor perron?!
    3. Re:Weblications == bad by Allen+Varney · · Score: 1

      They wanted native gui functionality, yet cross-platform, and it had to work on netscape (all vers) and IE (all vers). Oh, did I mention that we couldn't expect the users to download anything additional, EVER? So that ruled out java applets (since xp doesn't have a jvm by default). The whole thing was done with ASP, Javascript, and plain html forms.

      Sorry for a newbie-type question, but could you have done it in Flash? I believe there are Flash plug-ins for all the platforms you mention. Flash 5 supports XML and can talk directly to databases. I know Flash has a horrible rep among Web designers, but none of the objections I've seen are inherent in the technology. They're all design issues that can be circumvented with intelligent planning.

    4. Re:Weblications == bad by Arethan · · Score: 2

      There were only 3 pages with that much code, and their functionality was extremely different, so code reuse wasn't possible. Believe me, I looked! And yes, I knew as well as you that this project would be impossible to do. I fought it tooth and nail, yet my boss only saw the dollar signs floating by.

      My first reaction to the mockups we were given was, "we're doing this with java applets, right?". Once that was shot down, i knew the project was impossible. It ended up being at least three times over bugdet, and my the company had only charged the client a flat rate for the whole sha-bang. So, yes, we got screwed.

    5. Re:Weblications == bad by Anonymous Coward · · Score: 0

      Using Flash as a RAD tool for database-backed screens just seems sooo wrong. Don't we already have VB, Java, Delphi, Clipper, and so on?

      Also the "Flashlications" I've seen haven't been anywhere native-like. Usually some graphics dude pulling himself with fancy animations that aren't very usable.

      I agree that they should never have taken this project as speced. Most of their code will probably be junked and rewritten as more standard HTML form stuff.

    6. Re:Weblications == bad by zmooc · · Score: 1

      Well good luck working there then:P Has your boss learned it's lesson by now?:)

      --
      0x or or snor perron?!
    7. Re:Weblications == bad by zangdesign · · Score: 2

      Flash doesn't work on Linux without some gymnastics. So far, no one has ante'ed up to write a Linux-native Flash plug-in.

      Other than that, Flash is a pretty horrible piece of software to go writing applications in. It requires a good deal of graphical thinking, and the underlying structure of Flash does not lend itself to writing full-blown applications.

      This, of course, is only my opinion.

      --
      To celebrate the occasion of my 1000th post, I will post no more forever on Slashdot. Goodbye.
    8. Re:Weblications == bad by Anonymous Coward · · Score: 0

      I would not discount Weblications just because you have problems making web apps that support NS 4.x.

      Anyway, it sounds like Weblications run server side on the local machine. So don't have to worry about
      flaky browser JS.

    9. Re:Weblications == bad by Anonymous Coward · · Score: 0

      Yeah, I'm glad Netscape (all versions) and IE (all versions) suddenly translates to "which is supported brilliantly in Mozilla" (all versions eat ass).

    10. Re:Weblications == bad by Arethan · · Score: 2

      I'm not sure. They got so close to bankrupt that they had to cut their staff down to ~3 people. This is after they already had to make cuts from ~30 ppl down to ~8. I made the first cut, but started looking for alternate jobs right away. I was laid off when the second round of cuts came along.

      My guess is, no, they haven't learned their lesson. I don't expect them to survive the rest of this year.

    11. Re:Weblications == bad by 4of12 · · Score: 2

      Oh, we weren't allowed to refresh the pages very often,

      Oops.

      I've often thought that a reasonable GUI could be emulated with enough server side logic (couldn't PHP be used for this?), but the premise rests heavily on having a really fast connection.

      --
      "Provided by the management for your protection."
    12. Re:Weblications == bad by Anonymous Coward · · Score: 0

      So "eating ass" is a good thing... Not like sucking ass?

    13. Re:Weblications == bad by Anonymous Coward · · Score: 0

      ...but the premise rests heavily on having a really fast connection.

      And users that don't have a 'click' sound when pages refresh...

    14. Re:Weblications == bad by Anonymous Coward · · Score: 0

      Flash cannot talk directly to databases.

    15. Re:Weblications == bad by Tablizer · · Score: 1

      (* I've often thought that a reasonable GUI could be emulated with enough server side logic ....but the premise rests heavily on having a really fast connection. *)

      Do you mean via mostly client-side code or server-side code?

      I have come to conclude that most typical B-to-B and intranet applications could be drivin by relatively simply GUI commands in a GUI-Browser. The problem is that any HTTP-based GUI-like thingy ends up trying to do it via client-side scripting or applet-like technology. The "commands" to draw and handle events from a typical custom biz app are not that large I have concluded after thinking about this issue for more than 5 years. IOW, the GUI can be entirely server-controlled without local scripting. (My personal experiment and draft protocol is called SCGUI, plug plug.)

      IOW, we don't need to download scripts and EXE's per app to get the performance and response needed for real GUI's. Why does the industry keep reinventing this wrong wheel?

    16. Re:Weblications == bad by Tablizer · · Score: 1

      (* Anyway, it sounds like Weblications run server side on the local machine. *)

      Isn't this contradictory?

  13. Before you ask: SashXB and Security by jcorwin · · Score: 5, Informative

    Keep in mind that SashXB uses JavaScript as an *application* development language, not as a webpage scripting tool. Sash weblications are run just like traditional applications -- not by just browsing to a page in Mozilla. The native functionality added to JavaScript is limited by the Sash security manager, which allows granular control over access to system resources on a per-application basis. For example, if a weblication needs access to the filesystem, the user will be notified prior to installation and be given full details of the weblication's requested security permissions. Sash was designed with security in mind, and is in fact more secure than a typical native application written in C/C++/Perl. Because the JavaScript code is interpreted, the SashXB runtime can actually check each JavaScript call.

    1. Re:Before you ask: SashXB and Security by goldenfield · · Score: 2, Interesting

      Now I did the little tour of SashXP - it looks like the end user has the option of accepting/denying access to local resources via a dialog box. So it seems like you could have the same kinds of problems you do with those email viruses - silly users blindly clicking "Ok, go ahead and erase all my local filez."

      In any event, this seems like a pretty handy tool for doing development on trusted networks like corporate intranets. At least if your corporate end users have linux on their desktop. :/

      Maybe too some enterprising college students will be able to do some cool things with it...

    2. Re:Before you ask: SashXB and Security by Anonymous Coward · · Score: 0

      At least in the Windows version of Sash, if an application requests really high permissions, you get a big nasty red bar saying something like "This application could be really dangerous!"

  14. Windows has had this for a while by interiot · · Score: 5, Informative
    Windows has had this for a while, via its Windows Script Host. You could associate it with .js or .vbs files, and just double-click them to run. I ended up using them just because the limitations with normal batch files is so great.

    Also, the upcoming JScript.NET will have similar functionality, but will be cross-platform.

    1. Re:Windows has had this for a while by Anonymous Coward · · Score: 5, Informative

      This is true. SashXB and Sash for Windows provide similar functionality to that of the Windows Scripting Host. However, there are many advantages that the Sash system brings. For instance, installation and security models. Sash installers will seek out dependencies and automatically install them and also has an automated update and controllable caching functionality. This is all built-in...no messing around with InstallShield or anything like that. Also, Sash extensions allow you to expose more functionality to JS with the granular security model of Sash. The most you can do in WSH is to instantiate more ActiveX objects which simply run more binary unchecked code.

    2. Re:Windows has had this for a while by RevAaron · · Score: 2

      Double-clicking WSH scripts doesn't compare to this. Sash is an entire environment for developing applications, not just a means to double-click a script. You can do that with any decent file manager under X.

      It's a shame WSH doesn't provide the application scriptability that AppleScript does, it's a pain to automate apps on Windows in comparison. Like WSH, you can have language plug-ins for the AppleScript system, scripting any AS-aware app in whatever the language has a plug-in, perl or JavaScript, for example.

      --

      Working toward a usable PDA environment in the spirit of Newton OS: Dynapad
    3. Re:Windows has had this for a while by Firlefanz · · Score: 2, Informative

      Disclaimer: I work for IBM, these views are my own however

      In the last weeks I played around with Sash a little bit and found that it exceeds the capabilities of WSH by far.

      Sash allows me to create GUIs in HTML and the programming logic in SashScript (a superset of JavaScript) similar to creating webpages. Those files run like regular programs, desktop toolbars (like the IE5+ address toolbar or quicklaunch toolbar), IE toolbar extensions, Start Menu Search entries, ... you name it.

      Adding a german-english translator to my desktop as a taskbar enty field was a matter 4 lines of HTML and JavaScript code - this is what sold Sash to me.

      Wolfram

    4. Re:Windows has had this for a while by Ephol · · Score: 2, Informative

      Actually I think HTA (HTML Applications) is the closer Microsoft technology to this. I think it was first introduced in IE 5.0 (may have been 4.x but I don't remember). Basically what you can do with it is rename any html file to .hta and it is then run and acts and has the permissions of an application. There is only one specialized HTML tag used, to specify the icon file, borders, whether or not to allow multiple instances, etc., but other than that its all HTML/CSS/Javascript/ActiveX as far as IE supports it. You also have color constants in IE which match up with the user defined system colors as well, so you can make some pretty nice looking things with it. I've made several apps I use myself and I quite like it actually.

      Anyway, more information (general and reference) can be found on this page.

  15. oops. by room101 · · Score: 2, Funny

    Oh, I thought it said SlashXB. Nevermind.

    --
    room101 -- how much can you stand before they break you?
    (they always break you eventually)
  16. deep breath.... by Anonymous Coward · · Score: 4, Insightful

    ...ok...

    JavaScript is just a language, just as Python, Perl are languages.

    JavaScript can be hosted by browsers, shells, custom applications, etc...

    It can only access the OM's supplied to it... For instance, the most (in)famous is the DOM... remember, Document Object Model...

    So, if someone wants to write a shell host, expose shell functionality as a SOM (Shell Object Model), it's entirely up to them, but DOES NOT COMPROMISE BROWSER SECURITY....

    I'm begining to think "News for Nerds" means techno-weenies, who have no technology/development/systems background whatsover, duuuuuuuude, lets qo to a 2600 meeting and talk about all the coooooool hacker movies we watch.....

    1. Re:deep breath.... by Anonymous Coward · · Score: 0

      i'm still waiting for the Shell Or Document Object Model. SODOM.

    2. Re:deep breath.... by TRACK-YOUR-POSITION · · Score: 1
      DOES NOT COMPROMISE BROWSER SECURITY....

      That's assuming no IE-style bugs whatsoever in it's integration with a browser, isn't it? It seems highly probably that while the SPECIFICATION does not compromise security, the specification is complicated enough that most implementations will compromise you, at least at first.

    3. Re:deep breath.... by Anonymous Coward · · Score: 0

      No. Sash uses Mozilla but is a separate executable. Even if SashXB's security model were completely broken, there is no way for Sash to screw up your browser security.

    4. Re:deep breath.... by TRACK-YOUR-POSITION · · Score: 1
      No. Sash uses Mozilla but is a separate executable. Even if SashXB's security model were completely broken, there is no way for Sash to screw up your browser security.

      Perhaps I'm just confused by this definition of 'browser security'. If I install this SashXB, and I go to some page in Mozilla that takes over my computer by using Sash, would this count as "screwing up my browser's security?" Because it sure counts under any concept of security that anyone about.

    5. Re:deep breath.... by Anonymous Coward · · Score: 0

      Weblications are installed and run locally, just like any shell script or executable. Any web page content will not be able to start SashXB and certainly will not be able to take over your computer.

    6. Re:deep breath.... by Anonymous Coward · · Score: 0

      Not if they added to the language in the host, giving system level functionality.

      Then it does open a whole new world of client side exploits (or could).

      This isn't javascript, this is SashXB. SashXB is a wrapper around Javascript, with its own interpreter. The JVM is where your security lies, not in the language itself.

      From other posts SashXB has reimplimented the security, but posts like yours makes me think that Slashdot is news for techno-weenies that don't have the ability to analyze a simple system.

    7. Re:deep breath.... by Anonymous Coward · · Score: 0

      JavaScript is also a particularly poorly designed language, a language that makes it very likely that you will create security problems by accident.

  17. What I saw by Matey-O · · Score: 2

    "Linux 'Weblications' with SlashXP"

    I had a hard time picturing CmdrTaco et al. Embracing porting slashcode to XP. :P

    --
    "Draco dormiens nunquam titillandus."
  18. See also: XWT by adam_megacz · · Score: 4, Interesting

    This is quite similar to XWT. XWT is often described as "A 'lite' version of Mozilla's XUL, packaged as an ActiveX/JavaApplet, using XML-RPC instead of XPCOM.

    From the xwt.org front page:

    XWT is the XML Windowing Toolkit. It lets you write remote applications -- applications that run on a server, yet can "project" their user interface onto any computer, anywhere on the Internet....

    Unlike all other remote-display technologies, XWT applications are usable and responsive regardless of network congestion, delays, and even complete network failures.

    The XWT Engine is packaged as both an ActiveX control and a Java applet, so you can access XWT applications from all major platforms (Win95/98/ME/NT/2k/XP, Linux, Solaris, MacOS X) without installing any additional software. It is distributed under an open source license (LGPL and GPL), so it can easily be ported to new platforms.

    There's a tutorial to walk you through creating a tic-tac-toe application and a comprehensive reference spelling out all the nitty gritty details about how the engine works.

    1. Re:See also: XWT by LetterJ · · Score: 1

      I wondered if you'd pop up in this discussion. :)

    2. Re:See also: XWT by adam_megacz · · Score: 1

      I wondered if you'd pop up in this discussion. :)

      No doubt =)

      Care to post a few lines about your plans to use XWT to enhance PHPTriad?

    3. Re:See also: XWT by LetterJ · · Score: 2

      For the current Alpha release of PHPTriad, I added an "administrative" Apache service listening on port 1005. It has a completely separated configuration so the user can't screw it up. A control panel uses that to run PHP scripts for starting/stopping Apache/MySQL and other admin tasks. The current implementation is done with HTTP GET/POST. I'm now starting on an XWT version that will provide a more native look/feel with added functionality instead of routing it through a web browser.

    4. Re:See also: XWT by madenosine · · Score: 1

      Thank you.....
      XWT rules and has been ruling for some time now

  19. Thank you by Grape+Shasta · · Score: 4, Funny


    It's all these great new terms like "weblications" that make this world of new technology (or worlnewology!) a better, happier place.

    --

    "I am a cipher, a cipher, wrapped in an enigma, smothered in secret sauce" -Jimmy James
  20. Wait a second... by ACK!! · · Score: 1, Troll

    Why is this such a big deal in terms of exploits?

    After all if we are talking Windows hosts there are about a dozen ways to screw the box up using Windows scripting tools and a half bit of VB knowledge. Is there something I am missing from the article?

    Most of the posters here have either screamed about the possibilities of exploits or reached the same conclusion I just did. What are the other half missing?

    ________________________________________________ __

    --
    ACK /ak/ interj. 2. [from the comic strip "Bloom County"] An exclamation of surprised disgust, esp. i
    1. Re:Wait a second... by Anonymous Coward · · Score: 0

      And if we are talking about Unix hosts, there's more than a dozen ways to screw up the box with Perl and shellscripts. Any locally executed code might have security implications -- systems like these that have some sandboxing tied into the object model/API are a solution, not a problem.

      The comments rather depressing because "the other half" probably don't know the difference between JavaScript, Java, their browser, and their own bunghole, but they are still talking anyway.

      Even the slightly clued-in karmawhores don't seem to grasp the difference between Microsoft's security problems by design, and their numerious implementation bugs. Just because MS's products get confused between local and foreign code doesn't mean that there is anything wrong with JavaScript.

    2. Re:Wait a second... by Anonymous Coward · · Score: 0

      Most of the posters here won't be happy until the only choice is Linux running GNU software.

      Or until the only people who are allowed to use computers are them (not licensed users, not just anyone, just them).

  21. Great by Anonymous Coward · · Score: 0

    Next all we need is native support for Lingo and then Satan will have made Linux his home.

  22. So... by sulli · · Score: 2
    will we have Slashvertisements for Weblications?

    Just asking.

    --

    sulli
    RTFJ.
  23. Why to use such weird language by jtra · · Score: 0, Flamebait

    .... when we have excelent object oriented languages for scripting like ruby ( http://www.ruby-lang.org ), that use features like iterators (python have this too since 2.2), mixins and pols.

    --
    -- Wanna textmode user interface for ruby? http://freshmeat.net/projects/jttui/
  24. OS X? by endquotedotcom · · Score: 1

    Any idea if you can use this to make OS X apps, or if there are plans to port to it?

    1. Re:OS X? by kato · · Score: 1

      If you run an X server on Mac OS X, it should run fine. Rule of thumb: if you can run the gimp on a platform, you can run SashXB on the platform (with some slight modifications, if necessary).

      Bottom line: SashXB is open source. If you have a Mac OS X box and the time, try it. Better yet, use the Cocoa MozEmbed and make it run natively.

  25. But does it run on FreeBSD? by Anonymous Coward · · Score: 0

    I do all my work on FreeBSD. If this is
    truly free source, then it should compile
    and run on BSD.

    1. Re:But does it run on FreeBSD? by Anonymous Coward · · Score: 0

      It looks like they've only installed on Linux systems. But since all the source code's available, there's no reason why it shouldn't work.

      Check out: http://www.sashxb.org/download/

    2. Re:But does it run on FreeBSD? by Anonymous Coward · · Score: 0

      Obviously you didn't hear ....

      BSD IS DEAD!

  26. Been thinking about this by pubjames · · Score: 4, Interesting


    This actually fits in quite nicely something I've been thinking about.

    One of the nice things about web pages is that you can just look at the source. Wouldn't it be great if you could look at the source for any widget in an application in the same way? Even make changes just by editing the source directly, if you wanted to. So, for instance, if I'm using a Word processor and there's a function I never use I can just delete it from the source script.

    1. Re:Been thinking about this by |DeN|niS · · Score: 2, Interesting
      Congratulations, you've just described XUL :-)

      Mozilla, and apps based on its tech, some Perl IDE (Can't remember the name right now) use XUL files to describe behaviour and appearance of widgets, DTD files to define different locales, and use javascript for their logic.

      I am using a US keyb layout now while used to a Finnish one, so I am not getting anywhere fast with this post, but have a look at the Moz stuff. It's perfectly possible (if not done already) to write for example an Office app using just those Moz tools. Including very rich features (HTML content, pictures, plugins, etc), drag and drop, clipboard, etc.

    2. Re:Been thinking about this by slymole · · Score: 3, Interesting

      Tim Berners-Lee, in his book Weaving the Web and in articles about the Semantic Web talks about his original concept of the web consisting of internal (two-way) as well as external (standard) links, and page editing being interactive; and of how market forces and the then available technology diluted this concept into today's model of the web.
      Nowadays, server-based software such as Wiki and variants make collaborative web editing possible, but mass practical application of internal linking is still a long way away, due to issues of trust and synchronization, although steps are being taken in this direction as well.

      --
      "We don't stop playing games because we grow old; we grow old because we stop playing games.."
    3. Re:Been thinking about this by sean23007 · · Score: 1

      if I'm using a Word processor

      You better be careful there, by capitalizing the word "Word" in the context of a word processor, you risk infringing on Microsoft's patent on the technology of Word and the concept of Word Processing. The BSA will contact you shortly, licensing fees for the use of capitalized "Word" are expected to approach US$3200.

      :)

      --

      Lack of eloquence does not denote lack of intelligence, though they often coincide.
    4. Re:Been thinking about this by MaxQuordlepleen · · Score: 2

      you're talking about Komodo. I use it every day, 10 hours a day.

      One thing to point out about Komodo, it's damned slow. Not sure if that's because of the built in Perl interpreter (for instant debugging) or XUL.

    5. Re:Been thinking about this by Jimmy_B · · Score: 2
      One of the nice things about web pages is that you can just look at the source. Wouldn't it be great if you could look at the source for any widget in an application in the same way? Even make changes just by editing the source directly, if you wanted to. So, for instance, if I'm using a Word processor and there's a function I never use I can just delete it from the source script.
      That's exactly what's so wonderful about the GPL. Of course, it's not quite so simple (you have to recompile, you have to set some things up), but the idea is the same. The difference with JS is that the source is open *by default* (since it's interpreted, and you have to run an obfuscator to close it), so many people open-source their scripts (though not in a legal sense, or in the Stallman sense) without realizing it, whereas with compiled languages like C it's closed by default (and must be opened by adding extra files to the archive).
    6. Re:Been thinking about this by tweek · · Score: 1

      It's funny. I don't find it THAT slow. Sure it's a bit sluggish at times but I wouldn't call it SLOW. Except maybe when you're debugging or opening files or closing tabs or...okay maybe it is a BIT slow.

      I'm actually pretty damned happy with it. I've been using it nonstop for about 3 weeks developing an internal PHP webapp and it's a lifesaver.

      --
      "Fighting the underpants gnomes since 1998!" "Bruce Schneier knows the state of schroedinger's cat"
    7. Re:Been thinking about this by Anonymous Coward · · Score: 0

      um am I missing the jist of your post or have you just discovered interpreted languages.

      anyone else remember typing in basic proggies from magazines on your 64 (or vic 20 for that matter)?

    8. Re:Been thinking about this by dublin · · Score: 2

      Although Wiki webs are nice in concept, I have yet to see one that did not very soon degenerate into a morass of ill-connected thought fragments. In fact, I think Wikis are quite possibly the strongest argument ever encountered for site administrators and/or moderators.

      For an example of what I mean, visit www.tuxscreen.net and just *try* to figure out what all you have to do to get the current version of the software installed and running. The information is there (mostly), but it's so fragmented as to make it pretty much impossible to find or use.

      Still, there's no doubt that two-way webs are someting we should strive for, a la Ted Nelson's Xanadu concept.

      Sadly, the fundamental problem is that information organization is what produces much of the value of information, and organizing information is something that's fundamentally hard and difficult to automate. (Not that the KM (Knowledge Management) guys aren't trying, but they've got a long way to go, and those are pretty rarefied tools, not available to most of us, either by reason of price or complexity/learning curve.)

      --
      "The future's good and the present is nothing to sneeze at." - Roblimo's last ./ post
    9. Re:Been thinking about this by MaxQuordlepleen · · Score: 1

      don't get me wrong...I used it for a few months before we bought, and I wouldn't have gotten the pointy-hairs to buy me a copy if it wasn't useful. The good definitely outweighs the bad.

      The regex prototyper and real time debugging are killer features, I just wish the damned thing was a bit peppier...

    10. Re:Been thinking about this by slymole · · Score: 1
      Not all information organization efforts can benefit from a two-way web, and some amount of moderation is always neccessary, as applied in the current model of cooperative weblogs (Slash, Postnuke, PHPnuke and others), in order to prevent degenerative effects.
      On the other hands, "grassroots" efforts such as Wikipedia and Freenet are natural candidates for the model of, more or less, direct interactivity that wikis provide. In both cases, information is accreted over time through community contributions, rather than actively harvested by site owners; whether it is authoritative depends on the level of community involvement and control provided by the software (eg. moderation and metamoderation).

      All in all, apart from the obvious rhetoric point for democracy being served by the collaborative organization of information (which is valid), other advantages of blogs and wikis include the formation of communities revolving around areas of interest, and positive contributions to the 'information tag' game (trying to keep up with the news), especially where technology is involved.
      Of course, they can never totally supplant central information dispensation efforts (news agencies, zines and portals), but they don't have to: they are designed to supplement such efforts and provide a modicum of control and feedback by the public.

      --
      "We don't stop playing games because we grow old; we grow old because we stop playing games.."
  27. Along the same lines... by RevAaron · · Score: 3, Interesting

    Sash is pretty old news... Saw it either here or on fm.net a year ago. However, a similar technology, XWT was released more recently, and may appeal to a similar crowd.

    --

    Working toward a usable PDA environment in the spirit of Newton OS: Dynapad
  28. Book about Sash (for Windows) by kato · · Score: 3, Informative

    For those of you interested, there's a book recently published by IBM about the Windows version of Sash. You can buy it online or download the entire thing from here.

  29. SashXB? by labratuk · · Score: 1
    I really don't understand why people can't come up with simple names for things. I mean, that's fine if it were an extension of something called Sash. But when you get to think up a whole new name from scratch? SashXB?

    I mean, they're a huge company with vast experience of naming products. IMHO, even sed, awk and grok are fine, because at least they are pronouncable, and probably stood for something once.

    Maybe I'm wrong though and there is a logical basis to the naming. If so, does anyone know what it is?

    I suspect that they might be getting their product names from /dev/urandom

    --
    Malike Bamiyi wanted my assistance.
    1. Re:SashXB? by Anonymous Coward · · Score: 0

      Sash for Windows has been around for quite a while. SashXB was started by some Extreme Blue (XB) interns in 2000 and re-written by full-time programmers this past year. So, SashXB is a logical name.

    2. Re:SashXB? by labratuk · · Score: 1

      Extreme Blue?
      wtf?!
      That's not logical!

      --
      Malike Bamiyi wanted my assistance.
    3. Re:SashXB? by Anonymous Coward · · Score: 0

      IMHO, even sed, awk and grok are fine, because at least they are pronouncable, and probably stood for something once

      Sed: Stream EDitor
      awk: Aho, Weinberg, and Kernighan (the developers)
      grok: Term from Heinlein's "Stranger in a Strange Land" not a Unix command. See the jargon file.

  30. 24h hours late? by Anonymous Coward · · Score: 0

    why do I have the impression that this article is 24 hours late?

  31. /. behind osnews.com? by Anonymous Coward · · Score: 0

    I find that slashdot is now getting behind in breaking interesting news. Like this news. osnews.com breaks this news first before /. follow suit. These days, I usually read osnews.com first before coming back to /.

  32. I love it by Anonymous Coward · · Score: 0

    I just downloaded some applications and I'm playing with the source code. I think this is great!

  33. I don't like this at all! by Anonymous Coward · · Score: 1, Funny

    Polluting linux with crappy applications written by script kiddies and web programmers is NOT the way to bring it to the mainstream! Sure, it worked for Windows, but our marketing budget is significantly smaller....

    1. Re:I don't like this at all! by zangdesign · · Score: 2

      Then what would you suggest, given that there is a limited marketing budget?

      Paying programmers to write quality applications?

      The everyone-contributes model only goes so far in application development and doesn't cover all the grunge-work that programmers won't do (user documentation; help files; clean, friendly examples).

      --
      To celebrate the occasion of my 1000th post, I will post no more forever on Slashdot. Goodbye.
    2. Re:I don't like this at all! by Anonymous Coward · · Score: 0

      I think it was the wise H. Simpson who asked:
      "Can't somebody else do it?"

      Seriously, when linux "makes it," what are the people going to be using? They will use RedHat, Mandrake, SuSE, and friends. I won't personally make any money from little Timmy installing Linux on his home computer. Therefore, I don't feel the need to write documentation to teach his sister how to set up Jabber to use her MSN account. However, one of those companies likely will make money on it because little Timmy (or his father) is likely to go to Best Buy and purchase a boxed Linux. Therefore, they should write the docs.

      Unfortunately, there ARE some people making money on Linux software that don't write good docs. (MySQL AB) I've been losing sleep for the past 2 days over a simple command line argument! Nowhere in the discussions of my problem did it list this cmdline arg as a solution. The description of the cmdline arg doesn't even mention that this may solve my problem. So, I recompiled, and tweaked and pulled my hair out until a not so proficient linux admin started safe_mysqld w/ the specific arg in quesiton (while drunk as heck) and it worked. We're not writing good docs, but neither are they. I'd say the everybody-contributes and the commercial model are about even...

  34. Hmm...I think I've seen this idea before by trainwrek · · Score: 2, Insightful

    ASP,JSP,ChiliASP,ColdFusion... Anyone with experience in writing script based web applications knows that it is a nightmare. You end up with thousands of lines of untyped script code that you have to maintain w/o a decent debugger or development envirornment. Hence the introduction of richer web development envirornments like java servlets and asp.net. This seems like a throwback to me.

    1. Re:Hmm...I think I've seen this idea before by magicianeer · · Score: 1

      ASP,JSP,ChiliASP,ColdFusion... Anyone with experience in writing script based web applications knows that it is a nightmare.

      Its no worse than unplanned C/C++/Java code. Planning (aka software design), not language, is the key to maintainability and debuggability.

      I build and maintain script-based websites written PHP, which has no debugger worthy of the term. A day or two (or three or more) of software design before writing code keeps them manageable. And review the design before patching.

      In a web-scripting environment, the IDEs just get in the way. You really need a debuggable browser (broken HTML, client JS), a debuggable webserver (what was POSTed, list ALL files accessed while handling the POST), and perhaps a debuggable database. Nothing like it exists for web developers (why not? Client -Server developers have had it for years-- instrumented protocol libraries, thread-safe tracing, multi-process logging).

      --
      You can have it good, fast, or cheap. Pick any two.
  35. Anyone? by mobiGeek · · Score: 3, Insightful
    Has anyone used this?

    Reading the posts thus far, has no one actually used this?

    --

    ...Beware the IDEs of Microsoft...

    1. Re:Anyone? by Anonymous Coward · · Score: 0

      It was essentially just released today.

    2. Re:Anyone? by Rookie · · Score: 1

      Disclaimer: I work for IBM ... I have a TON of IBM internal applications that are Sash enabled/powered. For example, i have a IM client that can talk to all major netowrks out there, plus the internal IBM messaging system (of course).

    3. Re:Anyone? by Anonymous Coward · · Score: 0

      Disclaimer: I helped write SashXB. It was officially released today.

  36. No Windows version. Interesting... by Jack+William+Bell · · Score: 1

    The subject line pretty much says it all.

    In many ways this looks like a Visual Basic for Linux. In some ways this would be more cool if there was a Windows version, simply because it would provide a cross-platform development environment that MS didn't control and that would allow for easy transition of users to Linux.

    Still, Linux only has some interesting possibilities as well...

    Jack William Bell; who writes business software for a living and would like very much to transition his users to Linux

    --
    - -
    Are you an SF Fan? Are you a Tru-Fan?
    1. Re:No Windows version. Interesting... by Anonymous Coward · · Score: 0


      If you would read other posts in this
      thread or, *gasp*, read their website
      you would see that there *is* a windows
      version:

      Sash
      for Windows

    2. Re:No Windows version. Interesting... by WildBeast · · Score: 3, Informative

      there is a Windows version, Sash has been available for two years. Not many people use it.

    3. Re:No Windows version. Interesting... by Jack+William+Bell · · Score: 0, Redundant

      I did go to the website linked on the slashdot article. There is no mention there of a Windows version. And I posted rather early, but did read the posts that preceded mine. So thank you for the link, but no thanx for the sarcasm.

      Still the link puts you ahead a couple of points...

      Jack William Bell

      --
      - -
      Are you an SF Fan? Are you a Tru-Fan?
  37. Extreme Blue by Anonymous Coward · · Score: 0

    http://www-913.ibm.com/employment/us/extremeblue/

  38. BBSes already do this. by Anonymous Coward · · Score: 0

    Synchronet BBS software has been doing this for about 8-9 months now, using JavaScript to control many aspects of the application as well as allow interoperability with other BBSes. Yeah, they're getting modern. Check it out at www.synchro.net - I've been using this BBS software for over a year now and the JS backend makes it incredibly simple to create applications for use with the system.

  39. My first SashXB script by Anonymous Coward · · Score: 0

    0wN5z.prototype.j00 = function () { this.lamer = 'pwned'; }

  40. No native Flash player? by miguelitof · · Score: 2

    Huh? So what would you call Macromedia's flash player for Linux?

    --
    --- Biffster.org
    "Bite my shiny metal ass."
    1. Re:No native Flash player? by zangdesign · · Score: 2

      An oversight on my part. My apologies.

      Flash still sucks as an application environment, though.

      --
      To celebrate the occasion of my 1000th post, I will post no more forever on Slashdot. Goodbye.
  41. Just use Ruby by Anonymous Coward · · Score: 0

    Server-side javascript used to be a function of old versions of NES, and it sucked then also. If you want OO scripting on the server check out Ruby, this is the best thing to happen to scripting yet. http://www.ruby-lang.org

    If you're going to toy with a new technology, it should be something that really brings something to the table. Ruby is that kind of tech. Like Perl, it is the work of one individual with a vision, not corporate marketing engineers.

  42. ide name by StandardDeviant · · Score: 1

    You're probably thinking of ActiveState's Komodo, which does other things in addition to Perl (Python, etc.).

  43. Wasn�t there a Lotus Notes Client in sash ? by LJPeixoto · · Score: 1

    I saw a reference to a Lotus Notes Client written in sashXB in the previous post, but now I cant find anything about it in the sashXB homepage. Is there such a thing ? It would be extremely helpfull in convincing my company into changing from Windows to Linux.

  44. Do we need another scripting language? by evilviper · · Score: 3, Funny

    What scripting languages do we have now? SH, Perl, Python, Ruby, Javascript, etc. There's plenty of them. Why can't we just stick with one (i.e. Perl) and end the needless complexity.

    --
    Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    1. Re:Do we need another scripting language? by Anonymous Coward · · Score: 0

      Why can't we just stick with one (i.e. Perl) and end the needless complexity.

      But sticking with perl wouldn't end any complexity.

      ;-)

    2. Re:Do we need another scripting language? by Anonymous Coward · · Score: 0

      What programming languages do we have now? C, C++, VB, Java, C#, etc.
      There's plenty of them. Why can't we just stick with one (i.e. Java) and end the needless complexity.

      Sounds much stupider when you change the terms, doesn't it? And to think... You were considered +3, insightful, instead of -1, blindingly ignorant

    3. Re:Do we need another scripting language? by spooge21 · · Score: 1

      In that case, why not just use Python? The point is that each language is designed to be used for certain tasks, and although you can use most of these languages to accomplish the same set of tasks some languages are better than others when it comes to certain tasks.

      One other thing: this environment is not really a new scripting language, rather it exposes native components to the JavaScript language. The JavaScript language has been around for some time now and is used in more than just browsers (think server-side JavaScript).

    4. Re:Do we need another scripting language? by evilviper · · Score: 2
      why not just use Python?

      Because Perl is insanely popular, and many people prefer the Perl language syntax and layout over python. Not to mention that perl is really just an extension of Unix... Maintaining the same style and expressions.

      The JavaScript language has been around for some time now and is used in more than just browsers (think server-side JavaScript).

      It sure as hell isn't running in MY brower. Perish the thought. Not to mention that Javascript is an incredibly weak language. I can't even imagine any useful purposes on the server side. Of course, that's what this is meant to address. It just doesn't NEED addressing.

      I can understand the need for a scripting language like perl, and even for PHP (while perl can potentially do the same function, PHP is far cry from Perl), but another scripting language simply reproducing funcionality is a terrible idea. Fragmentation was what endangered the future of Unix systems in the first place. Now we have to worry about endangering the future of scripting languages.
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  45. Database Integration? by SomeOtherGuy · · Score: 3, Informative


    Looked through all of the documentation for this and could not find anywhere that stated weather sash (windows or linux version) had the ability to work with ODBC or any other API's (OCI for oracle, or the MySQL API, etc) If not then this would be of little use for anything above and beyond your typical "Hello World", or "Ticker App" (reading from a flat file of course :)

    To see what it does however here is a link of a one page example that explains it better than reading the whole book!

    --
    (+1 Funny) only if I laugh out loud.
    1. Re:Database Integration? by Anonymous Coward · · Score: 1, Informative

      I believe that Sash for Windows has a DB2 extension. Just browsing through the SashXB site, it looks like it wouldn't be difficult to add a Linux database extension.

  46. You're not getting it by sys49152 · · Score: 3, Informative
    If I grok this right, this is a wonderful thing. What we have here is the ability to author a GUI (or character) application with separation of the UI from the code. Much like in a browser, you can have the UI described by HTML and events managed by JavaScript -- without a browser. Not only that, Sash is built on top of the Gecko rendering engine and XPCom among other things.

    Even as we speak I am writing an application for a customer. The app is a cross-platform, GUI/Character installer for their application. No existing installers could do what was necessary, so I'm writing a dedicated one from scratch. What to write it in? Perl/TK, was the only realistic choice.

    Now lets look at some Perl/Tk code as compared to SashXB (formatted poorly to avoid lameness filter).
    ### Create a new frame to line up the directory Entry widget with the file
    ### Browse button
    my $BrowseFrame = $UI{entryFrame}->
    Frame()->pack(-side => 'left', -anchor => 'w',);

    $UI{Balloon}->attach(
    $BrowseFrame->Entry(-textvariable => \$Input{TMPDIR},-validate => 'focusout', -validatecommand => sub {my $tmp = appendSlash($Input{TMPDIR}); $Input{TMPDIR} = $tmp;})->pack(-side => 'left',-anchor => 'w', -pady => 2,),
    -balloonmsg => $screen->{widget}->{TMPDIR}->{balloon});

    my $FileButton = $BrowseFrame->
    Button(-text => 'Browse',-width => 6, -command => sub { if (my $d = getDirectory()) { $Input{TMPDIR} = $d;}},)->pack(-side => 'right' -padx => 5,);
    Now what I'd much rather do is something like this:
    <form>
    <input type='text' name='TMPDIR' onblur='appendSlash()'>
    <input type='button' onclick='getDirectory()'
    </form>
    And have this run from the OS, not in a browser. It looks like Sash will let me do this, and what could be wrong about that?

    Since important parts of SashXB (needs a new name) are Gecko, XPCom, and the Mozilla JavaScript interpreter. It seems that rich, complicated UI's are in reach via XUL. I sincerely hope that a richer version of SashXB will soon be mentioned in the same breath as Perl, Python, and Ruby.
  47. Almost Insightful by Anonymous Coward · · Score: 0

    JSP needs to be left off your "ASP,JSP,ChiliASP,ColdFusion" list.

    Although its possible to right a JSP that is merely a big ugly server-side-scripted page, It can be used with good MVC design patterns.

    Use your JSP as simply a front end to business logic stored in Beans or EJBs. JSP is wonderful technology when used correctly.

  48. MacOS has had this for years by maggard · · Score: 3, Informative
    Seriously, through Apple's Open Scripting Architecture folks have been able to use any number of languages such a Tcl/Tk. Java, Perl, Python, Jpython, and JavaScript under MacOS & MacOS X.

    The great thing is that virtually every Mac application has hooks for scripting through the standard Apple Events model which is automagically available to all other OSA languages.

    --
    I don't read ACs: If a post isn't worth so much as a nom de plume to its author then I wont bother either.
  49. Seems Alot Like VB To Me by SkewlD00d · · Score: 2

    Doesn't this break platform independence? Wouldn't you be better off using JNI?

    --
    The biggest trick the devil pulled was letting lawyers become politicians so they can write the laws.
    1. Re:Seems Alot Like VB To Me by spooge21 · · Score: 1

      Repeat after me: JavaScript is not Java.

      I curse the day that Netscape coined the term JavaScript.

  50. Re:that's what M$ thought 6 years ago... by lugonn · · Score: 1

    ...and look what they started doing, creating ActiveX and .NET.

    I plan on creating a browser for p0rn only. It caches the p0rn files on a nfs partition that windows can't read, but my weblication thingy can. This way snooper programs can't see my p0rn cause it is not part of the windows file system. WHEEEEE!!!!

    You see, I'm shite at C++. I'm decent at C, Javascript, and Perl. So this is just what I need to feel like a real man (ok real geek).


    Yes, I'm a moron with 3rd degree burns.

  51. Javascript? Why? by Anonymous Coward · · Score: 0

    If I'm a Linux developer with access to all the tools that typically come with a Linux distribution, why would I ever want to develop applications with Javascript? Javascript is a horrendous kludge meant for simple, client-side behaviors. The people behind this technology are pure evil.

  52. RMS? by warkda+rrior · · Score: 1

    So where does RMS stand on this issue? It seems to me that the way this scripting environment works, it is somewhere between application-linking-against-a-library and external-process-execution. Can a non-GPL program be controlled from a script?

    --
    You need to install an RTFM interface.
  53. Yes you are. by autopr0n · · Score: 2

    How is this any diffrent then any other programming language?

    --
    autopr0n is like, down and stuff.
    1. Re:Yes you are. by Anonymous Coward · · Score: 0

      Since the whole idea of java(script) is to make little applications that run on a client machine, with out them doing anymore than hitting your web site:

      No, he isn't the only one.

      Java was designed to limit the amount of system level (i.e. deleting files, overriting files, writing inciminating childporn pics on the guys computer you just gave your URL to) functions a program has. This is for applets, and javascript, and the client side is the problem, not the server side.

      Otherwise they always have JNI to make all the system level hacks they want, and the Java security doesn't much matter anyway.

  54. Re: 2 FOOT HARD-ON! by lugonn · · Score: 1

    I am so excited about this! I can think of a million uses for this. Now Linux will come into it's own as a desktop. You can write tons of shitty little apps in no time with this. Which has been the main drawback of Linux.

    And since it exsposes the OS, there should be no reason why you couldn't access binaries with it as well(ala perl modules). And I can use DOM to make pretty interfaces too.


    die C# die!

  55. Well... by autopr0n · · Score: 2

    Then your client is a moron... That dosn't mean that IE/Moz wouldn't provide a stable platfrom... and did you think of using Flash (I don't know if it would have provided everything you wanted, personaly I hate flash :P).

    --
    autopr0n is like, down and stuff.
  56. Yeh, but by autopr0n · · Score: 2

    Well, you can get flash for linux, but Most windows/mac users woudln't need to download anything, and while probably less powerfull then JS/DOM it would provide a *stable* development platform for the guy to work with. crossplatform DHTML can really suck, I should know, I'm happy Autopr0n just shows up in netscape4x (they get fed a blank stylesheet, actualy)

    --
    autopr0n is like, down and stuff.
  57. Heh by autopr0n · · Score: 2

    I once saw a online chat application who's client side was an *animated gif* in an image map. yeh, really. It was insaine. And it actualy worked!. and worked well. It was pretty impressive. Of course, I have ethernet access to the 'net

    --
    autopr0n is like, down and stuff.
  58. A brain. by autopr0n · · Score: 2

    Isn't it obvious. Many people lack the ablity to think. it's a sad thing :(

    --
    autopr0n is like, down and stuff.
  59. Useful on Darwin/OSX? by clmensch · · Score: 2, Informative
    JavaScript OSA for MacOS seems like it might be something similar:

    JavaScript OSA is a port of the Mozilla JavaScript 1.5 scripting system to the Macintosh in the form of a OSA (Open Scripting Architecture) component. You can use JavaScript OSA as a scripting language in any Macintosh application supporting OSA languages, such as the Script Editor included with the MacOS or our own Script Debugger product.

    Though not necessarily made with "weblications" in mind, you could probably produce a full featured application using this AppleScript component (such as by making calls to a Unix shell or via XML-RPC and SOAP calls implemented in OSX 10.1). My question is, would a Darwin/OSX port of SashXB be more or less useful than just using JavaScript OSA for a system-level JavaScript API?

    --
    There is no gravity...the earth just sucks.
    1. Re:Useful on Darwin/OSX? by theolein · · Score: 0

      From what I read on the website it uses GTK+ which, at the moment in any case, means that it would only run under XDarwin.

      I do wish those guys porting the GTK+ to Cocoa luck. It would really make a whole load of applications suddenly useful.

  60. Java Webstart... by theolein · · Score: 1, Interesting

    This reminds me very much of Java webstart. The security model is also similar in that runtime verification is done.

    However, unlike Java, I think this might be very successful on the desktop and might release an avalanche of Applications and I certainly wish it luck and wish to congratulate the developers. The only problem that I can see is that it uses GTK+ which will make it difficult to port.

    For all those who kept on dissing Mozilla, perhaps now is the time to have a rethink.

  61. *sigh* by autopr0n · · Score: 3, Informative

    No, javascript is a programming language. It isn't designed to do anything other then let you program. It's actualy pretty good. You're talking about the DOM api that comes with web browsers.

    Also, Javascript has nothing to do with Java at all. It was origionaly called LiveScript before sun's Java came out and Netscape decided to confuse the fuck out of everyone.

    --
    autopr0n is like, down and stuff.
  62. What-plication? by JamesOfTheDesert · · Score: 1

    What does "weblication" mean? Is it the combination of "web" and "plication"? Or is it web replication? Web complication?

    --

    Java is the blue pill
    Choose the red pill
  63. Just what Linux needs... by NanoGator · · Score: 2

    ... A web-based virus toolkit! Ingenious!

    Anybody remember VB-Script? Oh wait, it's not MS, so new features are a good thing.

    --
    "Derp de derp."
  64. Fabulous. by johnnnyboy · · Score: 1

    Being a web developer I think this is fabulous!

    I'm going to give this tool a try.

    --
    "If a show of teeth is not enough, bite ... but bite hard!"
  65. Too Many Dependencies... by sergio · · Score: 1

    Unfortunately everyone is missing the point. The problem
    with SashXB is that it should be deployed as a stand-alone package
    without a dependency to certain particular versions of
    libraries! As soon as some of these change the whole thing would break!

    At least the diretibuition should be one single binary or it should load its own set of libraries.

    Personally it should have been built using wxWindows.

  66. Applets have been rejected. Give up already. by Tablizer · · Score: 1

    As long as you need to download Turing-Complete programs/applets/weblets, or whatever the fudge the spinsters call them this week, you will have too many versioning and security problems for it to work.

    It is fat-client in a leaky bottle all over again.

    What is really needed[1] is a lite-client remote GUI protocol (like SCGUI, plug plug). IOW, a GUI Browser that does not download any "smart" code that executes.

    [1] At least for B-to-B and intranet stuff. Businesses keep trying to create VB/Delphi-like GUI's with JS+DOM, and it really stinks.

  67. *its different so it must suck* by Anonymous Coward · · Score: 0

    Look at all these people bagging on sashXB because it seems too much like activeX. And we wonder why linux is not dominating the desktop environment. I have news for you all... its things like this which will help the linux desktop market. Besides, sashXB is really not as much like activeX as it is like JAVA, or even PHP-GTK, or maybe some resemblance to PERL-GTK..

    If you actually read the documentation you can see that the security hazards are no greater than that of JAVA. It all depends on the level of security of that which is containing the script, just as the JAVA runtime has its "sandbox policy" whilst being executed within an applet. I am confident that IBM has taken measures to keep security as a focus.

    This can be a good entry point for Linux-Would-Be developers who maybe are not yet prepared to jump into some more difficult languages or environments.

    The only drawback isee is that yes, it may encourage less than perfect code, and may attract more novices, but if you dont run to run a crappy script you dont have to. And besides its not like ive never seen lousy PERL scripts, or even lousy JAVA out there.

  68. wrong premise by mmusn · · Score: 2
    JavaScript is just not the language to write 10k programs in--it has some serious problems in its object model and scoping rules. JavaScript is barely up to the task of writing web pages.

    The premise also seems wrong to me. People who are so inexperienced that they can't figure out a scripting language like Python or Perl probably shouldn't be writing GUI applications in the first place. And Python and Perl both already have excellent GUI toolkits available to them.

    SashXB also falls short in the installation area. It depends on half a dozen other packages to be installed on the user's machine. Sorry, but something like this should be a single download for the user, and a single click install.