News for hackers. Stuff that matters.
Re:C Macro Magic by fooker on Thursday February 28, 2019 @02:25AM (#19269632)
Generating performant code from Scheme, Forth or SML is far more difficult compared to the C family of languages.
Re:C Macro Magic by AnaniasAnanas on Thursday February 28, 2019 @03:09AM (#19269822)
Are you sure about that? Forth is famous for being extremely fast. As for SML, assuming a variant with manual memory management (which I do not consider to add complexity in C), I can't think of any reason on why it would be more difficult to optimise.
Re:C Macro Magic by boomlinde on Thursday February 28, 2019 @07:33AM (#19270887)
> Forth is famous for being extremely fast.

Have you seen that claim backed up by any evidence produced within the last 25 years?

Re:C Macro Magic by fooker on Friday March 01, 2019 @09:33AM (#19280908)
> I can't think of any reason on why it would be more difficult to optimise.

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

The main reason a language like SML or Haskell is difficult to optimize is because it is incredibly difficult to canonicalize for the purpose of making peephole optimizations and abstract interpretation effective. https://sunfishcode.github.io/blog/2018/10/22/Canonicalizati...