http://qs321.pair.com?node_id=11139656


in reply to Re: Anyone with XS experience willing to create a high performance data type for Perl? (Updated)
in thread Anyone with XS experience willing to create a high performance data type for Perl?

If there are shortcomings with Inline::Struct, please file an issue so they have a chance of being fixed :-)
  • Comment on Re^2: Anyone with XS experience willing to create a high performance data type for Perl? (Updated)

Replies are listed 'Best First'.
Re^3: Anyone with XS experience willing to create a high performance data type for Perl? (Updated)
by bliako (Monsignor) on Dec 16, 2021 at 12:04 UTC
      They have now been fixed, and released as 0.28. Please report any problems!

        WOW! that's really great and very fast (edit: delivering the fix I meant) indeed. And it works! I have put a comment for enum. Thanks for this!

Re^3: Anyone with XS experience willing to create a high performance data type for Perl? (Updated)
by bliako (Monsignor) on Dec 16, 2021 at 10:05 UTC

    I will, thanks. The above was just a quick hack to get us going.

    Just for the record, the two problems I encountered (and could very much be red herrings) are that Inline::Struct failed when a C struct contained (EDIT: added next word:) typedef function pointers, I believe it did not understand the arcane C syntax (I love it though) : int (*funcpoi)(int, int); . It also did not like typedef enums within a struct. The above is just for the record, I will file a proper report at the channel you mentioned.

    bw, bliako