Skip to content

Commit

Permalink
Merge pull request #327 from graalvm/archive-demos-8
Browse files Browse the repository at this point in the history
[GR-60094] Review and move polyglot-javascript-java-r to archive.
  • Loading branch information
olyagpl authored Dec 17, 2024
2 parents e004eb8 + 2a879f9 commit e9372f4
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
name: polyglot-javascript-java-r
name: archive/polyglot-javascript-java-r
on:
push:
paths:
- 'polyglot-javascript-java-r/**'
- '.github/workflows/polyglot-javascript-java-r.yml'
- 'archive/polyglot-javascript-java-r/**'
- '.github/workflows/archive-polyglot-javascript-java-r.yml'
pull_request:
paths:
- 'polyglot-javascript-java-r/**'
- '.github/workflows/polyglot-javascript-java-r.yml'
schedule:
- cron: "0 0 1 * *" # run every month
- 'archive/polyglot-javascript-java-r/**'
- '.github/workflows/archive-polyglot-javascript-java-r.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
run:
name: Run 'polyglot-javascript-java-r'
name: Run 'archive/polyglot-javascript-java-r'
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
Expand All @@ -26,9 +24,9 @@ jobs:
java-version: '17'
components: 'nodejs,R'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run 'polyglot-javascript-java-r'
- name: Run 'archive/polyglot-javascript-java-r'
run: |
cd polyglot-javascript-java-r
cd archive/polyglot-javascript-java-r
npm install
$GRAALVM_HOME/bin/node --jvm --polyglot server.js &
sleep 10
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ cd graalvm-demos
<td align="left" width="30%"><a href="/polyglot-debug/">polyglot-debug</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/polyglot-debug.yml"><img alt="polyglot-debug" src="https://github.com/graalvm/graalvm-demos/actions/workflows/polyglot-debug.yml/badge.svg" /></a></td>
<td align="left" width="70%">Demonstrates how to debug a polyglot Java and JavaScript application using GraalVM Tools for Java in VS Code <br><strong>Technologies: </strong>Java, JavaScript, Maven, GraalVM Extension Pack</td>
</tr>
<tr>
<td align="left" width="30%"><a href="/polyglot-javascript-java-r/">polyglot-javascript-java-r</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/polyglot-javascript-java-r.yml"><img alt="polyglot-javascript-java-r" src="https://github.com/graalvm/graalvm-demos/actions/workflows/polyglot-javascript-java-r.yml/badge.svg" /></a></td>
<td align="left" width="70%">Demonstrates the polyglot capabilities of GraalVM and how to run a JavaScript-Java-R application <br><strong>Technologies: </strong>JavaScript, Node.js, Java, R <br><strong>Reference: </strong><a href="https://medium.com/graalvm/graalvm-ten-things-12d9111f307d#656f">Top 10 Things To Do With GraalVM</a></td>
</tr>
<tr>
<td align="left" width="30%"><a href="/functionGraphDemo/">functionGraphDemo</a><br><a href="https://github.com/graalvm/graalvm-demos/actions/workflows/functionGraphDemo.yml"><img alt="functionGraphDemo" src="https://github.com/graalvm/graalvm-demos/actions/workflows/functionGraphDemo.yml/badge.svg" /></a></td>
<td align="left" width="70%">Demonstrates how to run a polyglot JavaScript-Java-R application on the GraalVM Node.js runtime <br><strong>Technologies: </strong>JavaScript, Node.js, Java, R</td>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Polyglot JavaScript Application mixing Java and R
# Polyglot JavaScript Application Mixing Java and R

This is a multi-language JavaScript application mixing Java and R to demonstrate GraalVM's polyglot capabilities.
This is a multi-language JavaScript application mixing Java and R to demonstrate GraalVM's polyglot capabilities.

### Prerequisites

Expand Down Expand Up @@ -52,3 +52,5 @@ Open the URL the application prints at the startup in Chrome browser, and start

This is a sample application that for brevity contains reasonably large snippets of code inside the strings.
This is not the best approach for structuring polyglot apps, but the easiest to show in a single file.

This demo application is referenced from the blog post [Top 10 Things To Do With GraalVM](https://medium.com/graalvm/graalvm-ten-things-12d9111f307d#656f).
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -ex

npm install
npm install
File renamed without changes.
5 changes: 5 additions & 0 deletions archive/polyglot-javascript-java-r/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

set -ex

$JAVA_HOME/bin/node --jvm --polyglot server.js
File renamed without changes.
5 changes: 0 additions & 5 deletions polyglot-javascript-java-r/run.sh

This file was deleted.

0 comments on commit e9372f4

Please sign in to comment.