Gofra [beta]
A Stack-based compiled programming language.
The project is made not for competing with other languages, rather it is another incomplete language almost same like others.
Documentation and information is available here
Overview
Gofra is a concatenative (stack-based) programming language that compiles to native code.
Programs are written using Reverse Polish notation, where operations follow their operands (e.g 2 + 2 is 2 2 +).
Quick start
Here's a simple "Hello, World!" example:
include "std"
func void main
"Hello, World!" println
end
Features
- Native - Compiles to native machine code
- C-like - Close to C, but has a few more high-level abstraction (
for in,type generics) - C FFI - Seamless integration with C-FFI libraries
- Low-level - Write unsafe, low-level code with direct memory access
- Type System - Validate types at compile time, has compile-time warnings (Generics supports, typechecker)
- Library - By default has support for
math,random,networkand other libraries - First class functions - Has support, and lambda definitions (no closures/capturing yet)
More complex examples
#include "std"
// Print each array element
var xs = ["Hello", " ", "world!", "\n"]
func void main[]
for x in xs do
x ?> print
end
end
Showcase
- Pong Game (
examples/pong_game) - Simple HTTP server (
examples/http_server)
Platform Support
| ARCH | OS | Support | Tested hardware |
|---|---|---|---|
| Aarch64 | Darwin | ✅* | M1, MacOS Tahoe 26.1 |
| WASM | - | ❗** | Node.js v22, Safari |
| x86_64 | Linux | ❗** |
| ARCH | OS | Support | Tested hardware |
|---|---|---|---|
| Aarch64 | Windows | ❌ | |
| Aarch64 | Linux | ❌ | |
| x86_64 | Darwin | ❌ | |
| x86_64 | Windows | ‼️*** |
* Main workflow of development, has all features
** Incomplete, has bugs and not all features
*** Windows x86_64 is not implemented, but has general wrappers for system calls and possibly can be compiled with some headache
Pre requirements
Before installing Gofra, ensure you have the following tools available system-wide:
- Python >3.12.x
- GNU/Mach-O Linker (ld) - For linking compiled objects
- Assembler (as) - Typically included with Clang LLVM compiler
Installation
For full installation steps, please visit Installation page.
Gofra is distributed as single Python-based toolchain. To install:
(Step 1): Install toolchain
pip install gofra
(Step 2): Verify Installation
gofra --help
More information and next steps
Please refer to actual documentation!
Metadata
Release files for gofra 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gofra-0.1.3.tar.gz | 166.1 kB | Without provenance | Details for gofra-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gofra-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for gofra-0.1.3-py3-none-any.whl |
Total release size: 443.7 kB
Release files / gofra-0.1.3.tar.gz
| Download URL | gofra-0.1.3.tar.gz |
|---|---|
| Size | 166.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54e33a107a47a9784d2be996a1706a007ac0e7e89bbe460f9d630f495e2a7605
|
|
BLAKE2b-256 checksum How to use checksums |
199e39d621fa780cf4354c82f3f55be8f8d0bd20b7bbc885ad7fcdbf14052f0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.3 CPython/3.12.7 Darwin/27.0.0
|
Release files / gofra-0.1.3-py3-none-any.whl
| Download URL | gofra-0.1.3-py3-none-any.whl |
|---|---|
| Size | 277.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c786f60829a46cb9f520697a7bd35d414495f6c7fc93bbd5a92bcf05e8b5ac1
|
|
BLAKE2b-256 checksum How to use checksums |
da8c865265b5b885da78682aee45ae73d5a67a8a296f278ff148d1190283f110
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.4.3 CPython/3.12.7 Darwin/27.0.0
|
Security for gofra 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.