You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<td align="left" width="70%">An HTTP web service that demonstrates how multiple JavaScript contexts can be executed in parallel to handle asynchronous operations with Helidon in Java <br><strong>Technologies: </strong>Native Image, Helidon, Native Build Tools Maven plugin <br><strong>Reference: </strong><a href="https://medium.com/graalvm/asynchronous-polyglot-programming-in-graalvm-javascript-and-java-2c62eb02acf0">Asynchronous Polyglot Programming in GraalVM Using Helidon and JavaScript</a></td>
<td align="left" width="70%">Demonstrates how to build a native executable of the Scala compiler. The resulting binary has no dependencies on the JDK. <br><strong>Technologies: </strong>Scala 2.12.x, Native Image <br><strong>Reference: </strong><a href="https://medium.com/graalvm/compiling-scala-faster-with-graalvm-86c5c0857fa3">Compiling Scala Faster with GraalVM</a></td>
Copy file name to clipboardExpand all lines: archive/js-java-async-helidon/README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,45 +2,44 @@
2
2
3
3
This is a polyglot Helidon HTTP web service that demonstrates how multiple JavaScript `Context`s can be executed in parallel to handle asynchronous operations with [Helidon](https://helidon.io/), mixing JavaScript `Promise` and Java `CompletableFuture` objects.
4
4
5
-
## Prerequisites
6
-
*[GraalVM](http://graalvm.org)
7
-
8
5
## Preparation
9
6
10
7
1. Download and install the latest GraalVM JDK using [SDKMAN!](https://sdkman.io/).
11
8
```bash
12
-
sdk install java 21.0.1-graal
9
+
sdk install java 21.0.5-graal
13
10
```
14
11
15
12
2. Download or clone the repository and navigate into the `js-java-async-helidon` directory:
This is a sample application that, for brevity, contains reasonably large snippets of code inside the strings.
58
57
This is not the best approach forstructuring polyglot apps, but the easiest to showin a compact way.
58
+
59
+
Read more about asynchronous programming across multiple languages in this post [Asynchronous polyglot programming with Java and JavaScript on GraalVM](https://medium.com/graalvm/asynchronous-polyglot-programming-in-graalvm-javascript-and-java-2c62eb02acf0).
0 commit comments