Re: Perl 6 Microgrants. Now accepting proposals.

2007-03-23 Thread Jonathan Scott Duff

On 3/22/07, Tim Bunce [EMAIL PROTECTED] wrote:


I'd like to suggest an idea for *someone else* to submit a proposal for:



Heh, hoping for someone with tuits to bite, eh?  :-)

As part of the work on DBI2 I want to create a Perl API that closely

matches the JDBC API.

I need a tool that can parse the java .h files that that define the JDBC
API,
e.g.,
http://gcc.gnu.org/viewcvs/trunk/libjava/java/sql/Statement.h?revision=120621view=markup
and generate roughly equivalent Perl 6 (roles etc).



I notice that this file (and all of the others I looked at) say at the  top:

// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

So, perhaps it's not the .h files we should be parsing, but whatever source
files were used to generate them.  Though, of course, some C++-to-Perl6 tool
would be a good thing too.  :-)

-Scott
--
Jonathan Scott Duff
[EMAIL PROTECTED]


Re: Perl 6 Microgrants. Now accepting proposals.

2007-03-23 Thread Nathan Gray
On Thu, Mar 22, 2007 at 01:24:58PM +, Tim Bunce wrote:
 Here's a related idea: write a tool that reads BNF grammar, such as
 http://java.sun.com/docs/books/jls/third_edition/html/syntax.html
 http://java.sun.com/docs/books/jls/third_edition/html/grammars.html
 and writes a parser in Perl 6 for that grammar.

Writing a Perl 6 grammar to parse BNF should not be too hard.  Writing
an emitter to translate that into a Perl 6 grammar should also not be
very hard, though I find emitters harder to write.

I'm thinking of an architecture similar to Flavio Glock's MiniPerl6.

  http://svn.pugscode.org/pugs/v6/v6-MiniPerl6/lib/MiniPerl6/

 Anyone interested in those ideas?

Quite interested, though lacking tuits at the moment.

-kolibrie



signature.asc
Description: Digital signature


Re: Perl 6 Microgrants. Now accepting proposals.

2007-03-23 Thread Bjoern Hoehrmann
* Tim Bunce wrote in perl.perl6.internals:
Here's a related idea: write a tool that reads BNF grammar, such as
http://java.sun.com/docs/books/jls/third_edition/html/syntax.html
http://java.sun.com/docs/books/jls/third_edition/html/grammars.html
and writes a parser in Perl 6 for that grammar.

I would be very interested in (using) a tool that reads many types of
formal grammars and makes it easy to transform them to other formalisms.
I am currently finishing up a free software library that decides any
context-free language and the intersection and complement of languages
it decides, focused on validation against web standards (is this string
a syntactically correct 'mailto' URL, HTTP header value, JSON document,
HTML attribute value, etc.)

For it to be useful, the grammars for the various specifications need
to be in a format my library understands; unfortunately there are very
many BNF variants in use (the IETF generally uses its ABNF, the W3C
tends to use the EBNF format defined in the XML specification, ...) and
my library accepts only its own formalism (an XML format based on RELAX
NG, a schema language for XML document validation).

Tools that can read these BNF variants into a common object model, or
otherwise make it easy to convert one formalism into another would be
the main missing link to put my library into practical use in tools
like http://validator.w3.org/. So work on the first half of the
problem above would be very welcome.

My plan is in principle to make my formalism sufficiently powerful so
that all these BNF variants can be mapped 1:1 to it; then get people to
extract and convert the grammars in the various specifications, and put
them in some repository. From there on, using them for other formalisms
like Perl 6 Rules would start with simple tree transformations rather
than writing another parser (or at least comperatively simple, if you
are bad at writing parsers like I am).
-- 
Björn Höhrmann · mailto:[EMAIL PROTECTED] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 


Re: Perl 6 Microgrants. Now accepting proposals.

