Recent submissions

Comment · 6 months ago
Good on Anthropic for giving an update & token refund, given the recent rumors of an inexplicable drop in quality. I applaud the transparency.
Comment · 6 months ago
Wine for classic Mac OS? Amazing. Well done.
Comment · 9 months ago
You should not be using Python types without a type checker in use to enforce them.

With a type checker on, types are fantastic for catching missed cases early.

Comment · 10 months ago
I intentionally avoid using us-east-1 for anything, since I’ve seen so many outages.
Comment · 10 months ago
> If you didn't know, you can embed JavaScript into an SVG file.

Oh yikes. I did not know.

Comment · 11 months ago
I’ve been meaning to write this article for a long time @flexdinesh . Thanks for taking the time to share this technique for managing stacked diffs using vanilla git rebase!
Comment · 1 year ago
Comment · 1 year ago
mypy is compiled using mypyc. It does not run as Python code.
Comment · 1 year ago
For HTML-in-HTML natively I use iframes and still remember how to use Frames & framesets.
Comment · 2 years ago
I find it amusing that the motivation for creating a complex font program that supports syntax highlighting internally is the desire to avoid a complex syntax highlighter JavaScript library. The complexity is still there; it's just been moved around.

Edit: Perhaps this is a reminder that custom fonts are a potential attack vector for security-sensitive websites since font rendering runs highly-complex programs, probably in a language that isn't memory safe.

Comment · 2 years ago
Looks like this library is serious. Most of what I see can be written more succinctly using existing Python functionality:

  1. Maybe -> Optional[T]
  2. Result -> Union[SuccessT, FailureT]
  3. Future, FutureResult -> concurrent.futures.Future[T]
  4. IO ->  don't use this; none of the standard library I/O supports it
I do appreciate the use of "container" as a term instead of "monad".

I also appreciate the typechecker enhancements being put forward by their custom plugins.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton