Re: Feature Suggestion: PL/Js

Lists: pgsql-hackers
From: Kiswono Prayogo <kiswono(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Feature Suggestion: PL/Js
Date: 2009-10-07 08:00:43
Message-ID: 99024f5f0910070100q86706bdj5f4dabb7031921c3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

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


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Kiswono Prayogo <kiswono(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-07 08:23:19
Message-ID: 1254903799.14036.0.camel@fsopti579.F-Secure.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

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.


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Kiswono Prayogo <kiswono(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-07 14:22:02
Message-ID: 20091007142202.GB7719@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

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.


From: "Massa, Harald Armin" <chef(at)ghum(dot)de>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-07 14:24:10
Message-ID: e3e180dc0910070724rf802c24o33070ad34d07fb5d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

>
> 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


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Kiswono Prayogo <kiswono(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-07 14:55:10
Message-ID: 4ACCABCE.8090901@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

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


From: Joshua Tolley <eggyknap(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Kiswono Prayogo <kiswono(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-07 15:24:23
Message-ID: 20091007152423.GM32257@eddie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

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


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Joshua Tolley <eggyknap(at)gmail(dot)com>
Cc: Kiswono Prayogo <kiswono(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-07 15:29:15
Message-ID: 20091007152915.GI7719@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

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


From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Kiswono Prayogo <kiswono(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-07 16:18:57
Message-ID: 02A76F0D-DB89-4A82-A68D-42031D3749AB@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

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


From: Marcelo Costa <marcelojscosta(at)gmail(dot)com>
To: Kiswono Prayogo <kiswono(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-07 16:38:37
Message-ID: c13f2d590910070938o314ec34ak3edf71ca3fc6bf8@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Wed, Oct 7, 2009 at 5:00 AM, Kiswono Prayogo <kiswono(at)gmail(dot)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


From: Joshua Tolley <eggyknap(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Kiswono Prayogo <kiswono(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-07 16:58:58
Message-ID: 20091007165858.GN32257@eddie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

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


From: Kiswono Prayogo <kiswono(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-08 00:06:19
Message-ID: 99024f5f0910071706x3006c76al8adb4d0bed529a1e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

> 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(at)kineticode(dot)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(at)gmail(dot)com> wrote:
>
>
> On Wed, Oct 7, 2009 at 5:00 AM, Kiswono Prayogo <kiswono(at)gmail(dot)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 ^^


From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Kiswono Prayogo <kiswono(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-08 00:14:20
Message-ID: 1254960860.11374.287.camel@jd-desktop.unknown.charter.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

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


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Kiswono Prayogo <kiswono(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-08 00:16:06
Message-ID: 20091008001606.GP7719@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

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


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Kiswono Prayogo <kiswono(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Feature Suggestion: PL/Js
Date: 2009-10-08 04:43:01
Message-ID: 15218.1254976981@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)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