RE: RFC - Restlet edition for JavaScript

2010-09-11 Thread Jerome Louvel
Hi all,

 

I’ve updated the wiki page with additional pointers based on your replies and 
additional discussions:

http://wiki.restlet.org/developers/172-restlet/368-restlet.html

 

I suggest continuing the discussion in the developers list. 

 

Best regards,
Jerome
--
Restlet ~ Founder and Technical Lead ~  <http://www.restlet.org/> 
http://www.restlet.o​rg
Noelios Technologies ~  <http://www.noelios.com/> http://www.noelios.com

 

 

 

 

De : Tal Liron [mailto:tal.li...@threecrickets.com] 
Envoyé : mardi 13 juillet 2010 12:14
À : discuss@restlet.tigris.org
Objet : Re: RFC - Restlet edition for JavaScript

 

Great stuff, Eric. I will experiment with this. I would love for Prudence to 
have a matching client-side API.

By the way, take a look at Ext-JS -- recent versions have really well 
thought-out RESTful widgets. You'll need to have your Restlet resources aware 
of the Ext-JS requirements, but this is so easy to do that I haven't even 
bothered with boilerplate code.

-Tal

On Mon, Jul 12, 2010 at 10:42 PM, Eric Ferraiuolo  wrote:

This sounds like an interesting project. Currently the Ajax support in the 
JavaScript libraries lack a full-fledged REST model/support; although they are 
very simple to use in the basic use-cases.

 

I work with YUI 3 and we use Restlet in our server-side stack. YUI 3 has a Y.io 
static class/object to make Ajax requests; the features of this utility module 
weren't up to par with what I wanted, and I wanted to make complex 
client-server interactions easier for me. I decided to wrap Y.io with my REST 
Resource class, Y.Resource, to make a more RESTful client API for me to 
communicate with the server.

 

REST Resource YUI 3 Module:http://yuilibrary.com/gallery/show/resource

 

Code on 
GitHub:http://github.com/ericf/yui3-gallery/blob/master/src/gallery-resource/js/resource.js

 

This is definitely not anything close to a full-fledged Restlet JavaScript 
client, but the features I added to YUI 3's Ajax support were inspired by 
Restlet.

 

 

Eric

 

On Jul 8, 2010, at 9:30 AM, Jerome Louvel wrote:





Hi all,

Following a recent customer project experience involving GXT + GWT + 
Restlet/GWT + Restlet/JEE and discussions about the interest of scripting 
languages as opposed to a statically type language with Jean-Paul Figer [1], I 
reconsidered an idea initially suggested by Yuri de Wit [2] to add a pure 
JavaScript edition of Restlet.

Due to the emergence of HTML 5 on all sorts of browser platforms (mobile), the 
improvement of JavaScript engines such as Chrome V8 and the overall convergence 
with REST and Restlet/Java on the server-side, it seems like a good time to 
push for a more RESTful JavaScript client API, reusing the Restlet API 
semantics in pure JavaScript. Eclipse 3.6 also improved its support for 
JavaScript developments

Of course, we already have the GWT edition of Restlet which provides a nice 
solution, but there seems to be room for a more hypermedia driven/document 
oriented solution, combining AJAX and UI libraries such as jQuery, Ext JS, YUI 
to name a few popular ones. Ive collected my thoughts on this wiki page and 
look forward to reading your ideas and experiences.

JavaScript edition

 <http://wiki.restlet.org/developers/172-restlet/368-restlet.html> 
http://wiki.restlet.org/developers/172-restlet/368-restlet.html

Best regards,
Jerome Louvel

[1]REST paper in French:http://www.figer.com/publications/REST.htm

[2]Add JavaScript client: 
<http://restlet.tigris.org/issues/show_bug.cgi?id=129> 
http://restlet.tigris.org/issues/show_bug.cgi?id=129

[3] AJAX Tools Framework:http://www.eclipse.org/atf/

--
Restlet ~ Founder and Technical Lead ~ <http://www.restlet.org/> 
http://www.restlet.org
Noelios Technologies ~ <http://www.noelios.com/> http://www.noelios.com

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2657874

Re: RFC - Restlet edition for JavaScript

2010-07-13 Thread Tal Liron
Great stuff, Eric. I will experiment with this. I would love for Prudence to
have a matching client-side API.

By the way, take a look at Ext-JS -- recent versions have really well
thought-out RESTful widgets. You'll need to have your Restlet resources
aware of the Ext-JS requirements, but this is so easy to do that I haven't
even bothered with boilerplate code.

-Tal

