Slashdot Mirror


Browser Bindings for Python, Perl, and other Languages?

Garfycx asks: "Hi everybody! This week Slashdot linked to a story about Java and its roll over C/C++. While reading it I remembered one of the first strategies to make Java a de-facto standard - the browser-applet. as far as I know it did not make it, and I don't see many of them in cyberspace. But in combination with servlets they may come up again. I am not quite sure who is in need of applets but I wondered why there never was a browser-plugin for languages like Python or Perl. I would like to hear about reasons why there is no effort to expand the capabilities of websites with language-plugins. Couldn't there be a universal CORBA-like plugin for Mozilla to be used by most languages or such?"

239 comments

  1. Dunno about Mozilla.... by cygnusx · · Score: 1

    but IE's got COM bindings for quite some time now. (v3, and stabilized in v4).

    1. Re:Dunno about Mozilla.... by Anonymous Coward · · Score: 0

      And it should be noted that Microsoft just canceled browser plugins (for future versions of IE). So we aren't going to be seeing any features in web browsers that Microsoft doesn't approve anyhow.

    2. Re:Dunno about Mozilla.... by cooldev · · Score: 1

      And it should be noted that Microsoft just canceled browser plugins (for future versions of IE). So we aren't going to be seeing any features in web browsers that Microsoft doesn't approve anyhow.

      Wrongo. IE has beaucoup extensibility through ActiveX controls, Browser Helper Objects, an extensive DOM accessible from dozens of languages, and so on. You can add toolbars, buttons, explorer bars, etc. You can embed pieces of IE inside your own app. Almost nobody used the ancient legacy plugin architecture, that's why it was removed.

    3. Re:Dunno about Mozilla.... by Anonymous Coward · · Score: 0

      Almost nobody used the ancient legacy plugin architecture, that's why it was removed.

      It was also the only thing anybody (almost nobody?) would use...

      Which is also why it was removed.

    4. Re:Dunno about Mozilla.... by Anonymous Coward · · Score: 0

      And it should be noted that Microsoft just canceled browser plugins (for future versions of IE). So we aren't going to be seeing any features in web browsers that Microsoft doesn't approve anyhow.

      No, Microsoft removed support for Netscape plugins. Netscape never supported IE plugins.

    5. Re:Dunno about Mozilla.... by MikeFM · · Score: 2

      How many plugins can you name that don't suck? All plugins manage to do is make websites a pain to program and a pain to use as you have to make sure the user has the right plugins which of course means you have to figure out if the plugin is installed, is it the right version, does the plugin exist for XYZ OS/platform, what do you do if it doesn't, etc.

      Not really a very good system. Java or one of the languages it copied was supposed to fix all that but it obviously never made much impact in real life (most good Java I've seen was server-side). Embedded scripting languages such as Javascript help and having a few more choices such as Python and client-side PHP/SQL would be nifty but it still doesn't really address all the issues.

      A client-side multimedia-oriented scripting language would be really cool and would handle what most plugins do. Maybe one of these XML'ized mutlimedia standards or Shockwave or something could fit this bill if used right. Anyone know? :)

      Semi-related question.. why don't DVD's use XHTML plus some built-in scripting languages rather than using Windows-only extented shit and butt ugly menus? A good multimedia scripting language would kickass on such a platform. :)

      --
      At what price learning? At what cost wisdom? The price is a man's peace of mind, and the cost is his life.
  2. It exists on Windows: ActiveScripting by Krelnik · · Score: 4, Informative
    This already exists on Windows, it's called ActiveScripting. Basically, the API's that both VBScript and JScript (JavaScript) use to integrate themselves into the browser are exposed to others as well. If you follow the API guidelines, then you can use any scripting language from any hosting program including IE.

    Of course, the problem is that a web site owner can't assume that an end user has a given language runtime installed. So that limits how you can use it. But it could have great applications on intranets where you have more control over the client situation.

    ActiveState has versions of Perl, Python and TCL that follow these API's on Windows. Here is a session they were going to do at the cancelled O'Reilly P2P conference on using this stuff

    1. Re:It exists on Windows: ActiveScripting by Anonymous Coward · · Score: 0

      Yep, Perl and Python work great in Internet Explorer because of ActiveScripting. ActiveScripting also allows Perl and Python to be used in .HTA files and ASP pages.

      To use Python on .HTML, .HTA, or .ASP page, all you have to do is set the language attribute of a HTML tag to Python. Same is true with Perl. Of course Python or Perl has to be installed on the computer for the script code to be executed.

      I've done some experiments to see how well JavaScript and Python interoperate. The answer is "not too well". Here's a demo page that anyone can try out:

      http://users.rcn.com/rms2000/python/py2js.htm

      Richard

    2. Re:It exists on Windows: ActiveScripting by Zero__Kelvin · · Score: 1


      Sacrificing security for ease of programming is how Windows came about in the first place. Most Slashdot readers aren't really interested in making that tradeoff, but there must be some sites people frequent where this is an acceptable trade-off. Or you just a troll?

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    3. Re:It exists on Windows: ActiveScripting by Krelnik · · Score: 2

      I'm not trolling. It's a legitimate answer to the guys question. Like or not, the vast majority of people who browse most web pages are using Windows. So if you want to build scriptable web pages to target those users, you are going to have to target Windows.

      If someone is interested in adding pluggable scripting functionality to other platforms, it would certainly benefit the runtime authors if they could use similar integration API's on each platform. ActiveScripting or AppleScripting (mentioned elsewhere in this thread) could be ported to *nix to become that API, and new languages could become cross platform more easily.

      I'm platform agnostic. I'm also pragmatic, and I'd rather use something that already exists than have to re-invent the wheel.

    4. Re:It exists on Windows: ActiveScripting by Zero__Kelvin · · Score: 1


      Well, I believe when you say you aren't trolling, and that you *THINK* it is a legitimate answer to his question, anyway. I am pragmatic, too. That is why ActiveAnythingM$ is not an answer to the question, because if he wanted to use it, he would just use Windows ... seriously. And porting it to Linux is, again, introducing a serious insecurity to an otherwise secure server. See?

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    5. Re:It exists on Windows: ActiveScripting by Krelnik · · Score: 2
      Will you explain to me why ActiveScripting (the API) is inherently itself insecure?

      My experience has been that most of the script-related security problems on Windows are not the scripting language itself, nor the API that binds it to the browser. They were caused by poorly written COM objects which were then accessed via scripts. Even NIMDA, though it uses JavaScript to launch off a web page, is actually exploiting a hole in IE/Outlook express.

      I worked for Internet Security Systems for four years, and wrote alot of the guts of their Intrusion Detection System, so I think I have a decent familiarity with the security issues here.

      But maybe I missed something, feel free to explain what...

    6. Re:It exists on Windows: ActiveScripting by Zero__Kelvin · · Score: 1


      Yes. You missed something. ActiveScripting is an M$ creation. For that reason alone, anyone worth his salt in security will avoid it. It is closed source and it was designed and implemented by a company that thinks ease of use means for *EVERYBODY*! For example, they like to make it almost as easy for crackers to use your PC as it is for you!

      I used to be a *BIG* Microsoft fan. That was when I had a *LOT* less information on the underhanded practices they have. I am currently using Windows now. I have absolutely no reason to believe Bill Gates isn't able to access my machine at will, and no way to prove he can't. Add to that I have no doubt he would if he thought he'd make a buck doing it, and the *ONLY* assurance I have that he isn't, is that there is no money to be made by doing it.

      And by the way, anybody who utters use Microsoft's approach and I have a decent familiarity with security issues in that order, is delusional. Yes ... this means you. You asked me to educate you (perhaps facetiously), but if you didn't figure it out in four years at a security company, I am certain I cannot educate you in a single Slashdot post.

      Cheers!

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    7. Re:It exists on Windows: ActiveScripting by Krelnik · · Score: 2
      Clearly you are not interested in discussing the issue at hand. I asked you to tell me WHY the ActiveScripting API was insecure and you refuse to answer the question. Instead you feed me a bunch of ill-founded opinions.

      I dislike Microsoft's business practices as much as the next guy. But if you want to convince me that one of their technologies has a problem you have to back it up with facts, not religious zealotry.

      Tell Mulder and Scully I said HI, clearly you live somewhere in their fictional world.

    8. Re:It exists on Windows: ActiveScripting by Zero__Kelvin · · Score: 1


      "Clearly you are not interested in discussing the issue at hand. I asked you to tell me WHY the ActiveScripting API was insecure and you refuse to answer the question."

      Actually I gave you a well reasoned solid answer, but you wanted to hear about the latest 'sploit. Are you completely stupid? Probably not. You probably just think security is a technical issue. It's not. By the way, the fact that you worked for a security company makes you a qualified security expert about as much as the fact that you breath makes you a Yogi. Anyone can breath. To become a Yogi is another matter.

      You need to stop thinking everyone who bashes Microsoft is a religious zealot without a clue. I enumerated *several* reasons, but as I already said, you would only count it as a reason if I could show you a 'sploit. I've got news for you, it isn't worth my time to find one, but it wouldn't take me long at all with an M$ product.

      "Tell Mulder and Scully I said HI, clearly you live somewhere in their fictional world."

      And why doesn't it surprise me that you can rule out alien life in your mind though it is technically and scientifically impossible to rule out? Oh .. that's right ... if there were aliens I could *SHOW YOU* one, right. Yeah, and his name will be 'sploit. When they said to keep your head up, I don't think they meant to keep it up your ass. Maybe you should come out of the dark abd get some fresh air?

      And one final question. Set before you are two large jars, one you can see into and there is nothing harmful in, and one black one you can't see into at all labeled Microsoft. Which one did you want to reach your hand into again? That's right, you already answered. The black one you can't see into at all. Yeah ... you're the guy I want in charge of *MY* security. It doesn't exactly leave me wondering why you *USED TO* work at a security company 8^}

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    9. Re:It exists on Windows: ActiveScripting by Anonymous Coward · · Score: 0

      ActiveScripting is an M$ creation

      Are you really so dense to be unaware that Netscape invented Live/JavaScript? You are probably also equally ignorant of the numerous JS-related security holes in Netscape over the years.

    10. Re:It exists on Windows: ActiveScripting by Zero__Kelvin · · Score: 0, Troll


      "Are you really so dense to be unaware that Netscape invented Live/JavaScript?"

      Are you really so dense as to think ActiveScripting and Live/JavaScript are the same thing?

      Are you really such a useless fucking douchebag that you have to post your drivel as an Anonymous Coward? Clearly you are. Last time I checked Netscape was closed source too. Also I never said dropping M$ was a security panacea. If you ever have *ANYTHING* intelligent to say, I'll let you know what it is. Cheers there Captain Douchebag!

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    11. Re:It exists on Windows: ActiveScripting by Anonymous Coward · · Score: 0

      Why don't you just admit that you've been defeated, fuckface. The only thing your posts prove is that you've heard of something called Microsoft ActiveScripting and, more importantly, that you are a flaming asshole. Until you put something better on the table, we'll all assume you are exactly as retarded as you sound. Try reading your own posts to see -- you will *NEVER* have anything intelligent to say, so you can give the fuck up.

    12. Re:It exists on Windows: ActiveScripting by Anonymous Coward · · Score: 0

      you are the biggest fucking idiot I've seen in a while

    13. Re:It exists on Windows: ActiveScripting by Zero__Kelvin · · Score: 1

      Spoken like a true anonymous coward

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    14. Re:It exists on Windows: ActiveScripting by Anonymous Coward · · Score: 0

      Zero__Kelvin kiddo, you are a knee-kerk dime-a-dozen light-weight. Give it a break.

    15. Re:It exists on Windows: ActiveScripting by Anonymous Coward · · Score: 0

      Put a real e-mail address/url on your nick or suck my dick.

    16. Re:It exists on Windows: ActiveScripting by Steeltoe · · Score: 1

      Sacrificing security for ease of programming is how Windows came about in the first place. Most Slashdot readers aren't really interested in making that tradeoff, but there must be some sites people frequent where this is an acceptable trade-off.

      Well, as a matter of fact I run IE everywhere with Active Scripting turned off. Try turning it on to "prompt", and you'll discover clueless sites like www.slashdot.org using it for some obscure and evil reason. ;-)

      - Steeltoe

    17. Re:It exists on Windows: ActiveScripting by Zero__Kelvin · · Score: 1


      I don't eat fast food you Coward you 8^}

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    18. Re:It exists on Windows: ActiveScripting by Zero__Kelvin · · Score: 1


      "Well, as a matter of fact I run IE everywhere with Active Scripting turned off. Try turning it on to "prompt", and you'll discover clueless sites like www.slashdot.org using it for some obscure and evil reason. ;-) "

      I'm not sure if I read your post right, but if I do, you seem to be suggesting I said the slashdot 'engineers' were anything other but clueless. I have held the opinion that they may well be since I first visited the site. It is the laugh I get when I see so many clueless people calling me clueless that really get's me and keeps me coming back 8^}

      I certainly don't come here to here the brilliant ponderings of cmdrTaco or Michael, et. Al., do you?

      --
      Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
    19. Re:It exists on Windows: ActiveScripting by Steeltoe · · Score: 1

      I certainly don't come here to here the brilliant ponderings of cmdrTaco or Michael, et. Al., do you?

      I was being ironic :-)

      I come here because I want to know the latest news about stuff that might interest me. Also, once in a while something insightful slips by the moderation filters ;-) Not that I have anything +1 Insightful to say myself, but I speak my mind anyways. So you can call me clueless too ;-)

      - Steeltoe

  3. Not much multimedia ability in Python or Perl by ColGraff · · Score: 2

    Java was (and still is, to an extant) popular as web applets because it allowed developers to put multimedia content (animations, sounds, games) on their pages very easily. Perl and python, while great languages, really don't have that sort of multimedia ability (or bloat). For this reason, they're less desireable for client-side applets.

    --
    I'm the stranger...posting to /.
    1. Re:Not much multimedia ability in Python or Perl by Anonymous Coward · · Score: 0
      Perl doesn't have multimedia ability? That's odd. I've used perl for game programing (with SDL), 3d graphics applications (opengl bindings), mp3 playing, voice over IP applications, video compositing, and many other multimedia applications. Python can be used for many of the same things as well.


      Java isn't any sort of miracle multimedia language.

    2. Re:Not much multimedia ability in Python or Perl by Anonymous Coward · · Score: 0

      no but it does have a sandbox which is mathematically secure (with crypto allow/deny hooks) which none of the others do.

    3. Re:Not much multimedia ability in Python or Perl by flymolo · · Score: 1

      For the web try Perl:: Flash PerlMagik and Perl's GIMP bindings.
      On other fronts Perl-Tk Gtk-Perl and Perl Qt bindings.

      --
      "Sometimes it's hard to tell the dancer from the dance." --Corwin Of Amber in CoC
    4. Re:Not much multimedia ability in Python or Perl by Tom7 · · Score: 1


      Actually, Perl and Python are pretty crummy languages; they just happen to be useful.

    5. Re:Not much multimedia ability in Python or Perl by Dwonis · · Score: 2

      Well, Perl is anyway. (Yes, I still use Perl, though I recently heard that Python has Perl-style regexp support, so I might have a look at that sometime.)

    6. Re:Not much multimedia ability in Python or Perl by Anonymous Coward · · Score: 0

      I don't know about Perl, but Python has wrappers for nearly every single graphical toolkit that has ever been written.

      Among these you can find such nice work as Pygame (http://www.pygame.org) which is a wrapper around the excelent library SDL. SDL's sole purpose is to make it easy to write cross platform multimedia applications.

      You also have wxPython (http://www.wxpython.org). A modern, full fledged, cross platform (win32, GTK, Mac), graphical toolkit which makes Java's Swing look like a toy.

      With the right plugin, Python would make an outstanding client side language.

    7. Re:Not much multimedia ability in Python or Perl by tstock · · Score: 1

      Java is still alive and well in the multimedia dept. Most rich media banners you see (unless you block them while stealing the publishers content) are in Java, and only a minority in Flash. I assume Flash will prevale, but for the time being Java applets rule.

    8. Re:Not much multimedia ability in Python or Perl by Anonymous Coward · · Score: 0

      echo "perl python c c++ sh ash bash tcsh visual_basic java sql lisp scheme php fortran R matlab ..." | perl -ne 'print "$_ is a pretty crummy language; it just happens to be useful.\n";'

    9. Re:Not much multimedia ability in Python or Perl by Tom7 · · Score: 1


      Python is totally ad-hoc, too, it was just designed by less insane people.

  4. Your answer... by Anonymous Coward · · Score: 0

    No, sorry, we are just not going to do it. But thanks for asking.

    Your call is very important to us, that is why we have placed your call on hold so you could here some of the best light rock favorites of the 1970s.

  5. security by johnjones · · Score: 3, Interesting

    how do you sandbox the implementation ?

    java has lots of features to run in a sandbox and verifying the bytecodes + grant access if you ask for it

    this would have to be added to any other implemtation

    fankly I dont need another way of downloading rubish

    text is enough to conveiw most information well why do you need anything else?
    (pictures are handled by jpeg and PNG )

    so WHY ?

    games I think are the most use I have played lots of flash and applet golf games on the net but appart from that I have never used applets

    oh and I think that phones running a java VM(so you can play games appart from snake) will be more prolific over the next 2 years so that battle is over

    regards

    john jones

    1. Re:security by aozilla · · Score: 2

      how do you sandbox the implementation?


      If you're running FreeBSD, jail. I don't think linux has a decent jail system call, though, and chroot wouldn't really be effective enough.

      --
      ok then your [sic] infringing on my copyright! Could you as [sic] me next time before STEALING my comments for your own?
    2. Re:security by Anonymous Coward · · Score: 0

      > how do you sandbox the implementation ?

      force some kind of exception to be thrown when any filesystem call is made? the previous example using jail is a good idea too

    3. Re:security by Anonymous Coward · · Score: 0

      thats why java has an OS independent sandbox.

    4. Re:security by aozilla · · Score: 2

      thats why java has an OS independent sandbox.


      Java doesn't have an OS independent sandbox, java is an OS.

      --
      ok then your [sic] infringing on my copyright! Could you as [sic] me next time before STEALING my comments for your own?
    5. Re:security by JabberWokky · · Score: 2
      I don't think linux has a decent jail system call

      The kernel developers are working on that... I'm not sure when it's supposed to be integrated, but there is code going in to support fine grained security, which is necessary for a system like this. I'm no kernel hacker, nor do I follow dev religiously - can someone who knows a bit more pop in and say if this would be useful? (Say, create a "webplugin" access level, and give your child process access to very finite system resources).

      --
      Evan

      --
      "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
    6. Re:security by Anonymous Coward · · Score: 0

      The kernel developers are working on that...


      Absolutely. I didn't mean to be knocking linux by that comment, just mentioning that this wouldn't be a solution yet.


      The only thing I can think of off hand which would be absolutely necessary is that you'd have to restrict the VM to a fake IP address and NAT or tunnel through that. Other than that, pretty much everything could be done by setting up a Chrooted environment for a non-root user (also not the user running the browser). Could have a separate non-root user for every domain, for instance, and then give permissions based on the username. When IPv6 rolls around, you could even give every app its own IP address, maybe even have a standard to make those sandboxed IPs easier to block.


    7. Re:security by Dwonis · · Score: 2

      What does the *BSD jail system have that a non-root chroot system doesn't? (Not a flame - just asking.)

    8. Re:security by marauder · · Score: 1

      See here. In essence it allows you to create virtual machines programmatically.

    9. Re:security by ameoba · · Score: 1

      There are numerous projects out there that compile non-Java languages to Java bytecodes. I see this as being an optimal solution. It alows browser developers to focus on a single, secure system and allows the web developers to interface that system with any language they chose while not requiring the end-user to download and install any specific software or even recognize which language the applet was originally written in.

      --
      my sig's at the bottom of the page.
    10. Re:security by Anonymous Coward · · Score: 0

      Obviously Python and Perl lack of types. This makes things easier at a first glance, but it makes sandbox like things impossible -- there was quite a lot to read about this 4 or 5 years ago, but I do not remember where (maybe google for "types security sandbox")

  6. Because it's hard by Xthlc · · Score: 2, Insightful
    The Java platform was meant to serve as a networked computing platform, so it's got quite a few things built in that one would have to write as part of a plugin for another language:

    flexible security model
    Permissions are split into several categories, and a user can grant or deny permissions for each category instead of a blanket grant-permission for everything an applet might want to do to your machine.

    platform independence
    the Java standard library's API is written to abstract away a lot of platform-specific foo that you find in the standard library of other languages.

    performance
    yeah, Java takes a lot of crap for its performance problems. But Sun has spent almost a decade optimizing their VM to make it as fast as possible. An applet language MUST run inside VM or interpreter (for security and platform independence reasons) and writing one that provides even marginal performance for computationally intensive stuff is no easy task.

    1. Re:Because it's hard by Anonymous Coward · · Score: 0

      "An applet language MUST run inside VM or interpreter (for security and platform independence reasons)..."

      You couldn't be more wrong. Proof Carrying Code has equal safety (well, better, since its got a firm mathematical basis). The applet container simply verifies that the proof sent along with the code is correct and applies to the code in question, and then it can safely run it natively.

      Also, UNIX style VMs can provide the same safety with native code (but like java, lacking any firm theoretical basis): see freebsd's jail system call. When processes are in completely seperate address spaces and rely on a trusted kernel for all interactions, you can implement any arbitrary security you like.

      I'm amazed Java programmers just believe Sun when they tell them obvious bullshit like what Xthlc posted. Marketing's _JOB_ is to spread myths about the product, and Sun's marketing department is second only to Microsoft's (at least in the software market. Coke has got them both ass whipped).

      I'm not even going to go into the platform independence myth, except to say: I've got an x86 emulator (bochs) and a win32 library (WINE). By your standards, x86 "byte-code" and the win32 API are just as platform indepedent as java..

    2. Re:Because it's hard by Tom7 · · Score: 1


      That's not true... you don't need a VM or Interpreter. Technologies like Proof Carrying Code and Typed Assembly Language let you verify security properties of real machine code.

    3. Re:Because it's hard by basking2 · · Score: 1

      "I'm not even going to go into the platform independence myth, except to say: I've got an x86 emulator (bochs) and a win32 library (WINE). By your standards, x86 "byte-code" and the win32 API are just as platform indepedent as java.."

      Um... an x86 emulator is a virtual machine. As for platform independance, win32 API's may be able to run on other platforms, but they rely on architechture specific functionality which you are emulating with a VM/emulator. Java was not designed around any special hardware as they abstracted it all out to a virtual machine.

      I should also mention that for security reasons in browsers you do need the virtual machine, not out of theoretical necessity, but because no browser will implement/employ the jail routing. A VM also gives a standard to check against. SUN was not so far off base and they gave us some really decent technology and a really nice language (unless you think that "good language" is symantically equivilent to "fast language.")

      --
      Sam
  7. Sandboxes... by SmileyBen · · Score: 2

    Erm, isn't this simply because Java runs in a virtual machine. The point is that Java runs in a sandbox, which is supposedly separate from the rest of the processes running on your machine, so that it should be more secure, and can't run arbitrary code on your machine.

    If you're talking about simply letting a browser run any code on a computer simply by going to a page, then it's fairly obvious why this is a terrible idea - it lets a web page author run any code they like on the computers of anyone that goes to their page.

    Perhaps I'm being dim, and missing something, but if I'm not, that seems blindingly obvious to me.

    1. Re:Sandboxes... by aozilla · · Score: 2

      If you're talking about simply letting a browser run any code on a computer simply by going to a page, then it's fairly obvious why this is a terrible idea


      That terrible idea is called ActiveX.

      --
      ok then your [sic] infringing on my copyright! Could you as [sic] me next time before STEALING my comments for your own?
    2. Re:Sandboxes... by ascholl · · Score: 2, Informative
      Yessiree. The important thing isn't the language, but portability & security. Implementing something equivalent to a jvm for your favorite language is decidedly not a trivial task.

      That said, there are over 160 languages apart from java which can be compiled to java bytecode. Jython is quite robust & can be used to create java applets w/ python. There's also a perl->java byte codes compiler under development. (Though maybe it's been abandoned? ...)

    3. Re:Sandboxes... by Shadowlion · · Score: 1

      The fact that the terrible idea has a name doesn't make it any less of a terrible idea.

    4. Re:Sandboxes... by Anonymous Coward · · Score: 0

      The fact that the terrible idea has a name doesn't make it any less of a terrible idea.


      Nor does your claim that it's "obvious" that it's terrible make it terrible.

    5. Re:Sandboxes... by Shadowlion · · Score: 1

      I don't recall writing, nor do I see, any claim that it was an "obvious" terrible idea.

  8. Java Applets. by jellomizer · · Score: 1

    The main reason Java Applets never became supper popular is the fact that there is a lot of overhead in them. And the fact that MS dosent want Sun to get the market share, makes sure that MS will try to hinder its performance. But Java Applets are still used a lot but now in mostly intranets or sites that expect broudband internet traffic. But for the coman user with a random selection of system the applet has not had its shine.

    --
    If something is so important that you feel the need to post it on the internet... It probably isn't that important.
  9. Applets not entirely dead by Rentar · · Score: 1

    Applets didn't die ... they just went to a small niche, that is specific applications in an Intranet ... There you don't have to worry wether your customers want to download a 5-8MB java-plugin. The only Applets you see nowadays are cheap Flash-Replacements (most of these little Menus and Animations would be better done with Flash, and that wouldn't have given Java Applets such a bad image).

    The biggest problem with Applets was, that the browsers just supported 1.1 (at most), and that it was faulty. Noone liked to download the big Plugins, so noone wrote Applets that used the new API, so noone downloaded the plugins, ...

    The fact that MS provides no Java-VM in IE6 might be both good and bad for Java on the client. Bad for obvious reasons, good, because then you have to download the plugin, should you ever want to use Java. Doing this, you get a modern version of Java, and that is A Good Thing (tm).

    1. Re:Applets not entirely dead by johanb_lund · · Score: 1

      No, it would not be better to use Flash instead of Java.

      Java applets have two big advantages over plugins:

      • Java is generic. Java applets can do pretty much anything, but you need to get a new plugin for each new task.
      • They are platform-independent.

      Two examples where Java is put to good use are ChemFinder and the NIST WebBook. Both these sites use Java to make it possible to draw chemical molecules and search for them in their databases. Using Java for this is a lot better than getting two different plugins which would only be available for a limited number of platforms.

      /Johan

    2. Re:Applets not entirely dead by rdean400 · · Score: 1

      I think there are a lot more applets on the net, getting a lot more hits, than most people think. If you go to many of the major games sites that offer things like spades online, you'll notice that their games are most often implemented in Java (shockwave being the likely second). There are a lot of people playing these games, and it makes sense that the IE users will eventually upgrade to IE6, and they'll go get Sun's Java plug-in so they can continue playing their games.

      I think the biggest thing Sun could do to get people to keep using Java is to raise the awareness of these sites, so that people use them and keep a Java-enabled browser around.

    3. Re:Applets not entirely dead by thammoud · · Score: 1

      Most financial websites use Java to display live stock tickers. In addition, check out the heat map of the market at smartmoney.com. Pretty good stuff.

  10. perl applets? by Marcus+Brody · · Score: 2

    Hmnn.. not sure about CORBA, but perl applets? Doesn't make much sense to me. That's not what perl is good for, and it's certainly not what it was designed for. Anyway, Perl is already at large, on the internet, doing (arguably) what it does best - CGI.

    <offtopic> What I would really like to know is, when the hell is someone going to come out with a "psh"? Imagine it.... a Perl Shell. mmmmmmmmn

    1. Re:perl applets? by cjohnson · · Score: 1

      They have. Searched for psh on google and this was the first link.

      http://www.focusresearch.com/gregor/psh/

      Imagine that.

    2. Re:perl applets? by Qvarteret · · Score: 1

      I thought there was a lot of Perl shells out there? Maybe CPAN's got one?

    3. Re:perl applets? by Anonymous Coward · · Score: 0

      Really Simple:

      1. /usr/bin/perl

      Done

      Simple:

      1. add /usr/bin/perl to /etc/shells
      2. chsh -s /usr/bin/perl

      Done

    4. Re:perl applets? by Marcus+Brody · · Score: 1

      Thanks.

      now i feel stoopid :-\

      Was just an idea and typed it in as it came into my head. I do know howto use google/think for myself. honest.

    5. Re:perl applets? by doob · · Score: 1

      hehe, it can be pronounced "pish", he he

      ahem

      --
      In the spoon, there is no Soviet Russia!
    6. Re:perl applets? by Dwonis · · Score: 2

      Anyone know where I can get a program to manipulate images of gnus?

      Lol!

    7. Re:perl applets? by madmag · · Score: 0

      now i feel stoopid :-\

      You do, dont you? Probably because you are .
      Next time research before speaking on a forum.

      And Perl is not only for CGI. CGI is the only thing I am not using perl for these days.

      --


      --
      If Microsoft is the solution, I want my problems back
  11. ActiveScripting by Idolatre · · Score: 2, Informative

    Internet Explorer can use any language supported by Windows ActiveScripting, which include VBScript, JScript, and even Perl and Python (with ActivePerl/ActivePython from ActiveState).

    But the client needs to have these installed, and they are not as secure as JavaScript because they give access to the whole set of Perl's and Python's functions, allowing things like file i/o on the client's disk (which VBScript also allows if i remember correcly).

    So they should never be enabled in a web browser, because of the security holes it opens.

    1. Re:ActiveScripting by NutscrapeSucks · · Score: 1

      VBScript and JavaScript need to go through COM objects to do file IO because there's no built-in facility. However, when running in the browser, there's a very limited range of objects they can access that prevents anything nasty happening.

      PerlScript does have Perl's bulit-in file IO, but by default it only runs from sites defined to be in the "Local" zone. link. But it's a good point that WSH's installable language facility could be a security risk with the wrong language runtime.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
  12. What about C/C++ Applets by gbr · · Score: 1

    How about a browser plugin for C/C++ apps? ANybody know of one?

    1. Re:What about C/C++ Applets by Anonymous Coward · · Score: 0

      try ivm. it emulates a 68K in a sandobx and does C/C++ from gcc

    2. Re:What about C/C++ Applets by Anonymous Coward · · Score: 0

      Just the address: http://www.xmission.com/~icvm/

    3. Re:What about C/C++ Applets by spike666 · · Score: 1

      theoretically, you could get a c/c++ compiler which compiles to java bytecode...

      and as long as the same interfaces were exposed, aka the applet's run,init,start, etc; you could write an applet that would run in existing jvm applet space in c/c++.

      of course right now i cant remember any of the bytecode c/c++ compilers.

    4. Re:What about C/C++ Applets by dead_penguin · · Score: 2

      How about a browser plugin for C/C++ apps?

      In this case, the applet *is* the plugin. Simply write your "applet" using the plugin API of the given browser, compile for whichever platform you want, and there ya go!

      Of course, a much more "interesting" solution to this would be to write a browser plugin that contains gcc/g++ and all appropriate libraries. Your applet would then just be C or C++ source code, and when downloaded, the plugin would compile and run it for you! In addition, you'd be able to run your applets on any platform that you ported your plugin to. Aside from the obvious security issues with untrusted C/C++ code, and the *size* that this plugin would be, you have to admit, it'd be a very hack-worthy thing to do!

      --

      It's only software!
    5. Re:What about C/C++ Applets by Anonymous Coward · · Score: 0

      In theory, you can compile any turing complete language into any other. C++ -> java bytecode is a complete pain in the ass, since java bytecode was designed pretty much just to run java, and nothing more. Why bother when there is CLR, which is far better designed and standardized?

    6. Re:What about C/C++ Applets by Anonymous Coward · · Score: 0


      Those are called "ActiveX"

    7. Re:What about C/C++ Applets by spike666 · · Score: 1

      because CLR only runs on WINTEL.

      why would i want to limit myself to hardware thats still kneecapped by the 8088 instruction set? RISC processing is where its at baybeee!

      i just love hearing people who hate java go on and on about why CLR is the right way to go, when its all the same reasons that java was the right way to go 5 years ago, but without the ability to run cross platform.

  13. Perl VM by gregh76 · · Score: 0

    A Perl virtual machine IS in the works. It's called Parrot. Unlike the April Fool's "Parrot", this is an actual initiative.

  14. Basic Philosophical Difference by NutscrapeSucks · · Score: 4, Interesting

    IE ships with ActiveX/COM support, which provides a language-independent mechanism to plug anything you want into your browser. The user gets code-signing and some level of download control, but ultimately there's no 'sandbox' to prevent that code from doing what it wants (deleting your home directory, e-mail bomb, etc). They've been ripped for the security implications, as anyone who reads Slashdot knows.

    Netscape chose the safe route and only provided Java applet support. This relies on the Java security model to protect the user through sandboxing from anything that they might automatically download, but locks you into Java. Mozilla/NS6 may allow some sort of XPCOM application to be downloaded and installed, but it's not as seamless as ActiveX.

    The important point is that you don't get 'unsafe' languages like C++ and Perl in your browser without the security implications that everyone's roasted Microsoft's ass over.

    The MS .NET approach will be the hybrid. While you still have a Java-like runtime that has a security model, at least you won't be locked into a particular language.

    --
    Whenever I hear the word 'Innovation', I reach for my pistol.
    1. Re:Basic Philosophical Difference by awallgren · · Score: 1

      Netscape chose the safe route and only provided Java applet support.

      Either I misunderstand your point, or you're rewriting history.

      What about the Netscape Plugin API? Much less elegant, download- and certificate-wise, than ActiveX, but it, too, provides access to 'unsafe' languages.

    2. Re:Basic Philosophical Difference by vlad_petric · · Score: 1


      You're not actually locked into using Java. Many languages can be compiled into java bytecode, the most notable beeing Python (Jython) and Scheme. The only major drawback is that you must use AWT and/or JFC bindings to get anything on the screen.

      --

      The Raven

    3. Re:Basic Philosophical Difference by NutscrapeSucks · · Score: 1

      Yeah, I neglected NS plugins. Although, I don't know if I've ever seen a 'single-purpose' plug-in. But anytime the user has to install something, you've got a potential security problem.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    4. Re:Basic Philosophical Difference by spike666 · · Score: 1

      wait a second... .NET is not a browser component. its a server component.

      .NET ~ java servlets
      .NET !~ java applets / plugins /activex virii

      (well its a virus for sure)

      but i dont think theres much in the way of .NET on the client side. although it wouldnt surprise me to find it coming.

    5. Re:Basic Philosophical Difference by NutscrapeSucks · · Score: 1

      I posted this already, but IE reports the .NET CLR version in the User Agent string. Hmmm....

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    6. Re:Basic Philosophical Difference by dead_penguin · · Score: 3, Informative

      ... The only major drawback is that you must use AWT and/or JFC bindings to get anything on the screen.

      I'm not sure about Jython or Scheme, but Java applets can communicate back to the browser window and use it to render html that they generate. In many cases, this is a much more appropriate way of displaying things on the screen, and isn't quite as ugly looking as AWT can be.

      --

      It's only software!
    7. Re:Basic Philosophical Difference by jesser · · Score: 1
      But anytime the user has to install something, you've got a potential security problem.

      I know of at least two types of security holes involving ActiveX:
      • The user trusts someone who turns out to be malicious.
      • The user trusts some well-meaning but poorly written code. Another web site uses the ActiveX control's scripting interface to exploit a buffer overflow or a failure of the control to check file permissions.
      I don't know how common the second type of problem is with Netscape-style plugins. I could imagine the existence of a buffer overflow in Quicktime's handling of malformed movie files, which would affect both browsers.
      --
      The shareholder is always right.
    8. Re:Basic Philosophical Difference by sheldon · · Score: 2

      I think you are confused.

      .NET is everything. VB.Net or C# can be used to develop client programs just as much as they can be used for web development.

      You haven't heard of WinForms?

    9. Re:Basic Philosophical Difference by NutscrapeSucks · · Score: 1

      Also -- "User selects YES to every prompt without reading it".

      (I once was prompted to run an ActiveX control called "IE Destroyer" -- it was signed and everything. This was in the early 4.0 days, so I think it was targetted at 3.0's terrible policies. But I imagine that a large number of users would install and run it without hesitation.)

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    10. Re:Basic Philosophical Difference by spike666 · · Score: 1

      ahh yes. i wasnt sure about the client stuff.

      i was thinking the primary .NET stuf which is the web services stuff... forgetting that you coudl still run the bytecode like java as an application

  15. Re:Java as a client side web applet is dead! by ZanshinWedge · · Score: 3, Interesting

    Back in the early days, everyone lauded Java as a means to add multimedia content to the web. However, specialized system (flash/shockwave) for this have proved so much better at this than Java that Java is essentially dead in this area. If someone is using Java for multimedia on a webpage nowadays it simply means they haven't learned how to use flash yet.

  16. Jython by Shane+Hathaway · · Score: 2, Informative

    Jython is one solution for Python applets. Jython is basically Python compiled into Java. It works well enough to be used for applets.

    http://www.jython.org/applets/index.html

    There are a couple of downsides:

    - The Jython library has to be downloaded with the applet. It's about 200K. Over a cable modem it takes 0.7 seconds, though. :-)

    - Can't use Python extensions.

    But there are also a few really good things:

    - Jython lets you use the mature AWT/Swing libraries, which are better than Tk. They aren't as good as wxPython, though, IMHO.

    - It's a stable platform that works with all Java-enabled browsers already. And Jython continues to receive improvements.

    - The *HARD* part about applet-enabling a language is figuring out how to restrict applets without curtailing the language. Sun has achieved that to a reasonable degree and Jython takes advantage of their work.

    What I'd like to see is the Java plug-in simply including the Jython library as a standard class library. That would eliminate the download time.

    1. Re:Jython by jrockway · · Score: 1

      lmao, I had to laugh at your sig after reading this. You're the true python programmer, aren't ya :)

      --
      My other car is first.
    2. Re:Jython by Anonymous Coward · · Score: 0

      You have got to be kidding. The AWT/Swing
      libs are a steaming pile of dung compared to
      Tk. Heck, even Python uses Tk via Tkinter.

    3. Re:Jython by Graymalkin · · Score: 2

      What code exactly are you going to trust? Without sandboxing you're left with the sort of security issues Microsoft gets bashed for ActiveX over. Also considering no one programs anything in "jython" for the client side it isn't more convenient then using Java or Shockwave which people actually use in the real world.

      --
      I'm a loner Dottie, a Rebel.
    4. Re:Jython by smallpaul · · Score: 2

      What code exactly are you going to trust? Without sandboxing you're left with the sort of security issues Microsoft gets bashed for ActiveX over.

      I don't really know what you are saying that is different than what I said. You should only use client-side Python with XPCOM under the same circumstances you would use Active-X: when you trust the code you are running. I don't know how to say it any more clearly.

      This isn't really a security "hole" anymore than RPM is. You should only use either when you trust the code you are installing with the permissions of the user you are running as. If you want to use Python in a client-side sandbox, you should use Jython.

      Also considering no one programs anything in "jython" for the client side it isn't more convenient then using Java or Shockwave which people actually use in the real world.

      The user asked about alternate languages to Java. Shockwave is not really a programming language and the embedded scripting language in it isn't really appropriate for many kinds of programs. I'm not sure why you are disparaging the existence of the option of Jython. If you personally don't have a project it is appropriate for, then just don't use it!

      -- Paul Prescod
    5. Re:Jython by Graymalkin · · Score: 2

      I was confused as to what you meant by Jython because I had a bit of a muddled understanding of it. Thats why I was sort of disparaging the idea of it in general. I meantioned Shockwave not for it's amazing use for applets (since ther is none) but it is a popular method of creating interactivity over various media. It's one you can count on in alot of situations just like Java. One thing about Jython though is it seems like you end up on the short end of the stick using it instead of just using Java. It's sort of cool for turning your Pythod scripts into Java Servlets but I don't really imagine it being terribly useful in an environment where there is alot of random activity like in a client side applet. You're compiling to Java bytecode and all the syntax structure of the language just isn't designed for the use. Are there any Python scripts that have been turned into full fledged applets that are actually usable?

      --
      I'm a loner Dottie, a Rebel.
    6. Re:Jython by divbyzero · · Score: 1

      Actually, with the exception of the way they respectively handle skins/themes, AWT and Swing's core features are ripped directly out of Tk, particularly in terms of layout management. The Java implementations merely generalize the same functionality (when you want something more than just the gridder and the packer, you can actually add it).

      --
      But my grandest creation, as history will tell,
      Was Firefrorefiddle, the Fiend of the Fell.
    7. Re:Jython by smallpaul · · Score: 2

      You're compiling to Java bytecode and all the syntax structure of the language just isn't designed for the use.

      Java wasn't designed for applets either. Java was largely designed for the Web was popularized. Jython applet/servlet code looks quite natural to me. In what sense do you think that the design does not fit?

      Are there any Python scripts that have been turned into full fledged applets that are actually usable?

      The goal is typically not to turn existing Python scripts into applets or servlets. Most often you want to benefit from Python's ease and speed of development while also leveraging the JVM's ubiquity. Many people just consider Python a much more productive language than Java and would prefer to use it.

      That said, Jython is much more often used as a scripting language for otherwise-Java applications (server side or desktop). The ability to use it directly for applets and servlets is just a side benefit.

      Paul Prescod
  17. TCL by redhog · · Score: 5, Informative

    There is a plug-in for TCL/TK. I don't know about Python and other languages (e.g., Scheme and other LISPs). But perheaps, no one else cares about stupid web-crap :]

    --
    --The knowledge that you are an idiot, is what distinguishes you from one.
    1. Re:TCL by Fujisawa+Sensei · · Score: 1

      Does it still leak memory?

      --
      If someone is passing you on the right, you are an asshole for driving in the wrong lane.
  18. One Example by maggard · · Score: 3, Informative
    Apple has had it's " Open Scripting Architecture " for a number of years. Apple's own AppleScript or Perl, Python, Java, JavaScript, Tcl/tk, etc. can all plug in and be used throughout the system. Indeed with the vast majority of MacOS applications being AppleScript-able they're all also automagically Perlable, Pythonable, Javable, JavaScriptable, Tcl/Tkable, etc. As all of the popular MacOS web browsers also support this it's not difficult to script things via web-pages.

    As this same functionality is in MacOS X (and I believe in it's peer Open Source " Darwin ") the technology is availiable for others to review, compare/contrast, even appropriate. Whatever you think of Apple it's an interesting technology and has already proven it's worth with almost all MacOS applications being made AppleScriptable (and hence everything-else scriptable) for years.

    --
    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.
  19. Bean scripting framework anyone? by jmerelo · · Score: 1

    Theoretically, there are bindings for several languages that can be run in a JVM, using the Bean scripting framework. The list of languages that can be run in it include a subset of Perl, Rexx, Jython, Javascript...

    1. Re:Bean scripting framework anyone? by jmerelo · · Score: 1

      And, of course, there are a whole lot of languages that can run on the JVM, via compilation to bytecode, or other exotic ways, like, for instance, parsers written in Java.

  20. Restricted execution is the problem by marm · · Score: 2

    I think the major technical stumbling block to allowing applets or scripting in any language is finding a language-neutral way of restricting execution along the lines of Java's security model.

    That's a really hard thing to achieve correctly - and if you don't get it right then your browser is swiss-cheese. Even harder is to get it right, cross-platform. Under a *NIX you could run whatever external code in a chroot environment to stop it from messing with any of your files... but what's to stop the code DoS'ing you by opening thousands of windows?

    Individual languages have their own security models and restricted execution environments (Python has the Bastion module for instance) but it would be a veritable Tower of Babel trying to support every security model that every language implements (and of course, many languages don't even have the concept).

    You could create a standard security model that is implemented through a very restricted set of APIs that are all that's exposed to foreign code, and attempt to disallow any other access (a la COM) but experience with COM tells us that this is not really tremendously secure at all without a generally more robust security model in the OS. You could achieve it using the Linux capabilities model and it would be secure, but then it would be impossible to implement cross-platform, and you'd probably still have to extend capabilities further in order to prevent external code from DoS'ing you with new windows.

    All in all, it's just too fraught with difficulties to really make it worthwhile.

    Then there's the question of support - implement a fantastic new security model that allows you to run any language within a completely foolproof sandbox, great. Now, how many IE/Windows users will download your plugin? How many of them have Perl or Python installed? I'd put the number at something approaching zero, and with 80%+ or whatever of the browser market being IE these days, I can't see this ever taking off, even if it became a standard feature in every other browser on the planet.

    Maybe it could work on an intranet, where everything is secure and controlled. But in an environment like that, you're probably better off writing a simple browser plugin that's installed on every machine anyway rather than having the machine download and then execute the code.

    On the open internet, I think it would probably be either a complete non-event or a security disaster.

    1. Re:Restricted execution is the problem by Anonymous Coward · · Score: 0

      .NET is the solution (which Perl and Python already support thanks to ActiveState)

    2. Re:Restricted execution is the problem by Anonymous Coward · · Score: 0

      Under a *NIX you could run whatever external code in a chroot environment to stop it from messing with any of your files... but what's to stop the code DoS'ing you by opening thousands of windows?


      Kill... An even bigger problem with chroot is how do you stop the program from launching a DDOS from your IP address. Imagine if a major website got hacked. You think Code Red was was bad, this would be a nightmare.


    3. Re:Restricted execution is the problem by Anonymous Coward · · Score: 0

      .NET has nothing to do with applets you idiot. its server side only.

    4. Re:Restricted execution is the problem by NutscrapeSucks · · Score: 1

      Why does my IE report "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.2914)" then?

      Considering that ActiveX allows everything else, I don't see why it couldn't run a .NET applet. (Although applets are so unsexy at this point from a marketing standpoint, I can see why MS might downplay this facility.)

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    5. Re:Restricted execution is the problem by davecb · · Score: 1
      marm notes
      I think the major technical stumbling block to allowing applets or scripting in any language is finding a language-neutral way of restricting execution along the lines of Java's security model.

      I agree, but building such security regiemes is well within the state of the art. It was state-of-practice in Multics, used to control sysadmin.daemon's access to your files for backup purposes.

      Although it fell out of use with the creation of Unix, it's slowly coming back into our consciousness once more.

      You need a set of access controls on what a particular "surrogate user" (the entension) is allowed to use, a way of authenticating the user such as a digital signature, and a way of associating the two. I can easily see
      /tmp/$$.$Z/* Microsoft.Passport rwe
      $HOME/.passport Microsoft.Passport r
      giving a downloaded MS Passport extension access to a per-process, per-extension directory in /tmp and a config file in my home directory. (Although Passport would probably want rwe on root (;-))

      Have a look for "mandatory access" (MAC) and "role-based access control" (RBAC) in sites on Java security and the NSA's secure Linux.

      --dave
      --
      davecb@spamcop.net
    6. Re:Restricted execution is the problem by Anonymous Coward · · Score: 0
      I agree that restricted execution is the problem, but it's not just either/or. It's task-appropriate restrictions on code intiated for the same user, not just a distinction between, e.g., administator and guest accounts.
      Then there's the question of support - implement a fantastic new security model that allows you to run any language within a completely foolproof sandbox, great. Now, how many IE/Windows users will download your plugin? How many of them have Perl or Python installed? I'd put the number at something approaching zero, and with 80%+ or whatever of the browser market being IE these days, I can't see this ever taking off, even if it became a standard feature in every other browser on the planet.

      IMO, the sandbox should be part of the OS, not a plugin, browser, or VM. For portability, OS's need to provide a common API and untrusted-code-launching mechanisms, but sandbox security should not depend on VM's for running particular types of byte code. There should be virtual environments for running arbitrary machine code safely.

      If you log in as administrator or root, the shell or other app-launcher (which must be trusted s/w) should not simply pass on your privileges to a browser and whatever it downloads. Privileges should be appropriate to the task, and not equate to the max privileges of the user.

      Until windows and other OS's come with safe defaults making these distinctions, the current situation will continue.

  21. Or they're just cheap by ColGraff · · Score: 2

    Or maybe they just don't want to shell out for flash.

    --
    I'm the stranger...posting to /.
    1. Re:Or they're just cheap by buzzbomb · · Score: 1

      Or they just prefer to use something that is more standard. 30% of the users at the major website I run do NOT have Flash installed. It's hard to sell things when people can't see said things...

    2. Re:Or they're just cheap by Anonymous Coward · · Score: 0

      That's interesting considering that the Flash plug-in ships with both IE and Netscape, and has for the last year or more. Plus, on IE it downloads and installs with two clicks or so when you hit one of those unavoidable flash splashscreens or banner ads.

      (Now, the full Shockwave plug is less popular, I imagine.)

    3. Re:Or they're just cheap by ZanshinWedge · · Score: 2

      What ARE you using then? They have a flash plugin for netscape AND mozilla (on linux as well).

      Take a gander at what platforms shockwave/flash runs on. And with most browsers (except older netscapes, icky icky) downloading a plugin takes a few clicks.

    4. Re:Or they're just cheap by n3m6 · · Score: 2

      actually the plugin is in java right
      so it should run anywhere ? ;-)

    5. Re:Or they're just cheap by pohl · · Score: 1

      Does anybody know where a flash plugin for linux/ppc could be found? My understanding is that Flash only supports linux/x86. Let's not overstate Flash's availability.

      --

      The "cue the foo posts in 3, 2, 1..." posts will commence with no subsequent foo posts in 3, 2, 1...

    6. Re:Or they're just cheap by jrockway · · Score: 1

      No Flash for Linux/PPC though. Only a crap open-source version :(

      --
      My other car is first.
    7. Re:Or they're just cheap by rfsayre · · Score: 2

      There is a java version of the plugin, but I 've heard it's very unstable and only supports the features of Flash 3 or 4.

    8. Re:Or they're just cheap by Dwonis · · Score: 2

      Um... Just because software exists doesn't mean people will have it installed, especially in a corporate environment. This is why we're unlikely to see raw XML web pages become standard for at least 3-5 years.

  22. But grail *does* have python applets by kingdon · · Score: 1

    The Grail browser has python applets and has had them for many years (almost as long as Java applets have been out there). It even has a sandbox (or so the web site says, haven't looked too deeply myself). Rather than downloading a bytecode, it just downloads source code (a fairly clean approach). Now Jython or maybe even Parrot someday might be better ways of running Python applets but the Grail one is interesting at least as a historical footnote.

    Last time I tried Grail it wasn't really fast or reliable enough to be my main browser, but that was many versions ago.

  23. Grail supports Python applets by Nelson · · Score: 1
    The grail browser supports pythong plugins. It hasn't been supported in a while though but it was a fairly complete HTML 3.2 browser written in python and tk.


    It doesn't look like it would be too hard to make a new version of something like grail with pygtk and gtkhtml or maybe even mozilla.

  24. Re:Fiendish Devil by Anonymous Coward · · Score: 0

    never occured to you that RAINBOW BLVD. was a reference to The Wizard of Oz (Dorothy was from Kansas, recall?)

  25. TCL-plugin by PEdelman · · Score: 1

    A TCL plugin exists, but that's about everything I know of it.

    --
    Like science? Comics? Wicked...
    Funny By Nature
  26. blender? by Anonymous Coward · · Score: 0

    Not sure if this really applies or not but NaN, the makers of blender use python in the game engine and plugin system. They also are developing a plugin IE/NS that allows you to play games or multimedia content in the browser. The plugin is currently in beta.

  27. You Answer Your Own Question by istartedi · · Score: 2

    the browser-applet. as far as I know it did not make it, and I don't see many of them in cyberspace.

    followed by...

    I wondered why there never was a browser-plugin for languages like Python or Perl.

    Well, if applets aren't that useful in Java, it should be obvious that they aren't that useful in Python or Perl either. Try to imagine somebody at some company going to a VC with a business plan of "we're going to do something that will require the user to download a plugin and it will do the same thing Java does."

    I would like to hear about reasons why there is no effort to expand the capabilities of websites with language-plugins.

    There are now many languages for the JVM. There is a good chance that you can finagle your favorite language onto a JVM somehow. This is more work for the individual programmer, but it requires no effort on the part of users. Remember, when you put something on the web it has to be viewable by most users, otherwise it will just alientate them. When you get one of those boxes that asks you to download something just so you can view a website, how often do you click Yes?

    So, if [other language] had trumpted a platform neutral VM first we would probably be asking the same questions about [other language]. Java got there first and has established a huge installed base and name recognition, so until something comes along that just blows it away in terms of capability, programmer-friendliness, or installed base we are stuck with it. So far, MS CLR looks like the only thing that has a chance at doing that, and it is more friendly towards implementing a wide variety of languages than the JVM.

    The CLR/C# developers seem to have a thing for functional programming languages, so stuff like OCaml and Haskel (sp.?) could get a shot in the arm from C#.

    --
    For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
    1. Re:You Answer Your Own Question by Amit+J.+Patel · · Score: 1

      Try to imagine somebody at some company going to a VC with a business plan of "we're going to do something that will require the user to download a plugin and it will do the same thing Java does."


      It's called Curl. And they told the VCs that they're going to charge by the byte. Really.

  28. I�! by TentacleMastah · · Score: 0, Offtopic

    You will all die!

    Glugh glaff h'laff shlrlrgh!

    --
    Iä! The hideous Tentacle Master has spoken! Obey or be destroyed!
  29. Crappy Idea by enneff · · Score: 1

    "I would like to hear about reasons why there is no effort to expand the capabilities of websites with language-plugins"

    Probably because as a concept it just plain sucks. Why the hell do we need to add even more to our web browsers when what we have at present is already hugely bloated? Even Java applets almost go too far, but I suppose they make up the functionality that is needed and would only be duplicated by implementing even more client side scripting support.

  30. What killed Java Applets? by loconet · · Score: 1

    Macromedia FLASH and its non-technical ways of giving a website rich multimedia.

    --
    [alk]
    1. Re:What killed Java Applets? by Anonymous Coward · · Score: 0

      HAH! Non-technical? You've obviously never developed anything with Flash.

    2. Re:What killed Java Applets? by Anonymous Coward · · Score: 0
      HAH! Non-technical? You've obviously never developed anything with Flash.

      and you're obviously non-technical, so go BACK to your MAC.


      Or, in the words of NTK.net: "they stole our revolution, now we're stealing it back."


      techie and proud

  31. Plug-ins are useless without 100% market share by consumer · · Score: 1

    The only reason the Java applets idea had a chance was that all browsers were going to support it, and even that didn't happen. Using an unusual plug-in which forces visitors to download and install a Python runtime and wrapper will quickly chase away everyone on your site. If you really need a rich GUI client-server app, there are plenty of better ways to do it than jamming it into a web browser. The browser is just excess baggage at that point.

  32. Lack of a secure OS is the problem with this. by Animats · · Score: 2
    I think others have already said it. This is 1) a bad idea, and 2) already implemented by Microsoft.

    The real trouble is that very few widely used operating systems can properly jail an executable. FreeBSD tries, but the jail facility in FreeBSD doesn't get used enough to establish that it's safe.

    NSA Linux, which has mandatory security, is a big step in the right direction. A good exercise would be to make Mozilla run uner NSA Linux but insist that downloaded code run in an untrusted compartment, so it couldn't do much.

  33. One question by VFVTHUNTER · · Score: 2

    that is well, offtopic, but here goes.

    Smart bookmarks in Galeon allow you to search websites by inputting the search text in a text field from within a Galeon toolbar. This is quite cool for sites like Yahoo, but Amazon cannot be searched in this manner because it requires a FORM/POST method to search the Amazon site. Same for my fav website of all time, Digikey.

    Anyone know of a way around this?

    1. Re:One question by Anonymous Coward · · Score: 0
      since this is way offtopic, I'm posting anonymously...

      http://www.digikey.com/scripts/US/DKSUS.dll?Keywor dSearch&KeyWords=%s will get you a search on DigiKey.

      Many web forms which normally accept POST will also accept GET. I didn't bother to try for Amazon, so you can try that if you would like.

      -Karl

      P.S. watch out for the spaces in the URL above

  34. Parasitology by John+Hasler · · Score: 1

    "Couldn't there be a universal CORBA-like plugin for Mozilla to be used by most languages or such?"

    Right. Microsoft is so far ahead of Free Software in parasite hosting technology. Why can't Linux be a squirming mass of worms too?

    BTW, Java is the standard, is it? Funny that I don't have a single byte of it on any of my computers.

    --
    Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
  35. Java Web Start by axlrosen · · Score: 1
    The new technology for client-side Java programs is Java Web Start (aka JNLP). It lets you add Java programs to your Web pages, but they're launched as applications in a separate window, not as embedded applets. But they still use the applet security model, so they're still safe to run.

    This fixes a lot of the problems that occur when you try to use applets to create real, useful programs (as opposed to little decorations, etc.) Many of these problems are caused by the conflicting requirements of trying to combine the Web world and the Java world in the same window.

  36. Re:Java as a client side web applet is dead! by chickenmilkbomb · · Score: 1

    Does flash/shockwave have the ability to open streams back to the server for updates (a good example is espn's gamecast - near realtime baseball game info updates)? Are the standard libraries on par with java? I am sure that Flash/Shockwave is better than java for flashing pretty pictures on the screen, but what about for real applications (not just animations)?

    --
    He hates these cans!!!
  37. Re:Java as a client side web applet is dead! by Anml4ixoye · · Score: 3, Informative

    Umm..actually, yes it does. The scripting allowed in Flash, especially Flash 5.0, is amazing. We have built chat clients, news tickers, etc. The other great thing about it is that it can interact with whatever Server-side scripting language you are using, be it ASP, Cold Fusion, Perl, etc.

    I think the challenge is that because Flash is still new, lots of people are just using it to use it. But just like with any other system, you will start to see more and more applications built out of it that utilize its true power.

  38. Poor browser integration by bbn · · Score: 1

    Two reasons java applets didn't make it:

    1) Both Netscape and IE only supports an ancient version of java that nobody wants to work with. Writting an applet is a nightmare, nothing works like it is documented and you can't expect your code to work in other browsers than the one you are testing on. This would have been fixed years ago, but the first browser to use a recent JDK is Netscape 6.

    2) Applets can do almost nothing with the browser compared to javascript. This reduces the potential usefullness greatly. We could have had applets that worked like client side servlets, controlling a frame with ordinary HTML etc, replacing many of the more complex usages of javascript.

    If browsers used a recent JDK with usefull extensions like Java 3D available, maybe flash wouldn't have been that popular.

  39. Re:Java as a client side web applet is dead! by maraist · · Score: 2
    Back in the early days, everyone lauded Java as a means to add multimedia content to the web.


    That may have been its most obvious selling point, but that was far from it's only use. It was a cross-platform method of client/server programming. You could develop sophisticated applications with incredible performance characteristics (compared to simple DHTML) that you could distribute to a heterogenious intranet (Solaris/Linux/win32).

    Eventually DHTML got more sophisticated, and generating graphics for HTML was an order of magnitude simpler than for Java. Thanks to more reliable javascript, you can also produce many of the dynamic operations that previously required Java. (procedural drop-downs, tabbed pages, refreshing, etc).

    -Michael
    --
    -Michael
  40. Re:Java as a client side web applet is dead! by Anonymous Coward · · Score: 0

    Some InfoWorld columnist found a client-server database applicaiton that was written in Flash. That's either the sign of the apocolypse or the beginning of the end for Visual Basic.

  41. Web Client Language Plugins by the+eric+conspiracy · · Score: 3, Interesting

    I would like to hear about reasons why there is no effort to expand the capabilities of websites with language-plugins.

    Because the idea sucks. The place for code is on the server, not the client, for the following reasons:

    1. Security
    2. Compatability.
    3. Portability.
    4. Separation of presentation and logic.

    The only time where it is possible to put logic on a client and get reliable performance is where you have complete control of the client's software and hardware - i.e. a closed computing environment.

    That is NOT the web.

    1. Re:Web Client Language Plugins by Salamander · · Score: 2

      Separation of presentation and logic is good; what if the presentation is non-trivial? Do you want a server getting bogged down sending low-level instructions or generated images to clients? Do you want all presentation methods hard-coded into clients? Or might it be better to provide a way to specify complex presentation to clients, which is what Java does?

      Of course you can't guarantee performance on other people's hardware, but that's their problem. Making it your problem by assuming all of the load is just stupid. Equipment and bandwidth budgets are finite - a lesson learned to late by many other dot-bombs. If you only have X hardware and Y bandwidth, you can use client resources - via mobile code or otherwise - to serve more users than you can with the totally server-centric approach you suggest.

      Mobile code doesn't solve all problems, and it does create a few, but it's still a valuable part of the toolbox. If your control issues still prevent you from accepting that, see a therapist.

      --
      Slashdot - News for Herds. Stuff that Splatters.
    2. Re:Web Client Language Plugins by dead_penguin · · Score: 2

      The only time where it is possible to put logic on a client and get reliable performance is where you have complete control of the client's software and hardware - i.e. a closed computing environment.

      I'd say that this is a fairly accurate descripion of the abstraction provided by a virtual machine for a language-- i.e. Java's JVM. While the JVM runs on many different hardware platforms, it provides a closed computing environment with a reasonably fixed set of APIs across all platforms it runs on. Performance (i.e. execution speed) does differ across the different speeds of the underlying host cpu, but this is also the case for natively compiled applications.

      As far as the four points you make go, I think they are all valid. Java (as an applet language) does a reasonable job of addressing the first three (security, compatability and portability). The fourth (separation of presentation and logic) is really up to the designer of the system to do in a sane way.

      --

      It's only software!
    3. Re:Web Client Language Plugins by the+eric+conspiracy · · Score: 2

      If your control issues still prevent you from accepting that, see a therapist.

      It isn't a matter of control, but reality. If you don't cater to the biggest audience possible, you are throwing away potential customers.

      This is why you don't see applets and flash on succesful e-commerce sites.

    4. Re:Web Client Language Plugins by Salamander · · Score: 2

      Designing for the largest possible audience is important, but that point really is not relevant to what we were discussing. I was addressing a specific technical issue: scalability of mobile or other client-based code as a vehicle for complex presentation, compared to the server-centric approach you suggested. In that context, the current situation is a mere historical artifact, inseparably tied to the newness of the technology and this week's performance parameters. It's extremely easy to imagine a world in which support for some form of mobile code is universal. It's also extremely easy to imagine a world in which even the most compact client can be assumed to have enough computational power to perform presentation tasks...not the whole application, just the presentation. In that world it would make absolutely no sense to load the server with presentation-related tasks, or the network with the associated extra traffic. That would be seen, rightly, as a stupid design.

      I would further say that the world I describe is not a distant one. It's practically upon us. If you were talking about deploying an application this week maybe your comments would have some merit, but in a general conversation that encompasses even something as close as next year your server-centric bias starts to seem rather pathological. None of the reasons you give for preferring server-side code really stand up to scrutiny; client-side code is going to become a more and more necessary part of serious distributed-application design whether you personally like it or not.

      --
      Slashdot - News for Herds. Stuff that Splatters.
  42. Java vs C++ by Anonymous Coward · · Score: 0

    Where is the link for the Java vs. C++ article you referenced?

  43. Plug-ins don't go over well anyway.. by ahfoo · · Score: 1

    One of Macromedia's problems is they assumed the plug-in was the way to go because Flash worked out so well. But Flash was just that, Flash. Essentially vector graphics handling in a browser. It can be used to create complex and enchanting interfaces, but it's based on a set of standards that are already being incoorporated into newer browsers.
    Macromedia's product line can certainly do more than just vector graphics with paths and animations, but if you look at some of the more sophisticated tools in the product line, they required their own plug-ins and just never got good penetration because of end user hesitation to go for it.
    The plugins for higher level tools like Director and more so Authorware go way beyond the capabilites of a normal browser particularly in the sense that can they read and write and delete files as they please. And much more than that, they can execute remote system functions like shutdown reboot or add registry key. So, why didn't everybody download these plug-ins? They're free just like Flash plug-ins are. I think part of the answer is that these things give a browser powers that people don't want browsers to have and so they never get downloaded. If you can make it into the HTML specs, get in a browser, if not. . .
    This whole notion of letting the web turn into more than it is seems like it's the source of as many problems as it solves and it seems to be pushed by MS with this whole web sevices bullshit campaign. Fuck that, everything shouldn't happen on the web. Why does it have to be integrated into the browser instead of being its own application? All multitasking windowed computing environments allow multiple applcations to run at the same time. They can all use net bandwidth, why do they all have to be in a web browser?

    1. Re:Plug-ins don't go over well anyway.. by Pong5 · · Score: 1

      In fact, the Shockwave players for Director and Authorware DO NOT permit file system capabilities (except for cookies) due to security considerations.

    2. Re:Plug-ins don't go over well anyway.. by ahfoo · · Score: 2, Interesting

      I don't want to argue about whether the user sees the "do you trust this" message every time or whether it can be hidden using BudAPI or something you cook up on your own, but basically Authorware is worthless unless you can make local system calls. If you just want to display text and some pics and play some sounds, why not just put up a web page? This explains why Macromedia started pushing Dreamweaver so hard even when they already had superior products from a development point of view. Nobody was downloading the plug-ins.
      It still stands that people don't want to download the plug-ins even though they're only a meg or so. That was my point. I'm not acusing these tools of being a security concern or saying security concerns are why they aren't downloaded, the fact is these plug-ins aren't downloaded by most users for whatever reason. The Flash plug-in was an anomaly because people are like fish and other creatures possessed of eyes and they like to see flashes of light. It was stupid human trick. Plug-ins as a solution suck. Browsers are already way overloaded and it's all MS's attempt to focus everything on the web because it's the one part of the net where buzinezz ownz ur azz.

  44. That's an easy question by Zog · · Score: 0

    It's because Perl is too ugly ;)

    OK, really now:
    There's not much sense in writing your own interpretor for a language with all of the modules that would have to go along with it to have any sort of functionality. And you'd have to do that because you can't trust the guy the code is coming from to not trash your box.

    Peace
    -Brian

  45. Applets Were for UI, Now Better Choices by rjsjr · · Score: 2, Insightful
    The fundamental problem that most java applets were solving in the early days of browser applets were user interface issues. Early HTML standards provided a very sparse set of interface behaviors, relatively little control over screen organization, almost no dynamism of interface elements, and made interaction with the server tedious for the user. JavaScript was still floundering as a confused little Netscape introduced scripting language (perhaps it still is). Additionally, most links and servers were considerably slower than they are now, so you had a greater need for accomplishing.

    Java presented itself as a rich medium in which to be able to effect much more complex interfaces. Sure, there were much more grandiose plans, but this is what most people wrote applets for. Ultimately, this proved to be a problematic architecture for a number of reasons (not limited to flaky OSes, lousy java implementations, limited sandbox behavior, and the problems of native UI elements across platforms). I spent many long nights frustrated while trying to develop mission critical communications applications in an applet environment.

    A combination of more advanced HTML behaviors (including DHTML, XHTML, etc.), better client side scripting, and robust server side environments has emerged as the dominant model and has a lot of strengths to speak for it. Compared to applets, we get more flexible, supportable, and scalable environments and can much more easily reuse behavior across into other areas.

    With some apologies to Perl/Tk, wxPerl, and other projects, building a nice user interface has never been a strength of Perl. I love perl and think its a great tool, but its not what I reach for out of my toolbox when user interface problems present themselves. Python is arguably a little more relevant here, but I still don't see a compelling extension of behavior worth the costs of runtime footprint, learning new code, and inevitable incompatibilities. mod_perl is clearly a compelling use to me as I can do innumerable little tasks quickly and easily on my webservers, do I really need super nifty regexps and unix tool linking in my browser's client runtime?

    Where you really do need more advanced behavior (which is far less often than people think), Flash and Shockwave are probably better solutions, particularly from the perspective of designers and content people. And beyond that, an ActiveX control (face it, windows is the dominant user platform, like it or not) lets you accomplish whatever you need more flexibly.

    Lanugages can be a lot of fun to play around with (Ruby and Haskell come to mind right now), but generally speaking its better to minimize the number of tools used and requirements imposed (particularly as we start focusing more on embedded browsers).

    ... rjs

    1. Re:Applets Were for UI, Now Better Choices by Anonymous Coward · · Score: 0

      I don't allow any code to run in my browser, except occasionally Javascript. No plug-ins.

      Most plug-ins seem to be intended to make life easy for the web site developer, or for the benefit of marketroids. They do nothing for the site /visitor/. Flash, for example, is nothing more than annoying animation that irritates me a lot.

  46. Python has it -- see grail by VanL · · Score: 2

    Grail was a browser written years ago in python + tk. Its features included python applets, that would be downloaded and run in a restricted execution mode in the browser. Not often mentioned, but python may have been the first 'applet'-capable language.

  47. Java Applets are too Slow by LazyDawg · · Score: 1

    When you starrt the Java VM you have to compile bytecode for native operation for performance even close to fast. That's a complicated and time consuming process, and in the end you have to wait far too long on older machines before your applet is running.

    If Java were just a bytecode compiled scripting language, or if it had a far less complicated VM (like, say, a 68k VM with memory management functions in the "rest" of the system, Sun could at least have native execution on some platforms, much smaller footprints for devices like Palm or Macintosh or PlayStation, and a much easier time convincing people to port pre-existing applications. Instead they made up a slow VM with a totally alien architecture, and spread some marketing around that said in this one instance a JIT was actually worth working with, in spite of all the imperical evidence in the past. This was just strange behavior.

    Another option, instead of a 68k emulator, would be a tcl/tk system of some kind. There is a very large codebase for tcl/tk already, it offers decent speeds, fast download times, native widgets, and it seems to have a faster run/debug/develop cycle than Java. Unfortunately Sun couldn't take control of tcl, what with it being free software, so they made up their own crippled system as the base for a very large object tree.

    --
    "Look at me, I invented the stove!" -- Ben Franklin
    1. Re:Java Applets are too Slow by dead_penguin · · Score: 2
      When you starrt [sic] the Java VM you have to compile bytecode for native operation for performance even close to fast. That's a complicated and time consuming process, and in the end you have to wait far too long on older machines before your applet is running

      Not exactly. The two major speed issues with running Java applications are:
      1. the startup time of the JVM before the bytecode starts running (or is even loaded)
      2. the speed of the GUI libraries (AWT & Swing)
      The first one is a pain-in-the-ass, especially for small applets or applications that don't do much themselves; why should a seemingly insignificant applet take a long time to start? The second one is the main reason why people consider Java to be "slow". It is (hopefully) being addressed in the next version of Java, although this won't help most browsers that use a version of Java that's several years old.

      Those issues aside, Java is actually a relatively quick language. Using such tricks as just-in-time compilation to native code (this is done as the bytecode is running, and uses various code profiling techniques), the speed of a java program can approach that of a natively compiled one.
      --

      It's only software!
    2. Re:Java Applets are too Slow by Graymalkin · · Score: 2

      One aspect to the slow GUI is alot of people seem to skip the chapter of their textbooks practically begging them to thread their programs properly. You can make your GUI very responsive if you lock it down inside a higher priority thread or thread each section of the GUI depending on the frequency it needs to be updated. I've seen far too many applets with everything from the AWT objects to all the functional methods confined to a single thread. AWT is slow enough but managing it poorly just gives your apps a bad reputation. If you thread it, they will come.

      --
      I'm a loner Dottie, a Rebel.
  48. does the java plug-in work on ie 6? by spike666 · · Score: 1

    i had heard that the java plug-in didnt work on ie6, that when microsoft removed the netscape plug-ins it also disabled sun's java plug-in. but looking at various pages on the plug-in, it appears that under IE, you actually load the plugin as a COM object. with the tag.

    anyone try this yet? i suppose i can nuke a machine with ie6 and try it myself sometime... but i figure theres gotta be a few out there whove done this already.

    1. Re:does the java plug-in work on ie 6? by jilles · · Score: 2

      What MS did is remove the ms vm and disable netscape style plugins. The old sun plugin was a netscape style pplugin.

      Sun now has a beta version of jdk1.3.1 (in their early access program) that replaces the MS vm entirely. It is an activex plugin and it will even run applets defined in applet tags.

      If you go to www.javasoft.com/jdc and sign in (for free) you can download it. You'll notice that sun has put up a call to testers to test it with existing applets in order to find compatibility problems.

      It works great with IE 6 and I haven't found any applets yet that I can't run. It's stable too, no crashes so far.

      --

      Jilles
    2. Re:does the java plug-in work on ie 6? by Anonymous Coward · · Score: 0

      The Sun JVM plug-in is actually an ActiveX control (for IE) and a NS plugin (for Netscape). It's been this way since at least 1.30, and it didn't break with the recent versions of IE.

  49. Why isnt wintel IE like mac IE ? by spike666 · · Score: 1

    this might be way off topic, but why isnt windows IE like mac IE?

    on the mac, the jvm that executes is whatever jvm you have installed on the system. so if you had installed jvm1.3 you'd run that one.

    1. Re:Why isnt wintel IE like mac IE ? by Anonymous Coward · · Score: 0

      They're completely different code bases.

    2. Re:Why isnt wintel IE like mac IE ? by Anonymous Coward · · Score: 0

      Sun's original plan was to have the operating system vendor provide the JVM. When that didn't work out for Windows, they hacked together a way that the Sun JVM plug-in can get called from IE (through an ActiveX control). MSIE might be hardwired to MS-JVM as far as the applet tag is concerned, but the object tag can load just about anything.

  50. This has been done. by hackbod · · Score: 1

    I created such a system around the time Java was created (actually, it was started before Java was announced) called iHTML. It explored server-side languages that are both embedded in a document and allow DOM-like manipulation of a document (before there was a DOM, though). This isn't really interesting nowadays, though.

  51. Mozilla can do this easily by Anonymous Coward · · Score: 0

    Yep, just write an XPCOM object to handle the scripting language of your choice. As for an equivalent to ActiveX, well it has XPInstall which allows you to install new XPCOM objects into Mozilla. These require the user to actively install them, and webpages must get the users permission to access them, but once in they're not sandboxed. Anyway, Mozilla is such a good way of writing programs that most of the time custom XPCOM objects aren't needed anyway. XML and JavaScript can do it all.

    -mike

  52. Smalltalk and Oberon have them... by RevAaron · · Score: 3, Informative
    Squeak Smalltalk has a plugin available for Linux, Mac, and Windows.


    Dolphin Smalltalk has a plugin as well. However, like Dolphin Smalltalk itself, it is Win32 only.


    One of the bigger, more business oriented Smalltalks, VisualWorks, also has a plugin. It looks like it too is Win32 only, but VisualWorks itself is cross-platform, and runs on Windows, Mac OS, and a big number of Unices.

    The coolest plug-in for a language I've ever seen has got to be Oberon's Juice, by far. Unlike the Java and Squeak VM plug-ins, which take bytecode for their respective VMs, the Juice plugin takes pre-parsed Oberon code and compiles and executes it on the fly. This makes for really fast applets. I tried it a while back and it took a heckuva lot less time for Juice to download, compile, and execute the applet than it took for a comparitive Java applet to start up. Really cool stuff. However, it seems it's not been maintained in a while, and is Windows and Mac only. Seeing how Oberon itself has source available (IIRC), I'm sure that some Oberon enthusiast who wanted to get a generized Unix version going of Juice could do so.

    --

    Working toward a usable PDA environment in the spirit of Newton OS: Dynapad
  53. yeeeah. by Anonymous Coward · · Score: 0

    all thats going out the window. If you dig a little deeper your talking about IActiveScript interface.

    IActiveScript became the ban of my job a while back, it's buggy, barly documented overall not intended for external use. If you want to write a debugger your your neato active scripting languge you need to get into about a bizilion other interfaces called 'Smart Host'. this isn't documented beyond comments in a idl file.

    anyway the whole thing is going to be abandand soon. MS is moving to a nifty .NET thing.

    whatever.

  54. Standard Virtual Machine by Myopic · · Score: 2, Insightful

    Well, since the Java Virtual Machine runs bytecode, not source code, you should be able to compile any language into Java bytecode.

    g++ can compile C/C++ into Java bytecode, can't it?; I'm sure it or other compilers can do the same for other languages.

    Then, assuming everyone has a Java virtual machine, you're all set; except for languages like Perl which aren't compiled -- that sucks, but hey you can't blame the virtual machine for the limitations of the language.

  55. Dorothy was a man by Anonymous Coward · · Score: 0

    So both interpretations are appropriate.

  56. pyxpcom and perlxpcom by zachlipton · · Score: 1

    If you are looking for python xpcom bindings, you might want to take a look at http://aspn.activestate.com/ASPN/Downloads/Komodo/ PyXPCOM/. Released under the Mozilla Public License.

    I also know that activestate is working on bindings for perl which will be great for me!

  57. we were talking about a perl one by drfrog · · Score: 1

    on perl monks a while back.
    it shouldnt be too hard esp if activestate make a plugin that comes with its windows version

    more info if you search there for perl plugin

    --
    back in the day we didnt have no old school
  58. Jython (code in Python, run on a JVM) by bastia · · Score: 1

    If you like Python, you can code Java applets in Python syntax, using Java components. See Jython's SourceForge page. In particular, read Compiling Python Source to Real Java Classes

  59. Java Applets sort of suck... by josepha48 · · Score: 2
    The fact is that java applets sort of suck.. ever since Microsoft and Sun had their court battle, Microsoft started killing Java. If Microsoft does not support it many people stop using it. That is just the way it is.

    Well that is hot the only reason. Java applets do not perform the same way in all browsers. Each version of Netscape supports a different JVM. Even on different platforms, the same version of NEtscape did not support the same JVM. I tried this once and found my applet was different in IE on windows 95/98 and differnt on NT and different on LInux. Then mozilla is a different JVM, which crashes my browser, so I don't use it.

    There is also little reason to use applets. The only effective place I have seen a java applet was a chat application that was a trusted applet. Outside of trusted applets, you really cannot do a whole lot.

    I think the other reason is that they take to long to load on a page. I have only seen a few good applets.

    May your ass bleed profusely for every negitive moderation point this post gets!

    --

    Only 'flamers' flame!

    1. Re:Java Applets sort of suck... by ttfkam · · Score: 2, Informative

      Hmmm... Where to start?

      Microsoft started trying to kill Java back with IE 4 when they had a kick ass JVM, but decided to "forget" certain features such as RMI. The lawsuit simply formalized the animosity.

      If MS stops including it, it will be a blow against Java. How big a blow remains to be seen. Alternative browsers are supporting Java through the Java plugin quite consistently. Also, many OEMs have committed to install Java on new Windows systems without Microsoft's help. MS still provides a JVM as a separate download, and Sun still provides the Java plugin for IE. It remains to be seen whether or not this will be a major issue or not.
      Browsers that use the plugin have at least Java2 functionality. This allows a significantly greater featureset and raises the bar on compatibility.

      With regards to differences, if AWT is used, yes they will look different from one another. This was the point with AWT, that it would look like the underlying platfrom (with the same widgets).

      Mozilla (and Opera) uses the Java plugin (and not its own JVM like Netscape 2.0-4.x and IE). Also it is obvious that you haven't used Mozilla with Java recently. The crash bugs that you mention have been stamped out to a large extent. Is it bulletproof? No, but then again are most browsers bulletproof? The point is that I go to sites with Java applets on a regular basis (every day) and have not crashed due to an applet in a couple of months now. I'd say that was stable enough for most.

      Chat applications do not have to be trusted applets. I know. I've written a few. Applets can do anything except for the following restrictions: You can only make a network connection to the server the applet came from, you cannot make local filesystem calls, and you cannot call native code. I don't know about you, but that has left quite a bit of room for me to fiddle before having to sign the applet. Your only real limitation is what the client's JVM version is right now. Note that the versioning runs into the same problem that we all face with HTML vs. XHTML vs. DHTML vs. CSS2 -- it's not just Java's problem.

      Regarding taking too long to load, this is a programming issue. When Gnome took a while to start up, did you blame C? There are things that you can do to make the applet visible earlier (judicious use of init() and start()). Just as with every other language, there are crap coders in Java as well. And many of those crap coders make applets. Are applets perfect? Of course not, but bad coders have done more to tarnish the Java moniker than any inefficient JVMs.

      Use the right tool for the job. Use HTML/DHTML to general presentation, Flash for multimedia, and Java for the things that the previous two just can't handle. In fact, both IBM (DirectDOM) and Mozilla (Blackwood) have make considerable inroads on having Java manage logic on the browser while leaving the UI to the browser widgets. Imagine! The power of a full, typed, OO language with the ease of a browser's DOM. Network-aware, portable programs can be a good thing. In this arena, Java is the best choice. What else are you going to use? ActiveX? In many cases, when it comes down to it, you use Java or you don't do it all. I prefer to use Java rather than sticking my head in the sand and pining for the simpler times.

      The simpler times covered 40% of the problems on the 'Net. Some of us want to get the other 60% underway.

      ---------------

      Now then, back to the main topic. Those out there who are worried about security in other languages, ActiveScript on IE (the framework behind VBScript, JavaScript, PythonScript, and PerlScript) does not allow you to instantiate objects that talk to the local filesystem. The trick there was that the various languages had to conform to the framework's security model as opposed to the framework trying to work with all of the different languages/versions out there.

      --

      - I don't need to go outside, my CRT tan'll do me just fine.
  60. REBOL has its VIEW by spider · · Score: 1

    http://www.rebol.com/prod-view.html

  61. Java in the browser isn't dead - Java Web Start by Anonymous Coward · · Score: 0

    First .. lots of sites use Java applets. You can find them all over the Yahoo site, for example, and others. It's unfortunate that the browser VENDORS never updated Java past v1.1.x .. note that LOTS of work was done since then (4 years ago now) to improve the implementation, fix bugs, speed things up, and so on.

    Java applet's are safer than other approaches because of the security built in. The VM, before it executes any code, runs a bunch of checks, and other checks are done at runtime. Applets in a browser has very stringent security settings and one has to jump through difficult hoops to loosen them up. Very few security bugs have been found in Java. Compare that with Microsoft's software, and the gaping security hole that is Internet Exploiter.

    A new way to launch Java from a web page has been developed -- Java Web Start. It involves a small XML file (JNLP) that describes salient features and code sources for a Java app. The browser is told that for JNLP files it is to launch the Java Web Start application to run it. And, from there, all the Java code is downloaded (or may already be installed, etc) for execution. Quite easy and slick.

    - David

  62. JVM opcodes too limited for many languages by Anonymous Coward · · Score: 0

    The JVM is designed for Java and functional languages (lisp, scheme, python, Rexx). Because no pointer arithmetic is allowed, you can never have an efficient C or C++ compiler built for the JVM. Of course, anything is possible - but it would run 10X slower than compiled C code. The Java designers have seen the errors of their ways and recently added unsafe direct memory access classes in an effort to speed up graphics and IO. But they also have to create new bytecode, as Microsoft did with CLR to optionally run "unsafe" - but fast - pointer-based code if required.

    1. Re:JVM opcodes too limited for many languages by Anonymous Coward · · Score: 0

      This is no really true. JDK 1.4 (currently in beta) allows for native code and JVM code to share memory buffers. In previous versions, this was not allowed, when native code needed access to a Java array, the native code would lock on the array, do what it needed, then unlock the array. This led to an additional copy taking place. In the case of Disk I/O for example, you'd have to cpy from the native code's network buffer, to Java's buffer. That is no longer needed, as the OS code can write straight to the shared buffer.

      As for the graphics changes, There are changes which allow you to use VRAM to store images, inclduing offscreen images.

      Neither of these changes allow "unsafe" operation from within the JVM. The native code in the libraries allocate the memory, and the access to that memory is still restricted by that native code, same as it always was.

      Nothing in this makes is less "safe". The only way to screw up memory is if you write native code, and mess it up in the native code you wrote.

  63. Multimedia is dead, not Java. by bcrowell · · Score: 2
    The plain truth is, users don't want multimedia content on web pages. For most people it's a nuisance, especially the majority of us who use modem connections. Most people have Java enabled in their browsers and Flash disabled, but that's just because (a) nobody gave them an obvious way to avoid installing Java, and (b) they don't realize they can turn Java off, or allow applets to run only when they click on them.


    Once in a while you actually want to run client-side software via the Web, and then you want an applet. For most people, however, this is very rare. I'm not against applets (I wrote an open-source planetarium applet, and it's moderately popular). I'm just against using them in stupid ways. And, as people have already said in other comments on this story, it's nightmarish to consider the security problems that would come up if you allowed applets in languages that weren't specifically designed with Java's security and no-crash features. The same things that make me enjoy programming in Perl more than in Java are also the things that make Java applets safe for users.

    1. Re:Multimedia is dead, not Java. by _fuzz_ · · Score: 1
      The plain truth is, users don't want multimedia content on web pages. For most people it's a nuisance, especially the majority of us who use modem connections. Most people have Java enabled in their browsers and Flash disabled...

      Just because you have flash disabled doesn't mean most people have it disabled. In fact, the stats I've heard tossed around are that flash is installed on 90% of web-enabled desktops. And given that many news sites now use flash for all their ads, and that most entertainment based sites rely heavily on flash, I'd say flash is very much alive.

      I think if you polled the average web surfer (not the average Slashdot geek), you'd find that most of them want multimedia content. Sure, it sucks if you're on a bad dialup connection, but most people I know have broadband or at least 56K.

      Multimedia makes browsing much more pleasant. It's cool. It's fun. That's what people want.

      --
      47% of all statistics are made up on the spot.
    2. Re:Multimedia is dead, not Java. by bcrowell · · Score: 1
      ... the stats I've heard tossed around are that flash is installed on 90% of web-enabled desktops.

      I surfed for info, and you're right -- sorry for spreading misinformation.


      And given that many news sites now use flash for all their ads...

      Hmm...another good reason for disabling Flash!


      I think if you polled the average web surfer (not the average Slashdot geek), you'd find that most of them want multimedia content.

      Mmm...well, I doubt it, but do you know of such a poll?


      Sure, it sucks if you're on a bad dialup connection, but most people I know have broadband or at least 56K.

      There's a big difference between broadband and 56K. Broadband service is still pretty uncommon, which isn't surprising considering that the standards for service are such a sick joke.

    3. Re:Multimedia is dead, not Java. by Steeltoe · · Score: 1

      Sure, glossy animations can be fun for a little while but it quickly becomes dead-boring. When people surf the web, they want to have control over what they are doing on the web. They don't want to have flashing neon-lights showed up in their face while reading news. Actually, many non-geeks I know are turned off the web for this very reason. They also don't know it's possible to disable animating GIFs, flash, Active Scripting, applets and advertisement in general.

      I have nothing against the technology. If I want to see animated cartoons on the web, I'll turn on flash again. However, showing animations when content is all I'm interested in is just disrespectful and I will do what I can to avoid it. It has not so much to do with who has broadband or not. Animations are disturbing the brain. At work we have pretty good lines, but I turn away from glossy sites all the same.

      It's just the same with TV. It's been overused. People are tired of commercials and noise in general.

      - Steeltoe

  64. Python can do it by Anonymous Coward · · Score: 0

    Try Google and search fpr Jython.
    That's a Python-to-Bytecode compiler.
    Yes, it's that simple

  65. Half way there by mightbeadog · · Score: 1

    Interpreters for some scripting languages, all written in Java, already exist. (Jacl, a Java implementation of Tcl, for example.) In theory, these could run in an applet. In practice, they would probabaly have to be rewritten so the user didn't have to wait for the whole interpreter to download before a simple script would run. Or maybe the download problem could be solved by browsers' caching features. A third option would be to compile scripts to Java bytecodes and put the resulting .class files on the web server.

    These options would probably be slower than a native implementation of a scripting language, but they would work on most browsers without extra plugins. If a scripting language became popluar in "applet mode", it would encourage the major browser makers to include a native engine for it.

  66. It's because Python and Perl Suck by Anonymous Coward · · Score: 0

    Of course.

  67. For a brief moment I thought there was by Anonymous Coward · · Score: 0

    going to be an "ACTUAL" technical discussion here, but the moment passed

    1. Re:For a brief moment I thought there was by Anonymous Coward · · Score: 0


      You make it clear that you think security is a technical issue, and that you therefore don't uderstand the first thing about security.

    2. Re:For a brief moment I thought there was by SilencedScream · · Score: 1

      How can you say security isn't a technical issue? Of course it is. It also has a lot to do with how that technology is implemented, the education level of the user, how well systems are maintained.... etc. After reading your posts you did not provide one solid piece of technical info or even much in the way of factual info to back up any of your claims. If you wish to have an opinion sir you should be ready to stand behind it and defend it. In my opinion I think there are a few of the people who use linux or another variant of *nix that like to rag on microsoft for the simple fact that they have done for their OS what you wish you could do for yours. Mass acceptance and implementation. Feel free to post as many flames to this post as you want because they tend to usually show the posters lack of education and or vocabulary both of which I find extreamly ammusing.

  68. If you are going to use a plug-in... by horza · · Score: 2

    ... you may as well use one of the most commonly installed one. Using Ming you can generate Flash on the fly using PHP. Most popular plug-in + most popular scripting language = common sense to me!

    Phillip.

  69. Jython by smallpaul · · Score: 2
    With Jython it is possible to make "Java" applets in Python. The first time you use a Jython applet, it downloads the Jython runtime which is slow. But it is much faster and more convenient than downloading a Java, Flash, Acrobat or ShockWave runtime, which many people do without complaint.

    Standard Python could also be used in Mozilla through XPCOM but you would have to be careful from a security point of view. You could only really run trusted code.

  70. How about emacs-lisp? by Anonymous Coward · · Score: 0

    As far as I know, Emacs/w3 has support for elisp as scripting language (instead of javascript used elsewhere).

  71. Java applet == simple, secure, portable by ACupOfCoffee · · Score: 2, Informative

    The reason that other languages do not work as well as java in the applet context, is that in order for an applet to be able to be used freely on the web, it must provide cross platform support. Also, it must have some type of security sandbox or no intelligent user is ever going to let it execute. Java provides both of these without any extra complicated programming hacks. As well as having already established itself as a comptent de facto standard.

    The reason that applets have never really made it big is essentially two fold. The first is the shitty virtual machine that most browsers have. IE runs a semi 1.0--1.1 compliant browser and there have been significant changes since then (Swing anybody?). The other reason, and perhaps more important is that there are only a few instances where applets are really needed. If all you are doing is displaying semi-dynamic (aka database driven) content, which is all the pretty much every page on the web does, just use some sort of php/jsp/cgi type solution and your fine, it's faster, and easier in general. If you need a little bit of client side dynamics, you can throw in a little dhtml/javascript and have your form validation and pretty scrolling text or whatever. The real use for applets come when you need a much more interactive sort of web application, where the display needs to be updated constantly, or you need to do a lot of dynamically generated graphics or very complex data processing. These types of apps appear much more frequently on intranets than they do on the web in general, and provide a much richer interactive experience.

    1. Re:Java applet == simple, secure, portable by Graymalkin · · Score: 2

      Java applets are also good for use in application hosting. If you build a bunch of applets that are going to replace some set of tools it's much easier just to write them in Java as you're able to run them on just about everything with no problem at all. Applix used to have a Java suite of their tools a couple years ago that worked pretty well IIRC.

      --
      I'm a loner Dottie, a Rebel.
  72. Re:Java as a client side web applet is dead! by lsdino · · Score: 1

    Actually there are a few things where Java is actually better. The best example I can think of is the "mirror pond" style applet which takes an image and makes a certian area of it have a water rippling/reflection look. So you take a picture of a lake and you have the water rippling. This could all be done in Flash I guess, but you're probably going to end up with a multi-frame image (a glorified animated GIF) or really crappy looking line art.

    To make sure I stay on topic to the discussion at hand, the reason not to have a billion scripting languages available for browsers is security. Java implements a security model which gives it limited access to the user's computer. Flash essentially does the same thing (by simpling not providing any dangerous functionality).

    So this means to implement languages for a browser one would need to redesign every language to have a security model, or hack out the dangerous portions of the programming languages for the web based version, or something along those lines.

    In related news MS's .NET follows the Java idea of using a security system - so a language implemented to compile down to the .NET framework will use it's security model, and you could therefore use those 'applets' in your web pages all you want. You'd get to use Perl or Python or whatever, you just gotta compile it down to MSIL first. :)

  73. Re:Java as a client side web applet is dead! by lsdino · · Score: 1

    Yep, I wrote a chess program in Flash where the board was all done in flash and it posted back to the server to get the computer's move. The way it communicates back to the server is it sends a stream like var1=x&var2=y&var3=z... back to the server, and the server responds with a like stream back to the client (what would be really nice would be a nice SOAP interface... ahh, one can dream.)

  74. Java provied CORBA by Jeppe+Salvesen · · Score: 1

    You can program a java applet that uses CORBA to connect to a server written in a totally different language. So - your browser has done what you described for years already. Cool, huh?

    --

    Stop the brainwash

  75. Re:Java as a client side web applet is dead! by Anonymous Coward · · Score: 0

    Both Perl and Python has modules that implements
    Java's sandbox model (optionally), so the security issue you are talking about, are just not there.

  76. Language for the job... by Mike+McTernan · · Score: 1

    > but I wondered why there never was a browser-
    > plugin for languages like Python or Perl

    I'm not a great fan of scripting languages, and when people suggest them I often scratch my head before being told that they are 'the best language for the job'. And scripting languages do have many strengths I'll admit.

    However, in this case I think the language for the job must be Java since it has all the security features built in that are needed for somthing like this. It also has been around for a short time and so I guess is pretty stable/secure and well understood now.

    To make scripting languages secure might mean a fundamental change to them and the way they work (Or are SecurityExceptions supported by them all as standard?).

    In fact, the easiest way I could see to make a safe script interpreter would be to write it in Java! Clearly this would be slow and cumbersome, and a waste of time....

    On the otherhand, if you foget security I guess that there are a lot of people out there that could quickly knockup some nifty scripts... lets just hope they aren't kiddies!

    --
    Mike

    --
    -- Mike
  77. JavaScript, Perl, Ruby, and more is supported. by Anonymous Coward · · Score: 0

    Read these articles that describe how XPCOM and XPConnect allow the mozilla framework to integrate new language bindings.

    http://www-106.ibm.com/developerWorks/library/co -x pcom/
    http://www-106.ibm.com/developerWorks/library/co -x pcom2/
    http://www-106.ibm.com/developerWorks/library/co -x pcom3/
    http://www-106.ibm.com/developerWorks/library/co -x pcom4/
    http://www-106.ibm.com/developerWorks/library/co -x pcom5/

    Python bindings ...

    http://aspn.activestate.com/ASPN/Downloads/Komod o/ PyXPCOM/readme

    Ruby bindings ...

    http://rbxpcom.mozdev.org/

    As mentioned earlier, Perl support is on the way.

    1. Re:JavaScript, Perl, Ruby, and more is supported. by Anonymous Coward · · Score: 0

      argh! messed up links ...

      http://www-106.ibm.com/developerWorks/library/co -x pcom/
      http://www-106.ibm.com/developerWorks/library/co -x pcom2/
      http://www-106.ibm.com/developerWorks/library/co -x pcom3/
      http://www-106.ibm.com/developerWorks/library/co -x pcom4/
      http://www-106.ibm.com/developerWorks/library/co -x pcom5/

  78. CORBA by Anonymous Coward · · Score: 1, Interesting

    You all tell funny true things but:

    - I am not a windows-user and can't use ActiveScripting
    - I don't wanna use java
    - I don't wanna use any commercial solution
    - why other languages shouldn't run in a virutal machine? (there is already Internet C, for an example)
    - couldn't a CORBA-Plugin restrict usage of languages?
    - Why you only talk about the impact on client-side?

    If a browser could bring the server close to the client (in a sandbox), then standard desktop products could just work over internet. This means that you can use e.g. gnumeric or evolution (in a restricted way) over your browser. Think of Broadway, the concept from X Consortium, that was defined for doing that. Today it could be done with a general purpose CORBA-Interface for Internet-Browsers. It's like a free and simpe .NET or so, or not?

    I wrote my question about a month ago and am astonished that it actually appears, uhh..

    1. Re:CORBA by Anonymous Coward · · Score: 0

      If you want open source dot-NET then
      look at the dot-GNU and mono projects.

      C# compiler, JIT native compiles, JVM support as
      an alternative/backup in case CLR support runs
      afoul of evil patents restrictions.

  79. Quite wrong by DrXym · · Score: 2
    Sorry, but Mozilla is extensible in a number of ways starting from the humble plugin, to chrome & skins, all the way through to writing your own XPCOM components and services which you can hook into Mozilla in all kinds of weird and wonderful of ways. It can even support different scripting languages via the wonders of XPConnect. For example ActiveState already have an XPConnect adaptors for their Perl and Python implementations.



    As for security implications, a script context is only as dangerous as the power you expose into it. Javascript is only considered a "safe" language because it typically doesn't have access to any objects that can do damage.



    The fundamental difference between IE and Mozilla is that IE automates this process of downloading and installing COM components, whereas Mozilla makes it quite cumbersome. It does have an automatic installation facility in the form of XPInstall but it hasn't been picked up by plugin developers.



    The principle problem of automating everything is that the user in general hasn't a clue whether a control is trustworthy or not. Yet a control can be downloaded, installed and run on their machine to do anything it pleases with a few mouse clicks. Manual installation may be more irksome but it gives a novice pause for thought and discourages web sites from using controls in the first place.

  80. Sun JVM for IE here! by WD · · Score: 1

    Check this out. When you install the JRE, it asks which browser you want to configure to use it. (including IE)

  81. Grail by Amphigory · · Score: 2

    There used to be a web-browser that did this with Python called Grail. It is now defunct, but you can see what's left of it at http://grail.sourceforge.net/.

    --
    -- Slashdot sucks.
    1. Re:Grail by Anonymous Coward · · Score: 0

      http://www.onionnetworks.com/

  82. Re:Sandboxes... Why isn't a VDM a sandbox? by Anonymous Coward · · Score: 0
    If you want to run arbitrary executables safely and *fast* why not make a safe 32-and-16-bit VDM-like box? You could start with the present 16-bit box. (The windows V_irtual D_os M_achine provides a virtualized environment to run 16-bit code, customized with .pif files).

    IMHO it is a failure of OS design not to provide a sandbox into which you can safely throw *any* random *machine language* code and let it execute. The worst you should get is a sandbox violation message.

    These things already exist in various forms, e.g., on a server, Apache's virtual host suexec capability teamed with careful unix permissions administration.

    What's needed is a similar automatic suexec mechanism putting not just CGI code in a restricted environment, but e.g., MS Outlook when you are in windows reading your e-mail, browsers when you are browsing arbitrary places, etc.

    And it has to be automatic and appropriate to the task, not just a global application of the initiating user's max privileges.

    My bet is the new secure version of BSD will become a frontrunner in providing the necessary infrastructure.

  83. ...which is why I can do my scripting with Ruby! by kahei · · Score: 1

    Yay ruby.
    Activescript's thing of separating the functionalityh exposed by an application from the language used to script it was groundbreaking, but the interfaces aren't exactly things you can pick up and use in a day... I wonder if .NET will supply anything.

    --
    Whence? Hence. Whither? Thither.
  84. Perl Shell by Anonymous Coward · · Score: 0

    It does already exist.
    Check out http://www.focusresearch.com/gregor/psh/
    Unfortunately it doesn't seem to be under very active development...

  85. Perl in browser? Yes.. by sundae · · Score: 1
    I remember seeing something called PerlScript a few years ago, which was created by ActiveState. It is now part of the ActivePerl distribution, from the ActivePerl documentation:

    What is PerlScript?
    PerlScript is an ActiveX scripting engine that allows you to use Perl with any ActiveX scripting host. At this time, ActiveX scripting hosts include:
    • Internet Information Server 3.0/4.0

    • Peer Web Services 3.0/4.0
      Microsoft Internet Explorer 4.0x
      Windows Scripting Host

    ... OK, it's ActiveX and it's evil...

    BTW, there has been Tcl/Tk browser plug-in for ages. If Tcl tickles your fancy, that is.

  86. Perl sandbox + performance. by Anonymous Coward · · Score: 0

    Perl has a sandbox mode for running untrusted code. I've never used it though.

    The crypto allow/deny hooks in Java always seemed a bit over-rated to me. Although they certainly have their advantages, they are incredibly difficult to set up! (Especially since the user has to muck around with the security manager--Unless they've fixed that somehow.)

    I'd say perl's primary advantage over java is performance, at least in certain circumstances.
    Load time is better, and text parsing speed is better. I haven't used many GUI perl programs, and have never written one, but experience shows that perl's faster at interfaces also.

    Of course, if you're writing a large, complex, program, you're better off with Java....

  87. hey don't worry, he's a complete maniac. by Anonymous Coward · · Score: 0

    I just read some other stuff by "Zero__Dumbass". my opinion? .

    Raging ego maniac asshole whose bitterness causes him too provokes the world.

  88. Zero_Credibility by Anonymous Coward · · Score: 0

    Agreed! That Zero_Credibility boy is working for Microsoft, trying to discredit our community. Beat it, kid.

  89. Please mod that Zero_Credibility whore way down by Anonymous Coward · · Score: 0
    "I did not know this! I am one point away from 25, and so the plot thickens! (joke) BTW - I didn't claim to have 13 years of professional Slashdot expertise 8^} And I appreciate that you said when, not if! Cheer up, bud. It will be OK!"

    -Zero_Kelvin, AKA Zero_Credibility: Snot Nosed Karma Whore Poster Child

  90. Re:Java as a client side web applet is dead! by frleong · · Score: 1

    It is amazing that MS has not yet bought Macromedia and grab instantly this market and also the market of webpage editors... Flash/Shockwave Player is bundled with XP, a rarity nowadays, given that MS tends to bundle its own stuff.

    --
    ¦ ©® ±
  91. Scripting a "piemenu" component in JavaScript by SimHacker · · Score: 1
    Like it or not, a lot of the ActiveScripting stuff and component technology and XML support that Microsoft has developed for Internet Explorer is really pretty useful and cool. Don't knock it till you've tried it, kids.

    I've tried it, and it worked quite well for my purposes. It's good for implementing plug-in reusable easily configured components, that are much simpler to plug in, more reusable and easier to configure than anything you can do in straight-up JavaScript.

    There's a technology called "Dynamic HTML Behavior Components", that let you package up a bunch of JavaScript code in an XML file, describing its interface: properties, methods and events. And attach that object to any DHTML element, as a behavior that can respond to events, access dhtml tag attributes, web page content, expose methods and events, etc.

    That DHTML Behavior interface can be implemented in any scripting language like JavaScript, VBScript, Python, Ruby, whatever, through ActiveScripting.

    That's why ActiveScripting is so important and useful. It lets any language call and use components written in any other language, so you can both implement and utilise components from any language that plugs into ActiveScripting.

    Plug-in behaviors are easy to attach to any dhtml element, like so:

    <div style="behavior:url(piemenu.htc)"/>

    You can easily pass arguments to configure the behavior through dhtml attributes, like so:

    <div id="Pie" style="behavior:url(piemenu.htc)" piemenu="MyMenu" fixedradius="40" onselect="MyHandler()"/>

    The component exposes properties and methods you can access from scripts on the web page, that cna be written in JavaScript, VBScript, Python or whatever. Like so:

    Pie.fixedRadius = 40
    Pie.DoPie(Pie.GetRootPieMenu())

    And the component can access embeded "XML Data Islands" on the web page, or dynamically created by JavaScript code, or downloaded from a server, or dynamically generated from a database, or the results of evaluating and XSLT style sheet, etc. XML data islands are a great way to embed XML data on a web page, that the scripts as well as the components can access. XML is a perfect way to represent the tree structure of pie menus, as well as embedded XHTML that specifies the presentation of the pie menu items and middle. So you can configure the pie menu component on the web page by embeding an XML data island inside the element to which you attach the pie menu behavior. Like so:

    <div style="behavior:url(piemenu.htc)"
    id="Pie"
    fixedradius="40"
    onselect="HandleSelect(event)">
    Click here to pop up a pie menu.
    <xml>
    <piemenu name="Hello World">
    &lthtml&gt
    <B>Hello</B>, <EM>World</EM>!
    &lt/html&gt
    <item name="Hello"/>
    <item name="World"/>
    </piemenu>
    </xml>
    </div>

    My point is, that this technology saves a lot of time and effort, and makes it quite easy to implement powerful reusable modular components, that are in turn extremely easy for other people to use.

    If anything in Internet Explorer is worth for Mozilla to emulate, it's the ActiveScripting and plug-in DHTML Behavior Component technology.

    Stop bashing it out of ignorance, and learn about it. Then figure out how to support it in Mozilla.

    Don't try to come up with something better, when you're already so far behind, and 95% of the world is already using Internet Explorer. That's why Mozilla is so far behind. They've been pissing away time trying to implement all these untested half baked ideas, instead of putting time into supporting the standards that already exists, like Microsoft has already done.

    Don't believe me? Let me recap some of the promises Netscape made, but never kept, when they should have been working on standard support for DHTML, XML, XSLT, and ActiveX.

    The Netscape plug-in API is trivial and useless compared to ActiveX or even the older OLE stuff. It didn't need to be as complicated as OLE, but it sure needed to be a whole lot more powerful and not as half-baked as it was.

    Rewriting the browser in Java. They put a whole lot of time and effort of good people into that project, and it finally went nowhere. Netscape exployees couldn't stand working with Sun employees because they were arrogant and bickered all the time, so they couldn't get along well enough to produce anything. The project got canned.

    Supporting OpenDoc. Netscape was OpenDoc's last hope. It held the promise of a real component system. More than that, OpenDoc's "killer app" was CyberDog, which was a totally beautiful component oriented web browser. (Well, a lot more than that, because of OpenDoc, but that's how they were selling it.) Of course the implications of integrating OpenDoc and Netscape were that they had to flush everything they'd done so far down the toilet and start over, possibly with CyberDog, or else from scratch. But Netscape was too arrogant to throw out what the'd done so far and take any advice from Apple. Mozilla was a huge monolithic monster that couldn't be simply broken down into a bunch of independent components. No fucking way. One or the other had to go. So after publically promising to support OpenDoc with great fanfare, and hiring the CyberDog team away from the already poor shrivled Apple, Netscape resolutely shot Old Yeller: they killed CyberDog, thus driving the last nail in the coffin of OpenDoc, and summarily fucking both Apple and IBM.

    Sun observed OpenDoc's demise and the resulting fallout with the bearded delight of Osoma bin Laden watching CNN, because they wanted to promote their "100% pure" fundamentalist religion of JavaBeans (which at the time only existed as a widely announced name, and wasn't event designed yet) as the one alternative component framework to go up against ActiveX. But OpenDoc was in the way, so they danced on its grave when it died.

    Then there was the time that Netscape hired a bunch of former NeXT guys, who had learned Java and decided to implement a NeXTStep-like toolkit in it. It worked really well, and looked really good, so Netscape hired those guys right up, named it "IFC" for "Internet Foundation Classes" so as to position it against MFC "Microsoft Foundation Classes", and announced that IFC was going to be the official "100% Pure Java" cross platform write once debug everywhere bla bla bla widget component toolkit for Netscape.

    But the idea of another Java toolkit that wasn't vapourware spooked Sun, who was still vaporising their plans for JavaBeans and didn't want IFC taking away any of their media attention and mind share.

    Sun was afraid of IFC because it had such a great name (nothing about the architecture mattered, except that it was not JavaBeans). IFC was what you got when you took the widely successful Microsoft Foundation Classes, removed the Microsoft, and replaced it with Internet instead. Yes, that kind of thinking really floats the boats of marketing people.

    Sun saw IFC as a threat, as long as it was not under their control, so they called in an old favor they did Netscape, when they let them use the holy name "Java" to brand their scripting language that really didn't have anything to do with Java.

    So Sun called in the "JavaScript" name favor, and Netscape turned IFC over to Sun in order to be "migrated" and "readjusted" to JavaBeans. Which really means they just disposed of the body, but stored the name away safely for later use.

    Anyway, after all that, you can see why I have absolutely no faith in what the religiously anti-Microsoft zealouts come up with. Because their thinking is so clouded by their warped little models of the world, that no matter how good their technology is, they will destroy it for petty, stupid reasons.

    Disclaimer: This is all my own warped and interpreted view of the world from my own perspective, as an ex-Sun-employee with an axe to grind, and other undocumented perspectives that I won't go into now, to protect my informers. Take it as fiction if you like.

    The part about pie menus isn't fiction, though. You can download the free open source, documentation and demos at:

    http://www.piemenu.com

    The JavaScript pie menus for Internet Explorer 5.5 on Windows are at:

    http://www.piemenu.com/JavaScriptPieMenus.html

    And if you don't believe that pie menus are faster and more reliable than linear menus, you can prove it to yourself by playing the game "Fasteroids", and read all the source code if you don't trust me.

    http://www.piemenu.com/fasteroids.html

    As I said, it requires Internet Explorer 5.5 on Windows. But that was the whole point of this discussion.

    -Don

    --
    Take a look and feel free: http://www.PieMenu.com
  92. .net has the answer? by EnglishTim · · Score: 2

    I'm sure that once .net comes along IE will support running programs on the CLR, which has sandbox capabilities, much like the JVM. I know that Activestate has .net versions of perl and python, which should be able to run on a CLR-capable browser. With any luck the mono project can get incorporated into browsers such as Konqueror and Mozilla, so that we can have CLR-enabled browsing for everyone. I also hope that some platform-independant standard is developed for doing browser-based multimedia on CLR, but I'm less optimistic that that will happen.

  93. Python in a browser by talintj · · Score: 1

    JPython is a pretty complete version of Python in Java. So you don't even need a plugin to use Python on a Web page. But, you do have to wait foor the jpython jar file to download.

  94. Netscape2, Java, and the plague of applets by Rattle · · Score: 1

    After Netscape 2 came out, EVERYONE had a java applet on their page. Being it was a 'new feature' in the eye's of many, it must be abused. There was a period of about 6 months where there were more lame scrollers on pages they anyone with taste could take.

    Eventually it died down as people got over the 'new feature' buzz and remembered they had taste..

    --
    - My Blog - http://www.memestreams.net/users/rattle/
  95. Key bindings, damnit! by texty · · Score: 1


    This might not be exactly what is meant by 'browser bindings' , but something that has always seemed to me to be missing from Netscape/Mozilla is the ability to define key bindings to do different things, i.e. open a particular boomark or run some javascipt function. As someone who prefers to keep their hands on the keyboard, I would find this very useful. Also, it would make the web browser more like.....EMACS. M-x praise-emacs!

    Actually, why not make the entire browser LISP-extensible?

    etc etc..