These are chat archives for got-lambda/expression

14th
Oct 2015
Magnus Therning
@magthe
Oct 14 2015 07:47 UTC
I wouldn't really have any need for it, I'm afraid
I see you are using inline-c... any particular reason for not using hsc/bindings/...?
Magnus Therning
@magthe
Oct 14 2015 08:01 UTC
@Jell I went to a foss-gbg meeting yesterday and bumped into Fredrik Wendt, apparently he turned up to a few meetups when the group still had Clojure in its name :)
Jean-Louis Giordano
@Jell
Oct 14 2015 08:16 UTC
@magthe correct! :) I haven't seen him in a long time. He helped us organise Got.clj at the time, squeed was sponsoring with venue and food
Magnus Therning
@magthe
Oct 14 2015 11:06 UTC
Ah, all right... I do wonder what made him lose interest
Marco Zocca
@ocramz
Oct 14 2015 12:11 UTC
@magthe inline-c lets you tinker with the C side before packaging up the Haskell-facing signature; also, the TH used by inline-c is valid Haskell, so I get highlighted errors and warnings, which is very handy
Marco Zocca
@ocramz
Oct 14 2015 12:17 UTC
the revamp of inline-c by the good guys of FPComplete came at the right moment for me
also, I'll be in Gtb for the next 10 days or so! anything exciting happening on the FP front these days? :D
Magnus Therning
@magthe
Oct 14 2015 12:48 UTC
@ocramz I do like inline-c, but got the impression that it was geared towards the quick-and-dirty bindings... but maybe I got that wrong
Marco Zocca
@ocramz
Oct 14 2015 14:06 UTC
@magthe in my experience, it keeps simple things simple, and complex things manageable :) how I use it: I wrap the C signatures 1:1 at the lowest level, a bit like you would use c2hs. And if you really have to write a for loop and wrap that in a Hs function, you can do that as well :D
too bad for the ugly TH syntax but hey, writing the whole thing in Lisp wasn't an option :D
Marco Zocca
@ocramz
Oct 14 2015 14:13 UTC
in fact, once I figure out a couple remaining things about getting mutable vectors back on the C side, I might write an inline-c tutorial, since the one provided by FPComplete is good but a bit terse