Gojju - The Essence of Five Languages

1 min read Original article ↗
Gojju Logo

The essence of Python • Ruby • Haskell • Perl • JavaScript

pip install gojju

Features at a Glance

🐍 Python

  • List comprehensions: [x*x for x in range(10)]
  • Slicing: list[1:3]

💎 Ruby

  • String interpolation: "Hello #{name}!"
  • Postfix: print "yes" if happy

λ Haskell

  • Pipe: x |> double |> sum
  • Lambda: \x -> x * 2

🐪 Perl

  • unless and until
  • Regex: /pattern/flags

⚡ JavaScript

  • Arrow: (x) => x * 2
  • Spread: [...a, ...b]

🧠 Functional

  • compose, curry, pipe
  • Maybe/Either monads

Interactive Playground

Welcome to Gojju 🌶️ Type code below or click examples to try them.

gojju>