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

Uploaded Python 3

File details

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

File metadata

  • Download URL: gojju-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 b1c0a18600037157939505e45c9b9c1551b874cae3bc112b82b422d8b14efa2b
MD5 1bc8e1422c4675f3ec8cfcbe1857105f
BLAKE2b-256 0bb45da70331d58edb04c78a9b1e0e55494466795037273c1d21f175bca5b330

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gojju-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 28b7df27ff0194b27a07213a508a1a14874e7c43aa56313757ec05c42e5f03a1
MD5 75cc85c6a884dbec507671716b85bbac
BLAKE2b-256 0c273b85684d2cbd8a0c17a35eaa97e73d3aff01bb5424d0a7778aebc7f6a1ed

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