Languages update

And how do i avoid ruining my py3 install when updating nodejs?

Use virtual environments for python.

Very close. Our infrastructure to compile and execute your codes has been developed before Docker was ready. Therefore, we are not using it. We use a combination of overlayfs, ramfs, chroot and cgroups to do something very similar. The big difference is that we don’t have access to that nice system of images and layers provided by Docker… Thus, we have a big “jail” that contains all the tools needed to compile and execute the codes in 25 different languages. We have in our TODO list the migration of our system to docker, but I can’t tell you when.

The playgrounds is more recent and use a different stack based on docker images.

2 Likes

Ouch. It’s sad :frowning:

Java 12 is already available, could you…? please ?

We have updated the languages, feel free to report here any weird issue that could be related.

  • Bash : GNU Bash 4.4.23 => GNU Bash 5.0.2
  • C : gcc 8.2.0 mode C17 => gcc 8.3.0 mode C17
  • C++ : g++ 8.2.0 mode C++17 => g++ 8.3.0 mode C++17
  • C# : C# 6.0 (Mono 5.12.0, .NET 4.6) => C# 6.0 (Mono 5.18.0, .NET 4.6) (still only partial support of Mono for C# 7.0 and we didn’t manage to migrate to .Net Core)
  • Clojure : 1.9.0 - Oracle JVM 1.11 => 1.10.0 - Oracle JVM 1.11
  • Dart : 1.24.3 => 2.2.0
  • F# : 4.1 - no update available
  • Java : 1.8.0_152 => 11.0.2
  • Javascript : SpiderMonkey 63.0 (ES6) => Node 10.15.3
  • Go : 1.10.3 => 1.12.1
  • Groovy : 2.5.1 - Oracle JVM 1.8 => 2.5.6 - Oracle JVM 1.11 (there could be issues related to the move to JVM 11)
  • Haskell : 8.4.3 - no update (too complex to update to 8.6.3, we’ll look into it later)
  • Kotlin : 1.3.0 - no update (waiting for 1.3.30 which fixes a deployment issue - now compiled with JVM 1.8 target cc @kgautron https://www.codingame.com/forum/t/kotlin-no-longer-compiled-with-jvm-1-8-target/90560/2 )
  • Lua : 5.3.5 - no update available
  • Objective C : Clang 4.0 -> Clang 7.0.1
  • OCaml : 4.07.0 - no update available
  • Pascal : Free Pascal Compiler 3.0.4 - no update available
  • Perl : 5.24.1 => 5.28.1
  • PHP : 7.2.8 => 7.3.3
  • Python 2 : 2.7.15 => 2.7.16
  • Python 3 : 3.6.6 => 3.7.2
  • Ruby : 2.5.1 => 2.6.2
  • Rust : 1.27.2 => 1.33.0 (compiled with release libs all the time, see https://www.codingame.com/forum/t/rust-release-mode-compilation/33552/25)
  • Scala : 2.12.6 => 2.12.8
  • Swift : 4.1.3 => 4.2.3
  • VB.NET : Compiler Visual Basic 2005 (Mono 5.12.0, .NET 4.5) => Compiler Visual Basic 2005 (Mono 5.18.0, .NET 4.6)

:tada: :nerd_face: :muscle:

12 Likes

and again no D :cry:

And no Fortran.

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 …

2 Likes

Need an example that everyone can play and see. In your case the code cannot be tested. Only to believe

I would suggest you to trace JIT and GC and see if they occur in between.
(my previous post on that topic: https://www.codingame.com/forum/t/java-random-timeouts-due-to/79118)

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.

1 Like

what changed in Bash in version 5?

I send you a PM on discord. I can’t really say it without spoiling hard the temperature code golf puzzle :smiley:

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) :slight_smile:
Maybe just point where I should read more carefully :slight_smile:

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 :slight_smile: ).

C# 6.0 (Mono 5.12.0, .NET 4.6) => C# 6.0 (Mono 5.18.0, .NET 4.6)

Why do you compile with 6.0 switch, not with latest switch for LangVersion?

we didn’t manage to migrate to .Net Core

:man_facepalming:

Yes i agree i can’t use a solution that works on my linux server … :frowning:

Hello, is this the place to ask for the installation of packages ?? (I was thinking of the shapely package in python3)