GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - exbotanical/IDL: A Lisp that leverages continuation-passing style and tail call optimization to dramatically enhance JavaScript runtime performance. interpreter, runtime, and transpiler

BranchesTags
Open more actions menu

Latest commit

 

History

22 Commits
22 Commits

Folders and files

NameName
Last commit message
Last commit date
constants
constants
 
 
examples
examples
 
 
packages
packages
 
 
.eslintrc.yml
.eslintrc.yml
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
test.idl
test.idl
 
 

Repository files navigation

IDL - A Lisp-like syntax for functional programming

Table of Contents

  • Introduction
    • Packages
    • Features
  • Documentation
    • Demos

Introduction

Packages

  • Recursive Descent Parser
    • Input Stream Processor
    • Lexer / Tokenizer
    • Core Parser
  • Interpreter
    • CPS Evaluator
    • Constructs and Primitives
  • Compiler Set
    • CPS Transformer
    • JavaScript Transpiler
  • CPS Optimizer
  • Node.js Runtime

Features

  • Stack monitoring and garbage collection
  • CPS / Continuations (specifically, IDL control flow is recursively bound by continuation-passing)
  • Recursive Descent Parser
  • Concurrent Lexer for rendering ASTs
  • Compiles to JavaScript (cross-maps IDL ASTs into JavaScript syntax)

Documentation

Docs coming soon...

Abstractions

IDL Code Samples

IDL code samples have been relocated to this directory

Compiling to JavaScript (and optimizing)

IDL:

(resolver(){
    let (a = 2) {
      let (a = 3) {
        print(a);
      };
      print(a);
    };
  })();

JavaScript (pre-optimization):

(function ε_CC(ε_K1) { 
    STACK_GUARD(arguments, ε_CC); 
    (function ε_CC(ε_K2, a) { 
        STACK_GUARD(arguments, ε_CC); 
        (function ε_CC(ε_K3, a) { 
            STACK_GUARD(arguments, ε_CC); 
            print((function ε_CC(ε_R4) { 
                STACK_GUARD(arguments, ε_CC); 
                ε_K3(ε_R4) 
            }), a) 
        }) 
        ((function ε_CC(ε_R5) { 
            STACK_GUARD(arguments, ε_CC); 
            print((function ε_CC(ε_R6) { 
                STACK_GUARD(arguments, ε_CC); 
                ε_K2(ε_R6) 
            }), a) 
        }), 3) 
    })
    ((function ε_CC(ε_R7) { 
        STACK_GUARD(arguments, ε_CC); 
        ε_K1(ε_R7) 
    }), 2) 
})
((function ε_CC(ε_R8) {
     STACK_GUARD(arguments, ε_CC); 
     ε_R8 
    }))

Post-optimization:

(function (ε_K1) { 
    var a, ε_K3, ε_a$1;
    ((a=2), ((ε_K3 = (function (ε_R5) { 
        print(ε_K1, a) 
    })), ((ε_a$1=3), 
        print((function (ε_R4) { 
            ε_K3(ε_R4) 
        }), ε_a$1)))) })((function (ε_R8) { 
            ε_TOPLEVEL(ε_R8) 
        }));

About

A Lisp that leverages continuation-passing style and tail call optimization to dramatically enhance JavaScript runtime performance. interpreter, runtime, and transpiler

Topics

continuation-passing-stylecustom-programming-languagefunctional-programminglisp-dialectlisp-variantreducer-patternscheme-dialecttransduction

Resources

Readme
Activity

Stars

4 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.