Skip to content

Sharing Rip: A modern CoffeeScript-inspired language with several nice enhancements #5496

@shreeve

Description

@shreeve

Hi CoffeeScript community,

I wanted to share a project that wouldn't exist without CoffeeScript's inspiration. I've been working on Rip, a compiler that takes many ideas from CoffeeScript's elegant syntax and applies them with some different technical choices.

What it is:

  • CoffeeScript-inspired syntax (significant whitespace, implicit returns, etc.)
  • Compiles to ES2022 JavaScript
  • Zero dependencies (includes its own parser generator)
  • Self-hosting (compiles itself)

Some technical differences:

  • Uses S-expressions as IR instead of AST nodes
  • Pure ES6 with modules and classes and supports most traditional CoffeeScript and modern ES2022 syntax
  • Dual optional syntax (both ? soak and ?. ES6 chaining)
  • Built-in Bun loader for direct .rip file execution

Why share this here:
CoffeeScript proved that JavaScript could have a better syntax, and that vision directly inspired this work. I thought some folks here might find the technical approach interesting, especially the s-expression IR and the self-hosting with zero dependencies.

Repository: https://github.com/shreeve/rip-lang

This isn't meant as a replacement or criticism of CoffeeScript—it's a different experiment for those who might be curious about alternative approaches to similar goals.

Thanks for all the inspiration over the years!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions