frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Working on Pharo Smalltalk: BPatterns: Rewrite Engine with Smalltalk Style

http://dionisiydk.blogspot.com/2026/02/bpatterns-rewrite-engine-with-smalltalk.html
13•mpweiher•3h ago

Comments

jaen•1h ago
This is roughly the same problem as syntactical macros in non-Lisp syntax languages.

There needs to be a way to indicate a "hole" (metavariable/unquote) in the syntax tree, and depending on the complexity of the language's grammar, that might be somewhat difficult, eg. in C++ having a hole for a type declaration runs into the common ambiguity between declarations (constructor calls) and expressions (regular calls). This needs to be worked around by eg. having multiple types of holes to disambiguate...

For the article, the idea of using an "any" prefix on identifiers instead of eg. operators such as ` , ... (Lisp macros) is an interesting solution, as it does not require extending the grammar of the language... although it's not applicable in all situations (eg. for matching grammar elements where identifiers are not allowed). For a very regular language like Smalltalk though, it's pretty good.

Grammar-based rewriting has a long line of history and research, so there's a deep well of knowledge to be mined if you feel like hitting up Google Scholar...

For modern implementations, there's eg. ast-grep and semgrep: https://ast-grep.github.io/ https://semgrep.dev/docs/writing-rules/pattern-syntax

Statement from Dario Amodei on our discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
2054•qwertox•13h ago•1096 comments

F-Droid Board of Directors nominations 2026

https://f-droid.org/2026/02/26/board-of-directors-nominations.html
30•edent•1h ago•7 comments

Can you reverse engineer our neural network?

https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/
37•jsomers•2d ago•1 comments

Dyson settles forced labour suit in landmark UK case

https://www.bbc.com/news/articles/cddnry8dnl7o
38•cmsefton•1h ago•29 comments

The normalization of corruption in organizations (2003) [pdf]

https://gwern.net/doc/sociology/2003-ashforth.pdf
92•rendx•5h ago•36 comments

The Hunt for Dark Breakfast

https://moultano.wordpress.com/2026/02/22/the-hunt-for-dark-breakfast/
271•moultano•8h ago•106 comments

An interactive intro to quadtrees

https://growingswe.com/blog/quadtrees
33•evakhoury•2d ago•3 comments

MitID, Denmarks sole digital ID, has been down for over an hour and counting

https://www.digitaliser.dk/mitid/nyt-fra-mitid/2026/feb/driftsforstyrrelser-mitid
52•mousepad12•1h ago•63 comments

Compact disc story (1998)

https://www.researchgate.net/publication/294484774_Compact_disc_story
8•pipeline_peak•8h ago•1 comments

Quantitativity on the number of rational points in the Mordell conjecture

https://www.scientificamerican.com/article/mathematicians-make-a-breakthrough-on-2-000-year-old-p...
5•wglb•22h ago•0 comments

Ubicloud (YC W24): Software Engineer – $95-$250K in Turkey, Netherlands, CA

https://www.ycombinator.com/companies/ubicloud/jobs/j4bntEJ-software-engineer
1•ozgune•3h ago

What Claude Code chooses

https://amplifying.ai/research/claude-code-picks
454•tin7in•17h ago•178 comments

Breaking Free

https://www.forbrukerradet.no/breakingfree/
11•Aissen•2h ago•1 comments

80386 Protection

https://nand2mario.github.io/posts/2026/80386_protection/
85•nand2mario•2d ago•16 comments

AirSnitch: Demystifying and breaking client isolation in Wi-Fi networks [pdf]

https://www.ndss-symposium.org/wp-content/uploads/2026-f1282-paper.pdf
367•DamnInteresting•20h ago•169 comments

Layoffs at Block

https://twitter.com/jack/status/2027129697092731343
754•mlex•14h ago•825 comments

The Origins of Agar

https://www.asimov.press/p/agar
37•surprisetalk•3d ago•5 comments

Implementing a clear room Z80 / ZX Spectrum emulator with Claude Code

https://antirez.com/news/160
31•antirez•2d ago•33 comments

Reading English from 1000 Ad

https://lewiscampbell.tech/blog/260224.html
6•LAC-Tech•3d ago•1 comments

Parakeet.cpp – Parakeet ASR inference in pure C++ with Metal GPU acceleration

https://github.com/Frikallo/parakeet.cpp
73•noahkay13•8h ago•19 comments

What does " 2>&1 " mean?

https://stackoverflow.com/questions/818255/what-does-21-mean
312•alexmolas•16h ago•173 comments

Working on Pharo Smalltalk: BPatterns: Rewrite Engine with Smalltalk Style

http://dionisiydk.blogspot.com/2026/02/bpatterns-rewrite-engine-with-smalltalk.html
13•mpweiher•3h ago•1 comments

The complete Manic Miner disassembly

https://skoolkit.ca/disassemblies/manic_miner/
9•sandebert•4h ago•2 comments

I rendered 1,418 confusables over 230 fonts. Most aren't confusable to the eye

https://paultendo.github.io/posts/confusable-vision-visual-similarity/
73•paultendo•1d ago•29 comments

Launch HN: Cardboard (YC W26) – Agentic video editor

https://www.usecardboard.com/
122•sxmawl•17h ago•64 comments

OsmAnd’s Faster Offline Navigation (2025)

https://osmand.net/blog/fast-routing/
186•todsacerdoti•17h ago•66 comments

Lawmakers say US Military used laser to take down Border Protection drone in TX

https://apnews.com/article/military-laser-border-drone-texas-airport-55aaab7093f7d6dd174f909f3875...
5•thinkcontext•27m ago•1 comments

An Introduction to the Codex Seraphinianus, the Strangest Book Ever Published

https://www.openculture.com/2026/02/an-introduction-to-the-codex-seraphinianus.html
82•vinhnx•3d ago•17 comments

Museum of Plugs and Sockets

https://plugsocketmuseum.nl/index.html
134•ohjeez•3d ago•66 comments

I baked a pie every day for a year

https://www.theguardian.com/lifeandstyle/2026/feb/22/a-new-start-after-60-i-baked-a-pie-every-day...
283•NaOH•3d ago•184 comments