Skip to content

Lightweight object-oriented and functional programming language. Designed to be intuitive, small, cross-platform, and fast. The language emphasizes portability, scalability, and robust API support.

License

Notifications You must be signed in to change notification settings

objeck/objeck-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19,256 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Object-oriented β€’ JIT-compiled β€’ AI-ready β€’ Cross-platform
Modern programming language with first-class ML and computer vision support


GitHub CodeQL GitHub CI Coverity SCA

Why Objeck?

Built for modern development:

  • πŸš€ JIT-compiled for performance (ARM64/AMD64)
  • πŸ€– AI/ML first-class: OpenAI, Gemini, Ollama, OpenCV, ONNX
  • πŸ’» Developer-friendly: REPL shell, LSP plugins for VSCode/Sublime/Kate
  • 🌍 Cross-platform: Linux, macOS, Windows (including ARM/RPI)
  • πŸ”§ Full-featured: Threads, generics, closures, reflection, serialization

Perfect for: AI/ML prototyping β€’ Computer vision β€’ Web services β€’ Game development

Quick Start

# Install (example for macOS/Linux)
curl -LO https://github.com/objeck/objeck-lang/releases/download/v2025.7.0/objeck-linux-x64_v2025.7.0.tgz
tar xzf objeck-linux-x64_v2025.7.0.tgz
export PATH=$PATH:~/objeck-lang/bin

# Hello World
echo 'class Hello {
  function : Main(args : String[]) ~ Nil {
    "Hello World"->PrintLine();
  }
}' > hello.obs

# Compile and run (modern syntax)
obc --source hello.obs --destination hello.obe
obr hello.obe

# Or use concise shortcuts
obc -s hello.obs -d hello.obe

πŸ“– Full docs: objeck.org πŸ’‘ Examples: github.com/objeck/objeck-lang/programs

What's New

v2026.2.0 βœ… Latest

  • Modern GNU-style CLI (--source/-s, --debug/-D) with full backward compatibility
  • Enhanced library path handling
  • Development workflow improvements with Claude Code

v2025.9.1 🚧

  • ONNX Runtime support [in progress β†’ v2026.3.x]

v2025.9.0 βœ…

  • OpenCV integration for real-time computer vision
  • OpenAI Realtime API (gpt-4o-realtime-preview)
  • GPT-5 reasoning models

πŸ“‹ Full changelog β€’ πŸ—ΊοΈ Roadmap

See It In Action

AI Integration

# OpenAI Realtime API - get text AND audio
response := Realtime->Respond("How many James Bond movies?",
                              "gpt-4o-realtime-preview", token);
text := response->GetFirst();
audio := response->GetSecond();
Mixer->PlayPcm(audio->Get(), 22050, AudioFormat->SDL_AUDIO_S16LSB, 1);

Computer Vision

# OpenCV face detection
detector := FaceDetector->New("haarcascade_frontalface_default.xml");
faces := detector->Detect(image);
faces->Size()->PrintLine();  # "5 faces detected"

🎯 More examples

Language Features

Object-Oriented

  • Inheritance, interfaces, generics
  • Type inference and boxing
  • Reflection and dependency injection
  • See OOP examples β†’

Functional

Platform Support

Libraries

AI & Machine Learning

Web & Networking

Data

Other

Development

Modern tooling and practices:

  • πŸ€– Claude Code for pair programming, debugging, and refactoring
  • πŸ”„ CI/CD: GitHub Actions (CodeQL, C/C++ builds)
  • πŸ” Quality: Coverity static analysis
  • πŸ§ͺ Testing: Cross-platform (Windows/Linux/macOS, x64/ARM64)

Editor Support:

Resources

About

Lightweight object-oriented and functional programming language. Designed to be intuitive, small, cross-platform, and fast. The language emphasizes portability, scalability, and robust API support.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 5