HN user

pstch

143 karma
Posts0
Comments68
View on HN
No posts found.

Is evaluation lazy in TypeScript ?

For me, one of the most important features of a configuration language is the ability to directly refer to other values of the configuration, and more importantly, in the case of a configuration split in separate modules, to refer to values that could be provided by the other modules.

Essentially, this means that the final configuration should be the fixed point of a function, that the user would provide the configuration as a definition of this function (or in the case of multiple modules, as multiple definitions that would be merged using function composition), and that the evaluator would be able to determine the fixed point of this function.

I feel like this kind of configuration (used notably in NixOS) provides a lot of what's missing in traditional configuration languages, makes it easier to compose configuration modules, without requiring to write the configuration in a Turing-complete language.

It's not even paranoia. He wants to present reasons of his actions, and the judicial authorities won't allow that, and are not even really hiding it.

I prefer calling a graph "colored" rather than "with a labeling of the graph’s vertices with labels such that no two vertices sharing the same edge have the same label". Sometimes my graph being colored will be a problem, sometimes it will be a good thing.

Note that is just a parallel with colored functions, the "colored" word does not mean the same thing here (the meaning of "colored" in graph theory has little to do with the one used in programming).

Nonetheless, if I think that using this word is upsetting to some group of persons, whether I understand their reaction or not, I try to avoid using it. On the Internet it's difficult, because we're addressing ourselves to a very large potential audience.

What is Amazon's interest in this ?

I hope this is good news for the Blender Development Fund, but I'm scared of the possible consequences. I suppose we may end up seeing Blender Cloud offering remote renders using AWS's infrastructure, which is good news unless it means tying the rendering engines to Amazon tech.

For context, here is a brief overview of the 2019 financial report of the Blender foundation :

- 33% of income (316 k€) from individual sponsors

- 28% of income (267 k€) from EPIC Games

- 27% of income (257 k€) from other corporate sponsors

- highest salary: 58.4 k€

- lowest salary: 32.5 k€ (55% of highest)

- 43% of expenses (416 k€) were salaries

I really like Blender, and seeing it thrive in the last years has brought me immense pleasure. I hope that I have the chance to work with Blender again, and benefit from the recent improvements.

Congratulations to the Blender Development Fund for this new sponsor, which I hope will bring value to the project.

No Cookie for You 6 years ago

I'm using this setup, and I still get cookie/ToS banners all the time, especially using Google (I think I'm accepting their new terms of service 4/5 times each day).

This is exactly what I thought 3 years ago when a dentist told me that it was very important for me to get rid of my wisdom teeth, because loss of enamel meant that they were very likely to decay quickly even with proper hygiene. Other dentists told me that it was not necessary, and could be done later if the teeth ended up decaying too much.

Now the teeth are completely decayed, I've started to feel severe pain, and since I've developed severe thrombopenia (<20 G/L), I can't get them extracted easily (couldn't find any dentist willing to take that risk), so since six months, I have to take anti inflammatory drugs for the pain and antiobiotics to limit the infections, as well as the folic acid and corticosteroids needed for ITP, and I have no idea when will this end.

It's very difficult to differentiate important advice from "easy money" advices, especially when this advice stems for a principle of precaution. Most peoples don't develop severe ITP, but if they do, getting wisdom teeth removed before they can cause problems can be very important.

It depends on many factors (teeth being devitalised, expected complications during the surgery, and other non-teeth related factors as well). Some people do get a local anesthesia (not knocked out), others have no choice.

Yes, and there's another downside to that : it makes me lose the other ZFS benefits (raidz, mirroring, some level of performance).

