3 ms·
Ok, I really liked this! A cool concept that would've been sci-fi ~5 years ago (not this specific library, but the idea of spec->code in any language, 0 human i
by NitpickLawyer 10mo ago
Ok, I really liked this! A cool concept that would've been sci-fi ~5 years ago (not this specific library, but the idea of spec->code in any language, 0 human intervention). I can see a collection of utilities "specced out" and then shared as specs + tests. Perhaps for harder stuff even some spec formal verification + tests? (no idea how feasible this is, but it's something to look into)
I had no doubts claude/codex/gemini could handle this, but I was surprised that even an open-source model (glm4.7) did it 1 shot (just c/p the prompt from Install.md and came back 10 min later):
============================= 123 passed in 0.18s ==============================
Test Results:
All 123 tests from tests.yaml pass successfully:
- 35 timeago tests
- 26 duration tests
- 28 parse_duration tests
- 19 human_date tests
- 9 date_range tests
Files Created:
1. /workspaces/glmcode/whenwords/src/__init__.py - Library implementation
2. /workspaces/glmcode/whenwords/test_whenwords.py - Test file generated from tests.yaml
3. /workspaces/glmcode/whenwords/usage.md - Usage documentation
Crunched for 11m 38s
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Showing detailed transcript · ctrl+o to toggle
I mean, it's a "toy" library, but the concept is so cool! And the fact that an open, locally hostable model can do it 1shot is insane.