Implementing a new Scripting Language
Implementing a new Scripting Language
От:
"Igal @ Lucee.org" <igal@lucee.org>
Дата:
Hi all,
We have an open source scripting engine named Lucee that is used primarily for web application -- https://github.com/lucee/Lucee -- it is written in Java and is usually run as a servlet, but can be accessed in other ways (like JSR-223).
You can think of the language as a combination of PHP and Javascript, albeit much simpler and more intuitive IMHO.
I was wondering how difficult it would be to implement a Postgres extension that will act as a wrapper around it and will allow to write functions in that language?
I am a Java developer myself and have a very limited knowledge of C/C++, but if someone can point me in the right direction of whatever documentation there is on the subject -- that would be great.
Thanks,
We have an open source scripting engine named Lucee that is used primarily for web application -- https://github.com/lucee/Lucee -- it is written in Java and is usually run as a servlet, but can be accessed in other ways (like JSR-223).
You can think of the language as a combination of PHP and Javascript, albeit much simpler and more intuitive IMHO.
I was wondering how difficult it would be to implement a Postgres extension that will act as a wrapper around it and will allow to write functions in that language?
I am a Java developer myself and have a very limited knowledge of C/C++, but if someone can point me in the right direction of whatever documentation there is on the subject -- that would be great.
Thanks,
--
Igal Sapir
Lucee Core Developer
Lucee.org
Re: Implementing a new Scripting Language
От:
"Igal @ Lucee.org" <igal@lucee.org>
Дата:
On 1/27/2016 10:41 AM, Pavel Stehule wrote:
Thanks! I'll take a look.
Igal
2016-01-27 19:37 GMT+01:00 Pavel Stehule <pavel.stehule@gmail.com>:David Fetter wrote some presentation - some years ago was popular to write own PLsource code of plpgsql is good example - it pretty simple
Thanks! I'll take a look.
Igal
Re: Implementing a new Scripting Language
От:
Pavel Stehule <pavel.stehule@gmail.com>
Дата:
2016-01-27 19:21 GMT+01:00 Igal @ Lucee.org <igal@lucee.org>:
On 1/27/2016 9:57 AM, Vladimir Sitnikov wrote:That is a good question. ChakraCore has been open sourced recently. Itinteresting. but now we will need to write an extension for that, e.g. PL/Chakra, which brings back my original question:
might be easier to build under Windows.
are there any docs as to how to implement a new scripting language? ;)
David Fetter wrote some presentation - some years ago was popular to write own PL
source code of plpgsql is good example - it pretty simple
I am not sure you would be able to bind high performance java runtimeyes, that's what I had in mind. I wasn't thinking of an embedded JRE. TBH I didn't think there were any of those until your email.
with the backend. There are no that many JREs, and not much of them
are good at "in-backend" operation.
Thus your question boils down to 2 possibilities:
1) You execute Lucee in some JRE that runs in the backend (frankly
speaking, I doubt it is a good way to go)
thanks,
Igal
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Re: Implementing a new Scripting Language
От:
Pavel Stehule <pavel.stehule@gmail.com>
Дата:
2016-01-27 19:37 GMT+01:00 Pavel Stehule <pavel.stehule@gmail.com>:
2016-01-27 19:21 GMT+01:00 Igal @ Lucee.org <igal@lucee.org>:On 1/27/2016 9:57 AM, Vladimir Sitnikov wrote:That is a good question. ChakraCore has been open sourced recently. Itinteresting. but now we will need to write an extension for that, e.g. PL/Chakra, which brings back my original question:
might be easier to build under Windows.
are there any docs as to how to implement a new scripting language? ;)David Fetter wrote some presentation - some years ago was popular to write own PLsource code of plpgsql is good example - it pretty simple
I am not sure you would be able to bind high performance java runtimeyes, that's what I had in mind. I wasn't thinking of an embedded JRE. TBH I didn't think there were any of those until your email.
with the backend. There are no that many JREs, and not much of them
are good at "in-backend" operation.
Thus your question boils down to 2 possibilities:
1) You execute Lucee in some JRE that runs in the backend (frankly
speaking, I doubt it is a good way to go)
thanks,
Igal
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers