Call Javascript V8 from Python AppEngine

513 views
Skip to first unread message

Andrin von Rechenberg

unread,
May 23, 2012, 2:46:48 PM5/23/12
to google-a...@googlegroups.com
Hey there

I'm deeply in love with Python AppEngine.

Here is an idea I had.It would be really cool to
call the Javascript V8 from Python.
Specifically this library: http://code.google.com/p/pyv8/

Here is a an example why this would be super cool:

You could expose the MapReduce Library to Javascript.

Imagine you have a lot of data and your users would like it to
query it over a web interface. They could just write a JS
Mapper function and run a mapreduce over the server
side stored data. This would be genius :)

Are there any plans for something like this, or does it
sound like something that the AppEngine team would 
be interested in?

Cheers,
-Andrin

Gregory D'alesandre

unread,
May 24, 2012, 3:22:11 PM5/24/12
to google-a...@googlegroups.com
Hey Andrin, while this isn't currently in the works its definitely an interesting idea!  Want to create an issue in the issue tracker so we others can star it and we can track it?

Thanks!

Greg

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Emanuele Ziglioli

unread,
May 24, 2012, 4:46:51 PM5/24/12
to Google App Engine
There's also Jav8...

PS don't click the third link on google! (the one to the japanese
website)
PPS go here instead http://code.google.com/p/jav8/

Andrin von Rechenberg

unread,
Jun 3, 2012, 11:55:38 PM6/3/12
to google-a...@googlegroups.com
FYI, Javascript can be executed on AppEngine using pyjon (http://code.google.com/p/pyjon/).
(You just need to fix the ctype import).

I've built a Javascript MapReduce demo.
However, Pyjon is quite slow compared to native python code. (300x in my case)

Cheers,
-Andrin

Rüdiger Jungbeck

unread,
Jun 8, 2012, 7:44:03 AM6/8/12
to google-a...@googlegroups.com


On Monday, June 4, 2012 5:55:38 AM UTC+2, Andrin von Rechenberg wrote:
FYI, Javascript can be executed on AppEngine using pyjon (http://code.google.com/p/pyjon/).
(You just need to fix the ctype import).

I've built a Javascript MapReduce demo.
However, Pyjon is quite slow compared to native python code. (300x in my case)

I tried to use pyjon with some existing Javascript code (running fine with MS JS and V8), and found out, that pyjon was able to parse the code but failed on execution for many different reasons. So I can not recommend using it.
Reply all
Reply to author
Forward
0 new messages