Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mehrdadn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
82 ms
·
841.
▲
by
mehrdadn
6y ago
> Once the vector is constructed, we can only add elements one by one by using the push_back member function. Nope... std::vector::insert() takes an std::initializer_list [1]. [1] https://en.cppreference.com/w/cpp&#x
842.
▲
by
mehrdadn
6y ago
I feel like a dinosaur because a "native" app to me means pretty much the exact opposite of an electron app.
843.
▲
by
mehrdadn
6y ago
For those wondering what SMR is: https://en.wikipedia.org/wiki/Shingled_magnetic_recording Earlier story: https://news.ycombinator.com/item?id=22875094
844.
▲
by
mehrdadn
6y ago
Ah, thanks for the pointer! I just Googled and got this explanation: https://www.quora.com/Why-did-it-take-nearly-200-years-to-bu...
845.
▲
by
mehrdadn
6y ago
I... just can't wrap my head around this. Is it that they actually take that long with enough people, or they have too few people working on them?
846.
▲
by
mehrdadn
6y ago
> I think of the cathedrals, temples, mosques, etc. that have been built all over the world, where the people who started the work knew they wouldn't live to see it finished, but that didn't dissuade them. That's mind-bogg
847.
▲
by
mehrdadn
6y ago
There's nothing repeating here... you define a procedure to achieve a higher-level task, which is a combination of other tasks. Kind of like File.ReadAllBytes() vs. FileStream. Later you use it when you need to perform that high-level
848.
▲
by
mehrdadn
6y ago
You certainly can do that. You can also refer to John Smith as "Mr. Smith", even when he's your dad. Whether it's more natural or more jarring or confusing is another question though...
849.
▲
by
mehrdadn
6y ago
I was thinking more along the lines of, would being a public official in a public forum imply that the forum administrators can't interject and add their own editorials to his speech either? At least, I can't think of situations w
850.
▲
by
mehrdadn
6y ago
Yeah, I almost suggested a static method for the common case too. It's nice to have a convenient interface for the simpler use cases.
851.
▲
by
mehrdadn
6y ago
It's not a pun. Just a joke. Lots of people just say pun to refer to any wordplay. Wait till you find out "meme" is now starting to mean "joke" too.
852.
▲
by
mehrdadn
6y ago
Not necessarily. What I said can apply to even a class with with 1 method that takes no arguments... though you might often recognize it as a more sophisticated kind of iterator: class BFS(object): def __init__(self, origin): self.o
853.
▲
by
mehrdadn
6y ago
I seem to recall we had a court ruling (non-SC) earlier that said officials that use social media can't block other users on there... something about it being a public forum or such. But if we treat it that way, then does that have imp
854.
▲
by
mehrdadn
6y ago
I think wxWidgets has binding for other languages like Python?
855.
▲
by
mehrdadn
6y ago
In what way does wx look "off"? To me Qt is the one that looks "off"... it doesn't feel native. But wx looks and feels like any native app... because it uses native controls...
856.
▲
by
mehrdadn
6y ago
Is this 2010 advice or 2020?
857.
▲
by
mehrdadn
6y ago
Aw shoot, yeah it is. :( Thanks!
858.
▲
by
mehrdadn
6y ago
One thing not mentioned here: it seems to me (though I'm not 100% sure) C++11 kind of wrecked macro preprocessing. Until it came along, I think you could ignore C++ tokens and just pay attention to the preprocessor directives when fi
859.
▲
by
mehrdadn
6y ago
That is incredible and terrifying. Thanks for sharing!
860.
▲
by
mehrdadn
6y ago
> I'm not so sure. I think the task is to find a treatment and a point in time where the treatment was considered alternative medicine, was then proven to work, and thereafter was considered medicine. That would imply examples from
861.
▲
by
mehrdadn
6y ago
Okay, I won't stop you. Go ahead and bring up examples from Hippocrates's time then. Human nature hasn't changed much on these timescales so you will be making a very strong point about modern medicine with such examples.
862.
▲
by
mehrdadn
6y ago
Awesome, thanks for the examples. It got me going in a direction I didn't expect the discussion to go though: were these examples of traditional medicine or alternative medicine? They seem to be the former whereas this discussion w
863.
▲
by
mehrdadn
6y ago
I'm pretty sure I didn't say anything about "human nature".
864.
▲
by
mehrdadn
6y ago
The entire premise of this discussion was that modern medicine currently has a flaw/double-standard/whatever about what it considers alternative medicine. Bringing up examples where medicine was flawed a century ago is very much f
865.
▲
by
mehrdadn
6y ago
The entire premise of this discussion was that modern medicine currently has a flaw/double-standard/whatever about what it considers alternative medicine. Bringing up examples where medicine was flawed a century ago isn't e
866.
▲
by
mehrdadn
6y ago
Is that an example from the 15th century? Is there nothing more modern?
867.
▲
by
mehrdadn
6y ago
The point was you don't have to define it at all. You just need some things that were previously dismissed as "alternative medicine" in the past (say) 50 years, but which are now widely seen as ordinary medicine. I'm loo
868.
▲
by
mehrdadn
6y ago
By "alternative medicine" I'm not talking 19th century views here, especially given the comparison to AI. Can you pick something from like the past half-century or so? Which people called alternative medicine but which now th
869.
▲
by
mehrdadn
6y ago
Eh, I think we still have the Turing test, and AFAIK it hasn't had a case where it's passed without raising eyebrows for potentially trying to cover up for deficiencies. I think the threshold needs to be high (maybe "beyond a
870.
▲
by
mehrdadn
6y ago
What're some examples of things that were called "alternative medicine" but that were later proven to work and regarded as "medicine"? Edit: Since people are bringing up ancient examples and kind of missing the poin
More ›