Thanks! It’s good to know that language updates are finally coming. Are you updating them one at a time or everything at once? How is testing performed to confirm that the updated compilers are working properly? I offered my help with testing your D language compiler earlier and this offer still stands.
What do you think about having more than 1 compiler for some programming languages? Currently at least C++ and Python have multiple implementations on CodeChef and such redundancy is a very good thing. All compilers have bugs. Bugs are very uncommon and not easy to reproduce during contests, but they do exist. Let’s look at GCC bug #100740 as an example:
C++ code (reproducible with GCC 9 and newer, Clang works fine)
#include <iostream>
unsigned a, b;
int main() {
unsigned c = 0;
for (a = 0; a < 2; a++)
for (b = 0; b < 2; b++)
if (++c < a) {
std::cout << "Compiler bug! See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100740\n";
return 1;
}
std::cout << "No problems detected\n";
return 0;
}
D code (reproducible with GDC 9 and newer, LDC works fine)
import std.stdio;
uint a, b;
int main() {
uint c = 0;
for (a = 0; a < 2; a++)
for (b = 0; b < 2; b++)
if (++c < a) {
writeln("Compiler bug! See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100740");
return 1;
}
writeln("No problems detected");
return 0;
}
CodeChef still offers both GCC 6.3 and GCC 9.1 for C++, so anyone affected by that particular bug can just switch to an older version of GCC and have their solution accepted. AtCoder platform additionally offers Clang compiler for C++ and this is even better, because the probability of triggering compiler bugs in both GCC and Clang by the same code simultaneously is very low. Having LDC compiler support would be a great backup option for D language too.
Hello.
I wanted to know if the compilers (specifically rustc) is being updated. When can we expect it to be updated? So many features are missing in the old compilers, there are so many errors reported by 1.14 (current version of rustc at codechef) that run properly without any error on the latest 1.59.0 compiler version.
Please update the compilers.
Thank you.
A yet another reminder that we are still waiting for compiler upgrades and this is a big deal. Could you please at least tell us if you are planning to update them one at a time or everything at once? Rust is a very interesting programming language.
Hey @EgorK - apologies for the delay at our end on this. Its will take about 3 - 5 days of work at our end to check some of our internal components. Once we update that → it will be about 7 - 10 days of work at SPOJs end. Something has kept coming in the way of picking this up. Committing to get this in place by June end. As soon as our component is done and we’ve requested SPOJ for changes - we’ll update you here.