On Mon, Jul 12, 2010 at 10:42 PM, Eric Ferraiuolo wrote:

> This sounds like an interesting project. Currently the Ajax support in the
> JavaScript libraries lack a full-fledged REST model/support; although they
> are very simple to use in the basic use-cases.
>
> I work with YUI 3 and we use Restlet in our server-side stack. YUI 3 has a
> Y.io static class/object to make Ajax requests; the features of this utility
> module weren't up to par with what I wanted, and I wanted to make complex
> client-server interactions easier for me. I decided to wrap Y.io with my
> REST Resource class, Y.Resource, to make a more RESTful client API for me to
> communicate with the server.
>
> REST Resource YUI 3 Module: http://yuilibrary.com/gallery/show/resource
>
> Code on GitHub:
> http://github.com/ericf/yui3-gallery/blob/master/src/gallery-resource/js/resource.js
>
> This is definitely not anything close to a full-fledged Restlet JavaScript
> client, but the features I added to YUI 3's Ajax support were inspired by
> Restlet.
>
>
> Eric
>
> On Jul 8, 2010, at 9:30 AM, Jerome Louvel wrote:
>
> Hi all,
>
> Following a recent customer project experience involving GXT + GWT +
> Restlet/GWT + Restlet/JEE and discussions about the interest of scripting
> languages as opposed to a statically type language with Jean-Paul Figer [1],
> I reconsidered an idea initially suggested by Yuri de Wit [2] to add a pure
> JavaScript edition of Restlet.
>
> Due to the emergence of HTML 5 on all sorts of browser platforms (mobile),
> the improvement of JavaScript engines such as Chrome V8 and the overall
> convergence with REST and Restlet/Java on the server-side, it seems like a
> good time to push for a more RESTful JavaScript client API, reusing the
> Restlet API semantics in pure JavaScript. Eclipse 3.6 also improved its
> support for JavaScript developments
>
> Of course, we already have the GWT edition of Restlet which provides a nice
> solution, but there seems to be room for a more hypermedia driven/document
> oriented solution, combining AJAX and UI libraries such as jQuery, Ext JS,
> YUI to name a few popular ones. I’ve collected my thoughts on this wiki page
> and look forward to reading your ideas and experiences.
>
> “JavaScript edition”
> http://wiki.restlet.org/developers/172-restlet/368-restlet.html
>
> Best regards,
> Jerome Louvel
>
>
> [1] REST paper in French: http://www.figer.com/publications/REST.htm
> [2] “Add JavaScript client”:
> http://restlet.tigris.org/issues/show_bug.cgi?id=129
> [3] AJAX Tools Framework: http://www.eclipse.org/atf/
>
> --
> Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
> Noelios Technologies ~ http://www.noelios.com
>
>
>
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2632678

Re: RFC - Restlet edition for JavaScript

2010-07-13 Thread Eric Ferraiuolo
This sounds like an interesting project. Currently the Ajax support in the 
JavaScript libraries lack a full-fledged REST model/support; although they are 
very simple to use in the basic use-cases.

I work with YUI 3 and we use Restlet in our server-side stack. YUI 3 has a Y.io 
static class/object to make Ajax requests; the features of this utility module 
weren't up to par with what I wanted, and I wanted to make complex 
client-server interactions easier for me. I decided to wrap Y.io with my REST 
Resource class, Y.Resource, to make a more RESTful client API for me to 
communicate with the server.

REST Resource YUI 3 Module: http://yuilibrary.com/gallery/show/resource

Code on GitHub: 
http://github.com/ericf/yui3-gallery/blob/master/src/gallery-resource/js/resource.js

This is definitely not anything close to a full-fledged Restlet JavaScript 
client, but the features I added to YUI 3's Ajax support were inspired by 
Restlet.


Eric

On Jul 8, 2010, at 9:30 AM, Jerome Louvel wrote:

