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 (Commented) (JIRA)" <ji...@apache.org> on 2011/12/21 23:11:31 UTC

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

    [ 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