Skip to main content

A programming language combining the best of Python, Ruby, Haskell, Perl, and JavaScript

Project description

Gojju Logo

Gojju 🌶️

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

DocumentationExamplesAPI Reference


Gojju (ಗೊಜ್ಜು), meaning "essence" or "secret ingredient" in Kannada, is a programming language combining the best of Python, Ruby, Haskell, Perl, and JavaScript.

Installation

pip install gojju

Quick Start

# Start REPL
gojju

# Run a file
gojju examples/hello.gj

# Execute inline
gojju -e "[1,2,3] |> map(\x -> x * 2) |> sum"

Features at a Glance

Source What You Get
🐍 Python List comprehensions, slicing
💎 Ruby #{interpolation}, postfix if, blocks
λ Haskell |> pipe, \x -> x+1, Maybe/Either
🐪 Perl unless/until, regex literals
⚡ JS Arrow functions =>, spread ...

Example

# Functional pipeline
[1, 2, 3, 4, 5]
  |> filter(\x -> x % 2 == 0)
  |> map(\x -> x * 2)
  |> sum

# Pattern matching
match value
  0 -> "zero"
  n if n < 0 -> "negative"
  _ -> "positive"
end

# Ruby-style string interpolation
let name = "World"
print "Hello, #{name}!"

Documentation

📖 Full documentation, language guide, and API reference at hemanth.github.io/gojju

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gojju-0.1.1.tar.gz (33.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gojju-0.1.1-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

Details for the file gojju-0.1.1.tar.gz.

File metadata

  • Download URL: gojju-0.1.1.tar.gz
  • Upload date:
  • Size: 33.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for gojju-0.1.1.tar.gz
Algorithm Hash digest
SHA256 61ac1143ab374c5892ded08abae20ff58b40880dc9771ac1c8ec1f49ac746cb0
MD5 86de3dbb6d1ebd444b2bca6ae1a06f3b
BLAKE2b-256 3af72e40ef81bd7f84b121c9ecade6ce8592555c991adfe759345900caf0dad0

See more details on using hashes here.

File details

Details for the file gojju-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: gojju-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 31.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for gojju-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3f8c68a786a472f73a6c5616b970da34ac66aaba10bfc71e0aa154dc5584dcf
MD5 44d08e60ab69cbbe3d9a59c8bfb19678
BLAKE2b-256 14db7aac06669ff0d5e34e4e725bf6af7a365b861933808bd4c185cdcbf7d836

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page