You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucy.apache.org by "Marvin Humphrey (Created) (JIRA)" <ji...@apache.org> on 2011/12/21 21:19:30 UTC

[lucy-issues] [jira] [Created] (LUCY-202) Bind Clownfish::CFC to Ruby

Bind Clownfish::CFC to Ruby
---------------------------

                 Key: LUCY-202
                 URL: https://issues.apache.org/jira/browse/LUCY-202
             Project: Lucy
          Issue Type: New Feature
          Components: Clownfish
            Reporter: Marvin Humphrey


Now that the bulk of CFC has been ported to C, it is possible to bind it to
other languages.  We should start with Ruby, by adding a Rakefile at
trunk/clownfish/ruby/Rakefile which compiles Clownfish::CFC as a Ruby
extension.  We can then add a task to trunk/ruby/Rakefile which uses that
extension to process the Lucy .cfh core files.

Only a handful of CFC routines need interfaces in order to achieve this goal.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[lucy-issues] [jira] [Resolved] (LUCY-202) Bind Clownfish::CFC to Ruby

Posted by "Logan Bell (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCY-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Logan Bell resolved LUCY-202.
-----------------------------

    Resolution: Fixed

The needed C functions can now be called from ruby and the needed rake files builds Clownfish successfully.
                
> Bind Clownfish::CFC to Ruby
> ---------------------------
>
>                 Key: LUCY-202
>                 URL: https://issues.apache.org/jira/browse/LUCY-202
>             Project: Lucy
>          Issue Type: New Feature
>          Components: Clownfish
>            Reporter: Marvin Humphrey
>            Assignee: Logan Bell
>
> Now that the bulk of CFC has been ported to C, it is possible to bind it to
> other languages.  We should start with Ruby, by adding a Rakefile at
> trunk/clownfish/ruby/Rakefile which compiles Clownfish::CFC as a Ruby
> extension.  We can then add a task to trunk/ruby/Rakefile which uses that
> extension to process the Lucy .cfh core files.
> Only a handful of CFC routines need interfaces in order to achieve this goal.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[lucy-issues] [jira] [Commented] (LUCY-202) Bind Clownfish::CFC to Ruby

Posted by "Marvin Humphrey (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCY-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174455#comment-13174455 ] 

Marvin Humphrey commented on LUCY-202:
--------------------------------------

If we can get code like this working, we can process the Lucy
.cfh files:

{noformat}
hierarchy = Clownfish::CFC::Hierarchy.new(
  :source => path_to_core,
  :dest   => "autogen"
)
hierarchy.build
core_binding = Clownfish::CFC::Binding::Core.new(
  :hierarchy => hierarchy
  :dest      => 'autogen',
  :header    => '[autogen warning and ALv2 header here]`'
  :footer    => '', 
)
core_binding.write_all_modified
{noformat}
                
> Bind Clownfish::CFC to Ruby
> ---------------------------
>
>                 Key: LUCY-202
>                 URL: https://issues.apache.org/jira/browse/LUCY-202
>             Project: Lucy
>          Issue Type: New Feature
>          Components: Clownfish
>            Reporter: Marvin Humphrey
>            Assignee: Logan Bell
>
> Now that the bulk of CFC has been ported to C, it is possible to bind it to
> other languages.  We should start with Ruby, by adding a Rakefile at
> trunk/clownfish/ruby/Rakefile which compiles Clownfish::CFC as a Ruby
> extension.  We can then add a task to trunk/ruby/Rakefile which uses that
> extension to process the Lucy .cfh core files.
> Only a handful of CFC routines need interfaces in order to achieve this goal.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[lucy-issues] [jira] [Commented] (LUCY-202) Bind Clownfish::CFC to Ruby

Posted by "Marvin Humphrey (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCY-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174458#comment-13174458 ] 

Marvin Humphrey commented on LUCY-202:
--------------------------------------

(As noted on IRC...) 

We also need to compile and run lemon, in order to turn CFCParseHeader.y into
CFCParseHeader.h and CFCParseHeader.c.  The easiest way to achieve this is to
copy the existing run_make code from trunk/ruby/Rakefile, and then use it to
run the appropriate Makefile variant from within trunk/lemon.

                
> Bind Clownfish::CFC to Ruby
> ---------------------------
>
>                 Key: LUCY-202
>                 URL: https://issues.apache.org/jira/browse/LUCY-202
>             Project: Lucy
>          Issue Type: New Feature
>          Components: Clownfish
>            Reporter: Marvin Humphrey
>            Assignee: Logan Bell
>
> Now that the bulk of CFC has been ported to C, it is possible to bind it to
> other languages.  We should start with Ruby, by adding a Rakefile at
> trunk/clownfish/ruby/Rakefile which compiles Clownfish::CFC as a Ruby
> extension.  We can then add a task to trunk/ruby/Rakefile which uses that
> extension to process the Lucy .cfh core files.
> Only a handful of CFC routines need interfaces in order to achieve this goal.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[lucy-issues] [jira] [Assigned] (LUCY-202) Bind Clownfish::CFC to Ruby

Posted by "Logan Bell (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCY-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Logan Bell reassigned LUCY-202:
-------------------------------

    Assignee: Logan Bell
    
> Bind Clownfish::CFC to Ruby
> ---------------------------
>
>                 Key: LUCY-202
>                 URL: https://issues.apache.org/jira/browse/LUCY-202
>             Project: Lucy
>          Issue Type: New Feature
>          Components: Clownfish
>            Reporter: Marvin Humphrey
>            Assignee: Logan Bell
>
> Now that the bulk of CFC has been ported to C, it is possible to bind it to
> other languages.  We should start with Ruby, by adding a Rakefile at
> trunk/clownfish/ruby/Rakefile which compiles Clownfish::CFC as a Ruby
> extension.  We can then add a task to trunk/ruby/Rakefile which uses that
> extension to process the Lucy .cfh core files.
> Only a handful of CFC routines need interfaces in order to achieve this goal.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira