> 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.
242 karma · joined July 23, 2015
> 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.
Whereas Nix keeps binaries around longer, but also includes the ability to automatically and reproducibly build from source.
That seems like a gross overstatement.
https://github.com/rust-lang/rust/blob/master/library/std/sr...
CTRL-F: unsafe
Only one result, an optional utility function: "pub unsafe fn get_many_unchecked_mut"
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 numbers suggests that it is a very good approximation to say that half of the atoms remain after one half-life
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 that a Nock interpreter doesn't have to use the algorithm above. It just has to get the same result as the algorithm above.
There was this RFC[0] but it seems to have fizzled.
> And it still doesn’t work for native functions.
The page states: 'Function calls from within internal functions will not be affected by the strict_types declaration' (emphasis mine). Outside of array_map I don't think this happens all that much.
> So in the end, the best option is to _not_ type scalar parameters, and do the strict check manually and throw your own TypeError, inside your function instead.
That sounds awful. Why not install a nice static analyzer like phpstan or psalm and never think about it again?
There is `declare(strict_types=1)`[0]
[0]: https://www.php.net/manual/en/language.types.declarations.ph...
[0]: https://github.com/NixOS/nixpkgs/blob/nixos-22.11/nixos/modu...
That being said, most services have an option to use verbatim configuration files[0] or fragments[1][2][3].
[0]: https://search.nixos.org/options?show=services.yggdrasil.con... [1]: https://search.nixos.org/options?show=services.nginx.config [2]: https://search.nixos.org/options?show=services.bind.extraCon... [3]: https://search.nixos.org/options?show=services.nginx.appendC...
(edit) I'm perfectly fine using 8601 in technical contexts, or anywhere really, but describing American cultural practices as "insane" and "bizarre" is exactly what I'm talking about.
Pretty sure it's just anti-American signalling/globalist cultural imperialism. Asian/8601 date format makes a lot more "logical" sense, but nothing beats what you grew up using, at least for me, in a non-technical context.
[0]: https://github.com/jbboehr/php-handlebars [1]: https://github.com/jbboehr/php-mustache [2]: https://www.smarty.net/ [3]: https://twig.symfony.com/
$ 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)[0]: https://en.wiktionary.org/wiki/funga [1]: https://en.wiktionary.org/wiki/fungus#Declension
[0]: https://github.com/railwayapp/nixpacks/blob/60ab563fdc9bf4fb...
https://manpages.ubuntu.com/manpages/bionic/man1/oathtool.1....
I like the elegance of pure make, and do use it when appropriate, but I wouldn't really want to reimplement the things autotools does myself in it.
[0]: https://github.com/jbboehr/handlebars.c/blob/master/configur...
Any sufficiently complicated init system contains an ad hoc, informally-specified, bug-ridden, slow implementation of half of systemd.
[0]: https://doc.rust-lang.org/reference/procedural-macros.html [1]: https://github.com/dtolnay/cargo-expand
> Files inside node_modules are cloned or hard linked from a single content-addressable storage
Also (IIRC, it's been a long while) it's lockfile contains enough information to translate it directly to a Nix derivation[1].
[0]: https://pnpm.io/ [1]: https://github.com/nix-community/pnpm2nix