2007-03-22 Thread Tim Bunce
On Wed, Mar 21, 2007 at 11:04:29PM -0400, Jesse Vincent wrote:
 I'm pleased to announce the inaugural Perl 6 Microgrants program.  
 Best Practical Solutions (my company) has donated USD5,000 to The  
 Perl Foundation to help support Perl 6 Development.  Leon Brocard,  
 representing The Perl Foundation's grants committee, will work with  
 me to select proposals and evaluate project success.  We'll be making  
 USD500 grants to worthy Perl 6 related efforts. We're hoping to fund  
 a range of Perl 6-related projects over the life of the grant  
 program.  Accepted grants might be for coding, documentation, testing  
 or even writing articles about Perl 6. The program isn't tied to any  
 one implementation of Perl 6 -- We're interested in seeing proposals  
 related to Pugs, Perl 6 on Parrot, Perl 6 on Perl 5 or any other Perl  
 6 implementation.  Generally, we're interested in seeing projects  
 that can be completed in 4-6 calendar weeks.
 
 Submitting a grant proposal
 ---
 
 To submit a grant proposal, please email us at perl6- 
 [EMAIL PROTECTED] with the following information:
 
 * A two to three paragraph summary of the work you intend to do
 * A quick bio - Who are you? Is there opensource work you've done  
 that we should have a look at?
 * A brief description of what success will mean for your project -  
 How will we know you're done?
 * Where (if anywhere) you've discussed your project in the past
 * Where you'll be blogging about your progress. (Twice-weekly blog  
 posts are a requirement for getting your grant money)
 
 We'll be accepting proposals on a rolling schedule. We expect to pay  
 out these first 10 grants over the course of the summer. Depending on  
 how things go, we'll then either find more money for more grant  
 programs or we'll wind up the program and move on to other endeavors.
 
 We're really excited to get rolling. Submit your proposals early and  
 often. Don't let somebody else beat you to the punch ;)

I'd like to suggest an idea for *someone else* to submit a proposal for:

As part of the work on DBI2 I want to create a Perl API that closely
matches the JDBC API.

I need a tool that can parse the java .h files that that define the JDBC API,
e.g., 
http://gcc.gnu.org/viewcvs/trunk/libjava/java/sql/Statement.h?revision=120621view=markup
and generate roughly equivalent Perl 6 (roles etc).

Some knowledge of Java would be helpful to get a reasonable initial
mapping of concepts from Java to Perl, but that's bound to evolve over
time - hence the need for a tool to do, and redo, the translation.

[ I'd probably then use the tool to also generate implementation code
  that bridges the Perl6 JDBC with the Perl5 JDBC module on CPAN.
  That would give Perl6 a working JDBC API.
  (The next step might be to parse the Java code of the JDBC test suite
  and translate that to Perl6...)
]

There are two parts to this: a Java parser (good enough for at least the
JDBC .h files), and a Perl6 code (role) generator. They could be combined,
but I'd like the Java parser to be reusable by others.

Here's a related idea: write a tool that reads BNF grammar, such as
http://java.sun.com/docs/books/jls/third_edition/html/syntax.html
http://java.sun.com/docs/books/jls/third_edition/html/grammars.html
and writes a parser in Perl 6 for that grammar.

Anyone interested in those ideas?

Tim.

p.s. The .h files for JDBC can be found here
http://gcc.gnu.org/viewcvs/trunk/libjava/java/sql/
http://gcc.gnu.org/viewcvs/trunk/libjava/javax/sql/

