Skip to content

Instantly share code, notes, and snippets.

View olpaw's full-sized avatar

Paul Woegerer olpaw

  • Oracle Labs
  • Vienna, Austria
View GitHub Profile

Module system implementation - state and implications

Currently supported module-related native-image options:

$ native-image --help

GraalVM native-image building tool

This tool can be used to generate an image that contains ahead-of-time compiled Java code.
@olpaw
olpaw / restricting-native-image-configs-scope.md
Last active November 17, 2021 12:52
Restricting the scope of META-INF/native-image configs
#!/usr/bin/env python3
import argparse
import fileinput
import re
import sys
from pathlib import Path
from urllib.parse import urlparse, urlunparse
parser = argparse.ArgumentParser(description='Make relative links in markup file absolute with given base-url.')
@olpaw
olpaw / markup-test.md
Last active August 7, 2020 09:31
Test C/C++ code block

This is a test of C/C++ code blocks

#include <stdio.h>

int main(int argc, char** argv)
{
  printf("Hello World!\n");
  return 0;
}
<dependency>
<groupId>org.graalvm.sdk</groupId>
<artifactId>org.graalvm.sdk</artifactId>
<version>1.0.0-rc14</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.oracle.substratevm</groupId>
<artifactId>svm</artifactId>
<version>1.0.0-rc14</version>
<scope>provided</scope>
</dependency>
ImageName = netty-plot
Args = --features=com.oracle.svm.nettyplot.PlotterSingletonFeature -H:+SpawnIsolates
@olpaw
olpaw / netty-plot native-image.properties
Created March 15, 2019 12:55
META-INF/native-image/com.oracle.substratevm/netty-plot/native-image.properties
ImageName = netty-plot
Args = --features=com.oracle.svm.nettyplot.PlotterSingletonFeature \
-H:ReflectionConfigurationResources=${.}/reflection-config.json \
--delay-class-initialization-to-runtime=io.netty.handler.codec.http.HttpObjectEncoder \
-H:+SpawnIsolates
<plugin>
<groupId>com.oracle.substratevm</groupId>
<artifactId>native-image-maven-plugin</artifactId>
<version>1.0.0-rc15</version>
...
</plugin>
<configuration>
<mainClass>com.acme.MeepMeep</mainClass>
<buildArgs>-ea</buildArgs>
</configuration>