mystery-git/Kothonic: The Kothonic way to write Python
mystery-git/Kothonic: The Kothonic way to write Python
mystery-git/Kothonic: The Kothonic way to write Python
Release v0.8.0 · mitchpaulus/mshell
romforth: Ultra Portable, Small, Baremetal Forth for various processors
Postfix Macros and let place (Rust)
Indexed Reverse Polish Notation, an Alternative to AST
DNS LOC Records – Re: Factor
Release 0.101 · factor/factor
An Attempt at a Compelling Articulation of Forth's Practical Strengths and Eternal Usefulness
zxcvbn | Re: Factor
Ohlang: rpn stack based language implemented in js that runs both in the browser and node
AsyncIO Performance – Re: Factor
Building a 64-bit OS from Scratch with Claude Code
Cosine FizzBuzz | Re: Factor
Lazy FizzBuzz | Re: Factor
Lorem Ipsum – Re: Factor
Cardinal Direction – Re: Factor
Flood fill | Re: Factor
Programming a Problem-Oriented-Language (~1970, 2011) | Chuck Moore
chochain/eforth: eForth in C/C++ - multi-platform (Linux,MacOS,Windows,ESP32,WASM)
JSON Query - a small, flexible, and expandable JSON query language
Factor
: get-input ( -- rules updates ) "vocab:aoc-2024/05/input.txt" utf8 file-lines { "" } split1 "|" "," [ '[ [ _ split ] map ] ] bi@ bi* ; : relevant-rules ( rules update -- rules' ) '[ [ _ in? ] all? ] filter ; : compliant? ( rules update -- ? ) [ relevant-rules ] keep-under [ [ index* ] with map first2 < ] with all? ; : middle-number ( update -- n ) dup length 2 /i nth-of string>number ; : part1 ( -- n ) get-input [ compliant? ] with [ middle-number ] filter-map sum ; : compare-pages ( rules page1 page2 -- <=> ) [ 2array relevant-rules ] keep-under [ drop +eq+ ] [ first index zero? +gt+ +lt+ ? ] if-empty ; : correct-update ( rules update -- update' ) [ swapd compare-pages ] with sort-with ; : part2 ( -- n ) get-input dupd [ compliant? ] with reject [ correct-update middle-number ] with map-sum ;on GitHub