p.p.s. The funding for these could come from the DBI Development fund
(which hasn't been used for anything yet) and so not impact the donation
from Best Practical Solutions.


Re: Re: Perl 6 Microgrants. Now accepting proposals.

2007-03-22 Thread philcrow
I am very interested in this.  I've done a little bit of work like this in the 
past, for projects like Java::Swing which is a thin Inline::Java facade for 
coding swing UI front ends in what appears to be pure Perl.

But, your plan is more intense.  In particular it is more intense than $500.  
So, are there others that would work with me?

Phil

 Tim Bunce [EMAIL PROTECTED] wrote: 

 On Wed, Mar 21, 2007 at 11:04:29PM -0400, Jesse Vincent wrote:
  I'm pleased to announce the inaugural Perl 6 Microgrants program.  
  Best Practical Solutions (my company) has donated USD5,000 to The  
  Perl Foundation to help support Perl 6 Development.  Leon Brocard,  
  representing The Perl Foundation's grants committee, will work with  
  me to select proposals and evaluate project success.  We'll be making  
  USD500 grants to worthy Perl 6 related efforts. We're hoping to fund  
  a range of Perl 6-related projects over the life of the grant  
  program.  Accepted grants might be for coding, documentation, testing  
  or even writing articles about Perl 6. The program isn't tied to any  
  one implementation of Perl 6 -- We're interested in seeing proposals  
  related to Pugs, Perl 6 on Parrot, Perl 6 on Perl 5 or any other Perl  
  6 implementation.  Generally, we're interested in seeing projects  
  that can be completed in 4-6 calendar weeks.
  
  Submitting a grant proposal
  ---
  
  To submit a grant proposal, please email us at perl6- 
  [EMAIL PROTECTED] with the following information:
  
  * A two to three paragraph summary of the work you intend to do
  * A quick bio - Who are you? Is there opensource work you've done  
  that we should have a look at?
  * A brief description of what success will mean for your project -  
  How will we know you're done?
  * Where (if anywhere) you've discussed your project in the past
  * Where you'll be blogging about your progress. (Twice-weekly blog  
  posts are a requirement for getting your grant money)
  
  We'll be accepting proposals on a rolling schedule. We expect to pay  
  out these first 10 grants over the course of the summer. Depending on  
  how things go, we'll then either find more money for more grant  
  programs or we'll wind up the program and move on to other endeavors.
  
  We're really excited to get rolling. Submit your proposals early and  
  often. Don't let somebody else beat you to the punch ;)
 
 I'd like to suggest an idea for *someone else* to submit a proposal for:
 
 As part of the work on DBI2 I want to create a Perl API that closely
 matches the JDBC API.
 
 I need a tool that can parse the java .h files that that define the JDBC API,
 e.g., 
 http://gcc.gnu.org/viewcvs/trunk/libjava/java/sql/Statement.h?revision=120621view=markup
 and generate roughly equivalent Perl 6 (roles etc).
 
 Some knowledge of Java would be helpful to get a reasonable initial
 mapping of concepts from Java to Perl, but that's bound to evolve over
 time - hence the need for a tool to do, and redo, the translation.
 
 [ I'd probably then use the tool to also generate implementation code
   that bridges the Perl6 JDBC with the Perl5 JDBC module on CPAN.
   That would give Perl6 a working JDBC API.
   (The next step might be to parse the Java code of the JDBC test suite
   and translate that to Perl6...)
 ]
 
 There are two parts to this: a Java parser (good enough for at least the
 JDBC .h files), and a Perl6 code (role) generator. They could be combined,
 but I'd like the Java parser to be reusable by others.
 
 Here's a related idea: write a tool that reads BNF grammar, such as
 http://java.sun.com/docs/books/jls/third_edition/html/syntax.html
 http://java.sun.com/docs/books/jls/third_edition/html/grammars.html
 and writes a parser in Perl 6 for that grammar.
 
 Anyone interested in those ideas?
 
 Tim.
 
 p.s. The .h files for JDBC can be found here
 http://gcc.gnu.org/viewcvs/trunk/libjava/java/sql/
 http://gcc.gnu.org/viewcvs/trunk/libjava/javax/sql/
 
 p.p.s. The funding for these could come from the DBI Development fund
 (which hasn't been used for anything yet) and so not impact the donation
 from Best Practical Solutions.


Re: Perl 6 Microgrants. Now accepting proposals.

2007-03-22 Thread Dongxu Ma

Hi all,

I am recently working on the QT4/KDE4 bindings for p5.
First cpp headers are parsed by a grammar based on Parse::RecDescent,
The production of latest dev release Parse-QTEDI-0.02_01 is quite stable,
presenting all related interface information of cpp .h.

I will continue to make it available in p5. And myself do have a plan to
introduce them in p6. It will be nice if someone can do so in parallel with
me (I mean, for p6). Since: 1. my knowledge on p6 sucks ;-) 2. currently
I haven't got enough time.

PS: It is very glad to see such information, really. In my opinion p6 indeed

needs trying to draw as many connections as possible with other
outstanding tool/project outside perl world. KDE is such a place too.

