Perl 6 - the future is here, just unevenly distributed

IRC log for #native, 2015-08-07

| Channels | #native index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:40 plicease Not so far.
00:40 plicease so FFI::TinyCC::Inline will parse C code and extract out the appropriate functions.
00:40 plicease it borrows code (I believe) from Inline::C
00:41 plicease FFI::TinyCC::Inline is of course specific to tcc
00:41 plicease but you could probably rework it to take a header file and parse out the appropriate functions
00:43 plicease I sort of want FFI::Platypus to be somewhat language agnostic so I would rather not put something like that in platypus itself.
00:43 plicease but there isn't any reason something couldn't be built on top of it.
01:12 jberger Inline::C must have some way to parse headers for functions
01:12 jberger that's kinda what it does
07:58 sivoais it does. It has a Parse::Redescent parser in it
07:59 sivoais I thinki it was recently rewritten using Pegex
07:59 sivoais from what I remember hanging out in #inline
11:17 plicease caveat is that the Inline::C parser isn't available as an API.
11:19 plicease hence the parser used used by FFI::TinyCC::Inline was "borrowed" from XS::TCC which I believe was borrowed from  Inline::C
11:23 plicease another challenge I realized is going to be dealing with custom typedefs ... Convert::Binary::C may help there.
13:18 run4flat joined #native
14:45 pudgetta joined #native
15:32 plicease new dev release of Platypus: https://metacpan.org/release/PLICEASE/FFI-Platypus-0.37_03-TRIAL
15:32 plicease I will be doing a prod release probably on Monday.
16:58 run4flat joined #native
17:07 frew plicease: so you think that generally speaking, duplicating the stuff in header files (like constants/enums) is not that big of a deal?
17:08 plicease by duplicating you mean providing in the Perl interface?
17:08 plicease For that Convert::Binary::C does the best job I think.
17:10 plicease it has a few caveats, atm I would trust it to extract the appropriate constants at dev time rather than trying to do it at user install time.
17:12 plicease it also does enums
17:13 frew plicease: I'll take a look
17:50 frew well, I give up on getting this to parse automatically for now
17:50 frew there's a lot to learn to be able to do this stuff
19:18 run4flat joined #native
22:22 sivoais even with Inline::C's autowrap functionality, you still have to do fiddling around when dealing with non-trivial headers
22:23 sivoais I had to do that with Leptonica. I haven't made a new release because I was unhappy with the result. It wasn't polished enough.
22:35 frew sivoais: yeah, and I suspect gpgme will be anything but trivial
22:38 frew I think I'll just like, make stuff based on the headers I have, get stuff working, and release it and support those who complain
22:41 sivoais frew: sounds like a good way forward. Make an MVP, release, rinse, repeat. :-D
22:41 frew yeah
22:42 frew I'm excited to be doing this
23:45 jberger joined #native

| Channels | #native index | Today | | Search | Google Search | Plain-Text | summary