From 2514889b4a1dacc4d73f9a2c20c1a377e2b4c950 Mon Sep 17 00:00:00 2001 From: chaitanyawaikar1993 Date: Mon, 19 Apr 2021 21:24:21 +0200 Subject: [PATCH 1/3] Add Graal Native Image description in JDK compatibility section. --- _overviews/jdk-compatibility/overview.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_overviews/jdk-compatibility/overview.md b/_overviews/jdk-compatibility/overview.md index 3c2bc2376e..17978b9d06 100644 --- a/_overviews/jdk-compatibility/overview.md +++ b/_overviews/jdk-compatibility/overview.md @@ -22,7 +22,7 @@ Sometimes new JVM and JDK (Java Development Kit) versions require us to update S Even when a version combination isn't listed as supported, most features may still work. (But Scala 2.12+ definitely doesn't work at all on JDK 6 or 7.) -In general, Scala works on JDK 11+, including GraalVM, but it probably won't take special advantage of features that were added after JDK 8. See [below](#jdk-11-compatibility-notes). +In general, Scala works on JDK 11+, including [GraalVM](https://www.graalvm.org/docs/reference-manual/scala/), but it probably won't take special advantage of features that were added after JDK 8. See [below](#jdk-11-compatibility-notes). Lightbend offers [commercial support](https://www.lightbend.com/lightbend-platform-subscription) for Scala. The linked page includes contact information for inquiring about supported and recommended versions. @@ -32,6 +32,8 @@ We generally recommend JDK 8 or 11 for *compiling* Scala code. Since the JVM ten If you compile on JDK 11+ but have users on JDK 8, additional care is needed to avoid using APIs and features that don't exist in 8. Therefore, compiling on 8 may be the safer choice. Some Scala developers use JDK 11+ for their daily work but do release builds on JDK 8. +Additionally, you can also run your scala application on [GraalVM](https://www.graalvm.org/docs/reference-manual/scala/) which is a JVM. GraalVM performs well on the Scala benchmarks, and it benefits from GraalVM runtime and runs faster too. + ## Long Term Support (LTS) versions After Java 8, Oracle introduced the concept of LTS versions of the JDK. These versions will remain supported (by Oracle, and likely by the rest of the ecosystem, including Scala) for longer than the versions in between. See . @@ -48,7 +50,7 @@ In almost every case, you're free to use the JDK and JVM of your choice. JDK 8 users typically use the Oracle JDK or some flavor of OpenJDK. -Most JDK 11+ users are using either OpenJDK or GraalVM. +Most JDK 11+ users are using either OpenJDK or [GraalVM](https://www.graalvm.org/docs/reference-manual/scala/) which can run in the context of OpenJDK. Developers can take advantage of the [sbt-native-image](https://github.com/scalameta/sbt-native-image) which takes advantage of GraalVM under the hood. OpenJDK comes in various flavors, offered by different providers. We build and test Scala using [AdoptOpenJDK](https://adoptopenjdk.net) in particular, but the differences are unlikely to matter to most users. From 3e7c0c8c3fd4a009ef71cd40d6e9ee4182e9cb68 Mon Sep 17 00:00:00 2001 From: chaitanyawaikar1993 Date: Mon, 19 Apr 2021 21:30:02 +0200 Subject: [PATCH 2/3] Modify Graal Native Image description in JDK compatibility section. --- _overviews/jdk-compatibility/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/jdk-compatibility/overview.md b/_overviews/jdk-compatibility/overview.md index 17978b9d06..64556958b8 100644 --- a/_overviews/jdk-compatibility/overview.md +++ b/_overviews/jdk-compatibility/overview.md @@ -50,7 +50,7 @@ In almost every case, you're free to use the JDK and JVM of your choice. JDK 8 users typically use the Oracle JDK or some flavor of OpenJDK. -Most JDK 11+ users are using either OpenJDK or [GraalVM](https://www.graalvm.org/docs/reference-manual/scala/) which can run in the context of OpenJDK. Developers can take advantage of the [sbt-native-image](https://github.com/scalameta/sbt-native-image) which takes advantage of GraalVM under the hood. +Most JDK 11+ users are using either OpenJDK or [GraalVM](https://www.graalvm.org/docs/reference-manual/scala/) which runs in the context of OpenJDK. Developers can use [sbt-native-image](https://github.com/scalameta/sbt-native-image) which uses GraalVM under the hood. OpenJDK comes in various flavors, offered by different providers. We build and test Scala using [AdoptOpenJDK](https://adoptopenjdk.net) in particular, but the differences are unlikely to matter to most users. From 24853855477ed25371f7b927b4ae96a8718da33a Mon Sep 17 00:00:00 2001 From: Chaitanya Waikar <33855574+chaitanyawaikar@users.noreply.github.com> Date: Wed, 19 May 2021 11:53:07 +0200 Subject: [PATCH 3/3] Remove the line related to GraalVM Remove the line related to GraalVM which causes ambiguity "Developers can use sbt-native-image which uses GraalVM under the hood." --- _overviews/jdk-compatibility/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_overviews/jdk-compatibility/overview.md b/_overviews/jdk-compatibility/overview.md index 64556958b8..69a8c49e98 100644 --- a/_overviews/jdk-compatibility/overview.md +++ b/_overviews/jdk-compatibility/overview.md @@ -50,7 +50,7 @@ In almost every case, you're free to use the JDK and JVM of your choice. JDK 8 users typically use the Oracle JDK or some flavor of OpenJDK. -Most JDK 11+ users are using either OpenJDK or [GraalVM](https://www.graalvm.org/docs/reference-manual/scala/) which runs in the context of OpenJDK. Developers can use [sbt-native-image](https://github.com/scalameta/sbt-native-image) which uses GraalVM under the hood. +Most JDK 11+ users are using either OpenJDK or [GraalVM](https://www.graalvm.org/docs/reference-manual/scala/) which runs in the context of OpenJDK. OpenJDK comes in various flavors, offered by different providers. We build and test Scala using [AdoptOpenJDK](https://adoptopenjdk.net) in particular, but the differences are unlikely to matter to most users.