@yuntiandeng: Totally agree. Replaced the regex with ProgramAsWeights (and it actually works): import programasweights as paw fn = pa…
Summary
A tweet endorsing ProgramAsWeights as a working replacement for regex, demonstrating an email validation function compiled from natural language.
View Cached Full Text
Cached at: 08/06/26, 02:44 PM
Totally agree. Replaced the regex with ProgramAsWeights (and it actually works):
import programasweights as paw
fn = paw.compile_and_load(“check whether a string looks like a valid email address”)
fn(“[email protected]”) # “valid” fn(“abc@def”) # “invalid”
Similar Articles
Program-as-Weights: A Programming Paradigm for Fuzzy Functions
Program-as-Weights (PAW) introduces a programming paradigm where a 4B compiler translates natural-language specifications into compact neural artifacts executable by a 0.6B interpreter, achieving performance comparable to 32B models with drastically lower memory and inference cost.
@_akhaliq: Program-as-Weights A Programming Paradigm for Fuzzy Functions
Introduces 'Program-as-Weights', a new programming paradigm designed for fuzzy functions, shared by @_akhaliq.
@QuixiAI: The With Programming Language has hit a major milestone. PCRE2 is in. Regular expressions integrated. Implicit main, on…
The With programming language has reached a major milestone by integrating PCRE2 for regular expressions and implementing implicit main functions. The update supports one-liners and includes a self-hosted compiler with built-in LSP support.
@jxmnop: nothing against pangram, but you guys do realise you could just hook codex up to the pangram api and have it keep rewri…
A user comments that you could hook Codex up to the Pangram API to rewrite text until it passes a human evaluation.
@charliermarsh: PSA: new `regex!` macro dropped in the latest release
A new `regex!` macro has been released in the latest update of the Rust regex library, enabling compile-time regex compilation.