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

DocumentationExamplesPyPI


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.3.tar.gz (33.3 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.3-py3-none-any.whl (31.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gojju-0.1.3.tar.gz
  • Upload date:
  • Size: 33.3 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.3.tar.gz
Algorithm Hash digest
SHA256 5867881ff1f7e58ae406f759b9bb277e76df959c3b7bd1e267f85f0adf16afaf
MD5 dafff0d434c70458bc0d2b6d7f87ed68
BLAKE2b-256 7a1a11c8333914dc0fc1cad61dce3654d333965693ac430a5cf552d96524b248

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gojju-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 31.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 298ba1f74f300bd9bc7891a6ae1f50b793c1510cd7b8d7dcefecdd0d3c268431
MD5 9ce5b29d94dcc5ea998130ace1d837da
BLAKE2b-256 8836a05d138263f524983b730e949b5b0a27ed2b7aae114d752dbc727803849f

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