ruby-llvm icon indicating copy to clipboard operation
ruby-llvm copied to clipboard

Why is "ext" folder needed?

Open sheerun opened this issue 10 years ago • 5 comments

Hello! I'm wondering why this gem includes ext folder and requires compilation. I thought FFI bindings don't require compilation? Could you explain it to me, please? It's important to me.

sheerun avatar Nov 16 '14 21:11 sheerun

Hi Adam,

ext/ contains some glue code written in C that bridges to some of the underlying C++ API. The Ruby library interfaces with this support code using FFI. (FFI relies on C calling conventions and cannot invoke C++ methods directly.)

HTH,

On Sunday, November 16, 2014, Adam Stankiewicz [email protected] wrote:

Hello! I'm wondering why this gem includes ext folder and requires compilation. I thought FFI bindings don't require compilation? Could you explain it to me, please? It's important to me.

— Reply to this email directly or view it on GitHub https://github.com/jvoorhis/ruby-llvm/issues/24.

Jeremy Voorhis

jvoorhis avatar Nov 16 '14 22:11 jvoorhis

Thank you for the answer. Do you think it be circumvented in some way, without compilation?

sheerun avatar Nov 16 '14 22:11 sheerun

The functionality could be removed, or contributed upstream..

On Sunday, November 16, 2014, Adam Stankiewicz [email protected] wrote:

Thank you for the answer. Do you think it be circumvented in some way, without compilation?

— Reply to this email directly or view it on GitHub https://github.com/jvoorhis/ruby-llvm/issues/24#issuecomment-63242750.

Jeremy Voorhis

jvoorhis avatar Nov 17 '14 02:11 jvoorhis

OK, one more question: how this repo relates to ruby-llvm/ruby-llvm?

This one seems not maintained anymore. I thought it's official one.

Could you please update the README and point to official repository?

sheerun avatar Nov 17 '14 09:11 sheerun

I can do that. I created the org when I realized there was more interest in the project than I had bandwidth, and others stepped up to help.

On Monday, November 17, 2014, Adam Stankiewicz [email protected] wrote:

OK, one more question: how this repo relates to ruby-llvm/ruby-llvm?

This one seems not maintained anymore. I thought it's official one.

Could you please update the README and point to official repository?

— Reply to this email directly or view it on GitHub https://github.com/jvoorhis/ruby-llvm/issues/24#issuecomment-63281867.

Jeremy Voorhis

jvoorhis avatar Nov 17 '14 15:11 jvoorhis