Recent submissions

Comment · 6 months ago
Comment · 7 months ago
Comment · 7 months ago
Some utility stuff I copy paste between projects:

  - range, clamp, inIvl, enumerate, topK
  - groupBy (array to record), numeric / lexical array sorts
  - seeded rng
  - throttling
  - attachDragListener (like d3's mousedown -> mousemove -> mouseup)
  - Maps / Sets that accept non-primitive keys (ie custom hash)
So basically functions that every *dash variant includes.
Comment · 7 months ago
Alternatively, dns block the update domains, wait a few months to few years for someone to discover an exploit for rooting, root and sideload.
Comment · 7 months ago
From what I understand, Svelte 4 calculated dependencies at compile time. Whereas Svelte 5 does it automatically at runtime based on which values are accessed in tracking contexts (effect / computed value callbacks). This means objects marked as reactive have to be wrapped in proxies to intercept gets / sets. And plain values have to be transformed to objects at compile time. The deps are also recalculated after every update, so accessing state in conditionals can cause funkiness.

But after working with Svelte 5 daily for a few months, I don't think I like the implicitness. For one, reactivity doesn't show up in type signatures. So I have to remember whats reactive and what's not. Another is that making plain values (string, numbers, etc) reactive is really a trap. The reactivity doesn't cross file boundaries so you have to do weird things like exporting a getter / setter instead of the variable.

Comment · 7 months ago
IME androids dont respect static routes published by the router. I guess self hosting DNS might be more robust but I usually just settle for bookmarking the ip:port
Comment · 7 months ago
> It's full of regurgitated fantasy tropes, the writing and characters seem simple, and there's a forced world building with what feels like an infinite and boring back story, with no movement to justify it.

Maybe it's because he published 7 books that year (2021). Maybe it's also a coincidence that I remember not liking Children of Memory and he published 6 books that year, compared to Children of Time which was 2015 / 2 books.

Also just checked and looks like the fourth book (Children of Strife) is releasing in 2 weeks!

Comment · 7 months ago
Comment · 7 months ago
Funny timing, I was just thinking about this over dinner while scrolling the wiki list on [clarke / seiun / nebula] awards for the thousandth time.

> [Post-sci-fi is] free to allow the science fictional elements of their stories develop slowly, to emerge only in the latter half of the text, or to remain an isolated thread in a larger tapestry, all of which are anathema to genre-machine publishing, which generally wants its spaceships front-and-centre early on, to reassure readers they’re getting what they paid for.

This has always bugged me. There's often an interesting synopsis like (below), but the actual story begins with ~200 pages of backstories. And altogether the actual problem / developments / solution could probably be detailed in a tenth of the page count after subtracting all the character drama.

> "When a signal is discovered that seems to come from far beyond our solar system [...] What follows is an eye-opening journey out to the stars to the most awesome encounter in human history"

But this synopsis is actually from a well known 80s novel [0] so I don't think this slow-burn type of writing has become any more or less common with post scifi. To be clear, I don't have a problem with character-focused stories (I've read a ton!), I just wish they were advertised that way.

At this point I'm finding new / unusual stuff to read by looking for the least liked books whenever recommendations come up. Anyways rant over. On a more positive note, the author's post has put of new names / titles on my reading list. I think my next read will probably be something by Ishiguro:

> [The Buried Giant] follows an elderly Briton couple, Axl and Beatrice, living in a fictional post-Arthurian England in which no-one is able to retain long-term memories. The couple have dim memories of having had a son, and they decide to travel to a neighbouring village to seek him out.

[0] https://en.wikipedia.org/wiki/Contact_(novel)

Comment · 8 months ago
Comment · 8 months ago
> if you enable battery changes, a current gen device can easily last a decade), people will care.

Modern batteries last surprisingly long. I assumed my 5yo pixel 4a was at 50~60% capacity based on feels and the adb batterystats printout estimated the same (with 1600 charge cycles). But when I actually measured the screentime / charging wattage, it was still at 80% capacity. Even confirmed this by replacing the battery and running the same tests.

I think part of the reason the old battery felt worse is that it would read 100% when it was only ~85% full then trickle charge at like 2w for another 90 minutes.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton