Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Aloïs Cochard
@aloiscochard
so, I'll go the "lets' write wrapper function" road as this one: haskell/c2hs#117 is clearly not mature.
hopefully it seems there is not too much function that need to be wrapped
Ismael Juma
@ijuma
that's a shame
Ismael Juma
@ijuma
@aloiscochard the author seems to be pretty responsive though
Aloïs Cochard
@aloiscochard
@ijuma yeah, indeed I have good hope. I'll add TODOs next to the wrap refering to the issue, that might happen soon but I don't want to wait.
we might have to write custom C code anyway, so it's good I put the cabal config in place for that
@ijuma things will start to be really interesting once we'll be able to design a high level API (should probably be even an other lib)
I think we can wrap nicely thing using a monadic API and the STM
Ismael Juma
@ijuma
@aloiscochard yes, definitely
Aloïs Cochard
@aloiscochard
@ijuma btw, hsc2hs is batshit crazy: it's a haskell preprocessor which generate a C program out of your haskell code, and once the C program is run that generate the file haskell source code
s/file/final
it's seems to be the only way to retrieve stuff like constant, for which the value is not in the header but available in the compiled program
Aloïs Cochard
@aloiscochard
@ijuma you are definitely right about c2hs dev being responsive: haskell/c2hs@8c6ee67
seems like he is already investigating the bug I found :)
Aloïs Cochard
@aloiscochard
@ijuma I don't understand what is the diff between int foo(int x) or int *foo(int x) and I'm not able to find documentation. any idea? I found stuff on function pointer, but it's different
aloiscochard @aloiscochard entering ##c
Aloïs Cochard
@aloiscochard
I'm such a noob
it's the pointer on the return type, but I though the syntax for that would be *int foo(int x)
Ismael Juma
@ijuma
:)
I think it's better to format it like int* foo(int x)
Aloïs Cochard
@aloiscochard
TIL C Syntax
I would have understood it straight away like that!
the last time I wrote some C I was probably 12 years old or something
Ismael Juma
@ijuma
hehe, yeah
Ismael Juma
@ijuma
not a good sign that they recommend using macports instead of homebrew
Aloïs Cochard
@aloiscochard
@ijuma maybe it's relate to who did the packaging? was it done by the core team?
Ismael Juma
@ijuma
@aloiscochard it's in INSTALL
but maybe that part of the instructions can be ignored
Aloïs Cochard
@aloiscochard
interesting
Aloïs Cochard
@aloiscochard
@ijuma I have pushed my last changes on master if you want to give it a try
Ismael Juma
@ijuma
@aloiscochard cool!
@aloiscochard ouch about that link
Gleb Peregud
@gleber
@aloiscochard Looks good. I am afraid you won't leave me any work to be done on ZuriHac! :) I hoped to have gRPC/proto3 as my project there
Aloïs Cochard
@aloiscochard
@gleber haha, ty! :) but no worries, there will be a lot to do I believe in term of high-level API, also I'll probably keep code generation aside until ZuriHac. We'll see
Aloïs Cochard
@aloiscochard
there is the SSL overhead which not taken into account though
so not a good benchmark
Ismael Juma
@ijuma
@aloiscochard Google Translate is quite helpful. Those benchmarks have some major faults though.
They don't use the value of the RPC call for one
Thrift results are particularly suspicious
Aloïs Cochard
@aloiscochard
good to hear @ijuma they did look indeed suspicious
(for info: I have not made any commits recently but I should get back on it next week)
Aloïs Cochard
@aloiscochard
as you might have seen, I haven't made any progress here.. hopefully I should get back on it middle on the month, and finish the low level layer.
Spiros Boosalis
@sboosali
what's the status of grpc-haskell?
(if you're busy, no worries)
(but any advice you can give, like notes you've taken, links you've read, what part of the api has been wrapped, a working example, etc would help me a lot)
(my use is for google's Cloud Speech API)
Aloïs Cochard
@aloiscochard
@sboosali it was a POC that I started, sadly no time to continue working on it :-(
I would love to find time to finish it one day... or help to guide you if interested to finish it?