Skip to content

objeck/objeck-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

37,178 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Object-oriented β€’ JIT-compiled β€’ AI-native β€’ Robust APIs


GitHub CodeQL CI Build Release Build Latest Release

Why Objeck?

Built for modern development:

  • πŸš€ JIT-compiled for performance (ARM64/AMD64)
  • πŸ€– AI-native: OpenAI, Gemini, Ollama, ONNX, OpenCV β€” no third-party packages
  • 🌐 Network-complete: HTTP/1.1 Β· HTTP/2 Β· HTTP/3/QUIC Β· WebSocket Β· DTLS β€” all standard library
  • πŸ’» Developer-friendly: REPL shell, LSP plugins for VSCode/Sublime/Kate, DAP debugger
  • 🌍 Cross-platform: Linux, macOS, Windows (x64 + ARM64/RPI)
  • πŸ”§ Full-featured: Threads, generics, closures, reflection, serialization

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

Try It Online

πŸ‘‰πŸ½ playground.objeck.org β€” 33 demos across 7 categories, Monaco editor, no install required.

Quick Start

# Install (example for macOS/Linux)
curl -LO https://github.com/objeck/objeck-lang/releases/download/v2026.5.2/objeck-linux-x64_2026.5.2.tgz
tar xzf objeck-linux-x64_2026.5.2.tgz
export PATH=$PATH:./objeck-lang/bin
export OBJECK_LIB_PATH=./objeck-lang/lib

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

# Compile and run (modern syntax)
obc hello && obr hello

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

What's New

v2026.5.2

  • HTTP/2 client β€” Http2Client with persistent TLS connections, GET/POST/PUT/DELETE/PATCH, and Quick* one-liners (nghttp2 + ALPN)
  • HTTP/3 / QUIC client β€” Http3Client over UDP with connection reuse and the same Quick* API (ngtcp2 + nghttp3 + GnuTLS)
  • HTTP/1.1 improvements β€” PATCH method, redirect handling fixes for POST/PUT, retry parity across HttpClient/HttpsClient
  • OpenAI Moderation & Batch β€” Moderation->Check() per-category flags/scores; Batch->Create()/Get() for async 50%-cost batch requests
  • Gemini Files, Cache, Grounding, BatchEmbed β€” upload/list/get/delete files; server-side prompt caching; Search Grounding; batch embeddings in one round-trip
  • WebSocket hardening β€” 8 bug fixes + bulk ReadBuffer I/O replacing per-byte reads
  • MCP server fixes β€” hang on shutdown and crash-on-stop resolved
  • Socket reliability β€” SO_REUSEADDR on TCPSocketServer::Bind(); IPSocket::Open() falls through to next address on failure
  • ARM64 Windows β€” OpenCV and ONNX now fully supported on ARM64 Windows
  • Improved release process β€” self-contained Windows builds with committed nghttp2 libs; CI verifies all binaries and API docs on all platforms before publishing

v2026.4.3

  • DAP debugger hover β€” hovering an object shows ClassName { field=val, ... } with instance field expansion
  • DAP variable scopes β€” Variables pane shows separate Locals, Instance, and Class scopes
  • Editor setup β€” updated VS Code, Sublime Text, and gvim/Vim DAP+LSP setup for Windows, Linux, and macOS
  • Bug fixes for DAP step-into crash, step-over/out scoping, stdout corruption, LSP crash on codeAction

πŸ“‹ Full changelog β€’ πŸ—ΊοΈ Roadmap β€’ πŸ“ Editor & IDE setup

Downloads

Latest Release: v2026.5.2

Platform Architecture Download
Windows x64 MSI Installer / ZIP
Windows ARM64 MSI Installer / ZIP
Linux x64 TGZ Archive
Linux ARM64 TGZ Archive
macOS ARM64 TGZ Archive
LSP All platforms ZIP Archive

πŸ“¦ Alternative: Sourceforge β€’ πŸ“š API Docs: objeck.org/api/latest

Note: All Windows installers are digitally signed. Releases are fully automated via CI/CD and built on GitHub Actions runners.

