Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nh2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
43 ms
·
481.
▲
by
nh2
5y ago
> How do I find which nixpkgs commit hash I should use to get that specific version This is answered in a sibling comment here: https://news.ycombinator.com/item?id=28243409 The tool does exactly that. However: > find
482.
▲
by
nh2
5y ago
I think this view is too narrow; there is definitely need for fine-grained incremental build systems, even outside mono-repos. If you need to chase a bug into a more fundamental library, say libc, libpng, or your stack's favourite JSON
483.
▲
by
nh2
5y ago
"You don't need X for centralised" does not imply "if you have X then you're decentralised". Beyond that simple logic: https://www.figma.com/blog/how-figmas-multiplayer-technology... >
484.
▲
by
nh2
5y ago
Running a mailserver with correct DKIM, DMARC etc is not that difficult. I recently made a presentation that has a full explanation of the techniques, why they exist and how they work, on Hetzner Cloud (from the original post): https:/
485.
▲
by
nh2
5y ago
Maybe I'm misunderstanding you, but it looks like it is a PHP specific problem. Python does not have it. Of course at C level parameterised queries ("prepared statements") do not accept arrays. It would not make sense for t
486.
▲
by
nh2
5y ago
That's the same software with different UI backends. If you click the "entirely different URL", it redirects to the HN post's URL. The AUR URL is apparently the URL of the author's company, and I guess that the edit
487.
▲
by
nh2
5y ago
For people wondering when this is needed: Go is one of the programming languages that makes syscalls directly, thus libeatmydata has no effect on it (being an LD_PRELOAD to the libc).
488.
▲
by
nh2
5y ago
My run on NixOS 21.05 with sqlite 3.35.2, without randomness, on an i7-7500U: Invocation: command time sqlite3 ':memory:' ' create table IF NOT EXISTS user ( id INTEGER not null primary key, area
489.
▲
by
nh2
5y ago
This release also fixes a 300x speed regression in `strip`: https://sourceware.org/bugzilla/show_bug.cgi?id=28058 Many Linux distributions use strip as part of their package builds, so it can have a large impact in som
490.
▲
by
nh2
5y ago
Aside: SQLite has native functionality to do what libeatmydata does (disable fsync): pragma synchronous = off https://www.sqlite.org/pragma.html#pragma_synchronous
491.
▲
by
nh2
5y ago
It would be quite impressive if this was a long-time planned "Embrace, extend, extinguish" move against Copyleft, with a casual acquisition of Github to make it work. Finally, it beat the "cancer that attaches itself in an in
492.
▲
by
nh2
5y ago
Yes, you should read the manuals and try it out, given how easy and cheap it is to play around with smaller-instance cloud servers. I also started writing a tutorial series for practitioners you can check out: https://github.com&
493.
▲
by
nh2
5y ago
> There needs to be an option between them. NixOS with nixops is one such option (on bare metal or VMs). You need to climb up the Nix learning curve a bit, but obtain an overall vastly less complex system than Kubernetes with its million
494.
▲
by
nh2
5y ago
Applying the NixOS config requires root -- that's not what it's about. What I mean is that services can set other services' options, without you (the admin) having to to write such overrides manually.
495.
▲
by
nh2
5y ago
> Why does this "not compose well" ? Because you cannot easily write libraries/components that do this. In NixOS, other modules can override the options of other modules. For example, a a web app can set the nginx option
496.
▲
by
nh2
5y ago
Reading the preceding and following sentence: You have encountered sarcasm.
497.
▲
by
nh2
5y ago
You can override NixOS's predefined systemd settings from _outside_ using NixOS module options. This allows you to change default settings that are not optimal for your use case, without having to patch NixOS itself, or write your own
498.
▲
by
nh2
5y ago
That's right! After spending 5 years to write the OS, if you can spare 1-2 additional days to write down your experience, it'll be extra useful.
499.
▲
by
nh2
5y ago
On my barebones Windows 10, clicking the WiFi menu makes it hang for up to 5 seconds until the little popup appears where you can turn WiFi on/off or choose the network. Windows 2000 on the Pentium 3 with 300 MHz felt way snappier. The
500.
▲
by
nh2
5y ago
> Is 95% really not acceptable? No: When you use web search for professional work, such as searching for error messages or description of bugs of some software, any miss of somebod having encountered and solved them before can cost you d
501.
▲
by
nh2
5y ago
> you can configure the kernel to ignore that, and by default it does. > The modern linux kernel doesn't actually write to disk when fsync is called. This is false. Almost all open source databases' durability guarantees are
502.
▲
by
nh2
5y ago
I submitted a memory corruption bug in glibc realloc() to Red Hat's security email contact, and they replied quickly and friendly.
503.
▲
by
nh2
5y ago
Google alone had 2.5 million servers in 2016 as per estimate [1], and 0.9 million in 2011 in [2]. So a reasonable guess for today seems > 5 million. [1] https://en.wikipedia.org/wiki/Google_data_centers [2] https:&
504.
▲
by
nh2
5y ago
The work procedures of the "e mailman" were captured in this documentary: https://www.youtube.com/watch?v=9x4_dozWkq0
505.
▲
by
nh2
5y ago
I think there's a misunderstanding: Most people want to use the .a file from their Linux/package distro that provides static libraries, such as Alpine Linux or nixpkgs. Such package distributions just use the build system default
506.
▲
by
nh2
5y ago
Many programming languages do not use Meson as a build system (examples: Go, Rust, Haskell). Some C or C++ projects may use autoconf or CMake, in which case you cannot use Meson subprojects either. Distros use `-Ddefault_library=both` or `=
507.
▲
by
nh2
5y ago
Projects in other programming languages for which Meson is not a choice also want to link statically (thus need the `.a` file installed).
508.
▲
by
nh2
5y ago
I was also disappointed by the recent removal of static linking support in GTK [1]. It worked for a long time and now was made impossible. The reason given was "don't want to support it". That would make sense if it was a mai
509.
▲
by
nh2
5y ago
Well, looks like you just turned right: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/3519#not...
510.
▲
by
nh2
5y ago
I often work on static linking with Nix. Creating statically linked end user programs that aren't minimal CLI utilities is not trivial. You need static linking working for all your dependencies (`.a` files) of all your recursive depend
More ›