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.0.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.0-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gojju-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9074563aa1866f43861045b395b78764256a5ff9ee44ff7299a8992b05950815
MD5 0e647bd313741c4c2cfb524052b11b28
BLAKE2b-256 72ace6add1da79ebb8a8201bfad1f948f17ad09b9df88f2de770759aaccb5d3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gojju-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93dabb8e1381de0d280170a3640551008a1de49b00ac0bfd80bd35b793f6ef8f
MD5 aa7af6ae1c35abe06ff010007138924d
BLAKE2b-256 cc6b00f2ef4380ea91794136c04ccc3dff6ff272f8c859c36c7ee52574ebde09

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