See It In Action

HTTP/2 Client

use Web.HTTP;

# Persistent connection β€” multiple requests share one TLS session
client := Http2Client->New("httpbin.org");
resp := client->Get("/get");
"Status: {$resp->GetCode()}"->PrintLine();    # Status: 200

body := "{\"lang\":\"objeck\"}"->ToByteArray();
resp2 := client->Post("/post", body, "application/json");
client->Close();

# One-liner for quick requests
resp := Http2Client->QuickGet(Url->New("https://httpbin.org/get"));

HTTP/3 / QUIC Client

use Web.HTTP;

# QUIC over UDP β€” zero round-trip connection on repeat visits
client := Http3Client->New("quic.nginx.org");
resp := client->Get("/");
"Status: {$resp->GetCode()}"->PrintLine();    # Status: 200
client->Close();

# One-liner
resp := Http3Client->QuickGet(Url->New("https://quic.nginx.org/"));

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);

Face Recognition

# SCRFD detector + ArcFace R50 embeddings (InsightFace buffalo_l)
session := FaceSession->New("det_10g.onnx", "w600k_r50.onnx");
r1 := session->Recognize(img1_bytes, 0.5);
r2 := session->Recognize(img2_bytes, 0.5);
faces1 := r1->GetResults(); faces2 := r2->GetResults();
sim := FaceSession->Compare(faces1[0]->GetEmbedding(), faces2[0]->GetEmbedding());
"Same person: {$(sim > 0.35)}"->PrintLine();

Computer Vision

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

Natural Language Processing

# Sentiment analysis and TF-IDF
text := "This product is absolutely wonderful!";
sentiment := SentimentAnalyzer->Classify(text);  # "positive"

# Train TF-IDF on documents
docs := ["cats are pets", "dogs are pets", "birds can fly"];
tfidf := TF_IDF->New();
tfidf->Fit(docs);
vector := tfidf->Transform("cats and dogs");  # [0.47, 0.0, 0.47, ...]

🎯 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 β€” πŸ“– AI Developer Guide Β· GitHub source

  • OpenAI β€” chat, vision, realtime audio, image generation, embeddings, moderation, batch
  • Gemini β€” chat, vision, search grounding, files, context caching, batch embeddings
  • Ollama β€” local LLM chat, vision, and embeddings (no API key)
  • NLP β€” tokenization, TF-IDF, text similarity, sentiment analysis
  • OpenCV β€” computer vision: detection, transforms, video
  • ONNX Runtime β€” local ML inference: YOLO, ResNet, DeepLab, OpenPose, Phi-3, face recognition
  • Face Recognition β€” SCRFD detector + ArcFace R50 (InsightFace buffalo_l)
  • Phi-3 / Phi-3 Vision β€” local SLM text and multimodal inference

Web & Networking

Data

Other

Development

Modern tooling and practices:

  • πŸ€– Claude Code for pair programming, debugging, and refactoring
  • πŸ”„ CI/CD: Fully automated build, test, sign, and release pipeline (GitHub Actions)
    • βœ… Every push triggers multi-platform builds (Windows, Linux, macOS)
    • βœ… Automated code signing for Windows installers
    • βœ… One-tag releases: git tag v2026.2.1 β†’ automated distribution in 60 minutes
    • βœ… Parallel builds across 6 platforms (x64/ARM64)
    • πŸ“– Release Process Documentation β€’ CI/CD Architecture β€’ System Architecture
  • πŸ” Quality: Coverity static analysis + CodeQL security scanning
  • πŸ§ͺ Testing: 350+ tests across 3 suites (regression, comprehensive, deploy)
    • Regression suite: 10 focused tests for critical functionality
    • Comprehensive suite: 323+ tests for full language validation
    • Deploy suite: 17 real-world usage examples
    • Full cross-platform coverage (Windows/Linux/macOS, x64/ARM64)

Editor Support:

πŸ“š Testing Documentation β€’ πŸ§ͺ Regression Tests β€’ πŸ“Š Performance & Benchmarks

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