Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
t0astbread
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
t0astbread
3y ago
Don't know if it's still a good approach but a few years ago I used Preact with htm without any build tools for a project. No compilers, bundling or package managers, on my part. (Preact and htm were, of course, pre-compiled and b
32.
▲
by
t0astbread
3y ago
All of that? That's so complicated. Maybe we can add something more versatile. Something like: .my-button { padding: 1em; goto: my-button-colors; } html { label: my-button-colors; background: white; color
33.
▲
by
t0astbread
3y ago
I think they meant "run apps directly on hardware / virtual hardware". As in building the app with a unikernel, bypassing the need for a (large) operating system.
34.
▲
by
t0astbread
3y ago
Just as a word of warning (because I can't tell if this is satire): NixOS does not provide the same experience as a typical Red Hat or Debian-derived distro. It's a vastly different paradigm where your system (including its config
35.
▲
by
t0astbread
3y ago
Is is possible to boot iOS devices into an alternative OS? Googling around I found OpeniBoot but it seems to only support older iPhone and iPad models (and iPod).
36.
▲
by
t0astbread
3y ago
Isn't it the same with channels though? On my system `/nix/var/nix/profiles/per-user/root/channels/nixos` is a symlink to `/nix/store/[...]-nixos-23.05/nixos`.
37.
▲
by
t0astbread
3y ago
Interesting. Do you know why? I've only ever tried launching nested instances of Sway (the compositor I use) which each use their own sockets and render as a client to the parent compositor and that worked fine. Does it have something
38.
▲
by
t0astbread
3y ago
There's also a newer protocol called "Wayland" which aims to avoid some issues with X11 (and is also a general architecture overhaul). GNOME and KDE support it out of the box and iirc at least GNOME also enables it by default
39.
▲
by
t0astbread
3y ago
It's probably an insignificant detail but why do some options in the AC adapter category contain the word "[censored]"? [censored] - Plug Type "Europlug" (CEE 7/16) [censored] & [censored] ("UK&q
40.
▲
by
t0astbread
3y ago
Fair enough, NixOS doesn't completely solve this either (other than the aforementioned possibility to reference other parts of the system config and some integrity checks). I was just wondering if that's an area where more static
41.
▲
by
t0astbread
3y ago
Nix bombs out when it runs into a cyclic reference, so at least infinite recursion doesn't hang without any output. Likewise, it also rejects multiple definitions for a value (though to be fair some values like attribute sets are merge
42.
▲
by
t0astbread
3y ago
For the record, Nix doesn't let you install unfree packages by default either. You have to flip a flag to allow it and you can also supply a predicate to conditionally approve unfree packages ( https://nixos.org/manual&#
43.
▲
by
t0astbread
3y ago
One use case for lazy evaluation in NixOS is that you can reference other parts of the system configuration, possibly even defined in other modules, as long as you don't produce cyclic references. For example, I use stuff like the foll
44.
▲
by
t0astbread
3y ago
TIL that Guix is based on Nix. I always thought it's a completely separate implementation of the same paradigm until now. Would be interesting to see a comparison which parts/concepts of Nix are used by Guix and what it introduces
45.
▲
by
t0astbread
3y ago
Maybe a beginner question (since IDK much about Rust or Tokio) but in the final Tokio example, what happens if the child program writes something and exits while we're in the read block? Skimming the docs[1] it seems the `select!` macr
46.
▲
by
t0astbread
3y ago
I'm doing something similar but in a less fancy way: I've got a Hydra server (the NixOS CI thing) set up on a potato-grade SBC with a more powerful desktop computer acting as a builder. The desktop runs a small Go program that I&#
47.
▲
by
t0astbread
3y ago
There's also the "exec" keyword that lets you run a command in a "Match" block like so: Match host my-pc.local exec "wakeonlan -i 192.168.178.255 11:22:33:44:55:66" This doesn't cover the case
48.
▲
by
t0astbread
4y ago
I wonder if there's potential for a new cryptocurrency scam here if you can spam your wallet address across online forums with the appropriate surrounding text and get it incorporated into responses that way. E.g.: > User: Is the AI
49.
▲
by
t0astbread
4y ago
Should've just used the exploit to deploy using one of their user accounts, then thank them for the quick fix!
50.
▲
by
t0astbread
4y ago
The sideloading dialogs are a bit extreme, I agree. But in general I don't see what's wrong with guiding users towards the "happy path" for package management. It's an opinionated system so it might not be everyone&
51.
▲
by
t0astbread
4y ago
It's not exactly the same but if you're looking for a simple environment that lets you create games for the web, you should check out the PICO-8: https://www.lexaloffle.com/pico-8.php
52.
▲
by
t0astbread
4y ago
It's a similar story with Twitter. I guess those onion services should be seen more as "censorship-resistant funnels to siphon your data" rather than anonymous ways to use the service. (Although I'm not sure how many sit
53.
▲
by
t0astbread
4y ago
You don't necessarily have to enable `allowUnfree` entirely. There's also `nixpkgs.config.allowUnfreePredicate` which lets you define a predicate that takes a package and decides if it's okay to install.
54.
▲
Restoring my broken file system with Btrfs, NixOS and Restic
(tbx.at)
2 points
by
t0astbread
4y ago
|
0 comments
55.
▲
by
t0astbread
4y ago
At the time it was the "tailwindcss" package IIRC. I also just tried it again on the latest iteration of that codebase and ran into some import problems, seemingly related to "markdown-it" (version 13.0.1). First I got &
56.
▲
by
t0astbread
4y ago
Usually I learn whatever interests me and I also make project decisions (in personal projects) based on that[1]. I generally try to get jobs where I can learn what I want to learn, not "the other way around", if that makes sense.
57.
▲
by
t0astbread
4y ago
I have zero experience designing systems like that but I think the sweet spot would be a standard library that's modular and detached from the core. You could pull it in after setting up the core, replace it or upgrade it in parts but
58.
▲
by
t0astbread
4y ago
Bun and Deno both look really impressive and I hope development in this space continues at the massive pace it's happening right now. But I've tried using both on a small greenfield project recently (nothing fancy - just a static
59.
▲
by
t0astbread
4y ago
What I meant with "accessible SDN solutions" are things like Tailscale, ZeroTier, Nebula or one of those WireGuard key/route distribution servers which a few people have implemented in slightly different ways. (There used to
60.
▲
by
t0astbread
4y ago
Sidenote: I find it interesting that Syncthing kind of implements a purpose-specific software defined network by itself with its discovery and relay protocols. I'm guessing that's because Syncthing has been around for longer than
More ›