Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
devit
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
53 ms
·
811.
▲
by
devit
7y ago
VB.net is already equivalent to a subset of C#, and it can mostly be automatically translated.
812.
▲
by
devit
7y ago
The C programming language strikes again.
813.
▲
by
devit
7y ago
People should not handle any package for at least 3 days after reception assuming this paper is correct (unless they manually disinfect it). EDIT: actually the paper doesn't seem to conclude that 3 days is enough, and instead than an u
814.
▲
by
devit
7y ago
A transmissible disease that has already overwhelmed hospitals in another country and is spreading uncontrollably in yours seems a good criteria.
815.
▲
by
devit
7y ago
I think they are not enough, and that instead everyone should be forced to stay home and only go out if it's essential for their own or for other people's survival (e.g. buying food, working at jobs related to medicine, food, util
816.
▲
by
devit
7y ago
The problems seem to be that the person may not know the information and the information may not be easy to verify. Wouldn't that make torture potentially effective in cases without those issues, such as torturing someone to get them t
817.
▲
by
devit
7y ago
But if users don't care, why do platforms care? Maybe it's actually a reliable signal? Obviously it's also more reliable in the context of other evaluations by the same reviewer which the platform has easy access to, i.e. if
818.
▲
by
devit
7y ago
Do users really evaluate like that? For me, it's pretty obvious that rating is arbitrary and depends on how optimistic/perfectionist/obsessive/etc. the reviewer is and that there is not much difference between 4 or 5 sta
819.
▲
by
devit
7y ago
The problem is that current dating apps consist of choosing people whose in-person behavior (as well as resources in some cases) you care about based on self-selected photos and their ability to write text messages, so it's pretty obvi
820.
▲
by
devit
7y ago
Is there any betting market that is taking bets and has good volume on whether there is going to be a novel coronavirus pandemic? That seems like the only way to get some clarity on this.
821.
▲
by
devit
7y ago
The purpose of such a team building exercise is not to help the sick kids, but rather to do something that requires a lot of cooperation and interaction with your coworkers, so that you can get to know better their personality and behavior,
822.
▲
by
devit
7y ago
I don't think it's socially unacceptable to hire someone or purchase something for the benefit of a friend in general, especially if you are in a better position to do so than the friend (e.g. you run a service company in that fie
823.
▲
by
devit
7y ago
Currently the Linux kernel disables preemption inside spinlocks and interrupt handlers, and these code sections are not necessarily carefully written to be short and constant-time, so you can in theory get in a situation where all cores are
824.
▲
by
devit
7y ago
Only those that emit LLVM code that can be optimized like this. In poorly performing languages like Python and Ruby calling a method on a value (like sum() or even the += operator) essentially means looking up the method name in a hash tabl
825.
▲
by
devit
7y ago
In this assembly code it cannot overflow because N is a 32-bit integer and the multiplication gives a 64-bit result, which is converted to 32-bit only after shifting. I can't figure out why it doesn't use the simpler formula (othe
826.
▲
by
devit
7y ago
As far as I can tell Zig only has C-like malloc/free-based allocation and thus is vulnerable to use-after-free, and so does NOT help you write safe code. It also doesn't seem capable of safe concurrency.
827.
▲
by
devit
7y ago
As far as I can tell Zig is equivalent to a subset of C++ and thus completely lacks all the guarantees that Rust provides and several of the features that C++ has; so there is no point to use it instead of those languages.
828.
▲
by
devit
7y ago
The reason that it's popular is that it's immediately clear that Rust's model of memory safety without a GC and safe concurrency is the best way to create a programming language since it unifies the memory safety of GC langua
829.
▲
by
devit
7y ago
Even if two theories make the exact same predictions, believing or giving more attention to one or the other can change how the brain operates, making it more or less efficient at some tasks and eliciting different emotions. For example, th
830.
▲
by
devit
7y ago
How about doing this but also NOT providing the client hints API and NOT providing any way for JavaScript to explicitly ask for OS and browser product name and version? While browser and JavaScript engines are likely to continue being detec
831.
▲
by
devit
7y ago
Just test whether the API works or whether the properties are missing or methods throw exceptions? The kind of testing you are complaining you can't do is exactly why user agent is broken, what if you test for Chrome and then Brave
832.
▲
by
devit
7y ago
I don't get the criticism. If they lost all the data, then obviously the only option for customers is to either use their own backups if they have them or accept that the data is permanently lost. One can criticize their lack of additi
833.
▲
by
devit
7y ago
It would be like that without water, that's the whole point of the algorithm: based on physics, it computes the (best known approximation to) way the scene would look with no water being present. That is, it's supposed to make the
834.
▲
by
devit
7y ago
There are two threat models against code using RNGs: 1. The adversary has an amount of computing power that is feasible as currently foreseeable: in this case, all you need are K "truly random" bits where K=128/256/512 a
835.
▲
by
devit
7y ago
Humans however, in addition to the immediate perception, can also more slowly recognize objects with reasoning and thus explain their perception.
836.
▲
by
devit
7y ago
Seems much easier and accurate to have the supervisors install an app on their mobile phones that checks whether the phones move (and thus being carried by a person) via accelerometer and whether they are on the factory floor via wi-fi/
837.
▲
by
devit
7y ago
You must not use sched_yield() and also must not spin indefinitely. Instead, one should optionally spin for up to a constant number of iterations and then call sys_futex.
838.
▲
by
devit
7y ago
The claim that "the Linux scheduler is bad" seems wrong. First of all, a program that calls sched_yield() for synchronization is simply broken, since doing so can cause 100% CPU usage (if the other thread is stopped at an unfortun
839.
▲
by
devit
7y ago
Can't one add mechanical gears so that the trim wheel requires less force to turn but needs to be turned more, without any other visible changes?
840.
▲
by
devit
7y ago
The interface types proposal will allow to call DOM APIs from WebAssembly directly [ https://github.com/WebAssembly/interface-types/blob/master/p... ] The point of doing it is of course performance.
More ›