Matthew Fluet

Results 70 comments of Matthew Fluet

Related to https://github.com/SMLFamily/BasisLibrary/wiki/2016-001-Add-popCount-to-WORD-signature.

It seems that it does so purposefully; the code for `Real.toString` (which uses the `GEN 12` adaptive notation) is at: https://github.com/MLton/mlton/blob/master/basis-library/real/real.sml#L561 The determination of the sign is via `x <...

Adding a new codegen to MLton is a non-trivial task, especially a native one. We currently have only 4 codegens: C, LLVM, x86, and amd64. The amd64 codegen is mostly...

> well, I was planning to make an SML HLLCA, so that's why I asked. Hmm... that's a somewhat different task. And, I'm not sure that MLton would necessarily be...

> > Hmm... that's a somewhat different task. And, I'm not sure that MLton would necessarily be the best SML compiler for such an experiment. > > could you give...

Closing stale/concluded issue.

The former is certainly already fixed: https://github.com/MLton/mlton/commit/3edda85300cd69d894b4dc651278a47007fdad54 I do not observe an error with a C codegen self-compile on Fedora 40 (gcc 14); looking at the generated C code, I...

The `Polyvariance` pass will, essentially, eliminate the case dispatch, because there will be a single variant for the function argument to the duplicated function. We don't try to "force" the...