Skip to content

Instantly share code, notes, and snippets.

View planetis-m's full-sized avatar
👑
Open to new job opportunities

Antonis Geralis planetis-m

👑
Open to new job opportunities
View GitHub Profile
@planetis-m
planetis-m / l_compileFails_2077412008.reduced.nim
Created November 17, 2026 11:09
llvm 2077412008 repro (nimony 7d4c3f13)
# generated by nimony-fuzz/backends/bfuzz.nim
import std/[syncio, math]
type V = object
x, y: float64
n: uint32
type S = object
a: int16
b: int8
@planetis-m
planetis-m / n_mismatch_2077413068.nim
Created November 17, 2026 11:09
bfuzz 2077413068 repro (nimony 7d4c3f13)
# generated by nimony-fuzz/backends/bfuzz.nim
import std/[syncio, math]
type V = object
x, y: float64
n: uint32
type S = object
a: int16
b: int8
@planetis-m
planetis-m / n_mismatch_2077413038.nim
Created November 17, 2026 11:09
bfuzz 2077413038 repro (nimony 7d4c3f13)
# generated by nimony-fuzz/backends/bfuzz.nim
import std/[syncio, math]
type V = object
x, y: float64
n: uint32
type S = object
a: int16
b: int8
@planetis-m
planetis-m / n_mismatch_2077412117.nim
Created November 17, 2026 11:09
bfuzz 2077412117 repro (nimony 7d4c3f13)
# generated by nimony-fuzz/backends/bfuzz.nim
import std/[syncio, math]
type V = object
x, y: float64
n: uint32
type S = object
a: int16
b: int8
@planetis-m
planetis-m / n_runFails_2077412003.reduced.nim
Created November 17, 2026 11:09
bfuzz 2077412003 repro (nimony 7d4c3f13)
# generated by nimony-fuzz/backends/bfuzz.nim
import std/[syncio, math]
type V = object
x, y: float64
n: uint32
type S = object
a: int16
b: int8
@planetis-m
planetis-m / j_mismatch_2077413013.nim
Created November 17, 2026 11:09
bfuzz 2077413013 repro (nimony 7d4c3f13)
# generated by nimony-fuzz/backends/bfuzz.nim
import std/[syncio, math]
type V = object
x, y: float64
n: uint32
type S = object
a: int16
b: int8

Instead of using std/json in Nimony to build JSON strings from a DOM, let's use an approach similar to the one used by the httpheaders module, with compile-time validation of string literals.

JSON will be supplied as string literals, and when an expression involves string concatenation with runtime values, the compile-time plugin should be able to infer the necessary information and inject the appropriate runtime operations.

For example:

json"{'key':" & myArr & "}"
json"{'key': [1, 0, " & myInt & "]}"
json"{" & myKey & ":[1]}"

New Fedora Workstation Installation Guide

Download and Boot Fedora ISO

  1. Download the latest Fedora Workstation ISO from Fedora Downloads.
  2. Burn the ISO to a USB drive using Fedora Media Writer or Rufus.
  3. Boot from the USB drive and start the live installation.

Installation (Manual Partitioning)

Nimony OpenAPI Auto-Projection: Finished Design

This is the intended product shape, constrained to ordinary Nimony plugins. There is no compiler pass, compiler modification, privileged semantic hook, or post-semantic mutation of an already-used nominal type.

What application code looks like

The normal application uses complete-looking generated types and ordinary field syntax:

How to use Crush with the Alibaba Cloud Token Plan

Crush (charmbracelet) natively supports both Anthropic and OpenAI-compatible APIs, so the token plan works out of the box. Add this to ~/.local/share/crush/crush.json under providers:

"bailian-token-plan": {
  "name": "Alibaba Cloud Model Studio (Token Plan)",
  "type": "anthropic",
  "base_url": "https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic",
  "api_key": "YOUR_TOKEN_PLAN_KEY",