frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

OpenRouter is joining Stripe

https://openrouter.ai/blog/announcements/openrouter-is-joining-stripe/
334•rvz•2h ago•206 comments

Go 1.27

https://go.dev/blog/go1.27
227•database64128•1h ago•34 comments

Unsloth Dynamic 3.0 GGUFs

https://unsloth.ai/docs/basics/dynamic-3.0-ggufs
65•jonesy827•1h ago•14 comments

A joke domain purchase turned in geopolitical warfare

https://sprocketfox.io/xssfox/2026/08/19/sondehub-and-war/
590•kareiva•9h ago•77 comments

Pixel 11 Pro Fold feels like the end of an era

https://www.theverge.com/tech/981956/google-pixel-11-pro-fold-review
19•animalcule•46m ago•32 comments

Unlocking a locked/deactivated e-waste Cricut Maker

https://sprocketfox.io/xssfox/2026/07/01/cricut-unlock/
25•1e1a•1h ago•6 comments

Casio F-B100W-1A

https://www.casio.com/uk/watches/casio/product.F-B100W-1A/
171•__fst__•5h ago•140 comments

Ornith-1.5: From Self-Scaffolding to Self-Improvement

https://ornith.ai/ornith_1_5.html
133•CommonGuy•5h ago•34 comments

Geolocating a random island using geometry and CUDA programming

https://yassa9.github.io/osint/gralhix-004/
346•yassa9•8h ago•60 comments

Extensible Software in the age of LLMs

https://jeremymorrell.dev/blog/extensible-software-in-the-age-of-llms/
72•coloneltcb•4h ago•30 comments

Google replaced Git tags for certain source code with obtaining via Google Drive

https://grapheneos.social/@GrapheneOS/117057099753905023
61•Animux•2h ago•11 comments

How Kubernetes Probes Work

https://ngrok.com/blog/probes
81•cyndunlop•4h ago•14 comments

Mathematics in the age of AI

https://arxiv.org/abs/2608.16753
65•jonbaer•5h ago•44 comments

Ramp Launches a Model Router

https://router.com
25•zackfield•1h ago•6 comments

From Quantum Relative Entropy to the Semiclassical Einstein Equations

https://arxiv.org/abs/2510.24491
9•Luc•58m ago•0 comments

Remote workers report the highest well-being in study of 7,700 employees

https://www.colorado.edu/today/2026/08/12/remote-workers-report-highest-well-being-study-7700-emp...
353•downbad_•4h ago•165 comments

fx :Tiny, open, native coding agent.

https://fx.sh
108•handfuloflight•22h ago•57 comments

The little-known winstart.bat batch file

https://devblogs.microsoft.com/oldnewthing/20260811-00/?p=112605
12•ingve•3d ago•0 comments

Launch HN: OneCLI (YC S26) – OSS sandboxed agent harness for teams

https://github.com/onecli/onecli
38•guyb3•4h ago•12 comments

Rules of Good Social Skills (2025)

https://liamrosen.com/2025/07/24/33-rules-of-good-social-skills/
27•bilsbie•1h ago•3 comments

Pacing model development in an era of cyber-critical capabilities

https://openai.com/index/pacing-model-development-cyber-capabilities/
90•j4mie•1d ago•84 comments

Air Theremin – a browser theremin you play by waving at your webcam

https://theremin.bizibah.com/
208•gurov•10h ago•75 comments

Introducing MicroLighter

https://daverupert.com/2026/08/microlighter/
27•tobr•2h ago•6 comments

PostgreSQL for Everything

https://www.raphaelbauer.com:443/posts/postgresql-everything/
241•karlmush•7h ago•164 comments

Moderna reports first positive Phase 3 for mRNA neoantigen therapy in melanoma

https://twitter.com/NoubarAfeyan/status/2090050162441752787
438•heydenberk•6h ago•202 comments

Microgpt in pure C hits 10M tps on Apple m5

https://github.com/vixhal-baraiya/microgpt-c
103•dhorthy•1d ago•32 comments

Chain-of-Thought Reasoning in the Wild Is Not Always Faithful

https://arxiv.org/abs/2503.08679
48•florianherrengt•4h ago•29 comments

Devices with GrapheneOS support should be available in 2027

https://grapheneos.social/@GrapheneOS/117078064184215730
542•exceptione•8h ago•345 comments

Turning molecules into reliable electronic devices

https://news.mit.edu/2026/turning-molecules-into-reliable-electronic-devices-0803
22•gmays•5d ago•0 comments

A revisit of remote Spectre attacks on Cloudflare Workers

https://blog.cloudflare.com/revisiting-spectre-attacks-on-workers/
15•albertpedersen•2h ago•0 comments
Open in hackernews

Extending a Language – Writing Powerful Macros in Scheme

https://mnieper.github.io/scheme-macros/README.html
92•textread•1y ago

Comments

