I suspect that comment predates the existence of capi and is trying to avoid having some other actual calling convention like stdcall because the function pointer is actually invoked from some C code in the RTS. capi is a sort of pseudo-calling-convention in that it generates some C code and then calls that stub.
Have you tried using a capi defined funptr there to see what happens?
12 Comments
someacnt@kbin.social · 2 pts · 3y
Hello. I still cannot see this magazine from lemmy (specifically, sopuli.xyz). Does anyone know why? Is there a way I could fix this? Thank you!
jaror@kbin.social · 2 pts · 3y
I can see this magazine at https://lemmy.ml/c/haskell@kbin.social, but not at https://sopuli.xyz/c/haskell@kbin.social or https://programming.dev/c/haskell@kbin.social. I wonder why.
someacnt@kbin.social · 2 pts · 3y
I see, I will report soon. Could not find time to do so now, sadly
demesisx@infosec.pub · 1 pts · 3y
Sounds like that instance isn’t federated with kbin.social. I can see it just fine over here in infosec.pub
jaror@kbin.social · 1 pts · 3y
Strange. It does see https://sopuli.xyz/c/kbinMeta@kbin.social, but not https://sopuli.xyz/c/haskell@kbin.social
Maybe you can try reaching out to the admins as that error page suggests.
tfcmad@lemmy.ml · 0 pts · 3y
Having learned Haskell in University, I've not yet used it in my role as a software developer.
What are the real world use cases for Haskell?
jaror@kbin.social · 1 pts · 3y
I like to use https://www.libhunt.com/l/haskell to explore popular Haskell projects. The three projects with the most stars on GitHub are:
There's also the State of the Haskell Ecosystem page which rates the level of maturity of different use-cases and programming needs.
kleidukos@kbin.social · 0 pts · 3y
Why must FinalizerPtr take a foreign function that uses the
ccallcalling convention? Is there a concrete thing preventing GHC from acceptingcapi?glguy@kbin.social · 1 pts · 3y
I suspect that comment predates the existence of
capiand is trying to avoid having some other actual calling convention likestdcallbecause the function pointer is actually invoked from some C code in the RTS.capiis a sort of pseudo-calling-convention in that it generates some C code and then calls that stub.Have you tried using a capi defined funptr there to see what happens?