Skip to content

Instantly share code, notes, and snippets.

View VictorTaelin's full-sized avatar

Victor Taelin VictorTaelin

View GitHub Profile
@VictorTaelin
VictorTaelin / prompt_vibiart.txt
Created January 17, 2026 15:47
prompt: vibiart - sprite art editor
- "Pesquise sobre [tema] na web"
- "Busque o conteúdo desta URL: https://exemplo.com"
- "Qual a documentação mais recente do React?"
Se você quiser verificar quais ferramentas estão disponíveis ou restringir/permitir ferramentas específicas, pode usar as flags:
- --allowedTools - Lista de ferramentas permitidas
- --disallowedTools - Lista de ferramentas bloqueadas
- --tools - Especificar a lista completa de ferramentas disponíveis
// PROBLEM: in the code below:
// 1. both versions of @insert should output the same result with -C1
// 2. the second version should take <50k interactions to halt
// yet, on HVM4's current MOV node implementation, the outputs mismatch. why?
// your goal is to find out, and fix HVM4 so that both points above hold.
// $10k bounty: https://x.com/VictorTaelin/status/2006818916211834900
@tail = λ{[]:[];<>:λa.λb.b}
// List ::= Cons List | Succ List | Nil
@VictorTaelin
VictorTaelin / hvm_missing_piece_prompt.txt
Last active December 24, 2025 16:11
HVM's missing piece - prompt
// HVM is missing something fundamental
// ------------------------------------
// To make a function 'fuse' (such that F^(2^N)(x) halts in O(N) rather than
// O(2^N) steps), we must lift its λ-encoded constructors so they occur before
// the inner pattern-match. Yet, by doing so, we lose the ability to use it in
// different branches of the match without violating linearity. We can avoid
// that by either *cloning* (with a dup), or *moving* (with a lam), but both
// options explode in complexity. That makes no sense. It seems like some
// fundamental building block is missing, that would allow us to use a variable
// more than once provided it occurs in different branches, but I don't know
@VictorTaelin
VictorTaelin / hvm4_pretty_printer_prompts.md
Created December 18, 2025 22:15
Opus 4.5 vs Codex 5.2 - complete HVM4's pretty printer

https://x.com/VictorTaelin/status/2001777678765129832

Opus 4.5 - chat log

 * ▐▛███▜▌ *   Claude Code v2.0.72
* ▝▜█████▛▘ *  Opus 4.5 · Claude Max
 *  ▘▘ ▝▝  *   ~/vic/dev/hvm4-claude

> # Task 1: print unscoped lambdas and floating dups with matching names
@VictorTaelin
VictorTaelin / fully_linear_sort.hs
Last active December 10, 2025 14:14
fully linear sort, no with-clauses, no mutual recursion
module Main where
data Nat = Z | S Nat deriving Eq
data Nats = N | C Nat Nats deriving Eq
data Bit = T | F deriving Eq
-- Sort
-- ----
tmap :: (Nat -> Nat) -> (Nat -> Nat) -> (Nat, Nat) -> (Nat, Nat)
commit 4ffb261f8a43be0c5891e0725f1ea709147eeb7e
Author: VictorTaelin <[email protected]>
Date: Sun Dec 7 11:53:52 2025 -0300
Make commas and semicolons optional in parser
- Superposition: &L{A,B} or &L{A B}
- Fork params: &Lλx,y,z{...} or &Lλx y z{...}
- Fork branches: semicolons now optional between and after branches
- Constructor args: #Foo{a,b} or #Foo{a b}
@VictorTaelin
VictorTaelin / hvm4.txt
Created December 7, 2025 16:13
HM4 commit history
commit 4ffb261f8a43be0c5891e0725f1ea709147eeb7e
Author: VictorTaelin <[email protected]>
Date: Sun Dec 7 11:53:52 2025 -0300
Make commas and semicolons optional in parser
- Superposition: &L{A,B} or &L{A B}
- Fork params: &Lλx,y,z{...} or &Lλx y z{...}
- Fork branches: semicolons now optional between and after branches
- Constructor args: #Foo{a,b} or #Foo{a b}
Let $a<b<c$ be distinct natural numbers. Must every block of $c$ consecutive natural numbers contain three distinct numbers whose product is a multiple of $abc$? Do not use search or tools.
gemini 3 deep think:
Yes, the statement is true.
Let $a<b<c$ be distinct natural numbers. Let $S$ be a block of $c$ consecutive natural numbers. We want to show that there exist three distinct numbers $x, y, z \in S$ such that $abc$ divides $xyz$.
We proceed by induction on $c$.
@VictorTaelin
VictorTaelin / gameboy.txt
Created November 18, 2025 19:02
gameboy retro mon catcher game prompt
Implement a retro web game inspired by Pokémon Red.
Include a demo playground map, with:
- a shop that you can enter and exit
- a small grass area that you can step into and encounter monsters
- an NPC that you can talk to
LAYOUT AND GRAPHICS:
The screen resolution must be natively 160x144, scaled up 4x for rendering, with
@VictorTaelin
VictorTaelin / prompt_debug_wnf_spos_hvm4_supgen.txt
Created November 18, 2025 18:26
Prompt: debug WNF_SPOS issue on HVM4 / SupGen
=== docs/HVM.md ===
# HVM
HVM is a fast C implementation of the Interaction Calculus.
It is a pure functional runtime like Haskell's GHC, with some peculiarities:
- Variables are affine, meaning they can only occur, at most, once.
- To copy values, linear dups are used, where 2 vars refer to the same value.
- Accessing a dup triggers an incremental, layer-by-layer copy of the value.
- Lambdas can also be cloned incrementally by linear dups.