Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GR-60094] Move polyglot demos to archive category. #329

Merged
merged 4 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/functionGraphDemo.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: functionGraphDemo
name: archive/functionGraphDemo
on:
push:
paths:
- 'functionGraphDemo/**'
- 'archive/functionGraphDemo/**'
- '.github/workflows/functionGraphDemo.yml'
pull_request:
paths:
- 'functionGraphDemo/**'
- 'archive/functionGraphDemo/**'
- '.github/workflows/functionGraphDemo.yml'
schedule:
- cron: "0 0 1 * *" # run every month
Expand All @@ -28,7 +28,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run 'functionGraphDemo'
run: |
cd functionGraphDemo
cd archive/functionGraphDemo
npm install
$GRAALVM_HOME/bin/node --version
$GRAALVM_HOME/bin/node --jvm --polyglot server.js &
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/polyglot-chat-app.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: polyglot-chat-app
name: archive/polyglot-chat-app
on:
push:
paths:
- 'polyglot-chat-app/**'
- 'archive/polyglot-chat-app/**'
- '.github/workflows/polyglot-chat-app.yml'
pull_request:
paths:
- 'polyglot-chat-app/**'
- 'archive/polyglot-chat-app/**'
- '.github/workflows/polyglot-chat-app.yml'
schedule:
- cron: "0 0 1 * *" # run every month
Expand All @@ -28,7 +28,7 @@ jobs:
cache: 'gradle'
- name: Run 'polyglot-chat-app'
run: |
cd polyglot-chat-app
cd archive/polyglot-chat-app
./gradlew build # pre-build application
./gradlew run &
sleep 10
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/polyglot-debug.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: polyglot-debug
name: archive/polyglot-debug
on:
push:
paths:
- 'polyglot-debug/**'
- 'archive/polyglot-debug/**'
- '.github/workflows/polyglot-debug.yml'
pull_request:
paths:
- 'polyglot-debug/**'
- 'archive/polyglot-debug/**'
- '.github/workflows/polyglot-debug.yml'
schedule:
- cron: "0 0 1 * *" # run every month
Expand All @@ -28,6 +28,6 @@ jobs:
cache: 'maven'
- name: Run 'polyglot-debug'
run: |
cd polyglot-debug
cd archive/polyglot-debug
mvn --no-transfer-progress clean package
mvn exec:exec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This is a multi-language application mixing JavaScript, Java, and R to demonstra
git clone https://github.com/graalvm/graalvm-demos
```
```bash
cd graalvm-demos/functionGraphDemo
cd graalvm-demos/archive/functionGraphDemo
```

3. Build the application by running `npm install`.
Expand All @@ -48,4 +48,4 @@ Restart the application to see what else can you do with the mix of JavaScript,

## Debugging Polyglot Applications

GraalVM supports [debugging polyglot applications](https://www.graalvm.org/22.3/tools/chrome-debugger/) too, add the `--inspect` parameter to the command line, open the URL the application prints at the startup in Chrome browser. You can debug, set breakpoints, evaluate expressions in this app in the JavaScript and R code alike.
GraalVM supports [debugging polyglot applications](https://www.graalvm.org/22.3/tools/chrome-debugger/) too, add the `--inspect` parameter to the command line, open the URL the application prints at the startup in Chrome browser. You can debug, set breakpoints, evaluate expressions in this app in the JavaScript and R code alike.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ The Python code has to be shipped in a _resources_ directory that is kept next t

### Learn More

Learn more about GraalVM polyglot capabilities [here](https://www.graalvm.org/latest/reference-manual/polyglot-programming/).
Learn more about GraalVM polyglot capabilities [here](https://www.graalvm.org/reference-manual/embed-languages/).
File renamed without changes.
File renamed without changes.
File renamed without changes.
33 changes: 33 additions & 0 deletions archive/polyglot-debug/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Debugging a Java with JavaScript Embedding Application

GraalVM supports debugging of [polyglot applications](https://www.graalvm.org/latest/reference-manual/polyglot-programming/).
You can attach compatible debuggers such as Chrome Developer Tools to a process running on GraalVM.
To debug guest language applications, pass the `--inspect` option to the command line launcher.

## Prerequisites

Download and install the GraalVM JDK using [SDKMAN!](https://sdkman.io/).
```bash
sdk install java 21.0.1-graal
```
For other installation options, visit the [Downloads page](https://www.graalvm.org/downloads/).

## Build and Run the Application

2. Clone the repository and navigate into the `polyglot-debug` directory:
```bash
git clone https://github.com/graalvm/graalvm-demos
```
```bash
cd graalvm-demos/archive/polyglot-debug
```
3. Build the application using Maven:
```bash
mvn clean package
```
4. Run this application with the following command:
```bash
mvn exec:exec
```

Learn more about [debugging with Chrome Debugger](https://www.graalvm.org/latest/tools/chrome-debugger/) at the website.
File renamed without changes.
2 changes: 0 additions & 2 deletions polyglot-chat-app/src/main/resources/venv/pyvenv.cfg

This file was deleted.

43 changes: 0 additions & 43 deletions polyglot-debug/README.MD

This file was deleted.

Loading