Skip to content

About

A domain-specific language for schema-driven data processing, with ahead-of-time compilation to type-optimized bytecode. Write once, run against any conforming dataset.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

Elise: Bytecode-compiled DSL for typed data transformation

XERJ Corpus Hub contributor

/eˈliːs/ → pronounced like “eh-LEES”

Grammar Rules, Specification, Todos

Overview

A domain-specific language for schema-driven data processing, with ahead-of-time compilation to type-optimized bytecode. Write once, run against any conforming dataset.

The main idea is simple: if you know the types of your dataset, you can describe them in a schema, and Elise uses that schema to produce optimized bytecode. These optimizations are possible because the compiler knows all the types at compile time. You can then use that bytecode on any other dataset, as long as it matches the original schema that was used to generate the bytecode.

File Types

NOTE: Only .csv data files are supported for now.

Extension Purpose
.eli Source code
.elt Schema / type definitions for input data
.csv Input data file
.elb Generated file with compiled bytecode

Execution Modes

1. Safe Direct Execution

elise --mode=run --source-code=sample.eli --data=data.csv --data-schema=data.elt
  • Compiles in-memory (no .elb output)

  • Performs full runtime validation of input data against schema

  • Executes immediately

2. Unsafe Execution

Step 1 — Build an executable

elise --mode=build --source-code=sample.eli --data-schema=data.elt --output=program.elb

Step 2 — Execute

elise --mode=exec --executable=program.elb --data=data.csv
  • Requires precompiled .elb

  • Data must comply with schema that was used for building executable

  • Skips runtime validation

  • Executes fastest possible path

Use case: trusted, prevalidated data

3. Validation-Only Step

elise --mode=validate --data=data.csv --data-schema=data.elt
  • Full scan of data to ensure strict schema compliance

  • Can be used before unsafe execution

About

A domain-specific language for schema-driven data processing, with ahead-of-time compilation to type-optimized bytecode. Write once, run against any conforming dataset.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages