Feature Suggestion: PL/Js

Started by Kiswono Prayogoover 16 years ago14 messages
#1Kiswono Prayogo
kiswono@gmail.com

by using latest v8 engine from google, is it possible to build PL/Js
just like other PL in Postgre? such as PL/PHP
what should i learn if i want to build PL/Js?
thanks in advance.

regards,
Kis
GB

#2Peter Eisentraut
peter_e@gmx.net
In reply to: Kiswono Prayogo (#1)
Re: Feature Suggestion: PL/Js

On Wed, 2009-10-07 at 15:00 +0700, Kiswono Prayogo wrote:

by using latest v8 engine from google, is it possible to build PL/Js
just like other PL in Postgre? such as PL/PHP
what should i learn if i want to build PL/Js?

Start here:

http://developer.postgresql.org/pgdocs/postgres/plhandler.html

I notice that this has not been updated for the new inline handlers, but
that shouldn't stop you.

#3Alvaro Herrera
alvherre@commandprompt.com
In reply to: Kiswono Prayogo (#1)
Re: Feature Suggestion: PL/Js

Kiswono Prayogo escribi�:

by using latest v8 engine from google, is it possible to build PL/Js
just like other PL in Postgre? such as PL/PHP
what should i learn if i want to build PL/Js?

I think Josh Tolley has some slides on how we built PL/LOLCODE that
could prove useful.

BTW I've seen requests for PL/Js so I'm sure it'll be welcome. What
license is v8 under?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In reply to: Alvaro Herrera (#3)
Re: Feature Suggestion: PL/Js

I think Josh Tolley has some slides on how we built PL/LOLCODE that
could prove useful.

BTW I've seen requests for PL/Js so I'm sure it'll be welcome. What
license is v8 under?

the new BSD License

http://code.google.com/p/v8/

--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607
no fx, no carrier pigeon
-
%s is too gigantic of an industry to bend to the whims of reality

#5Andrew Dunstan
andrew@dunslane.net
In reply to: Alvaro Herrera (#3)
Re: Feature Suggestion: PL/Js

Alvaro Herrera wrote:

Kiswono Prayogo escribi�:

by using latest v8 engine from google, is it possible to build PL/Js
just like other PL in Postgre? such as PL/PHP
what should i learn if i want to build PL/Js?

I think Josh Tolley has some slides on how we built PL/LOLCODE that
could prove useful.

BTW I've seen requests for PL/Js so I'm sure it'll be welcome. What
license is v8 under?

It's a BSD license, but it's a C++ API. While it looks cool, I think
SpiderMonkey is possibly a better bet.

cheers

andrew

#6Joshua Tolley
eggyknap@gmail.com
In reply to: Alvaro Herrera (#3)
Re: Feature Suggestion: PL/Js

On Wed, Oct 07, 2009 at 10:22:02AM -0400, Alvaro Herrera wrote:

Kiswono Prayogo escribió:

by using latest v8 engine from google, is it possible to build PL/Js
just like other PL in Postgre? such as PL/PHP
what should i learn if i want to build PL/Js?

I think Josh Tolley has some slides on how we built PL/LOLCODE that
could prove useful.

Said slides are available here:
http://www.pgcon.org/2009/schedule/events/159.en.html

I hope they can be useful.

--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com

#7Alvaro Herrera
alvherre@commandprompt.com
In reply to: Joshua Tolley (#6)
Re: Feature Suggestion: PL/Js

Joshua Tolley escribi�:

On Wed, Oct 07, 2009 at 10:22:02AM -0400, Alvaro Herrera wrote:

Kiswono Prayogo escribi�:

by using latest v8 engine from google, is it possible to build PL/Js
just like other PL in Postgre? such as PL/PHP
what should i learn if i want to build PL/Js?

I think Josh Tolley has some slides on how we built PL/LOLCODE that
could prove useful.

Huh, I didn't mean "we built" but "he built"!

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

#8David E. Wheeler
david@kineticode.com
In reply to: Andrew Dunstan (#5)
Re: Feature Suggestion: PL/Js

On Oct 7, 2009, at 7:55 AM, Andrew Dunstan wrote:

BTW I've seen requests for PL/Js so I'm sure it'll be welcome. What
license is v8 under?

It's a BSD license, but it's a C++ API. While it looks cool, I think
SpiderMonkey is possibly a better bet.

SquirrelFish? http://webkit.org/blog/189/announcing-squirrelfish/

Best,

David

#9Marcelo Costa
marcelojscosta@gmail.com
In reply to: Kiswono Prayogo (#1)
Re: Feature Suggestion: PL/Js

On Wed, Oct 7, 2009 at 5:00 AM, Kiswono Prayogo <kiswono@gmail.com> wrote:

by using latest v8 engine from google, is it possible to build PL/Js
just like other PL in Postgre? such as PL/PHP
what should i learn if i want to build PL/Js?
thanks in advance.

regards,
Kis
GB

You also can see this link:

http://xen.samason.me.uk/~sam/repos/pljs/README

--
Marcelo Costa
www.marcelocosta.net
-------------------------------------------------
“You can't always get what want”,

Doctor House in apology to Mike Jagger

#10Joshua Tolley
eggyknap@gmail.com
In reply to: Alvaro Herrera (#7)
Re: Feature Suggestion: PL/Js

On Wed, Oct 07, 2009 at 11:29:15AM -0400, Alvaro Herrera wrote:

Joshua Tolley escribió:

On Wed, Oct 07, 2009 at 10:22:02AM -0400, Alvaro Herrera wrote:

Kiswono Prayogo escribió:

by using latest v8 engine from google, is it possible to build PL/Js
just like other PL in Postgre? such as PL/PHP
what should i learn if i want to build PL/Js?

I think Josh Tolley has some slides on how we built PL/LOLCODE that
could prove useful.

Huh, I didn't mean "we built" but "he built"!

I didn't feel like you were stealing credit. I certainly couldn't have built
it, such as it is, without support from -hackers. :)

--
Joshua Tolley / eggyknap
End Point Corporation
http://www.endpoint.com

#11Kiswono Prayogo
kiswono@gmail.com
In reply to: Marcelo Costa (#9)
Re: Feature Suggestion: PL/Js

Said slides are available here:
http://www.pgcon.org/2009/schedule/events/159.en.html

I hope they can be useful.

--
Joshua Tolley / eggyknap

ok i will read it, thanks ^^

On Wed, Oct 7, 2009 at 11:18 PM, David E. Wheeler <david@kineticode.com> wrote:

On Oct 7, 2009, at 7:55 AM, Andrew Dunstan wrote:

BTW I've seen requests for PL/Js so I'm sure it'll be welcome.  What
license is v8 under?

It's a BSD license, but it's a C++ API. While it looks cool, I think
SpiderMonkey is possibly a better bet.

SquirrelFish? http://webkit.org/blog/189/announcing-squirrelfish/

Best,

David

i guess v8 still the best javascript interpreter
http://waynepan.com/2008/09/02/v8-tracemonkey-squirrelfish-ie8-benchmarks/
nitro from apple safari would be the second best..
http://www.computerworld.com/s/article/9128638/Safari_4_rivals_Google_Chrome_in_JavaScript_race?intsrc=news_ts_head
but possibly that benchmark is not really valid because it also
benchmark the rendering..

On Wed, Oct 7, 2009 at 11:38 PM, Marcelo Costa <marcelojscosta@gmail.com> wrote:

On Wed, Oct 7, 2009 at 5:00 AM, Kiswono Prayogo <kiswono@gmail.com> wrote:

by using latest v8 engine from google, is it possible to build PL/Js
just like other PL in Postgre? such as PL/PHP
what should i learn if i want to build PL/Js?
thanks in advance.

regards,
Kis
GB

You also can see this link:

http://xen.samason.me.uk/~sam/repos/pljs/README

--
Marcelo Costa
www.marcelocosta.net
-------------------------------------------------
“You can't always get what want”,

Doctor House in apology to Mike Jagger

hmm.. someone has built it first, i'll try it in the moment ^^

#12Joshua D. Drake
jd@commandprompt.com
In reply to: Kiswono Prayogo (#11)
Re: Feature Suggestion: PL/Js

On Thu, 2009-10-08 at 07:06 +0700, Kiswono Prayogo wrote:

Said slides are available here:
http://www.pgcon.org/2009/schedule/events/159.en.html

I hope they can be useful.

--
Joshua Tolley / eggyknap

ok i will read it, thanks ^^

And video:

http://www.vimeo.com/3728119

Joshua D. Drake

--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering
If the world pushes look it in the eye and GRR. Then push back harder. - Salamander

#13Alvaro Herrera
alvherre@commandprompt.com
In reply to: Kiswono Prayogo (#11)
Re: Feature Suggestion: PL/Js

Kiswono Prayogo escribi�:

i guess v8 still the best javascript interpreter
http://waynepan.com/2008/09/02/v8-tracemonkey-squirrelfish-ie8-benchmarks/
nitro from apple safari would be the second best..
http://www.computerworld.com/s/article/9128638/Safari_4_rivals_Google_Chrome_in_JavaScript_race?intsrc=news_ts_head
but possibly that benchmark is not really valid because it also
benchmark the rendering..

Performance is not the only useful measure. Embeddability in Postgres
is very important, and it being C++ is not a good starting point.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

#14Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#2)
Re: Feature Suggestion: PL/Js

Peter Eisentraut <peter_e@gmx.net> writes:

Start here:
http://developer.postgresql.org/pgdocs/postgres/plhandler.html
I notice that this has not been updated for the new inline handlers, but
that shouldn't stop you.

Actually, that chapter is so old it didn't get updated for language
validators either :-(. I added some text, and changed the link in
create_language.sgml so hopefully we'll notice it next time.

regards, tom lane