Won a programming contest using D - Thank you for the tool!
Ivan Kazmenko via Digitalmars-d
digitalmars-d at puremagic.com
Mon Aug 18 03:11:25 PDT 2014
On Monday, 18 August 2014 at 07:10:02 UTC, bearophile wrote:
> Ivan Kazmenko:
>
>> My contest program, now on GitHub:
>> https://github.com/GassaFM/alphabet-city/
>
>>dmd bug: wrong file and line for array bounds check<
>
> Did you report the bugs?
>
Yeah, that one got reduced to
https://issues.dlang.org/show_bug.cgi?id=13229 .
Anyway, I got only a couple of bugs I could blame the compiler
for, and some of that couple disappeared after upgrading to a
more recent version.
If I had to remember a language-related problem, the biggest one
for me was that my program usually hit an out-of-memory error
very soon. It worked fine when compiled with 64-bit DMD but
failed to collect the garbage in time with 32-bit DMD and with
recent LDC. GDC was a minor version behind, so it didn't compile
at all from a certain point because of a compiler's stack
overflow - same as with e.g. DMD 2.064 or older. But again, I
switched from 32-bit to 64-bit DMD, and the problem vanished,
with a little speedup as a nice bonus.
It is not the first time I had an unexpected out-of-memory
problem, but it occurs only when my programs get complex, so (1)
in each case, I was not sure I can blame the garbage collector,
and (2) this is usually hard to reduce. I'll probably have
another try at reduction (but I won't have time for that in the
next two weeks).
Ivan Kazmenko.
More information about the Digitalmars-d
mailing list