Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
KDE Businesses GUI Apple

Apple Releases JavaScriptCore Framework 60

ace writes "Apple has released the source to JavaScriptCore, a JavaScript framework based on KDE's kjs JavaScript engine. 'JavaScriptCore is a private API which may be used by future Mac OS X applications such as Sherlock, and is provided as Open Source as part of our partnership with the KDE community. JavaScriptCore will be used by Sherlock in an upcoming OS release, and possibly by other Apple software in the future. Apple chose kjs as the basis of its JavaScript technology for its simple and efficient code.'"
This discussion has been archived. No new comments can be posted.

Apple Releases JavaScriptCore Framework

Comments Filter:
  • might be used in sherlock or maybe even in Sherlock. "Hey why not use this in, oh... I don't know..... SHERLOCK!"

    I am very happy this occurred. If KDE is going to have a commercial partner working on/with its source base I am glad it is Apple. Apple has said that they will commit changes back to KDE. At least that's what the opendarwin.org email said when we got this announcement 3 or 4 days ago. :)

    Dave
    • > If KDE is going to have a commercial partner working on/with its source base I am glad it is Apple.

      Yeah, hopefully it will continue a long history of companies contributing back. The last major company to work with/on KDE source I beleive was Corel.
  • what exactly is this going to do for Sherlock? Or maybe this is a better question, what could this possibly do for Sherlock? and would your average Mac user notice a diference?
    • Re:so... um? (Score:3, Interesting)

      The next version of Sherlock should be much more like Watson [karelia.com], i.e offer an Aqua interface to many web services. For this, a javascript engin will come in handy.
    • Re:so... um? (Score:1, Insightful)

      by Anonymous Coward
      I think the idea is to bring scripting exploits beyond the browser and into the OS'es file searching functionality.

      (/me misses good ol' FindFile)

      I'm glad to see apple working with the KDE guys, but I think Sherlock needs scripting about as much as an email client does (hint: not at all). Web services, web schmervices. Even if we needed web services in sherlock, we wouldn't need them to use javascript.
      • I think the point of this would be that maybe you can use the Java frameworks to write your own Sherlock plugin, I don't think it could go far beyond that, and surely Apple will put some reasonable security restrictions in place.

  • Intersting (Score:4, Interesting)

    by Matthias Wiesmann ( 221411 ) on Monday June 17, 2002 @08:06AM (#3714664) Homepage Journal
    I think this is good news, it shows that the KDE code is good, and that Apple is willing to contribute back.

    The interesting thing for me is that it shows a good trend, i.e that OS X is converging with other Unixes not only at low level (Jaguar should sync with a more recent version of BSD) but also at the component/framework level: beside this Javascript component, CUPS [cups.org] is scheduled to be included in Jaguar.

    An interesting question would be, what other open source components/framework would be good additions to Mac OS X? I suppose one obvious answer is a native version of GTK [sourceforge.net]

    • I have taken a look at the sourceforge page and it seems they haven't done anything on it for quite a while now, sadly. There is another poster here fdobbie who is one of the dvelopers. Perhaps you could ask him what's happening with it.
  • I've never used (or heard of) KJS until this article. What's so great about it?

    FWIW, I've used ordinary javascript, and also the OSA [google.com]. Any relation?
  • by schwatoo ( 521485 ) on Monday June 17, 2002 @09:53AM (#3715243)

    This framework needs the Mac OS X Developer Tools Beta to compile available from connect.apple.com [apple.com].

    Interesting to see this library wrapped in a Framework despite Apple's recommendations for developers not to put 'legacy' unix code in a Framework.


    • Interesting to see this library wrapped in a Framework despite Apple's recommendations for developers not to put 'legacy' unix code in a Framework.

      Why do you consider a JavaScript library 'legacy' unix code?
      • Legacy because it didn't already come bundled in a Framework. Apple is recommending that developers don't bundle code up in a Framework just for the sake of it. They've gone and ignored their own recommendations before - OpenGL.framework being a prime example.

        In fact OpenGL.framework is a really good example of why not to wrap things up in bundles - now all files that would include now have to be modified to include - annoying.

        • I think the message isn't explained as well as it should be. Frameworks provide a necessary means to add functionality to an operating system. It's a Good Thing that Apple and other vendors can expand the functionality of the OS.

          They don't want developers to make frameworks for their individual applications. Instead of putting your code in a framework for Quicken, look at other means of code reuse. Why? Then you don't have a framework that only one application can use. It's like adding a million DLLs to Windows for a single application. Will anyone else use the DLL code? If not, why introduce the complexity.
          • That's not what he was saying. If libraries are available and standard on other unices, then Apple recommends not packing them as frameworks because, say, if you had an app that depended on zlib then instead of adding "-lz" to the LDFLAGS, you'd have to add "-framework zlib", or similar, and you'd have to change all the includes from #include to #include . They did this because they used to package zlib and openssl as frameworks on the Public Beta, and people complained. Good thing, too.
  • What's it for... (Score:3, Insightful)

    by Anonymous Coward on Monday June 17, 2002 @10:56AM (#3715633)
    It seems to me Apple wants to support Javascript within Sherlock due to the addition of new internal HTML rendering capabilities within Sherlock 3. (vs. today's Sherlock, which requires linking to a Browser to reveal/show webpage search results.)
    My guess is that over time Apple wil make Javascript an equal MacOS X scripting system, alongside Applescript - and thus it's potential for us in other apps as well...
    • My guess is that over time Apple wil make Javascript an equal MacOS X scripting system, alongside Applescript
      JavaScript has always been a Mac OS X scripting system, alongside AppleScript, but it has to be installed separately.

      you can download it from Late Night Software [latenightsw.com].

      O'Reilly Net had a tutorial [oreillynet.com] on scripting applications with JavaScript.

  • I have said it before and I will say it again, the big Linux companies do not seem to produce anything useful for the community. They package beta software into a distribution and sell it. They generally have not done much to raise the caliber of Open Source software like it seems Apple has started to do this year.

    They were not satified with X Windows so they created Aqua, which works quite well. And they also implemented a nice admin system which allows a regular Joe to maintain what is a a Unix system under the sheets.

    And now they are putting back a nice Javascript engine and releasing it as Open Source. I really hope all the IPO rich Linux companies would learn a lesson from this behavior. To improve Linux and to get it to take hold they need to polish several pieces and produce quality packages, not tons of RPMs of beta software.

    But will this happen?
    • Was this meant to be ironical? I really can't tell, whether you were serious or just flaming. Have you ever heard of GCC? Both RH and SuSe support GCC quite a bit. Mandrake and SuSe support KDE (some full and part time developers).

      The KDE Java Script engine was developed by the KDE people not Apple, they are just saying that if they happen to improve it, they will make the changes available to KDE people. So they are not contributing a nice JScript engine.

      Can someone explain how Aqua contributes to the OSS community? I believe that that's as proprietary as it get.

    • as in *RedHat* Package Manager?
      • by Anonymous Coward
        as in *RedHat* Package Manager?

        Hmm. you must mean the package system that doesn't automatically do dependencies unless you use the restricted closed-source redhat up2date software...

        (free for one system, pay them money if you want more...)

        i'll take apt-get over that any day, thankyouverymuch

        (i use it through fink)
    • I believe that GNOME came out of RedHat originally. Also there is: http://www.labs.redhat.com/projects.html

      and

      http://www.labs.redhat.com/index.shtml

      Which explains what RedHat developers are giving back to the community.

      Thanks

      Luke

    • What big, IPO-rich Linux companies?? RH has a couple hundred employees or so. If you mean them, look to other replies.

      Or maybe you meant Linuxcare ... oh wait they bailed on their IPO because they couldn't make enough money. Despite that, you will see more names of the 30 or so employees left there (and the hundreds of ex-employees) contributing open source code than you ever will from Apple.

      Aqua, which works quite well?? On a G4 with 32 MB video card maybe. Whereas X-windows works on a PowerMac 7500 with its original video card juuust fine.

      Honestly, when you said 'big Linux companies' I immediately thought of IBM. That's how funny it is.
  • I find it kind of interesting that Apple actually embraces open source software, while Microsoft is scared to hell about it.

    Both companies produce mostly closed source stuff. So why does Microsoft feel threatened by open source, while Apple obviously does not?
    • Apple = hardware
      Microsoft = software

      On top of that, Apple produces quality products, Microsoft does not.
    • Simple, because Apple has it's great line of hardware, and can co-exsist easily with open-source software, while (except for mice and keyboards) MS is strictly a software company. They make money by selling software, not giving it away.

      On that note, apple sells the big chunks of it's software for $$$, these little widgets like a JavaScript engine do make a good showing to the OS comunity though.
  • I wonder if Apple is considering doing some modern HTML renderer embedding a la Explorer in OSX? I have read that Sherlock will have it's own HTML pane in future, as some others here have posted.
    • Forgive me if I'm naive and this already exists, but an NSHTMLView class would be rather nice for developers.
      • I believe that this is the goal of Projects Chimera and Chim-Chim over at MozDev. Create a Gekko HTML rendering engine that can be made into an Interface Builder widget, and thus drag-drop-configure for modern, stable, standards-based HTML rendering.

        -Ster
    • especially after ###Micro$oft### changing the homepage on people when upgrading to IE 5.2, also Microshit disallowing apple to have their homepage to be part of Netscape's network.
  • While i do think this will be a very handy addition to the operating system thereby, exposing OS scripting to a far larger pool of developers with JavaScript experience, I'm hoping potential security issues will be kept in mind:

    Let's call those "scriptlets", should be identified by the operating system and to the user as full-blown application, which, when run, have just as much access to the system as the user does. I'm thinking obvious file extensions such as ".app" for scripts. After all they're interpreted apps.

    Realms of executions of such scripts should be clearly identified and separated, as in a "scriptlet" should never be allowed to run within a browser nor e-mail client context. If a scriptlet is to extend an application's functionality, it should only be executed via direct user interaction and possibly proper warning. Whatever solution is chosen in the end, it should be clear to the user that installing such a scriptlet onto their system is just like installing any other application which could have malicious effects. Every distinction should be made to make it clear to the user that "hey this thing is not something that slightly extends a web page's functionality, it runs straight out of your OS and could seriously fuck your shit up, just like any full-blown application out there".

    The nice thing about running OS X though is that even if a user inadvertently runs a malicious script, that script could in theory, provided every user was smart enuff to not use root, or admin user as their default, everyday user, (okay i can dream no?), only have access to a fairly restricted part of the system.

    If i was an IT director, i would mandate all corporate LAN machines to be iMacs running OS X. I would create a standard operating system installation script, with various additional scripts geared towards geeks, non-geeks, dumbasses, to allow various levels of protections against themselves. I for one would restrict users to only be able to write to their home directory, while the rest of the system would be restricted to root/admin users. I would have a central, networked /Users mount served off of an xserve with bazillion gigs of storage space.

    In fact, any network administrator who is not seriously considering progressively migrating all corporate machines to OS X boxes has got to be living in a hole.

    It is my firm belief OS X has an amazing potential to make the world a better place.

  • from the i-know-pudge-is-an-idiot dept.

    Java and Javascript are unrelated... Microsoft atually paid for ECMAScript (aka JavaScript) to be standardized, something that Netscape (initial developers of it) refused to do.

Reality must take precedence over public relations, for Mother Nature cannot be fooled. -- R.P. Feynman

Working...