hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashutosh Chauhan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-928) UDFs in scripting languages
Date Sat, 17 Oct 2009 09:25:31 GMT

    [ https://issues.apache.org/jira/browse/PIG-928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766867#action_12766867

Ashutosh Chauhan commented on PIG-928:

I did little research on the topic and it turned there is a third option for doing it. JSR-223[1]
for "Scripting for Java" has been approved through JCP and now is a part of java platform
in form of javax.script[2] as of java 6. It seems that it aims to provide a consistent api
through java language itself. No bindings needed, no BSF all one needs is a "scripting engine".
And they claim to have a very long list of languages supported including awk, python, ruby,
groovy, javascript, scheme, php, smalltalk etc. 
It will be interesting to explore this since:
1) Support from java platform implies no dependencies on BSF and language bindings jars.
2) Possibly more performant.
3) One consistent api for all scripting languages
4) Longer list of supported languages

I am currently reading the apis and if I get something to work, will post back here.

[1] http://www.jcp.org/en/jsr/detail?id=223
[2] http://java.sun.com/javase/6/docs/api/javax/script/package-summary.html
[3] https://scripting.dev.java.net/

> UDFs in scripting languages
> ---------------------------
>                 Key: PIG-928
>                 URL: https://issues.apache.org/jira/browse/PIG-928
>             Project: Pig
>          Issue Type: New Feature
>            Reporter: Alan Gates
>         Attachments: package.zip
> It should be possible to write UDFs in scripting languages such as python, ruby, etc.
 This frees users from needing to compile Java, generate a jar, etc.  It also opens Pig to
programmers who prefer scripting languages over Java.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message