GitHub user rectang opened a pull request:

    https://github.com/apache/lucy/pull/17

    LUCY-281 Go/CGO port

    Port host-specific implementation code to Go/CGO instead of wrapping the C 
bindings.
    
    RegexTokenizer now uses the Go `regexp` package instead of requiring pcre.  
It references `regexp` objects from C using a variant on the Nick Wellnhofer's 
object registry code.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rectang/lucy LUCY-281-cgo-port

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/lucy/pull/17.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #17
    
----
commit fed6ca76b6b8310c1db97bfbbed1b56af47e6194
Author: Marvin Humphrey <[email protected]>
Date:   2015-07-15T01:57:11Z

    Copy C host-specific code to Go.
    
    Copy the C binding code in anticipation of replacing it with Go-specific
    binding code.

commit 633c4d30b74dbd69dbfc2c70c01c7638317c2d6a
Author: Marvin Humphrey <[email protected]>
Date:   2015-07-19T23:47:23Z

    Remove RegexTokenizer_Set_Token_RE.
    
    It was used internally a long time ago and is now obsolete.

commit dab9a88d5c654a2539e4a81db4d74f88cc976cf3
Author: Marvin Humphrey <[email protected]>
Date:   2015-07-17T03:32:45Z

    Make it possible to reference Go objects from C.
    
    This patch is a variant on sample code written by Nick Wellnhofer.

commit 44fc440fdc419b655fb4c482afb63b9020138011
Author: Marvin Humphrey <[email protected]>
Date:   2015-07-19T19:57:13Z

    Port RegexTokenizer stubs to CGO.

commit 8f634425b5390423d7c4013b28710e4ddc92bf0b
Author: Marvin Humphrey <[email protected]>
Date:   2015-07-19T19:57:13Z

    Port Doc code to CGO.

commit acd74d27985e635606c775a44d7c5c718583d76f
Author: Marvin Humphrey <[email protected]>
Date:   2015-07-18T21:49:30Z

    Port Inverter and InverterEntry to CGO.

commit 7749e595b2a6c32af57b904d1a00b066691ace37
Author: Marvin Humphrey <[email protected]>
Date:   2015-07-19T19:57:13Z

    Port DefDocReader code to CGO.

commit 5f00a21335c3304c074223b2dba4567a62d9c97a
Author: Marvin Humphrey <[email protected]>
Date:   2015-07-20T19:41:34Z

    Port RegexTokenizer to Go and CGO.
    
    Use Go's regular expression engine, the `regexp` package.  Store Go
    `regexp` objects using the registry which allows them to be referenced
    by integer from C.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to