These are chat archives for got-lambda/expression

12th
Jun 2015
Marco Zocca
@ocramz
Jun 12 2015 06:57
@magthe it's a delicate tradeoff ;)
Marco Zocca
@ocramz
Jun 12 2015 07:57
@magthe are you still looking at inline-c? what about those nice expecting type name, got identifier errors? I want to wrap a function that operates on a pointer under the hood, e.g. int CreateA(A *a, ..). So I declare a data A, make it Storable, add a line in that TypeSpecifier-TypeQ table, wrap the signature in a nice [exp| int{ $(A *a)} |] , but nothing. Obscure error. Any, ugh, pointers?
10 years and 4 languages later, still hate memory pointers
Magnus Therning
@magthe
Jun 12 2015 08:02
@ocramz I actually took a shortcut to that, since I never need to access the innards of the struct that's pointed to I'm using "void *" (Ptr ())
Marco Zocca
@ocramz
Jun 12 2015 08:09
could you post me a minimal gist please? I'm getting a bit lost, this would be like the 4th slightly-different approach to FFI I've seen, and they start to mix under my eyes
Marco Zocca
@ocramz
Jun 12 2015 08:26
@magthe my intentions are good, the final product will kick a++ and revolutionise the way scientists to computer science and vice versa (or so I like to think), but FFS this low level stuff is sketchy
s/to/do
Magnus Therning
@magthe
Jun 12 2015 08:38
Marco Zocca
@ocramz
Jun 12 2015 08:42
\m/ \m/ thank you!
Marco Zocca
@ocramz
Jun 12 2015 14:40
@magthe I have a few more questions, I'll shoot you an email ;)