Open Source · Preview Libraries · Research

Open-Source Libraries & Engineering R&D

Specialized .NET modules for polygon geometry, file-backed persistent collections and indexed history, Bulgarian morphology, and formally verified logic puzzles.

RtTools R-tree

Spatial index

Compare Dynamic and Hybrid R-trees with a full scan on public OpenStreetMap and KAIS catalog points. Try a rectangle, a radius, or a nearest-point query.

PolylineKit

Geometry · Open Source (MIT)

Zero-dependency planar & territorial polygon geometry library

Numerically robust algorithms for polygon area, clipping, intersection, union, Intersection-over-Union (IoU), and territorial coverage — published as MIT open source and NuGet package PolylineKit.Core.

  • Zero external dependencies for deterministic cartographic and spatial workloads
  • Exact polygon intersection, IoU metrics, and territorial zone coverage calculations
  • MIT-licensed open source backed by extensive edge-case geometry test suites

rtTools.Storage

.NET Library · Preview (MIT)

Embedded preview .NET library for persistent collections, disk-backed FIFO queues, and indexed history

Self-contained BCL-only package in the RtTools and RtTools.Logger namespaces for file-backed application state, queued work, and indexed historical logs. Current preview: v0.1.0-preview.5 (APIs and file formats may evolve prior to a stable release).

  • Persistent collections & objects (RtTools): DictionaryPersistent<TKey,TValue>, ListPersistent<T>, and StreamPersistence<T> with explicit codecs, free-region reuse, and sticky fault tracking (IsFaulted / StorageException)
  • Disk-backed FIFO queue: BufferedQueuePersistent<T> pairing on-disk backlog persistence with a bounded decoded head cache (maxBuffer)
  • Indexed history & snapshots (RtTools.Logger): TimeLog<TRecord> for monotonic UTC records with inclusive [from, to] queries, Log<TRecord,TKey> for half-open [from, to) key ranges, and DictionaryLogger<TKey,TValue>
CODE EXAMPLE C# · RtTools & RtTools.Logger · v0.1.0-preview.5
using System.Text;
using RtTools;
using RtTools.Logger;

// 1. Resident persistent dictionary with explicit binary codec
using var state = new DictionaryPersistent<string, StateRecord>(
    "state.bin", reader: RecordCodec.Read, writer: RecordCodec.Write);
state["worker-1"] = new StateRecord { Name = "Worker", Revision = 1 };
state.Storage.Flush();

// 2. Disk-backed FIFO queue with bounded decoded head cache
using var queue = new BufferedQueuePersistent<string>(
    "jobs.bin", maxBuffer: 64, reader: Encoding.UTF8.GetString, writer: Encoding.UTF8.GetBytes);
queue.Enqueue("job-001");
queue.Storage.Flush();

// 3. Indexed UTC history with inclusive [from, to] range query
DateTime at = DateTime.UtcNow;
using var history = new TimeLog<string>(
    "events", reader: Encoding.UTF8.GetString, writer: Encoding.UTF8.GetBytes);
history.Append(at, "started");
history.Flush();
using var client = history.CreateClient();
var rows = client.FindAll(at, at);

BgLang

Bulgarian NLP · Demo & API

Morphological, accentual & derivational engine — Live Demo & API at /bglang

Open toolkit and hosted API for Bulgarian linguistics — lemmatization, inflection generation, stress placement, derivational word families, and contextual text analysis.

  • 14 linguistic operations via REST API: inflections, stress placement, derivation, and sentence analysis
  • Hosted interactive Web Demo (/bglang/demo, /bglang/demo-lab) and OpenAPI documentation (/bglang/docs)
  • Verified dictionary packages and sub-millisecond in-memory queries

Zebra Solver

Logic Solver · Formal Verification

Formal constraint solver & puzzle generator with proven solution uniqueness

System for solving, generating, and formally proving solution uniqueness of Einstein/Zebra logic puzzles, with a live interactive web studio at /demos/zebra.

  • Formal proof of a single unique solution and minimal required clues
  • Difficulty grading based on human deduction steps rather than brute-force guessing
  • Combines creative narrative authoring with strict mathematical clue verification