Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mnarayan01
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
mnarayan01
9y ago
Yea I'm not getting the need to keep _source in collections.namedtuple at all . For teaching purposes, you can just present the existing implementation...I don't see what purpose having that teaching code be in the core distribut
62.
▲
by
mnarayan01
9y ago
I agree with everything you're saying (though my favorite is probably addresses containing newlines). My point is just that in practice it's not terribly useful, e.g. why HTML5 defines its own: https://html.spec.whatwg.
63.
▲
by
mnarayan01
9y ago
> or a valid email regexp In terms of standards, there's not a whole lot you can do beyond validate the domain if it includes one. You can take the HTML5 approach ( https://developer.mozilla.org/en-US/docs/W
64.
▲
by
mnarayan01
9y ago
I remember reading about some framework which was doing something nutty like embedding actual data in the comments on a function, and then parsing out those comments at run-time. For what it's worth, I believe it was on HN and in rel
65.
▲
by
mnarayan01
9y ago
For those curious about how this would deal with Function.prototype.toSource, via https://github.com/syg/ecmascript-binary-ast#functionprototy... : > This method would return something like "[sourceless code]&qu
66.
▲
by
mnarayan01
9y ago
Consider the need to block on e.g. the DOM.
67.
▲
by
mnarayan01
9y ago
Via https://github.com/easylist/easylist/commit/a4d380ad1a3b33a0... by one of the Easylist maintainers: > If it is a Circumvention/Adblock-Warning adhost, it should be removed from Easylist even witho
68.
▲
by
mnarayan01
9y ago
1. Functions which are "longer than they should be" decrease code quality. 2. Measuring the "number of lines per function" is extremely easy. Code quality tools have a bad tendency to equate (1) and (2) for the same reas
69.
▲
by
mnarayan01
9y ago
> I'm not recommending this, but it meets many of his criteria. Woah...déjà vu.
70.
▲
by
mnarayan01
9y ago
> It baffles me that some people thinks Firefox is becoming a “Chrome clone”, it’s just not the case, it’s just plain silly to make such statement. If you use a much narrower definition of "clone" than is typically used in thi
71.
▲
by
mnarayan01
9y ago
He should have been told regardless. I can totally understand, sympathize, and even potentially agree with an evaluator not wanting to deal with sloppy handwriting, but a context-free failing grade is just totally unacceptable.
72.
▲
by
mnarayan01
9y ago
Page swapping seems like it makes a lot of sense to include in the load average. Disk I/O seems like something more towards the opposite end of the spectrum, though TASK_KILLABLE ( https://lwn.net/Articles/288056&#x
73.
▲
by
mnarayan01
9y ago
> Application software MUST NOT use a searchlist to resolve a localhost name.
74.
▲
by
mnarayan01
9y ago
Anyone using DNS search lists to have localhost resolve to e.g. localhost.example.com would potentially have problems. Obviously this is a pretty weird thing to intentionally do, but it currently gives you a quick way to get around certain
75.
▲
by
mnarayan01
9y ago
I think this is also an argument with potential (at least when presented as here, i.e. without excessive reference to WannaCry), but I think you need to either have a decent amount of affirmative evidence against him having sold Kronos or t
76.
▲
by
mnarayan01
9y ago
As someone who's not sure where I stand on this, I feel like Hutchins supporters are doing themselves a disservice by overly-conflating this with WannaCry. I think there's potentially a good argument to be made along the lines of
77.
▲
by
mnarayan01
9y ago
Firefox tries to minimize breaking API changes, but there have certainly been plenty of them. While avoiding API changes presumably made the switch to multiprocessing more difficult, it didn't stop it; they made the switch. The funda
78.
▲
by
mnarayan01
9y ago
I think it's an auto-antonym, i.e. divide opcodes into three sets: 1. Documented 2. Undocumented and throws #UD 3. Undocumented but does not throw #UD Some people will use "Illegal instruction" to refer exclusiv
79.
▲
by
mnarayan01
9y ago
There might not be enough to get e.g. one of the private keys, but you could probably use it to check for someone else in the contact list. The CRL also seems like it might be possible to at least pivot off of, at least if the signing wasn&
80.
▲
by
mnarayan01
9y ago
> Why can I not "Create an app loading screen" without service workers? Why can I not "Create an initial app UI to load instantly"? Seems these are trivially possible with regular Javascript, but maybe I'm misund
81.
▲
by
mnarayan01
9y ago
For this to be taken seriously, I think you need to demonstrate that you're capable of using WebRTC to do what you need. Without a decent nod in that direction, people are going to think that you're just not aware of the potenti
82.
▲
by
mnarayan01
9y ago
> UDP is not streamed but message based protocol. As WebSockets implement their transport layer over pure TCP, WebUDP could implement it's own layer over pure UDP for various reasons. As soon as your message exceeds the MTU, things
83.
▲
by
mnarayan01
9y ago
> Emacs maintainers sometimes commit directly in the Elpa repository (and package maintainers are expected to deal with the consequences, such as "two diverging mainlines") Is a model like this what you mean when you say "
84.
▲
by
mnarayan01
9y ago
EME removes much of the cost associated with adding DRM to content in exchange for increased portability of content that is DRM'd. This doesn't seem like a good trade-off to me. Yes it's only for "media", but once i
85.
▲
by
mnarayan01
9y ago
> If that's what content creators want, isn't it in their right? Absolutely. That's not particularly relevant to the normative question of whether the HTML standard should make adding DRM less of a pain point though.
86.
▲
by
mnarayan01
9y ago
Even if the sampling was rigorously random and no projects were dropped after starting, there would still likely be a bias towards small, "long tail", projects. It seems plausible that these types of projects would have more error
87.
▲
by
mnarayan01
9y ago
> Also certain games such as FPS are still better off with UE, as that's what it was designed for. What game types would you consider Unity to have better performance and/or tooling for? Also, if you're feeling generous, w
88.
▲
by
mnarayan01
9y ago
> I've always been confused by why Ruby uses symbols so much. Good: Other people mainly covered it. Also note that when writing extensions using the C API, accepting options as symbols is generally much more convenient. Less good:
89.
▲
by
mnarayan01
9y ago
Where are you getting O(sqrt(n)) space from? The linked article says O(n) for compact dynamic arrays.
90.
▲
by
mnarayan01
9y ago
The are many things which are difficult to measure directly, and thus people tend to use indirect measurements instead; school-learned math is full of such things. Consider a fairly simple example: "What is the factorial of a number?&q
More ›