Iunno not having to learn Chinese/Mexican to order a sandwich seems like a pretty big upside.
242 karma · joined July 23, 2015
Iunno not having to learn Chinese/Mexican to order a sandwich seems like a pretty big upside.
People love it when you tell them they are "voting against their interests" when you really mean they are voting against YOUR interests.
Sorry for bringing it up, but is that a typo in the description?
A poor example, but this compiles without error and crashes at runtime:
let x: string = "foo"; (x as any) = 1; x.substr(0);
Now, technically, you can do this sort of thing in most, if not all, languages, but this happens organically more often with typescript due to many libraries being written for plain javascript and being looser on their types, or type definitions getting out of sync with the libraries they are written for.
That helps with transfer but clients still have to parse and execute the javascript which can be significant, especially on mobile devices.
fastcgi_param SCRIPT_FILENAME /var/www/index.php;
How do you reconcile this with people complaining about redesigns? I tend to hate them, personally.
That being said, at the time I had wanted to choose Guix over Nix. The channels seemed a bit better thought-out and grafts sounded like a good idea.
Not having a lisp background though, it was just easier for me to get into Nix.
Rust has usize [0] as a size_t equivalent.
`d4ys2c8kzzcp3g4fv3ivy7a5nkayg7w2` is a hash of the inputs to a derivation (a package in Nix terms).
In a sense, at it's lowest level, a derivation is a function `f(x) -> y` where `x` is some Nix expressions (including the inputs and how to build it, often in bash) and `y` is a nix store path. The nix store path includes the hash which is a hash of `x`.
For bind, the config file itself is a derivation, it just uses a plain string (interpolated with variables via Nix) into the writeText wrapper.
[0]: https://github.com/NixOS/nixpkgs/blob/de493bd74921139860624e... [1]: https://github.com/NixOS/nixpkgs/blob/de493bd74921139860624e...
This may be true, but typically the NixOS module will specify the generated config file via the command line [0] or symlink the generated config to the default location in /etc [1]. I don't believe it's terribly common to patch programs to have different config file paths in nixpkgs.
If you're just using plain Nix on a foreign distro, and not, say, home-manager or similar, it's up to you to provide your own configuration including service units. Presumably you could use Nix for this as well, but I'm not terribly familiar with using Nix on foreign distros.
[0]: https://github.com/NixOS/nixpkgs/blob/de493bd74921139860624e... [1]: https://github.com/NixOS/nixpkgs/blob/de493bd74921139860624e...
[0]: https://github.com/php/php-src/blob/3709e74b5e495e210ada8039...
Just SSH in and tail the log. Dealing with unexpected output from errors clobbering your headers isn't worth the trouble.
You can also try something like FirePHP [0] if you need the errors in the context of the current page.
Have you read any SlateStarCodex? He may have some relevant thoughts, see for example top posts [0] especially #3 and #4.
Also maybe worth researching: cultural evolution and memetics.
Don't forget the gub'ment gets its cut too!
From personal experience, this also makes it easy to set up `let y = f(g(x))` as easily reorderable or printf-debuggable statements in the form of `let y = x; let y = g(y); let y = f(y);`
You can also use GPG keys embedded on the Yubikey for encrypted emails via OpenKeychain and K-9.
Initially, I really wanted to use Guix over Nix, but Nix is more mature with more packages, maintainers, and features.
Last I checked, for example, there was no equivalent of a channel or overlay in Guix. Their npm importer was also not released, whereas Nix has a very usable node2nix.
Having done virtually no functional programming, learning Guile Scheme was also a barrier to me, but the Nix expression language felt a lot more natural for whatever reason.
It's unfortunate - I'm very interested in the work in reproducible builds and substitutions Guix has done, maybe it'll take off at some point or those features will be integrated into NixOS.