more branch handling commands (more sane).

This commit is contained in:
ed committed 2026-08-24 22:35:17 -04:00
1 parent 526816c10f
commit 5d243fe9fd
11 files changed
+405 -80

No files matched your search

@@ -0,0 +1,42 @@
---
title: "i vibe coded something horrendous and I love it: a python c preprocessor that finds blocks like /* python <arbitrary python code> */ in a .c file, runs the python, and dumps the stdout after the comment, replacing any old block if needed."
type: archive
source: twitter
source_url: "https://x.com/mmalex/status/1939051429060018590"
author: "𝖒𝖒𝖆𝖑𝖊𝖝"
handle: mmalex
post_id: "1939051429060018590"
date: 2025-06-28
archived: 2026-08-24
draft: false
tags:
- archive
- twitter
- mmalex
description: "i vibe coded something horrendous and I love it: a python c preprocessor that finds blocks like /* python <arbitrary python code> */ in a .c file, runs the python, and dumps the stdout after the comment, replacing any old block if needed."
in_reply_to: ""
---
## Source
- URL: https://x.com/mmalex/status/1939051429060018590
- Author: 𝖒𝖒𝖆𝖑𝖊𝖝 (@mmalex)
- Posted: 2025-06-28 20:01:01
## Thread
**1/**
i vibe coded something horrendous and I love it: a python c preprocessor that finds blocks like /* python <arbitrary python code> */ in a .c file, runs the python, and dumps the stdout after the comment, replacing any old block if needed. im using it to precompute tables...
**2/**
@mmalex There was a python tool for this remember as far back as 2000ish when working on a large c/c++ game codebase. Ah found it, it’s called Cog: https://cog.readthedocs.io/en/latest/
**3/**
@seflless ah yes ! I knew it existed - it wasnt an original idea after all, but like a faint memory stirring in my brain - but couldn't find it. thanks for the link!
**4/**
@mmalex @seflless Many of my forth-like languages worked via nested runtime code gen, so it was possible to generate+run code to build either code or data, then repeat. The system would bootstrap its own assembler/etc that way.
+12
View File
@@ -0,0 +1,12 @@
---
title: mmalex
type: note
draft: false
description: Archived threads by mmalex.
tags:
- archive
- twitter
- mmalex
---
- [[archive/threads/mmalex/2025-06-28-i-vibe-coded-something-horrendous-and-i-love-it-a]]