Skip to main content

  • Login | Forgot Password?
Ribbit Developer logo

Kermit is impressive - but can library run outside the browser?

  • Login or register to post comments
2 replies [Last post]
Fri, 2010-04-30 11:24
cefn
User offline. Last seen 12 weeks 3 days ago. Offline
Joined: 2010-04-14

Just wanted to say how impressive the Kermit tool is. I was able to get this running with very little effort to prove the basic functionality of Ribbit.

Can you share your view on whether the javascript library could be used outside a browser, e.g. in a server-side javascript environment such as Jackjs or Ringojs, or simply using a raw javascript environment like Rhino, node.js, Qt Scripting, Spidermonkey etc.

I can see some issues in the code with the use of window as a global, but this can be worked around with something like this assuming there are no other dependencies on browser-oriented capabilities...

/** Universal access for global variable regardless of browser or non-browser environment. */
function getGlobal(){ //from http://www.nczonline.net/blog/2008/04/20/get-the-javascript-global/
return (function(){return this;})();
}

Top
  • Login or register to post comments
Wed, 2010-06-23 10:03
#1
san1t1
User offline. Last seen 9 weeks 3 days ago. Offline
Joined: 2009-04-07
Cefn, Ben, Hi - SSJS on the backlog

We're doing some thinking about the js library.

I think there's a good case to turn it into a CommonJS module - this should be runnable by node out of the box. I've tried it in node, and entered a world of pain trying to get node crypto sorted so I can make calls to https clients - If i could get that done, or node made it easier, then it wouldn't be hard to extend the existing library.

And yes, we would take advantage of your getGlobal function.

In terms of support I'm thinking node and Rhino as top priority, spider monkey next, then others.

Top
  • Login or register to post comments
Wed, 2010-05-05 05:13
#2
BenJam
User offline. Last seen 8 weeks 1 day ago. Offline
Joined: 2009-07-07
Node.js

Great question and something I'm also very interested in now that node.js is getting as easy to mange as Sinatra via Expressjs

Top
  • Login or register to post comments
  • Login or register to post comments
sales@ribbit.com
(619) 916-2565
 Talk to Us!
Get Started
     Ribbit Idea Wall
Industry Solutions

  • Digital Agencies
  • Hosted Call Centers
  • Systems Integrators
  • Carriers/ISPs
  • Company
    • Corporate Site
    • About Us
    • Careers
    • Contact Us
    • LegalPrivacy
    • News
    • Media Kit
  • Products
    • Platform
    • Mobile
    • Salesforce
    • Oracle
  • Solutions
    • Digital Agencies
    • Carriers
    • Systems Integrators
    • Hosted Contact Centers
  • Community
    • Corporate Blog
    • Developer Blog
    • CRM Blog
    • Moble Blog
    • Idea Wall
    • Events Calendar
  • Support
    • Developer Help
    • Ribbit for Salesforce Help
    • Ribbit for Oracle Help
    • Ribbit Mobile Help
    • Feedback
    • Developer Forums
    • Ribbit Mobile Forum
  • Developers
    • Developer Center
    • Develop for Ribbit Mobile
    • Register
    • Ribbit Labs

© 2010 Ribbit Corporation. All Rights Reserved.