Programming-Language-Benchmarks icon indicating copy to clipboard operation
Programming-Language-Benchmarks copied to clipboard

D lang ?

Open igouy opened this issue 4 years ago • 12 comments

https://forum.dlang.org/post/[email protected]

igouy avatar Jul 21 '21 15:07 igouy

@igouy thx for bringing this up. Will do when I get a chance or if someone would offer help.

hanabi1224 avatar Jul 21 '21 19:07 hanabi1224

@igouy I learnt in the post that D was once included in ur site, is source code of D solutions still available somewhere? May I use them to jump start? Btw, I've added D workflow here and implemented a coro-prime-sieve problem

hanabi1224 avatar Jul 22 '21 09:07 hanabi1224

Any dlang programs will be in these folders:

https://salsa.debian.org/benchmarksgame-team/archive-alioth-benchmarksgame/-/tree/master/contributed-source-code/shootout

They are old. I don't know if they still work, but of course you can use them.

igouy avatar Jul 22 '21 16:07 igouy

Also

https://qznc.github.io/d-shootout/

Don't know if they are different.

igouy avatar Jul 22 '21 18:07 igouy

Thanks!

hanabi1224 avatar Jul 22 '21 20:07 hanabi1224

Unfortunately, those code from 3+ years ago does not compile anymore : ) Looks like D lang has changed a lot.

hanabi1224 avatar Jul 26 '21 09:07 hanabi1224

Unfortunately, those code from 3+ years ago does not compile anymore : ) Looks like D lang has changed a lot.

Sorry.

igouy avatar Jul 26 '21 17:07 igouy

Hi

https://github.com/hanabi1224/Programming-Language-Benchmarks

"This is inspired by The Computer Language Benchmarks Game, thanks to the creator."

Some people always read "thanks to the creator" to mean "thanks to God".

Perhaps better to say "thanks to the curator".

There's a new version of Chapel, maybe that would be a good addition to your project?

https://salsa.debian.org/benchmarksgame-team/benchmarksgame/-/issues/467

best wishes, Isaac

igouy avatar Sep 26 '21 20:09 igouy

Hi Isaac, thx for ur suggestions, my answers are inline

Perhaps better to say "thanks to the curator"

Fixed, thx for pointing out the ambiguity.

new version of Chapel

Sure, I've just added chapel and bootstrapped it with 3 code files directly borrowed from ur site, plz let me know if there's any concern.

hanabi1224 avatar Sep 26 '21 22:09 hanabi1224

Some new D realizations under preparation. I just would like to ask @hanabi1224 : consider to change DMD compiler with GDC. DMD is reference compiler and could not provide faster machine code as LDC and GDC. And comparison of LLVM (LDC) and GCC (GDC) worlds would be much more interesting in my opinion.

cyrusmsk avatar Sep 17 '22 14:09 cyrusmsk

I would second @cyrusmsk

DMD is not a real/production compiler IMO, it's the language's reference compiler. It's useful for development because it compiles very fast but you'd not want to ship a DMD binary ideally.

Would be more interesting/useful to compare GDC and LDC (GCC + LLVM implementations)

GavinRay97 avatar Oct 08 '22 18:10 GavinRay97

https://forum.dlang.org/post/[email protected]

Btw the issue could be closed now - all problems have some D solution

cyrusmsk avatar Mar 18 '23 20:03 cyrusmsk