Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
static ByteBuffer plotAsSVGInNewIsolate(String function, double xmin, double xmax) {
/* Create a new isolate for the function evaluation and rendering. */
IsolateThread renderingContext = Isolates.createIsolate(CreateIsolateParameters.getDefault());
/* Render the function in the new isolate. */
/* Tear down the isolate, freeing all the temporary objects. */
return result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment