News for hackers. Stuff that matters.

chills

What do you mean, "the OS as a whole"? This is the OS!
Re:Show HN: Demo of My Hyprland Setup on Tuesday September 09, 2025 @02:35AM (#45178244)
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')
Re:Neut Programming Language on Monday February 24, 2025 @02:37PM (#43163919)
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

Re:Hyprland Crash Course on Sunday March 24, 2024 @07:20PM (#39811422)
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
> If only there were a Buck2 and Nix hybrid

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

Emmett's
Re:Does having prime neighbors make you more composite? on Friday November 05, 2021 @12:30PM (#29121542)
2 is prime
Re:My Steam Game Revenue Stats on Friday July 23, 2021 @06:19PM (#27936260)
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/

Re:Edge Computing on Wednesday March 24, 2021 @08:16PM (#26574866)
All the jokes about launching rockets in the "what is a monad" articles are finally coming true!
Re:REST vs GraphQL vs gRPC on Monday March 15, 2021 @11:55AM (#26467499)
Scala has several (approximately one per effect library): https://scalapb.github.io/docs/grpc/
Re:Why nullable types? on Tuesday December 08, 2020 @06:26PM (#25353004)
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.
Re:Why a land-value tax is inevitable on Saturday December 05, 2020 @05:48PM (#25319175)
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

Re:Luna – Cloud gaming service on Thursday September 24, 2020 @07:48PM (#24585012)
> 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

Re:In Unix, what do some obscurely named commands stand for? (2018) on Wednesday September 09, 2020 @11:41AM (#24422215)
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.
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.
Re:Put tiny businesses back into residential neighborhoods on Thursday July 23, 2020 @10:24PM (#23935045)
This has also been the case for hundreds of years though.
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.
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.
Re:Microsoft buys corp.com so bad guys can’t on Tuesday April 07, 2020 @02:17PM (#22805884)
Do you really think these organizations shipping their credentials off to corp.com are applying Windows updates?
Re:Eshell as a main shell on Wednesday May 09, 2018 @05:04AM (#17028392)
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.