4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions
comment 6y ago · link · parent
What is your explanation for this?
Is the VkFFT algorithm better? Is SPIR-V fundamentally more expressive than PTX? Are nVidia drivers better at compiling SPIR-V than PTX?
Have you compared the generated GPU assembly from both?
comment 6y ago · link · parent
For instance, the complaints about I/O performance are because the NT kernel has a worse implementation, so they should have improved it for both Win32 and Linux apps instead of giving up.
(your reasoning about the dentry cache makes no sense though since such a cache would be implemented by the NT kernel and certainly not by WSL1, so there's no difference between Linux and Windows programs)
comment 6y ago · link · parent
Linux has a project called CRIU that can save and restore processes to disk without needing additional kernel modules, so pretty much all state is already gettable and settable from user space.
comment 6y ago · link · parent
Even if you write a kernel driver, iterating over all tasks in the system is a terrible design (there may be millions), not to mention "determining if a task belongs to a C playground program" in the kernel (obviously the kernel should have no knowledge about such specifics).
Of course, if a developer cannot even produce a reasonable overall design, it's not surprising that they aren't capable of writing correct code.
comment 6y ago · link · parent
The whole point of CSS classes is that they don't map to fixed styles, so they offer a useful abstraction, allowing you to change the CSS class definition once and effect all elements it applies to.
comment 6y ago · link · parent
Once the vaccine rolls out, people will return to previous habits and without the vaccine a large percentage of the population would be infected, so these numbers look completely different (i.e. absolute risk reduction of at least 45% from 50% to 0-5%, and NNT of something like 3-to-1 to 10-to-1).
comment 6y ago · link · parent
You could also go for the more ambitious plan of creating a brand that can take over Mozilla as a "trusted browser maker", which seems feasible given the falling reputation of Mozilla and the technical security advantages of Servo.
comment 6y ago · link · parent
Unless of course your alternative plan is full isolation for years, in which case not taking the vaccine is the correct choice, but such isolation is only reasonable if you don't care about going outside anyway at all.
comment 6y ago · link · parent
That would partially achieve the outcome and also makes sense, because if someone wants to live in isolation, then they probably don't care and aren't affected very much by society's policies, and they don't have enough social experience to be correctly informed.
comment 6y ago · link · parent
It might be time to consider letting go of the democratic ideal that every person's vote has the same weight, and figure out some criteria for either voting eligibity or vote weight that would mostly exclude or give little weight to the votes of people who voted for a clearly unsuitable candidate.
comment 6y ago · link · parent
If you compile both for the same goal the system will have suboptimal memory usage or performance, and in general you don't know whether a function will be interrupted in advance if you don't have colored functions (also you can't move the stack if you have references unless you have a GC, which is terrible).
comment 6y ago · link · parent
With dependent types, you can just include a type-level proof that x <= 5 in the integer wrapper type, which then allows to statically check that the default case in the match is impossible.
A newtype including such a dependently-typed proof is the correct solution to this problem, since it can be generalized to any range, unlike the enum with 5 variants.
comment 6y ago · link · parent
comment 6y ago · link · parent
You might also be able to get a prescription for modafinil, which might be even more effective.
comment 6y ago · link · parent
In other words, they are abusing the user's trust to access the user's private data for their own profit, hence defrauding the user, and engaging in unauthorized access to the data shared between the user and Facebook without either party's full informed consent.
comment 6y ago · link · parent
It's pretty terrible unless you want to make UIs with a fixed size and set of controls.