Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jbboehr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
jbboehr
3y ago
> I advocate a 100% inheritance tax What sort of nonsense half-measure is this? I propose a 100% tax on parent-child resource transfers starting from the moment of birth! Although, you might just cut out the middleman, seize the childr
32.
▲
by
jbboehr
3y ago
IIUC, you should be able to use it with git-remote-rad[0] via builtins.fetchGit. Flakes would probably need upstream support, though. Seems to work for git-remote-hg, anyway: nix-repl> (builtins.fetchGit { url = "hg:: https:/&#
33.
▲
by
jbboehr
3y ago
(IANAL) Here's an example where an MIT-licensed project switched to APGL recently without needing to contact contributors[0]. Interestingly, the MIT license explicitly names and allows sublicensing, but the 2-BSD and 0-BSD do not call
34.
▲
by
jbboehr
3y ago
> I wonder what it is relative to the Cold War. According to this chart[0], US military spending as a percentage of GDP is pretty close to an all-time low. Sadly doesn't seem to include data covering WWII or Korea, though. I imagine
35.
▲
by
jbboehr
3y ago
See also: https://en.wikipedia.org/wiki/Jevons_paradox
36.
▲
by
jbboehr
3y ago
> I'm thinking of the countless shows which glorify violence, cheating, drug smuggling, and so forth. It's not clear that glorifying these things in the media leads to them being acted out in real life, but even if it doesn
37.
▲
by
jbboehr
3y ago
I got it down to about 33M, gzipped with musl (completely untested, of course)[0]. Most of it seems to be from git: $ nix path-info --closure-size --human-readable nixpkgs#legacyPackages.x86_64-linux.gitMinimal /nix/store/f7b
38.
▲
by
jbboehr
3y ago
It depends on the SAPI. The php-fpm approach is a pool of processes that are reused for multiple requests. Virtually all of the state visible to plain PHP code is reset between requests, however some interpreter/runtime state is kept,
39.
▲
by
jbboehr
3y ago
Well, about that: > in the ranks of captured and confessed terrorists, engineers and engineering students are significantly overrepresented https://www.nytimes.com/2010/09/12/magazine/12FOB-IdeaLab-t..
40.
▲
by
jbboehr
3y ago
See also: Reinsurance > Reinsurance is insurance that an insurance company purchases from another insurance company to insulate itself (at least in part) from the risk of a major claims event. https://en.wikipedia.org/wik
41.
▲
by
jbboehr
3y ago
My experience with apt is that, while you can pin versions of packages once they're installed, they may not exist indefinitely in the mirrors. Whereas Nix keeps binaries around longer, but also includes the ability to automatically and
42.
▲
by
jbboehr
3y ago
> Rust requires unsafe code to implement any non-trivial data structures That seems like a gross overstatement. https://github.com/rust-lang/rust/blob/master/library/std/sr... CTRL-F: unsafe
43.
▲
by
jbboehr
3y ago
> I've seen it said You can estimate it yourself: 0.5 ^ 10 = 0.0009765625 (~0.1%) https://en.wikipedia.org/wiki/Half-life#Probabilistic_nature > When there are many identical atoms decaying, the law of large
44.
▲
by
jbboehr
3y ago
Perhaps Nock: https://developers.urbit.org/reference/nock/definition > The reader might wonder how an interpreter whose only arithmetic operation is increment can ever be practical. > The short answer is tha
45.
▲
by
jbboehr
3y ago
Perhaps it's this one? http://danluu.com/input-lag/
46.
▲
by
jbboehr
4y ago
> Auto setting strictness for every file in your project and checking for it in CI clears the issue, but that becomes another boilerplate you’re adding to your system There was this RFC[0] but it seems to have fizzled. > And it still
47.
▲
by
jbboehr
4y ago
> declaring a type will force cast parameters to that type instead of throwing an error There is `declare(strict_types=1)`[0] [0]: https://www.php.net/manual/en/language.types.declarations.ph...
48.
▲
by
jbboehr
4y ago
I was dead serious :) Although it seems nginx is bit complicated[0], in general, it's fairly easy to set up new systemd services. [0]: https://github.com/NixOS/nixpkgs/blob/nixos-22.11/nixos/mod
49.
▲
by
jbboehr
4y ago
NixOS needs to handle generating the config to make service configurations composable. If you don't want that, you might as well write your own systemd unit. That being said, most services have an option to use verbatim configuration f
50.
▲
by
jbboehr
4y ago
To be clear, I meant it as a general phenomenon and wasn't directed at you. I see a lot of the same thing on reddit, etc. Metric vs imperial is an almost-daily comment chain in the Oxygen Not Included subreddit, for example. It just ge
51.
▲
by
jbboehr
4y ago
> it's definitely not "insane" and not "bizzare". Why would anyone even claim that? Pretty sure it's just anti-American signalling/globalist cultural imperialism. Asian/8601 date format makes a lot
52.
▲
by
jbboehr
4y ago
`-Wformat-security` [0] to the rescue! [0]: https://fedoraproject.org/wiki/Format-Security-FAQ
53.
▲
by
jbboehr
4y ago
PHP isn't really used as a template language any more. Most people use a different template language for the views. I've implemented two myself[0][1] but an early one was Smarty[2] and there are many others. I hear Twig is pretty
54.
▲
by
jbboehr
4y ago
$ php -r 'var_dump("0x10" == "16z");' bool(false) $ php -r 'var_dump(0x10 == "16z");' bool(false) $ php -r 'var_dump(0x10 == (int)"16z");' bool(true)
55.
▲
by
jbboehr
4y ago
Seems like it has no historical usage[0] and is not a valid form of fungus[1], from what I can tell. Kind of a weird choice. [0]: https://en.wiktionary.org/wiki/funga [1]: https://en.wiktionary.org/wiki
56.
▲
by
jbboehr
4y ago
You can use your GPG key as an SSH key[0], and you'll also only need to manage one key - although that doesn't fix whatever issues you might have with GPG, of course. [0]: https://wiki.archlinux.org/title/GnuP
57.
▲
by
jbboehr
4y ago
Do builds use sandboxing? It appears not[0], is this in the roadmap? Based on my experiences with node2nix, composer2nix, carnix, etc, I don't blame you for not going that route. Not to knock on the developers of those tools - it'
58.
▲
by
jbboehr
4y ago
There is also oathtool: https://manpages.ubuntu.com/manpages/bionic/man1/oathtool.1....
59.
▲
by
jbboehr
4y ago
I tried this once for animated video thumbnails in a feed. It was about as awful as you can imagine.
60.
▲
by
jbboehr
4y ago
Yes, I used autotools[0]. It's definitely hairier than plain make, but you get a lot of useful features on top of it. There's thousands of examples all over the internet so it's easy to reference them. I like the elegance of
More ›