HNHacker News
TopNewBestAskShowJobs

chills

53 karma · joined May 9, 2018

submissionscomments
chills··on ShannonMax: A Library to Optimize Emacs Keybindings with Information Theory
What do you mean, "the OS as a whole"? This is the OS!
chills··on Jeena's Hyprland Demo
In addition to sibling commenter, niri exposes everything over an IPC accessible via its cli (or a socket), so if you wanted, say, a keybind to switch to your terminal, no matter where it is, you could bind it to this:

  niri msg action focus-window --id $(niri msg --json windows | jq '.[] | select(.app_id=="foot") | .id')
chills··on Neut Programming Language
I don't think it's particularly useful to think of unit as an empty tuple specifically, that is just an arbitrary but convenient definition for it.

Really a unit type is just one that contains only a single value. This is a unit in the same way that 1 is a unit for the integers. With some hand waving it is an identity for product types, for example (int, ()) is the "same" (xxxmorphic yada yada) as int

chills··on Hyprland Crash Course
X does, you can use xrandr --setmonitor.

For example, splitting a 5120x1440 monitor into three:

  xrandr --setmonitor DisplayPort-0-0 1280/297x1440/340+0+0 none
  xrandr --setmonitor DisplayPort-0-1 2560/595x1440/340+1280+0 none
  xrandr --setmonitor DisplayPort-0-2 1280/297x1440/340+3840+0 none
chills··on Super Colliding Nix Stores: Nix Flakes for Millions of Developers
> If only there were a Buck2 and Nix hybrid

You'll be interested in https://github.com/thoughtpolice/buck2-nix

chills··on Kenji López-Alt spent 5 months studying Chicago thin-crust pizza
Emmett's
chills··on Idris: A language for type-driven development
See also: https://en.wikipedia.org/wiki/Curry%E2%80%93Howard_correspon...
chills··on Does having prime neighbors make you more composite?
2 is prime
chills··on My Steam Game Revenue Stats
Steamdb[1] gives some info on concurrent players, but only estimates for owners. Looks like they estimate number of reviewers between 5-15%.

[1]: https://steamdb.info/app/1404560/graphs/

chills··on Edge Computing
All the jokes about launching rockets in the "what is a monad" articles are finally coming true!
chills··on REST vs GraphQL vs gRPC
Scala has several (approximately one per effect library): https://scalapb.github.io/docs/grpc/
chills··on Why nullable types?
The article mentions unions vs discriminated unions and then mentions nesting nullable being different than nesting optional, but it doesn't really tie the knot.

Imagine (sorry for pseudocode):

  type Option T = Some T | None
  type Nullable T = T | null
The difference here is that Option "tags" each part of its union, which guarantees that the parts are disjoint. In Nullable, the parts of the union are disjoint only if T is not itself nullable. If T is S | null, Nullable T is S | null | null, which is just S | null (since null and null are not disjoint.
chills··on Why a land-value tax is inevitable
I think you'd need to widen point 3 to be a Pigovian tax[1], and add a fourth point for a severance tax[2].

[1]: https://en.wikipedia.org/wiki/Pigovian_tax

[2]: https://en.wikipedia.org/wiki/Severance_tax

chills··on Luna – Cloud gaming service
> Remote Desktop in Windows, for example, feels laggy even on LAN

I'm not convinced by this, because RDP feels laggy even remoting to a vm on the same machine

chills··on In Unix, what do some obscurely named commands stand for? (2018)
g/re/p lives on as :g in vim, it's kind of fun to remember its heritage to ed. There is also :v which is analogous to grep -v.
chills··on Searching for 'VK' shows only a single result on DuckduckGo. Why?
It is (used to be?) a pretty common google "hack" to put an intitle:"index.of" on a search to find sites serving files, usually mp3s. Of course once this was widespread enough, SEO spam sites starting including it in the generated clickbait sites.
chills··on Put tiny businesses back into residential neighborhoods
This has also been the case for hundreds of years though.
chills··on Air conditioning's original purpose was to enable factory processes
Meanwhile in NYC: my apartment is regularly heated to 85 degrees in the winter, and it's commonplace to open the window and let in some freezing air to fight the radiator.
chills··on Why Programming Is a Good Medium for Expressing Poorly Understood Ideas (1967)
I think if I was not aware of the Monty Hall problem and I ran that simulation, I'd assume there was a bug in my code.
chills··on Microsoft buys corp.com so bad guys can’t
Do you really think these organizations shipping their credentials off to corp.com are applying Windows updates?
chills··on Eshell as a main shell
Part of the magic of eshell that can use elisp functions as if they were shell commands. So instead of C-x C-f filename, you can use find-file filename as a command. find-file in particular is useful as an alias.