PS2: my project page:
   http://code.google.com/p/dongxu/wiki/QTEDI
   http://code.google.com/p/dongxu/wiki/PerlQT

-- Forwarded message --
From: Jesse Vincent [EMAIL PROTECTED]
Date: Mar 22, 2007 11:04 AM
Subject: Perl 6 Microgrants. Now accepting proposals.
To: perl6-internals@perl.org, perl6-language@perl.org,
perl6-compiler@perl.org, perl5-porters@perl.org

I'm pleased to announce the inaugural Perl 6 Microgrants program.
Best Practical Solutions (my company) has donated USD5,000 to The
Perl Foundation to help support Perl 6 Development.  Leon Brocard,
representing The Perl Foundation's grants committee, will work with
me to select proposals and evaluate project success.  We'll be making
USD500 grants to worthy Perl 6 related efforts. We're hoping to fund
a range of Perl 6-related projects over the life of the grant
program.  Accepted grants might be for coding, documentation, testing
or even writing articles about Perl 6. The program isn't tied to any
one implementation of Perl 6 -- We're interested in seeing proposals
related to Pugs, Perl 6 on Parrot, Perl 6 on Perl 5 or any other Perl
6 implementation.  Generally, we're interested in seeing projects
that can be completed in 4-6 calendar weeks.

Submitting a grant proposal
---

To submit a grant proposal, please email us at perl6-
[EMAIL PROTECTED] with the following information:

* A two to three paragraph summary of the work you intend to do
* A quick bio - Who are you? Is there opensource work you've done
that we should have a look at?
* A brief description of what success will mean for your project -
How will we know you're done?
* Where (if anywhere) you've discussed your project in the past
* Where you'll be blogging about your progress. (Twice-weekly blog
posts are a requirement for getting your grant money)

We'll be accepting proposals on a rolling schedule. We expect to pay
out these first 10 grants over the course of the summer. Depending on
how things go, we'll then either find more money for more grant
programs or we'll wind up the program and move on to other endeavors.

We're really excited to get rolling. Submit your proposals early and
often. Don't let somebody else beat you to the punch ;)

Best,

Jesse



--
Cheers, Dongxu
__END__
http://search.cpan.org/~dongxu


PGP.sig
Description: PGP signature


Perl 6 Microgrants. Now accepting proposals.

2007-03-21 Thread Jesse Vincent
I'm pleased to announce the inaugural Perl 6 Microgrants program.  
Best Practical Solutions (my company) has donated USD5,000 to The  
Perl Foundation to help support Perl 6 Development.  Leon Brocard,  
representing The Perl Foundation's grants committee, will work with  
me to select proposals and evaluate project success.  We'll be making  
USD500 grants to worthy Perl 6 related efforts. We're hoping to fund  
a range of Perl 6-related projects over the life of the grant  
program.  Accepted grants might be for coding, documentation, testing  
or even writing articles about Perl 6. The program isn't tied to any  
one implementation of Perl 6 -- We're interested in seeing proposals  
related to Pugs, Perl 6 on Parrot, Perl 6 on Perl 5 or any other Perl  
6 implementation.  Generally, we're interested in seeing projects  
that can be completed in 4-6 calendar weeks.


Submitting a grant proposal
---

To submit a grant proposal, please email us at perl6- 
[EMAIL PROTECTED] with the following information:


* A two to three paragraph summary of the work you intend to do
* A quick bio - Who are you? Is there opensource work you've done  
that we should have a look at?
* A brief description of what success will mean for your project -  
How will we know you're done?

* Where (if anywhere) you've discussed your project in the past
* Where you'll be blogging about your progress. (Twice-weekly blog  
posts are a requirement for getting your grant money)


We'll be accepting proposals on a rolling schedule. We expect to pay  
out these first 10 grants over the course of the summer. Depending on  
how things go, we'll then either find more money for more grant  
programs or we'll wind up the program and move on to other endeavors.


We're really excited to get rolling. Submit your proposals early and  
often. Don't let somebody else beat you to the punch ;)


Best,

Jesse


PGP.sig
Description: This is a digitally signed message part