Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hathawsh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
361.
▲
by
hathawsh
7y ago
True. That's the new kind of yield that requires language support and it's only available in async functions. I was referring to what happens when framework or language designers try to allow something like the await keyword in no
362.
▲
by
hathawsh
7y ago
Rust is very ambitious and unusually successful at reaching its ambitions. It's efficient like C/C++, but safer. It's modern like Go, but more expressive and open to metaprogramming. It's often as readable as a scripting
363.
▲
by
hathawsh
7y ago
The key difference is cooperative multitasking lets the program yield the thread anywhere, not just to the event loop like async programming. Arbitrary yielding was a feature that programmers widely abused in the early Windows days. The use
364.
▲
by
hathawsh
7y ago
They are very similar. In cooperative multitasking, programs yield the thread to the OS, while async programs yield to the event loop. In both cases, yielding is voluntary. Are there other differences? It's probably quite easy to turn
365.
▲
by
hathawsh
7y ago
Yes. :-) The right answer depends on the project. I really appreciate it when projects have .editorconfig files so that indentation just works. https://editorconfig.org/
366.
▲
by
hathawsh
7y ago
Nice, thanks!
367.
▲
by
hathawsh
7y ago
Is there a way to ask Rust to tell me the type of an expression like `foo.iter().map(...).filter(...).step(...).take(...)`? I often feel very much in the dark about Rust types and some kind of command to show me Rust's interpretation o
368.
▲
by
hathawsh
7y ago
Thanks. Error responses from our API always generate a JSON object with top level error and error_description attributes, while non-errors never contain a top level error attribute. It might be interesting to add a response header to
369.
▲
by
hathawsh
7y ago
For the HTTP API my company has been building, we're returning 400 status codes for most errors. It is intended as a strong suggestion that client code needs to handle errors rather than ignore them. However, we're aware that some
370.
▲
by
hathawsh
7y ago
Hostility is an issue that has plagued every major discussion board, comment section, and social network. I applaud any network that makes a real effort to manage the hostility. It is a very difficult problem to manage, since people rarely
371.
▲
by
hathawsh
7y ago
See: https://en.wikipedia.org/wiki/Assignment_(computer_science)#... At least 18 prominent languages use that syntax.
372.
▲
by
hathawsh
7y ago
That's a very helpful clarification. Thanks!
373.
▲
by
hathawsh
7y ago
Plant communication is certainly fascinating, but I wouldn't call it a sign of consciousness. Isn't it just another reaction to stimuli? I can imagine an experiment where some plants are placed in an environment where the communic
374.
▲
by
hathawsh
7y ago
What I described matches the Disney/Pixar movie Inside Out , which most people readily identify with. :-)
375.
▲
by
hathawsh
7y ago
I'm not sure I understand the question. You might be right if there is no passage of time, but thanks to time, the effect of one instant can be a cause in the next instant. The choice of reaction develops with time.
376.
▲
by
hathawsh
7y ago
The word "consciousness" has important connotations that are not captured by the generic definition. As others noted, an air conditioner with a built in thermostat can fit the generic definition of consciousness. When I say an ent
377.
▲
by
hathawsh
7y ago
Instead of knowledgeable employees, I think it would be much cooler to have free wi-fi and QR code stickers next to most products so customers can get quick access to data sheets, project suggestions, calculators (especially applications of
378.
▲
by
hathawsh
7y ago
That's the key, isn't it? Doctors tend to believe their services improve quality of life regardless of expenses. They need to be more aware of the long term reduction of quality of life caused by expenses.
379.
▲
by
hathawsh
7y ago
I wouldn't recommend shouting. :-) Also, we don't expect an exact price, just as we don't expect an exact price from a building contractor. We expect rough estimates so we can tell the difference between a $500 procedure and
380.
▲
by
hathawsh
7y ago
On the other hand, cheap micro SD cards and thumb drives hold far more than CDs or DVDs.
381.
▲
by
hathawsh
7y ago
My wife and I agreed years ago that we would have a discussion before either of us makes a purchase of about $20 or more. (We haven't adhered to that perfectly, but it has been a great guideline.) Oddly, we failed to notice that we nev
382.
▲
by
hathawsh
7y ago
That's a helpful perspective. Would it be possible for IBM to create a service that allows patients to submit their own pictures for scanning?
383.
▲
by
hathawsh
7y ago
Yikes, Qualys SSL Labs gives them a grade of C. They may be vulnerable to a POODLE attack. They probably should disable SSL 3 support to protect their customers. https://www.ssllabs.com/ssltest/analyze.html?d=banclist.c
384.
▲
by
hathawsh
7y ago
The BancList about page explains that they serve privately held companies as well. "BancList (www.banclist.com) helps shareholders of privately held financial institutions as well as other privately held companies and organizations com
385.
▲
by
hathawsh
7y ago
A few years ago, I was driving home late at night on a wide interstate highway with a nearly-pristine blanket of snow that fully obscured all the lane lines. The plows had not reached that section of road yet and no one was ahead of me. So
386.
▲
by
hathawsh
7y ago
Good catch! Among my friends, though, "1.21 jigawatts" is still a funny joke.
387.
▲
by
hathawsh
7y ago
If you're talking about the University of Notre Dame in Indiana USA, the most common pronunciation is /noʊtrəˈdeɪm/ or /noʊtərˈdeɪm/ (NOH-tər-DAYM). Simon Whistler's video uses both the American and French vers
388.
▲
by
hathawsh
7y ago
GIF is another curiously undecided word. I'm also reminded of "gigawatt", which was widely mispronounced following "Back to the Future" in 1985, but is now generally pronounced correctly. I attribute the change to t
389.
▲
by
hathawsh
7y ago
I agree there's an issue; "mispronounced" should be one of the feedback options. The third video for "especially" pronounces the word as "ekspecially". https://www.youtube.com/watch?time_co
390.
▲
by
hathawsh
7y ago
This reminds me of a friend of mine. Jenny Ahlstrom learned it can be valuable for patients to voluntarily share their own medical data: https://newsroom.siliconslopes.com/jenny-ahlstrom-mother-can... Key quote: “Everyone
More ›