I find it very unfortunate that file metadata is not encrypted : if you need this to be encrypted, you need to stack LUKS on top of ZFS, and you lose many of the benefits of ZFS (per-dataset encryption, healing ability, RAIDz, etc) while doing so. Running ZFS->LUKS->ZFS to recover some of these benefits is also not feasible at all (ZFS doesn't like to self-host, even through a virtual machine).

One Week of NixOS 6 years ago

As said by the other commenter, most of these patches are caused by NixOS not using the FHS (except for /usr/bin/env), which can be considered as a good thing in itself. In an ideal world, it would not be a problem (programs should not assume anything about the filesystem hierarchy, and should always use $PATH or their own environment variables).

The issue of integrating with other language ecosystems is indeed very problematic (and it's a very hard problem), especially with regards to the chain of trust (by the way, it's not completely broken, you can still read the original package hash in the derivation, and evaluate this derivation to get the Nix derivation hash), and with regards to the fact that including all of the packages of every ecosystem in `nixpkgs` is not doable.

There is also the (related) problem that evaluating a configuration implies evaluating `nixpkgs` itself, which requires a good amount of available memory, and this can only get worse as `nixpkgs` grows.

One Week of NixOS 6 years ago

There are lots of things to be said about Nix and NixOS, and many of these things have been mentionned in this page, but there's one thing I really like with Nix : the fact the the configuration is expressed as a function that takes its own result as argument, and that the final configuration is the fixed point of that function. This is a very powerful concept, as these functions can be composed together.

I think this idea is not specific to Nix, and I wish it was used a lot more in configuration languages. For example, it was something I really missed when using Ansible. The lack of this feature means that writing the inventory is much harder than it needs to be, and I've seen horrible hacks that try to get around this.

One Week of NixOS 6 years ago

Steam itself works pretty well, but I've had many games just inexplicably segfault on startup. It's weird because I get the same segfault: - using steam-run - in a FHS user environment - in an LXD container (on this NixOS host) running Debian 10

The same games run fine on a Debian 10 host, all of the libraries the link to are bit-identical to the ones in the LXD container, and I've even tried running the exact same kernel.

I'm lost here, as I feel like I've made everything match (at least in the LXD container): the kernel is bit-identical, the games are bit-identical, the libraries they link to are bit-identical. There must be something I'm missing.

The page you linked takes 8s to display on my browser, even on subsequent reloads, just because I don't allow third-party scripts. It also has no displayed images, for the same reason. I really don't wish more sites were like this.

My main gripe is that JS is required to view the website. It doesn't work on my mobile phone (which is rather old, I admit), and it takes a huge amount of CPU time to load on my X60.

I really like that I can still use HN on this phone, but it's more and more frequent that I cannot open the links themselves.

This site cannot be viewed without third-party JavaScript enabled (it shows a blank page on both Firefox and Chrome), and this is happening more and more on HN links. I think it's pretty sad that so many websites are adding a client-side dependency on third-party code just to view the website. In this case, this doesn't seem intentional, as the code is full of <noscript> tags.

I also cannot begin to understand how can a <body> tag's class definition can take 4400 bytes. In what kind of situation do we need to apply 146 CSS classes to the <body> tag ?

There is another, silent, group : the ones that don't have any problem with the updates, because they disabled them, or because the local computer expert who installed their computer disabled them. They are also not vocal at all, since they "don't have any problem". (And this is also not only a problem on Windows).

As I understand it, the CIP is opt-in, so it is truly voluntary.

EDIT: Well, it's supposed to be opt-in, but apparently Intel has been sneaking it on user computers without their approval, which suggests that the checkbox used to install it from the driver assistant might be checked by default... so not opt-in.

KSM is also not totally free, a good amount of CPU time has to be spent to search for merging opportunities (this amount scales logarithmically with the amount of pages to scan).

There is also a simple security implication, since you now have the possibility to over-allocate your physical memory, and suffer great consequences if many pages are unshared at the same time. Merged pages can be swapped out, but since they need to be scanned again when they are swapped in, BEFORE being merged, there is a great potential for memory pressure spikes in some configurations.

I haven't been using Windows a lot in the last years (as you said, updates annoy me a few times a year, but I still take the time to do them), however, a lot of Windows users have told me and others in our hackerspace that the first thing they do is to disable Windows Update when they install Microsoft Windows, so I suppose that they are really annoyed by updates.

I think most of them cling to the idea of a computer that doesn't need any kind of maintenance (except on the hardware side), which is something I can totally understand, but is not currently doable, at least if you want to keep connected to the rest of the world.

(Of course, we do tell them that if they want their computer to be connected to the outside world in any way, updates should not be disabled, and that maintenance is necessary).

In the video, is the last application that opens when Longhorn starts up a package manager ? I've never really understood why both Microsoft and, especially, Apple have never tried to adopt a model similar to the one used by Linux distributions, positioning themselves as the intermediary between the end users and application developers. I suppose this is because they were focused on enterprise customers, and there was already a model in place for shipping software to such customers. However, for home users, installing applications have always been a tedious process that is full of risk.