A programming language combining the best of Python, Ruby, Haskell, Perl, and JavaScript
Project description
Gojju 🌶️
The essence of Python • Ruby • Haskell • Perl • JavaScript
Documentation • Examples • PyPI
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gojju-0.1.4.tar.gz.
File metadata
- Download URL: gojju-0.1.4.tar.gz
- Upload date:
- Size: 34.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fcbd377e974eb477093a1d508532a17124593a12c8c7c6ebf18136c0536e7b83
|
|
| MD5 |
f52cab603044f23bf9085ef08ec748f9
|
|
| BLAKE2b-256 |
365910d2e8721e2c39d0f88219683bea4db3886a43f1b512a20cfe74faada499
|
File details
Details for the file gojju-0.1.4-py3-none-any.whl.
File metadata
- Download URL: gojju-0.1.4-py3-none-any.whl
- Upload date:
- Size: 32.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11cc34d2a7185a6146f29151e6dfb20bf91336cf6d6e236760f3d2274bfc82d3
|
|
| MD5 |
82a3578c6cbb33ecb68eca1bacfb6ebf
|
|
| BLAKE2b-256 |
82612b1ed3782a5ee52f732ef90480d4f0726ad78957f8422f33659231a5828d
|