#peg — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #peg, aggregated by home.social.
-
🚀 Ohm's #PEG-to-WASM Compiler: because everyone needs a #parsing #tool that's 50x #faster to parse things nobody asked for! 😂 Forget about improving your life—just make #parsing 0.02 seconds quicker. Is it a bird? Is it a plane? No, it's an #unnecessary #compiler update! 🙄
https://ohmjs.org/blog/2026/03/12/peg-to-wasm #update #speed #improvement #tool #coding #humor #HackerNews #ngated -
Ohm's Peg-to-WASM Compiler
https://ohmjs.org/blog/2026/03/12/peg-to-wasm
#HackerNews #Peg-to-WASM #Compiler #OhmJS #WASM #Compiler #Programming #News #Tech #Innovation
-
This time I'm solving #AdventOfCode in #Janet (I'll write about my solutions in my blog in batches) and I'm really pleased by the built-in #PEG parsers. This is how the grammar looks for day 2:
```janet
{:main (sequence :ranges -1)
:ranges (some :range)
:range (group (sequence (number :num) "-" (number :num) (opt ",")))
:num (some :d)}
``` -
USDe Stablecoin Temporarily Loses Dollar Peg to $0.65 Amid Crypto Crash
#cryptocollapse #dollar #peg #Stablecoin #USDe
https://blazetrends.com/usde-stablecoin-temporarily-loses-dollar-peg-to-0-65-amid-crypto-crash/?fsp_sid=144493 -
Aviation weather for Perugia San Francesco d'Assisi Umbria International airport (Italy) is “LIRZ 180750Z AUTO VRB01KT 9999 NCD 26/10 Q1014” : See what it means on https://www.bigorre.org/aero/meteo/lirz/en #perugia #italy #perugiasanfrancescodassisiumbriainternationalairport #lirz #peg #metar #aviation #aviationweather #avgeek #airport vl
-
🚀 Behold the epic tale of Janet's #PEG #module, where the author heroically excludes regular expressions like they're yesterday's news. 💥 Marvel at the labyrinth of #parsing magic that claims to be more readable, but only if you have a PhD in arcane text processing. 📜✨
https://bakpakin.com/writing/how-janets-peg-works.html #Janet #readability #textprocessing #regex #HackerNews #ngated -
Just released dumbql v0.2.0 — a simple and data-provider-agnostic query language for Go programs. Made for YouTube tutorial (in progress), but might be useful anyway.
-
Практика использования парсер-комбинаторов peco и оператора match для создания простых DSL на языке Python
Задачи разработки компиляторов и интерпретаторов конфигурационных языков или даже полноценных Тьюринг-полных языков программирования время от времени встают перед разработчиками программного обеспечения. На практике, как правило, речь идёт о разработке предметно-ориентированных языков (англ. Domain Specific Language, DSL), проектируемых специально для решения узкого класса прикладных задач. В настоящей статье рассматривается один из способов реализации DSL-компиляторов на примере разработки системы символьного дифференцирования, с использованием парсер-комбинаторов peco и структурного сопоставления с образцом по PEP 636 . Материал рассчитан на прикладных разработчиков, уже знакомых с Python, но, надеюсь, может быть полезен и продолжающим компиляторщикам.
https://habr.com/ru/articles/866646/
#peg #парсеркомбинаторы #функциональное_программирование #компиляторы #формальные_языки #python #лексический_разбор #синтаксический_разбор #dsl #предметноориентированный_язык
-
Having a problem with #guile #peg #parsing library: https://lists.gnu.org/archive/html/guile-user/2024-10/msg00002.html
Does anyone know, whether it is possible using that library to have mutually recursive pattern definitions? Or is that library kind of broken?
-
Side questing into PEGs and #EBNF grammars (that I only barely understand) to parse #CSS.
https://pypi.org/project/pyparsing/ looks useful, but I found this rudimentary CSS #PEG (https://gist.github.com/erikrose/5624176) which can be used by https://pypi.org/project/parsimonious/ and it… appears to work?
I was already re-writing the current CSS processing (remove the recusion, add in dataclasses to encapsulate domains, etc), but maybe using a more formal grammar would be a good idea. #python
-
Context free grammars (CFG) are better than parsing expression grammars (PEG), because CFGs represent how we think.
Parser combinators are similar to PEGs, so they are worse than CFGs, too.
So, don't use Rust libraries
nom,combine. Uselalrpop.Don't use Haskell libraries
parsec,gigaparsec,attoparsec,megaparsec,trifecta. UseEarley,happy.See more detailed story in my new article https://safinaskar.writeas.com/this-is-why-you-should-never-use-parser-combinators-and-peg .
The story also includes some cases, where PEG and parser combinators may still be useful. Also, the article gives links to my Haskell parsing libraries.
#haskell #rust #parsing #parse #cfg #peg #combinators #parsercombinators #parsingcombinators #nom #combine #lalrpop #parsec #earley #happy
-
Created my first Peggy grammar to parse and evaluate some custom expressions. It was surprisingly easy once I got the hang of the syntax, and very powerful with the JavaScript actions to process and transform expression matches. 👌
-
"Using neutron reflectometry measurements & #molecular dynamics simulations of poly(ethylene glycol) (PEG) polymers of different molecular weights near charged & neutral membranes, we demonstrate the roles of surface dielectrophoresis & counterion pressure in repelling #PEG from charged #membrane surfaces. The..depletion zone is expected to have consequences for drug design & delivery, the activity of proteins near membrane surfaces, and the transport of small molecules"
-
Livello di stress: sogno che suonano gli allarmi dei macchinari che tengono in vita mamma e mi ritrovo in piedi in mezzo alla stanza in meno di un secondo per poi realizzare che non sta suonando niente.
-
Left Recursion in Parsing Expression Grammars:
https://arxiv.org/pdf/1207.0443v1.pdf
"A frequently missed feature of PEGs is left #recursion, which is commonly used in Context-Free Grammars (#CFGs) to encode left-associative operations. We present a simple conservative extension to the semantics of #PEGs that gives useful meaning to direct and indirect left-recursive rules, and show that our extensions make it easy to express left-recursive idioms from CFGs in PEGs, with similar results."
-
Terraform Labs Appoints New CEO While Co-Founder Remains in Jail - Terraform Labs appointed a new chief executive officer following Do Kwon’s resigna... - https://news.bitcoin.com/terraform-labs-appoints-new-ceo-while-co-founder-remains-in-jail/ #blockchainproject #phoenixblockchain #wallstreetjournal #cryptocurrency #terraformlabs #incarcerated #resignation #chrisamani #interimceo #stablecoin #luna2.0 #salvage #dokwon #vision #terra #news #ustc #ceo #coo #peg
-
MIT #engineers have now found that #polyethylene #glycol (#PEG) — a #hydrogel commonly used in cosmetic creams, industrial coatings, and pharmaceutical capsules — can absorb moisture from the #atmosphere even as temperatures climb.
#Engineering #MaterialScience #sflorg
https://www.sflorg.com/2023/04/eng04182301.html