neilv•1y ago
A few formatting changes might make this advanced example easier to understand:

    (define-syntax trace-let
      (syntax-rules ()
        [(trace-let name ([var expr] ...) body1 ... body2)
         (let f ([depth 0] [var expr] ...)
           (define name
             (lambda (var ...)
               (f (+ depth 1) var ...)))
           (indent depth)
           (display "(")
           (display 'name)
           (begin
             (display " ")
             (display var))
           ...
           (display ")")
           (newline)
           (call-with-values
               (lambda ()
                 body1 ... body2)
             (lambda val*
               (indent depth)
               (fold-left
                (lambda (sep val)
                  (display sep)
                  (display val)
                  " ")
                "" val*)
               (newline)
               (apply values val*))))]))
The biggest one is to make the rule template pattern variables all-uppercase. I also made a few other tweaks, including using indentation a little more, and naming the named-`let` variable as "loop" (I usually name it `loop` or prefix the name with `loop-` if there's more than one):

    (define-syntax trace-let
      (syntax-rules ()
        ((trace-let NAME ((VAR EXPR) ...) BODY1 ... BODY2)
         (let loop ((depth 0)
                    (VAR   EXPR) ...)
           (define NAME
             (lambda (VAR ...)
               (loop (+ depth 1) VAR ...)))
           (indent depth)
           (display "(")
           (display (quote NAME))
           (begin (display " ")
                  (display VAR)) ...
           (display ")")
           (newline)
           (call-with-values (lambda ()
                               BODY1 ... BODY2)
             (lambda val*
               (indent depth)
               (fold-left (lambda (sep val)
                            (display sep)
                            (display val)
                            " ")
                          ""
                          val*)
               (newline)
               (apply values val*)))))))
Incidentally, all-uppercase Scheme pattern variables is one of the all-time best uses of all-uppercase in any language. Second only to all-uppercase for the C preprocessor, where a preprocessor macro can introduce almost arbitrary text. Using all-uppercase for constants in some language that has constants, however, is an abomination.

(My suspicion of why Java did all-caps is that they were developing a language for embedded systems developers who were currently using C and C++, and they wanted to make it superficially look similar, even though it was an entirely different language. And then, ironically, the language ended up being used mostly by the analogue of a very different developer of the time: corporate internal information systems developers, who, as a field, didn't use anything like C. It's too late to save Java, but to all other language and API developers, please stop the insanity of all-caps constants, enum values, etc. It's not the most important thing that needs to jump out from the code above all other things.)

Y_Y•1y ago
FWIW, all-caps makes this look much worse to me. I understand that people like things like Hungarian notation, arrows over vector names, and shouting Common Lisp symbols. I understand the argument that it can make reading easier. I just can't appreciate that benefit, and it seems to me an ugly hack which obscures the abstract and general symbolic manipulation going on.

This is all highly subjective of course, de gustibus non disputandem.

neilv•1y ago
You mean aesthetically, in that interspersed all-caps makes the code visually less soothingly sensual?

I can sympathize, but let me make a non-aesthetic argument...

In large blocks of code, with all-caps, you can see at a glance where all the template substitutions are happening, and also instantly know as you're reading code what are variables and what are template substitutions?

I'm asking because one of my realizations in recent years is that not everyone reads or sees code the same way.

For example, maybe some people are stronger "visual" and some people are stronger "verbal".

For another example of a different in how people perceive and think, some people can visualize an object in their mind almost as if they're looking at it, but other people can only know and describe what it looks like without bringing a visual of it into their head.

With the benefit of the all-caps, I can glance at this and immediately see much of the structure of the template. Without all-caps, I'd have to work harder to find all the pattern variables, and the structure would be obscured.

For a bit kludgy practical matter, as I'm quickly looking at pieces of code in a template, with all-caps, I can look at a fragment of code in isolation and know what are and aren't pattern variables. Without that, I have to go read the top of the template clause (and read through any syntactic scopes of `let-syntax`) and get that in my head, until I get to the fragment of code I originally wanted to look at.

IDE support can make this unnecessary, with a hypothetical great IDE, with familiar syntax coloring. But still, if there is one thing that all-caps should be reserved for, it's something like this.

With all-caps, your code can be sensual, and the jolting all-caps bits are look out, potentially arbitrary code gets pasted into here.

mnemenaut•1y ago
https://github.com/rogerturner/scheme-macros/blob/main/examp... shows stepwise development of a trace-let [the `(example: (fn arg) => result)` forms are tests - see check-examples library]
Y_Y
•
1y ago
Since you asked, my objection is both aesthetic and semantic, though I was really referring to the semantic part above.

I think you've hit the nail on the head with this visual vs. verbal distinction.

I can add a few clarifying details. I don't use IDEs as much as basic text editors maybe with highlighting, and I try not to rely on any fancy features. It does worry me that the allcaps use you describe is (afaik) not known to the editor or interpreter, so if you make a mistake or the symbol gets out of sync with its meaning (re: pattern variables) you may have a false signal. Finally I'll say that in the end I can't suggest a good way to treat these special variables, and so maybe I don't get it, or tastes like mine would be better served by a different formalism for macros.