As mentioned on discord i loose multiple ms doing almost nothing in Java. I recognized that i timeout very often on codealamode currently so i added some time measurements.
Following code
System.err.println("aaa " + (System.nanoTime() - begin));
long bla = System.nanoTime();
if (pItem.contains(Part.DISH) || pItem.is(Part.NONE) && usableDish == null) {
System.err.println(System.nanoTime() - bla);
System.err.println("aas " + (System.nanoTime() - begin));
results in output like
aaa 16510543
7109
aas 26192677
that are 10ms lost for nothing
Interesting part is in a game, if it happens it is recreatable
But it does not happen always …
With the bash update (and maybe some other languages), some solution for codegolf puzzles won’t work anymore. For example my bash solution on temperatures codegolf puzzle can’t get 100%.
It’s “unfair” in 2 two ways. First way is that i have to find another solution now. But the worsest is that i have now a “impossible” solution. It could also be the case for the best bash solution in the leaderboard.
May I ask for short explanation what so significant was changed in Bash?
(Bash too far from languages which I really using - I tried to read what was changed and to be honest - didn’t find anything related to solution)
Maybe just point where I should read more carefully
A command used in some bash solution for the temperatures codegolf puzzle works now differently. I can’t really tell you the command without spoiling the solution.
I agree with @Magus and @tarapitha, the fact that the previous solutions cannot be reached anymore is a fairness problem. It probably affects more than bash too, since other languages can make system calls. I see at least two possible solutions:
restore the previous environment (essentially freezing the version of all languages)
recalculate scores by running solutions in the current environment (something like that was done when network access was rightly revoked last year ).
When you gonna make Python upgrade to 3.8, could you also make Numba package available?
That would be a great addon to already available Numpy and Pandas ones.
Can we have an upgrade of Dart? It’s on version 2.2 but the 2.6 is out now.
The difference between the 2 version is big enough to make it appealing to start any puzzle with it…
Java : 11.0.2 => 1.8.0_211, too many performance issues above Java 8. It’s a tricky issue we have already spent quite some time on without results. We’ll try again but we’re not optimistic.
About the move from Mono to .net Core, I know we have been pushing it away for quite some time now. We’ll try to have it before next contest (March 2020).
Can you please update the dependencies you are using for rust in the FAQ. I suspect you have bumped rand at least to 0.7.2 but it is still listed as 0.6.5. My code worked with rand 0.6.5 but gives the below error under 0.7+, I now get this error on CG.
error[E0432]: unresolved import `rand::rngs::SmallRng`
--> /tmp/Answer.rs:1438:9
|
1438 | use rand::rngs::SmallRng;
| ^^^^^^^^^^^^^^^^^^^^ no `SmallRng` in `rngs`