Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mehrdadn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
31.
▲
by
mehrdadn
6y ago
No, I'm saying even in that case you know it was intended to be a copy. If you wanted that to be a reference then you'd either (a) just do the obvious thing which is to just use the original variable name instead of creating a new
32.
▲
by
mehrdadn
6y ago
+1 for auto being overused. I always felt I was shouting into the void (hah) by saying the same thing... it's nice to see someone else agrees.
33.
▲
by
mehrdadn
6y ago
You're asking for the impossible. What you want is precisely what templates are, but you also want them to not be "templates" for... some bizarre reason. > I can have an array of T, but I can't specify that T is Numer
34.
▲
by
mehrdadn
6y ago
You probably did intend it to be a copy if you're binding it to a variable and need it to be non-const (like in the example)!
35.
▲
by
mehrdadn
6y ago
I thought the complaint was about the logic duplication, not the extra keystrokes. If you want type inference you already have auto. If you want to minimize your keystrokes, you're using the wrong language to begin with, whether there&
36.
▲
by
mehrdadn
6y ago
> You have to repeat the type information, a lot. Nope you don't, that's what typedefs are for. They're underrated for sure though. People don't use them nearly as much as they should. They're incredibly valuable
37.
▲
by
mehrdadn
6y ago
Can a utility refuse to provide service? Yes. In general, a utility provider may refuse to initiate service if the requesting customer cannot comply with the requirements outlined in the utility’s tariffs or rules. Utility tariffs and
38.
▲
by
mehrdadn
6y ago
Okay yeah, Cheeger's inequality and all those are straight up graduate-level theoretical computer science. Definitely not something you can just throw into a discussion assuming people know what you're talking about!
39.
▲
by
mehrdadn
6y ago
What is the relationship? I guess most of us are not spectral graph theory experts. Are you looking at the adjacency matrix or the Laplacian matrix?
40.
▲
by
mehrdadn
6y ago
Couldn't you have made a similar argument for Twitter not being a public forum (prior to the court case)?
41.
▲
by
mehrdadn
6y ago
> PayPal arbitrarily freezes people's accounts PayPal kept doing that so much that regulators (FTC? I forget) finally made them stop holding pseudo-cash accounts for people until/unless people specifically requested it. Laws ta
42.
▲
by
mehrdadn
6y ago
> Stripe and Twitter are pretty clearly the latter. They might be the latter, but I wouldn't consider it obvious. Regarding social media, we've gotten to the point where even US Visa applications ask for social media handles (a
43.
▲
by
mehrdadn
6y ago
That seems reasonable, though likely less effective for some countries. It seems like an interesting regulatory idea though - maybe some regulator should maintain a list of trademarks whose advertising should be restricted? Not sure if that
44.
▲
by
mehrdadn
6y ago
Hm so what would happen if Facebook tries to buy Messenger ads for "Signal" in that scenario? Sorry I'm still not following.
45.
▲
by
mehrdadn
6y ago
I'm confused, what is the relevance of that to this problem? Wherever the results are coming from, ads will have to appear before them pretty much by definition, right?
46.
▲
by
mehrdadn
6y ago
It seems difficult to do this in general when so many search terms can have multiple meanings. Are you suggesting there should be human review for every ad? (Which is not saying it's necessarily a bad idea; just trying to understand ho
47.
▲
by
mehrdadn
6y ago
> The root-finding problem is not solvable in general. Great, because nobody was asking for that either. > Of course, I'm talking about the worst case. Your example is easier. Which has been my entire point this whole time , whi
48.
▲
by
mehrdadn
6y ago
> The same thing happens in e.g. Mathematica, they just have better warning messages They "just" produce "better" warning messages? You say that as if scipy is producing any warning messages? There's an absolut
49.
▲
by
mehrdadn
6y ago
As I see it less magic in the algorithms" makes sense when the user specifies an algorithm. When they haven't, it literally means: "I really don't care how you solve this, just give me the best solution you can however
50.
▲
by
mehrdadn
6y ago
I haven't, though I did download it. I was trying to work on an algorithm rather than solve specific problem instances, so I ended up just working around it by using different problem instances that didn't result in these errors.
51.
▲
by
mehrdadn
6y ago
You're missing my point entirely. They don't need to solve this by keeping the variable real at every step or anything like that. What they need to do is to ensure the final solutions are real. Which means they need to solve it
52.
▲
by
mehrdadn
6y ago
> You should be suspicious of using floats and expecting the solver to detect if a solution is real. Consider the polynomial $x^2 + C$ for $C \approx 0$. Are all of its roots real or complex? The problem is that even a very small change
53.
▲
by
mehrdadn
6y ago
I know how numerical stuff works, but no, this is pretty inexcusable. See my other comment: https://news.ycombinator.com/item?id=25689916
54.
▲
by
mehrdadn
6y ago
Not at all. I've worked on numerical stuff myself; unlike the symbolic bugs, I have little sympathy for these particular numerical errors. It would be far more reasonable if it was convoluted composition of functions, or some kind of b
55.
▲
by
mehrdadn
6y ago
Here's the one I can find (might not have reported/written others so I don't recall them): https://github.com/scipy/scipy/issues/7332 I can't tell if I'm just exceptionally good at ma
56.
▲
by
mehrdadn
6y ago
Yeah. For what it's worth (not sure if it makes you feel better or worse...) I've found similarly bad bugs in SciPy too.
57.
▲
by
mehrdadn
6y ago
The trouble with SymPy is it's, well, buggy. I tried it a few years ago, and as soon as I got serious, I quite quickly ran into problems that I reported, some of which I now see they apparently still haven't gotten around to addre
58.
▲
by
mehrdadn
6y ago
Your comparison is incredibly exaggerated. Being a highly-paid C-level exec of a $120B corporation that holds people's lives in its hand isn't exactly a human right like living in a household. It's as much a privilege as anyt
59.
▲
by
mehrdadn
6y ago
> Should we arrest the executive team out of principle? How about prohibiting them from holding executive positions in the future?
60.
▲
by
mehrdadn
6y ago
> The department ultimately determined that an independent compliance monitor was unnecessary based on the following factors, among others: (i) the misconduct was neither pervasive across the organization, nor undertaken by a large numbe
More ›