> Hi all,
>  
> Following a recent customer project experience involving GXT + GWT + 
> Restlet/GWT + Restlet/JEE and discussions about the interest of scripting 
> languages as opposed to a statically type language with Jean-Paul Figer [1], 
> I reconsidered an idea initially suggested by Yuri de Wit [2] to add a pure 
> JavaScript edition of Restlet.
>  
> Due to the emergence of HTML 5 on all sorts of browser platforms (mobile), 
> the improvement of JavaScript engines such as Chrome V8 and the overall 
> convergence with REST and Restlet/Java on the server-side, it seems like a 
> good time to push for a more RESTful JavaScript client API, reusing the 
> Restlet API semantics in pure JavaScript. Eclipse 3.6 also improved its 
> support for JavaScript developments
>  
> Of course, we already have the GWT edition of Restlet which provides a nice 
> solution, but there seems to be room for a more hypermedia driven/document 
> oriented solution, combining AJAX and UI libraries such as jQuery, Ext JS, 
> YUI to name a few popular ones. I’ve collected my thoughts on this wiki page 
> and look forward to reading your ideas and experiences.
>  
> “JavaScript edition”
> http://wiki.restlet.org/developers/172-restlet/368-restlet.html
>  
> Best regards,
> Jerome Louvel
>  
>  
> [1] REST paper in French: http://www.figer.com/publications/REST.htm
> [2] “Add JavaScript client”: 
> http://restlet.tigris.org/issues/show_bug.cgi?id=129
> [3] AJAX Tools Framework: http://www.eclipse.org/atf/
>  
> --
> Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
> Noelios Technologies ~ http://www.noelios.com
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2632421

Re: RFC - Restlet edition for JavaScript

2010-07-08 Thread Tal Liron
This is good news!

Until this is available, I would like to suggest trying out Prudence for
JavaScript. It's not intended as a Restlet edition, but instead a RESTful
platform, which happens to be fueled by the "real" Restlet (JSE edition) for
Java, via the Rhino JavaScript engine. It thus will always be based on the
JVM, and not other JavaScript engines. As exciting as those are, Prudence is
committed to the JVM. Other than this major difference in intent with
Jerome's spec, Prudence already supports many of the features on the RFE,
including a very powerful caching backend that can plug into memcached,
Hazelcast and relational databases.

http://threecrickets.com/prudence/

Prudence is also meant as a pure Restlet container for "regular" Java
Restlet applications, for those who would rather not use Tomcat or J2EE
containers. It allows easy deploy-by-zip similarly to using WAR files. I
will posting more about this use case soon, because I feel there's a real
need for this among Restlet developers who are not necessarily interested in
JavaScript or other dynamic languages.

I've been successfully developing and deploying applications in-house with
Prudence for a year now (with a version that was too rough for me to make it
public without embarrassment). JavaScript is my personal favorite Prudence
flavor! (Well, I love Clojure a lot, too, but find JavaScript more
immediately useful for my work. Other available flavors: PHP, Python, Ruby
and Groovy, all fully supported.)

In the JavaScript context, I'm working on creating a natural Rhino-based API
for MongoDB, which already makes heavy use of JavaScript internally.

http://code.google.com/p/mongodb-rhino/

Not a lot of code there, but works great. The combination of Prudence,
JavaScript, MongoDB and Ext-JS is especially delicious. It's been a piece of
cake to connect Ext-JS grids to MongoDB documents via Prudence REST
resources. Yum!

The Prudence 1.0 release candidate will be available in the coming weeks --
the main challenge right now is finishing up the extensive documentation.
The API and feature-set are otherwise already locked. Hopefully the 1.0
release will match Restlet 2.0's schedule.

It's a different kind of beast than what a JavaScript edition of Restlet
would be, but could be a useful playground for those of you who want to try
out some ideas.

-Tal

(Tim, thank you for your work on Java Concurrency in Practice. It's been a
valuable handbook in working on Scripturian, Prudence's underlying execution
engine.)

On Thu, Jul 8, 2010 at 4:47 PM, Tim Peierls  wrote:

> This is great news! Thanks, Jerome.
>
> --tim
>
>
> On Thu, Jul 8, 2010 at 9:30 AM, Jerome Louvel 
> wrote:
>
>>  Hi all,
>>
>>
>>
>> Following a recent customer project experience involving GXT + GWT +
>> Restlet/GWT + Restlet/JEE and discussions about the interest of scripting
>> languages as opposed to a statically type language with Jean-Paul Figer [1],
>> I reconsidered an idea initially suggested by Yuri de Wit [2] to add a pure
>> JavaScript edition of Restlet.
>>
>>
>>
>> Due to the emergence of HTML 5 on all sorts of browser platforms (mobile),
>> the improvement of JavaScript engines such as Chrome V8 and the overall
>> convergence with REST and Restlet/Java on the server-side, it seems like a
>> good time to push for a more RESTful JavaScript client API, reusing the
>> Restlet API semantics in pure JavaScript. Eclipse 3.6 also improved its
>> support for JavaScript developments
>>
>>
>>
>> Of course, we already have the GWT edition of Restlet which provides a
>> nice solution, but there seems to be room for a more hypermedia
>> driven/document oriented solution, combining AJAX and UI libraries such as
>> jQuery, Ext JS, YUI to name a few popular ones. I’ve collected my thoughts
>> on this wiki page and look forward to reading your ideas and experiences.
>>
>>
>>
>> “JavaScript edition”
>>
>> http://wiki.restlet.org/developers/172-restlet/368-restlet.html
>>
>>
>>
>> Best regards,
>> Jerome Louvel
>>
>>
>>
>>
>>
>> [1] REST paper in French: http://www.figer.com/publications/REST.htm
>>
>> [2] “Add JavaScript client”:
>> http://restlet.tigris.org/issues/show_bug.cgi?id=129
>>
>> [3] AJAX Tools Framework: http://www.eclipse.org/atf/
>>
>>
>>
>> --
>> Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
>> Noelios Technologies ~ http://www.noelios.com
>>
>>
>>
>
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2631149

