You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting a global variable sucks for thread safety. Mutex could help, within the bounds of NRE.
That variable should only be set once at the beginning of the program. pcre_extra contains a void *callout_data; field, which could contain the pointers to the callout code. pcre_callout_block wouldn't contain the actual callouts, it'd use callout_data.
This is a ton of work.
yep.
I'm going to need to figure out how Nim does closures and how to create closures from strings in macros. I'm also going to have to figure out how to store the closure data in the right place and so on.
Even parsing the code might be a challenge... (?{foo("}")})?
Templating libraries might find that code useful -- perhaps I should extract it into it's own lib?
I think PCRE returns a pointer to the same (big) struct every time, just updated. Is the same level of performance possible to achieve?
The struct isn't that big though, it's 52 bytes on a 64 bit machine (if I didn't screw up counting). I don't understand what you're saying in "Is the same level of performance possible to achieve?"
I've never seen such a feature in any language's regex wrapper/implementation.
s/any language/any non-dynamic language/
It's always nice to be the first.
I have no thoughts about this at the moment, but it is something that should be considered.
The text was updated successfully, but these errors were encountered: