HNHacker News
TopNewBestAskShowJobs

velcrovan

3,665 karma · joined August 16, 2012

https://joeldueck.com
submissionscomments
velcrovan··on A different take on S-expressions
It gets worse/better. Since Racket allows you to hook your own reader in front of (or in place of) the default reader, you can have things like 2D syntax:

    #lang 2d racket
    (require 2d/match)
     
    (define (subtype? a b)
      #2dmatch
      ╔══════════╦══════════╦═══════╦══════════╗
      ║   a  b   ║ 'Integer ║ 'Real ║ 'Complex ║
      ╠══════════╬══════════╩═══════╩══════════╣
      ║ 'Integer ║             #t              ║
      ╠══════════╬══════════╗                  ║
      ║ 'Real    ║          ║                  ║
      ╠══════════╣          ╚═══════╗          ║
      ║ 'Complex ║        #f        ║          ║
      ╚══════════╩══════════════════╩══════════╝)
https://docs.racket-lang.org/2d/index.html
velcrovan··on Claude 4 System Card
None; but, as mentioned in the post, 99% is considered a failing grade in application security.
velcrovan··on Claude 4 System Card
I disagree. Nowhere does it mention the AI showing an interest in generating and punishing simulations of historical people.
velcrovan··on Spaced repetition memory system (2024)
What about this is inferior? I'm a software developer (that is to say, not low in computer literacy), and I've bounced off Anki a few times, the UX is terrible. I haven't used RemNote any more than you have, but unlike Anki it seems actually care about reducing UI friction.
velcrovan··on Show HN: My self-written hobby OS is finally running on my vintage IBM ThinkPad
Is that 4sec delay something introduce in the pi 4 or 5? At least one guy got the 3 to boot to a Qt app in 2.8 seconds: https://www.furkantokac.com/rpi3-fast-boot-less-than-2-secon...
velcrovan··on Show HN: My self-written hobby OS is finally running on my vintage IBM ThinkPad
I don't think Haiku runs on raspberry pi either.
velcrovan··on Show HN: My self-written hobby OS is finally running on my vintage IBM ThinkPad
Is there any chance of booting this on a raspberry pi someday?

I'd love a non-linux minimal single-user OS that boots in <1 second

velcrovan··on Get Out of My Head
…At the cost of having to add `img-src data:;` to your CSP, which is unsafe.

https://security.stackexchange.com/questions/94993/is-includ...

velcrovan··on Better typography with text-wrap pretty
Better ways of laying out digital text have existed since before ereaders existed. Even this one CSS directive has already been supported by Chrome for two years. What's missing is Amazon & co. giving a shit about it. That needle shows no signs of moving.
velcrovan··on Better typography with text-wrap pretty
It wasn't created by WebKit. WebKit is announcing (at last) support for it.
velcrovan··on Move fast, break things: A review of Abundance by Ezra Klein and Derek Thompson
Except that Bruenig isn’t opposed to Abundance (neither am I). In the conclusion to the review he says the book is fine and that people who are upset about it are blowing things out of proportion. What quiet part is being said loud in this review, again?
velcrovan··on Move fast, break things: A review of Abundance by Ezra Klein and Derek Thompson
From another good review of the book:

> “One of the personally amusing aspects of reading Abundance is that it kept reminding me of a two-hour discussion I had with Ezra Klein in 2019 about Medicare for All. […] In our discussion, Klein balked at making Medicare for All the centerpiece of a Democratic health care agenda because he thought it was not politically practical. […] At one point in the discussion, he asks how would I overcome employer opposition to the change, and I responded that we will just have to beat it, which he clearly did not find persuasive.

> “It’s not hard to imagine having the same conversation about Abundance but with the roles reversed. Whatever the merits of their proposals, Klein and Thompson are pushing an agenda that requires direct confrontation with many powerful, entrenched constituencies.”

https://www.peoplespolicyproject.org/2025/03/24/the-abundanc...

velcrovan··on Windows 11: Removing bypassnro Script to Enhance Security and User Experience
I’ve never tried it so I’ll take your word for it. To me the reason it feels silly is because iCloud functionality is really good.
velcrovan··on Windows 11: Removing bypassnro Script to Enhance Security and User Experience
I’ve been a Windows user for 30 years and a Mac user for 15 years so I see both sides of this. I think you can set up a new Mac without an Apple ID but an Apple ID has been a core part of the Apple ecosystem for so long that it feels silly not to use one. At the same time with Microsoft attempting to do the same thing it just feels janky and something I’d much rather skip.
velcrovan··on Xee: A Modern XPath and XSLT Engine in Rust
Fair point, I was just gesturing at the difference of experience when clicking on an unstyled feed vs a styled one. I could have said “as if it were a normal HTML page”
velcrovan··on Xee: A Modern XPath and XSLT Engine in Rust
It definitely wasn’t my idea! I got it from Matt Webb: https://github.com/genmon/aboutfeeds (there’s a .xsl file in the “tools” folder there).
velcrovan··on Xee: A Modern XPath and XSLT Engine in Rust
I have not looked into the use of zippers for this purpose, but I will do so!

Racket has helper libraries like TxExpr (https://docs.racket-lang.org/txexpr/index.html) that make it pretty easy to manipulate S-expressions of this kind.

velcrovan··on Xee: A Modern XPath and XSLT Engine in Rust
My favorite and only use of XSLT that still works pretty well is to allow people to browse my RSS feed as if it were a web page.

https://joeldueck.com/feed.atom

velcrovan··on Xee: A Modern XPath and XSLT Engine in Rust
You should try using a LISP like Racket for XML. Because XML can be expressed directly as S-expressions, XML and LISP go together like peanut butter and jelly.

    <greeting attr="val" href="#">Hello <thing>world</thing><greeting>

    (greeting ((attr "val") (href "#")) "Hello " (thing "world"))
velcrovan··on How to Use Em Dashes (–), En Dashes (–), and Hyphens (-)
Here's my AutoHotkey script for making my favorite punctuation hotkeys on my Windows laptops the same as my Mac:

    #-::Send("–")     ; Win+- = en-dash
    #+-::Send("—")    ; Win+SHIFT+- = em-dash
    #]::Send("‘")
    #+]::Send("’")
    #[::Send("“")
    #+[::Send("”")
    #;::Send("…")
    #+>::Send("→")
    #+<::Send("←")
    #8::Send("•")
    #+x::Send("×")      ; multiplication symbol
edit...downvoted, why? weird
velcrovan··on Linux kernel 6.14 is a big leap forward in performance and Windows compatibility
You think Microsoft wants Windows games to perform better on Linux?
velcrovan··on 4o Image Generation
I guess you have not heard that NVidia is generating frames with AI on their GPUs now: https://www.nvidia.com/en-us/geforce/news/dlss4-multi-frame-...

> “DLSS Multi Frame Generation generates up to three additional frames per traditionally rendered frame, working in unison with the complete suite of DLSS technologies to multiply frame rates by up to 8X over traditional brute-force rendering. This massive performance improvement on GeForce RTX 5090 graphics cards unlocks stunning 4K 240 FPS fully ray-traced gaming.”

velcrovan··on Rhombus Language
The overlay system is an even worse paradigm than global variables within a program. And one I too am very familiar with.

What happened here was that this payroll system of yours was written by people who saw clearly the danger of BASIC's many footguns and mitigated it the best way they could, by supplementing their code with vast quantities of english prose. This is not an argument in favor of BASIC.

> Just as one can write spaghetti code in any language, one can equally write good clean code in any language.

This is only half the truth. It's like saying it's equally possible to drive well or poorly in a 1990 Yugo as it is in a 2025 Accord. The car actually does matter in a lot of cases. I despise Python's tooling, but if one were to do a thoughtful rewrite of your old payroll system in Python, all those code comments would be completely unnecessary (it would be impossible to commit the kind of error that the comments were needed to warn against), and the code itself would be far easier to read and maintain.

velcrovan··on Rhombus Language
For years I maintained an ERP system written in BASIC. It was legitimately terrible. The lack of lexical scoping and decent flow control made it nearly impossible to reason about for even simple changes. There’s nothing brilliant about line numbers and all-global variables, it’s literally one of the laziest, sloppiest design decisions you could make in a programming language.

Granted, if your only experience of BASIC is fond memories of the TRS-80 at your grade school, yeah any contempt for it will seem simplistic and poorly motivated. Maybe try having to depend on it for literally anything in a professional setting and you’ll have a more informed perspective.

velcrovan··on Rhombus Language
It has a lot of libraries. Can you give some examples of the gaps you are talking about?
velcrovan··on Rhombus Language
I have one day of college under my belt and use Racket for all my personal projects, as well as in a few areas related to ERP systems professionally. I have found no compelling reason to use Typed Racket so far.

[edit to clarify: I am not in college. I’m in my forties and have 25 years experience as an IT/programming/accounting generalist.]

velcrovan··on I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA
Counterpoint: green cards are now being yanked for constitutionally protected speech.
velcrovan··on What We've Learned from 150 Years of Stock Market Crashes
What I'm hedging against is the possibility that technical issues at TreasuryDirect, and ensuing uproar, will temporarily prevent me from redeeming bonds at a time when I cannot afford to wait for a resolution.

maybe I am wrong but I view this as a very separate scenario from the US formally stating that it will default, which I agree would cause problems I'm in no way prepared for.

velcrovan··on What We've Learned from 150 Years of Stock Market Crashes
Sure. Of course, if anyone had described what DOGE is doing 1 year ago, they would have been similarly dismissed. I wouldn't say what I am doing is "panicking" or "irrational", I would just say I'm hedging against turbulence that may well prove temporary but which might come at a bad time for me personally.
velcrovan··on What We've Learned from 150 Years of Stock Market Crashes
It's actually improved a lot since I started using it in 2016, but yes. Your session breaks if you use your browser's "Back" button. It used to require you to enter your password by clicking around on an on-page keyboard, I would always open dev tools, "edit as HTML" the read-only password input and paste the password right in from my password manager.
← PreviousPage 7 of 28Next →