Show HN: Gojju, a Fun Programming Language

  • Posted 6 hours ago by init0
  • 4 points
https://hemanth.github.io/gojju/
Hey HN! I built Gojju, a programming language that cherry-picks my favorite features from 5 languages:

- Python: List comprehensions, slicing

- Ruby: #{interpolation}, postfix if, blocks

- Haskell: |> pipe operator, lambdas \x -> x+1, Maybe/Either

- Perl: unless/until, regex literals

- JavaScript: Arrow functions =>, spread ...

Example:

  [1, 2, 3, 4, 5]
    |> filter(\x -> x % 2 == 0)
    |> map(\x -> x * 2)
    |> sum
Install: `pip install gojju`

The name "Gojju" (ಗೊಜ್ಜು) means "essence" or "secret ingredient" in Kannada.

Would love feedback on the syntax choices!

0 comments