Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
elide-dev

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
@elide-dev

Elide

putting the java back in javascript

Elide

Python 3.11.x


Elide is like Node or Python. Use it to run things:

> elide ./my-code.{ts,js,py,kts,kt}

You can use Node APIs. You can even mix languages:

// sample.mts// use node apisimport{readFileSync}from"node:fs"// interoperate across languagesimportsamplefrom"./sample.py"// this is typescript - no build step needed first, like deno or bunconstx:number=42;console.log(sample.greeting()+` The answer is${x}`);
# sample.pydefgreeting(name="Elide"):returnf"Hello,{name}!"
> elide ./sample.mtsHello, Elide! The answer is 42

Kotlin as a first-class citizen

Elide can run Kotlin with no prior build step, can build Java code identically tojavac, and can build Kotlin code identically tokotlinc.

elide-projects

  • KotlinX is supported out of the box with no need to install dependencies
  • Build Kotlin to JVM bytecode, run tests, and install from Maven, all without verbose configuration

Pkl as a manifest format

Elide usesApple's Pkl as a dialect for project manifests. This is like Elide's equivalent ofpackage.json orpom.xml. Here's an example:

amends"elide:project.pkl"name ="elide-test-ktjvm"description ="Example project using Elide with Kotlin/JVM."dependencies {maven {packages {// Guava"com.google.guava:guava:33.4.8-jre"    }  }}

This is the manifest used above ☝️ in theKotlin as a first-class citizen sample.

Note

See the full sources for thektjvm samplehere

Read more about Elide'sfeature highlights

Installation

Important

Careful! Elide is in beta.

You can install Elide on Linux (amd64) or macOS (amd64/arm64) by running:

curl -sSL --tlsv1.2 elide.sh| bash -s -

After installation, you can runelide --help orelide info to see more information.

Using Elide via Docker

We provide a container image, hosted on GitHub:

docker run --rm -it ghcr.io/elide-dev/elide

Using Elide from Gradle

We provide an experimentalGradle plugin which can:

  • Acceleratejavac compilations by up to 20x (drop-in!) with identical inputs and outputs
  • Accelerate downloading of Maven dependencies

The plugin documentation explains how it works. By native-image compiling tools likejavac, JIT warmup is skipped, potentially yielding significant performance gains for projects under 10,000 classes.

Installation in Gradle

plugins {  alias(elideRuntime.plugins.elide)}

Using Elide in GitHub Actions

We provide asetup action:

-name:"Setup: Elide"uses:elide-dev/setup-elide@v2with:# any tag from the `elide-dev/releases` repo; omit for latestversion:1.0.0-beta5

Using Elide via GitHub Codespaces

We provide aGitHub Codespace with Elide pre-installed. You can click below to try it out, right from your browser:

Open in GitHub Codespaces

PinnedLoading

  1. elideelidePublic

    fast all-in-one polyruntime

    Kotlin 225 23

  2. setup-elidesetup-elidePublic

    Sets up Elide in a GitHub action

    TypeScript 4 2

  3. gradlegradlePublic

    Experimental Gradle plugin for Elide

    Java 23 2

  4. mavenmavenPublic

    Maven plugin for using Elide

    Kotlin 3

Repositories

Loading
Type
Select type
Language
Select language
Sort
Select order
Showing 10 of 62 repositories

Top languages

Loading…

Most used topics

Loading…


[8]ページ先頭

©2009-2025 Movatter.jp