frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Making open-source models reliable research assistants for mathematicians

https://hy.tencent.ai/research/hymath?langVersion=en
694•iamjs•6h ago•271 comments

Show HN: German Enigma Machine Walkthrough

https://raemond.com/enigma/
40•stingrae•1h ago•4 comments

Cracking the cryptogram in a Zürich law firm's window

https://www.dogatekin.com/blog/zurich-cryptogram/
354•thetrustworthy•6h ago•63 comments

Lutnick Meddled in Nvidia Probes So Much That His Deputies Went to FBI

https://newrepublic.com/post/218584/lutnick-intefered-nvidia-probes-deputies-fbi
269•cdrnsf•2h ago•156 comments

How fast can you break an elliptic curve?

https://ecdlp.live/
187•grittygrease•5h ago•55 comments

I randomly started caring about coconut water

https://natewooding.com/blog/how-i-randomly-started-caring-about-coconut-water.html
238•mcbobgorge•5d ago•160 comments

Open source firmware for MediaTek MT7601U USB WiFi cards

https://github.com/matu6968/open-mt7601u-fw
15•mateusz6768•1h ago•0 comments

LLM UI smells and how to avoid them

https://gist.github.com/birep/bb865b2799d3f86d55fde62d7911afbb
569•supermatt•9h ago•258 comments

Learnings from running an LLM honeypot network

https://vectoral.com/blog/llm-honeypot-network
41•konnora•2h ago•11 comments

Mt. Gox still hasn't finished paying creditors, 12 years on

https://blog.everstrike.io/mt-gox-repayment-timeline/
213•martin_hansen•8h ago•146 comments

Quantization Everywhere with Rotated Fourier Surrogate

https://arxiv.org/abs/2612.00568
28•E-Reverance•4d ago•0 comments

Build a 100% Local Family Medical Companion on Mac with Google MedGemma 2

https://ashutoshai.com/showcase/guides/local-family-medical-companion
10•robrain•1h ago•2 comments

Using Kindle Paperwhite first gen (5th gen) in 2026

https://issei.space/blog/kindle-paperwhite-5th-gen-2026/
79•issei•6h ago•58 comments

How Hot Are Mitochondria?

https://matthewleighton.substack.com/p/how-hot-are-mitochondria
271•mleighton•5d ago•105 comments

OpenAI trails internal targets in year-end push to increase revenue

https://www.wsj.com/tech/ai/anthropic-ipo-openai-funding-a98add56
33•vinayakborkar•2d ago•35 comments

Snakes can cartwheel, hilarious new slow-motion footage shows

https://www.sciencefocus.com/news/snakes-cartwheel-footage
490•ColinWright•5d ago•84 comments

Trump Waived the Pollution Rules at a Texas Plant. It's Spewing Carcinogens

https://www.nytimes.com/2026/12/06/climate/port-neches-chemical-trump-waiver-tests.html
102•vinni2•2h ago•35 comments

Artie (YC S23) Is Hiring Senior/Staff Engineers and Enterprise AES

https://artie.com/careers
1•j-cheong•5h ago

The bitter lesson for agent memory

https://hatchery.build/blog/the-bitter-lesson-for-agent-memory
530•tosh•22h ago•167 comments

Mirage: VLM and OCR and Detection and Segment and Decide in 22 MB

https://cactuscompute.com/blog/mirage
56•modinfo•6h ago•12 comments

Chrome's P-256 CA distrust is about the intermediate's key, not your site key

https://cybersecuritynewsreport.com/2026-12-04-chrome-p256-ca-key-distrust-march-2027-check-your-...
8•titusblair•2d ago•0 comments

What It Takes to Make Critical Mineral Recovery Bankable and Insurable

https://ccsi.columbia.edu/news/what-it-takes-to-make-critical-mineral-recovery-bankable-and-insur...
6•crookedroad44•2d ago•0 comments

Mainline Linux 7.1 on the $29 Cubie A7Z – Dual 4-Lane ISP and Open NPU

http://allthingsembedded.blogspot.com/2026/12/cubie-a7z-v2-boot-up-on-mainline-linux.html
5•tcmichals•1h ago•0 comments

Making It Easier to Build and Ship Games on Xbox

https://news.xbox.com/en-us/2026/12/02/making-easier-build-and-ship-games-xbox/
133•msephton•4d ago•61 comments

Mid-conversation system instructions in the Gemini API

https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-mid-conversation-upd...
74•gmays•5h ago•24 comments

Local models are good enough now

https://www.potluria.com/blog/local-models-are-good-enough-now
466•potluri•10h ago•393 comments

Lisp machines refuse to stay consigned to the parentheses of history

https://www.theregister.com/os-platforms/2026/12/06/lisp-machines-refuse-to-stay-consigned-to-the...
18•gjvc•1h ago•1 comments

Intel confirms Hyper-Threading flaw in several CPUs

https://tldrdailynews.com/news/technology/technology/intel-confirms-unfixable-hyper-threading-fla...
292•lucamark•15h ago•138 comments

Project Gutenberg stuck offline after vandal turns book pages into link farm

https://www.theregister.com/security/2026/12/04/project-gutenberg-stuck-offline-after-vandal-turn...
116•jruohonen•6h ago•42 comments

Evidence for the Tomb of Alexander the Great at Alexandria's Shallalat Gardens

https://www.academia.edu/182065274/The_Sema_of_Alexandria_Archaeological_Architectural_and_Topogr...
142•tsaki•4d ago•25 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.