kleidukos, (edited )

Why must FinalizerPtr take a foreign function that uses the ccall calling convention? Is there a concrete thing preventing GHC from accepting capi?

glguy,

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?

kleidukos,

Thank you, that's indeed a reasonable suspicion. I haven't tried because this is for a PR that's been submitted to me and I actually have no idea how this could blow up in my face later (or even worse, not blow up an silently corrupt stuff)

kleidukos,

I have my answer: cAPI is fine: https://gitlab.haskell.org/ghc/ghc/-/issues/23599

someacnt,

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,
@jaror@kbin.social avatar

Strange. It does see https://sopuli.xyz/c/[email protected], but not https://sopuli.xyz/c/[email protected]

Maybe you can try reaching out to the admins as that error page suggests.

jaror,
@jaror@kbin.social avatar
someacnt,

I see, I will report soon. Could not find time to do so now, sadly

demesisx,
@demesisx@infosec.pub avatar

Sounds like that instance isn’t federated with kbin.social. I can see it just fine over here in infosec.pub

tfcmad,

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, (edited )
@jaror@kbin.social avatar

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:

  • ShellCheck, which checks shell scripts for potential problems
  • Pandoc, which converts documents between different formats
  • Postgrest, which serves a REST API from postgres databases

There's also the State of the Haskell Ecosystem page which rates the level of maturity of different use-cases and programming needs.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • Socialism
  • KbinCafe
  • TheResearchGuardian
  • Ask_kbincafe
  • oklahoma
  • feritale
  • SuperSentai
  • KamenRider
  • All magazines