Re:Haskell in Production: Standard Chartered
by wathef on Wednesday May 03, 2023 @08:41AM
(#35801689)
I may be wrong, but if I remember correctly Standard Charter uses their own “dialect” called Mu[1].
1 - https://icfp21.sigplan.org/details/hiw-2021-papers/14/Haskel...
Re:Haskell in Production: Standard Chartered
by grumpyprole on Wednesday May 03, 2023 @08:41AM
(#35801696)
He probably means that GHC will parse and type check faster. Switching the front-end doesn't sound like it will circumvent the whole program nature of their compilation. But I'm just guessing.
Re:Haskell in Production: Standard Chartered
by Vosporos on Wednesday May 03, 2023 @08:39AM
(#35801667)
From what I understand: GHC takes care of the parsing of the source file, error reporting, etc. Then the AST (or an intermediate representation) is passed to the of the Mu compiler, which performs whole-program optimisations.
Re:Haskell in Production: Standard Chartered
by nequo on Wednesday May 03, 2023 @08:57AM
(#35801844)
Gergo Erdi gave a talk on the GHC efforts of Standard Chartered last year:
Re:Haskell in Production: Standard Chartered
by misja111 on Wednesday May 03, 2023 @08:53AM
(#35801807)
I'm also interested. Just guessing, but I guess it means that while they use their own (slow compiling) 'Mu' dialect for most applications, they have switched to using 'standard' GHC for their front-end apps.
Re:Haskell in Production: Standard Chartered
by tuukkah on Wednesday May 03, 2023 @09:48AM
(#35802359)
Frontend here refers to the first stage of the three-stage structure of compilers, ie. the functionalities such as parsing and type checking that come before the optimization and target code generation phases: https://en.wikipedia.org/wiki/Compiler#Three-stage_compiler_...
Re:Haskell in Production: Standard Chartered
by misja111 on Wednesday May 03, 2023 @11:05AM
(#35803265)
Didn't know that, thanks!
But then I'm wondering how they can do parsing and type checking with GHC when they are using their own dialect, "Mu". How come GHC can parse that?
Re:Haskell in Production: Standard Chartered
by nequo on Wednesday May 03, 2023 @11:16AM
(#35803403)
The differences between Mu and Haskell are not that large. They use GHC as a library in their front end. Gergo Erdi gave a talk on it last year:
Re:Haskell in Production: Standard Chartered
by tuukkah on Wednesday May 03, 2023 @11:22AM
(#35803482)
GHC has a system for language extensions so they have developed a few proprietary ones for Mu. For the standard ones, see https://downloads.haskell.org/ghc/latest/docs/users_guide/ex...
What does he mean by this?