Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aratakareigen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
aratakareigen
7y ago
For example, if I could push to a Vec while holding a slice to it, that would obviously lead to horrible behavior if the Vec needed to reallocate. Another example is if someone tried to use a Vec x inside the closure passed to x.drain.
2.
▲
by
aratakareigen
7y ago
Right, but the question was: > doesn’t Rust refuse to compile even when you use non-concurrency safe objects in a single thread? and given that most types (Vec, HashMap, etc.) aren't "concurrency-safe" (thread-safe?), your
3.
▲
by
aratakareigen
7y ago
Rust types have markers (Send, Sync) that tell the compiler whether they can be moved across threads, and whether they can be simultaneously accessed across threads. These markers are irrelevant in a single-threaded scenario.
4.
▲
by
aratakareigen
7y ago
Yep, you can't implement UnsafeCell yourself without running into undefined behavior.
5.
▲
by
aratakareigen
7y ago
Right. The main advantage of Rust is that its thread safety is opt-out (unsafe) rather than opt-in (remember to use the right data structures / locks).
6.
▲
by
aratakareigen
7y ago
It is a convention, not a rule, in mathematics to use (+) to represent operations that are commutative (i.e. abelian) groups. But this convention is not at all respected in programming (e.g. + for string concatenation in many languages) so
7.
▲
by
aratakareigen
7y ago
Literally no "non-tech-savvy" person I know backs up anything at all. I seriously doubt that backup / transfer is on anyone's mind at all when deciding to use a new messenger.
8.
▲
by
aratakareigen
7y ago
Really? I mean, either a few drug dealers slip through the cracks, you fill the nice fun stadium with creepy surveillance cameras to cover your own ass, or the stadium simply doesn't exist. I'm all for options (a) and (c), but opt
9.
▲
by
aratakareigen
7y ago
Why? I can't think of an alternative that users wouldn't complain about.
10.
▲
by
aratakareigen
7y ago
Great, but this reads like a particularly blunt Amazon ad. Is there a way to achieve "high scalability" without selling my soul to Amazon?
11.
▲
by
aratakareigen
7y ago
For many lying is already a deeply ingrained habit, and for them honesty will take practice.
12.
▲
by
aratakareigen
7y ago
> Reading a few top research papers in a field you're interested in and work through them Why reading a research paper rather than the more standard approach of reading a textbook?
13.
▲
by
aratakareigen
7y ago
I just started reading, but why does it say "(semi)group" instead of "semigroup / monoid"? I've never heard of inversion being used to perform a fold.
14.
▲
Ask HN: How do people with extreme social anxiety get internships?
1 points
by
aratakareigen
7y ago
|
1 comments
15.
▲
by
aratakareigen
7y ago
How does TypeScript ensure encapsulation if it doesn't have nominal types? Edit: The article says "magical hidden properties".
16.
▲
by
aratakareigen
7y ago
SO(3) is definitely three-dimensional, and rotations don't involve magnitudes.
17.
▲
by
aratakareigen
7y ago
The space of rotors and rotation quaternions are both three dimensional because the coordinates are restricted to unit magnitude. Quaternions and rotors are exactly the same in practice, but the intuitions are very different. The intuition
18.
▲
by
aratakareigen
7y ago
He means an ecosystem where 99% of the work needed to build yet another CRUD app is done for you.
19.
▲
by
aratakareigen
7y ago
Yep, Stack has an atrocious UX that does nothing but cause progressively increasing amounts of pain. I wish someone would just write the Cargo or NPM of Haskell already.
20.
▲
by
aratakareigen
7y ago
> Rust and go eventually will be facing same issues Isn't Rust's workaround their "edition" system? It seems to be working pretty well for them, but it sounds like it could end up being a massive maintenance headache.
21.
▲
by
aratakareigen
7y ago
The age, gender, etc. distributions of the people who visit your website. I don't know anything about GA, but I'm guessing they'd know this from the currently signed in Google account.
22.
▲
by
aratakareigen
7y ago
Return position impl Trait also exists so that you can change the actual return type without making a breaking change.
23.
▲
by
aratakareigen
7y ago
That line is extremely simple to me. What makes it seem like a "mix-match" of symbols to you? The equivalent in Haskell would be "compose :: (a -> a) -> (a -> a) -> a -> a", which lacks "impl" be
24.
▲
by
aratakareigen
7y ago
See also: https://en.m.wikipedia.org/wiki/Adaptive_sort Another example application of adaptive sorts is the sweep-and-prune broadphase collision detection algorithm that's somewhat commonly used in physics engine
25.
▲
by
aratakareigen
7y ago
> provided you have enough charisma points You answered your own question. Some of us don't have an ounce of charisma<del>, and some of us have been conditioned by years of loneliness to never initiate a conversation</
26.
▲
by
aratakareigen
7y ago
The Uber bit makes little sense to me. If Uber takes my car at night, then I doubt I'll make much money, since not many people are out at night. And if it takes my car in the day, then I don't have immediate access to the car when
27.
▲
by
aratakareigen
7y ago
Yeah, I'm super uninformed here, but single men's expectations of potential partners are totally the prime suspect here. Anecdote: My uncle explicitly stated on his dating profile that he was looking for women with masters degree
28.
▲
by
aratakareigen
7y ago
Interesting, but why not just have the autocomplete as a pane on the side so that you can focus, in the 99% case where you do have a good grasp of your dependencies?
29.
▲
by
aratakareigen
7y ago
What is the purpose of life, which you say depends on randomness?
30.
▲
by
aratakareigen
7y ago
Most of these claims I've never heard before, and I know at least one of them (the claim that inequality is lower than in the recent past) is definitely false, so I feel justified to ask: do you have any sources?
More ›