Skip to content

Instantly share code, notes, and snippets.

const std = @import("std");
const json = std.json;
pub const ContentType = enum {
text,
image,
resource,
};
pub const CallToolResult = struct {
@evacchi
evacchi / MODEL_COMPARISON.md
Last active October 7, 2025 15:44
Fine-tune Gemma-3 1B for Block Kit UI Generation
@evacchi
evacchi / blockkit-gemma3-single-block-finetune.ipynb
Last active October 7, 2025 16:31
Fine-tune Gemma-3 270M for Single Block Kit Blocks
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@evacchi
evacchi / blockkit-gemma3-1b-single-block-finetune.ipynb
Last active October 7, 2025 18:52
Fine-tune Gemma-3 1B for Single Block Kit Blocks (5k dataset)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@evacchi
evacchi / blockkit-gemma3-270m-theme-category-finetune.ipynb
Last active October 8, 2025 07:36
Fine-tune Gemma-3 270M for Theme+Category Block Kit Sections (6k dataset)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@evacchi
evacchi / blockkit-gemma3-1b-theme-category-finetune.ipynb
Created October 8, 2025 13:01
Fine-tune Gemma-3 1B for Theme+Category Block Kit Sections (6k dataset)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@evacchi
evacchi / ssa-interpreter-assessment.md
Created March 25, 2026 20:46
Assessment: Reimplementing wazero interpreter on wazevo's SSA

Assessment: Reimplementing the Interpreter on Wazevo's SSA

What exists today

Current interpreter (~11k lines of non-test code in internal/engine/interpreter/):

  • Compiles Wasm bytecode into a flat array of unionOperation instructions (a custom IR)
  • Executes via a giant switch statement in callNativeFunc() over 82+ operation kinds
  • Uses a uint64 value stack and a call frame stack
  • Control flow is resolved to absolute PC addresses at compile time
  • Two-pass compilation: first translates opcodes, then resolves label addresses