Re: RFC - Restlet edition for JavaScript

2010-07-08 Thread Tim Peierls
This is great news! Thanks, Jerome.

--tim

On Thu, Jul 8, 2010 at 9:30 AM, Jerome Louvel wrote:

>  Hi all,
>
>
>
> Following a recent customer project experience involving GXT + GWT +
> Restlet/GWT + Restlet/JEE and discussions about the interest of scripting
> languages as opposed to a statically type language with Jean-Paul Figer [1],
> I reconsidered an idea initially suggested by Yuri de Wit [2] to add a pure
> JavaScript edition of Restlet.
>
>
>
> Due to the emergence of HTML 5 on all sorts of browser platforms (mobile),
> the improvement of JavaScript engines such as Chrome V8 and the overall
> convergence with REST and Restlet/Java on the server-side, it seems like a
> good time to push for a more RESTful JavaScript client API, reusing the
> Restlet API semantics in pure JavaScript. Eclipse 3.6 also improved its
> support for JavaScript developments
>
>
>
> Of course, we already have the GWT edition of Restlet which provides a nice
> solution, but there seems to be room for a more hypermedia driven/document
> oriented solution, combining AJAX and UI libraries such as jQuery, Ext JS,
> YUI to name a few popular ones. I’ve collected my thoughts on this wiki page
> and look forward to reading your ideas and experiences.
>
>
>
> “JavaScript edition”
>
> http://wiki.restlet.org/developers/172-restlet/368-restlet.html
>
>
>
> Best regards,
> Jerome Louvel
>
>
>
>
>
> [1] REST paper in French: http://www.figer.com/publications/REST.htm
>
> [2] “Add JavaScript client”:
> http://restlet.tigris.org/issues/show_bug.cgi?id=129
>
> [3] AJAX Tools Framework: http://www.eclipse.org/atf/
>
>
>
> --
> Restlet ~ Founder and Technical Lead ~ http://www.restlet.org
> Noelios Technologies ~ http://www.noelios.com
>
>
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2630968

RFC - Restlet edition for JavaScript

2010-07-08 Thread Jerome Louvel
Hi all,

 

Following a recent customer project experience involving GXT + GWT +
Restlet/GWT + Restlet/JEE and discussions about the interest of scripting
languages as opposed to a statically type language with Jean-Paul Figer [1],
I reconsidered an idea initially suggested by Yuri de Wit [2] to add a pure
JavaScript edition of Restlet.

 

Due to the emergence of HTML 5 on all sorts of browser platforms (mobile),
the improvement of JavaScript engines such as Chrome V8 and the overall
convergence with REST and Restlet/Java on the server-side, it seems like a
good time to push for a more RESTful JavaScript client API, reusing the
Restlet API semantics in pure JavaScript. Eclipse 3.6 also improved its
support for JavaScript developments

 

Of course, we already have the GWT edition of Restlet which provides a nice
solution, but there seems to be room for a more hypermedia driven/document
oriented solution, combining AJAX and UI libraries such as jQuery, Ext JS,
YUI to name a few popular ones. I've collected my thoughts on this wiki page
and look forward to reading your ideas and experiences. 

 

"JavaScript edition"

 
http://wiki.restlet.org/developers/172-restlet/368-restlet.html

 

Best regards,
Jerome Louvel

 

 

[1] REST paper in French: http://www.figer.com/publications/REST.htm

[2] "Add JavaScript client":

http://restlet.tigris.org/issues/show_bug.cgi?id=129

[3] AJAX Tools Framework: http://www.eclipse.org/atf/

 

--
Restlet ~ Founder and Technical Lead ~  
http://www.restlet.org
Noelios Technologies ~   http://www.noelios.com

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2630962