Class VectorApiTenthIncubatorExamples
java.lang.Object
net.jrodolfo.java_evolution.java25.vector_api.VectorApiTenthIncubatorExamples
Demonstrates the Java 25 Vector API, continued as a tenth incubator by JEP
508.
The repository itself does not compile against incubator modules. Instead,
this example writes a small Java source file, compiles it with
javac --add-modules jdk.incubator.vector --release 25, and runs it
with java --add-modules jdk.incubator.vector. That keeps the main
Maven build stable while still demonstrating the real incubator API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordResult from one child process invocation.static final recordResult from compiling and running the generated incubator-module source. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExplains why this example uses a child process.Explains the Java 25 feature idea.Source used by the child JVM to exercise the Java 25 incubator API.problem()Explains the problem that the Vector API addresses.runVectorWorkflow(Path workspace) Runs a real Java 25 Vector API workflow in a temporary workspace.Defines SIMD in plain English.Explains what this executable example can and cannot prove.
-
Constructor Details
-
VectorApiTenthIncubatorExamples
public VectorApiTenthIncubatorExamples()
-
-
Method Details
-
runVectorWorkflow
public VectorApiTenthIncubatorExamples.VectorWorkflowResult runVectorWorkflow(Path workspace) throws IOException, InterruptedException Runs a real Java 25 Vector API workflow in a temporary workspace.- Parameters:
workspace- temporary directory for generated source and class files- Returns:
- result containing compilation and execution output
- Throws:
IOException- when the source file cannot be writtenInterruptedException- when waiting for a child process is interrupted
-
probeSource
Source used by the child JVM to exercise the Java 25 incubator API.- Returns:
- generated Java source
-
problem
Explains the problem that the Vector API addresses.- Returns:
- a short problem statement
-
java25Idea
-
terminology
-
incubatorBoundary
Explains why this example uses a child process.- Returns:
- the incubator-module boundary
-
testBoundary
Explains what this executable example can and cannot prove.- Returns:
- the test boundary
-