Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
henrydark
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
henrydark
4y ago
Consider this: I don't even know what hmac is, and it's implemented in a library. Also, I can't overload return values on their own in C++, I would have to overload the whole signature. In fact, to get the same monadic result
92.
▲
by
henrydark
4y ago
I'm not convinced so either, just that it doesn't not make sense. As for SoA, I'm thinking of two relatively new formats and applications that have default nullable types, are SoA, and are specifically targeting memory intens
93.
▲
by
henrydark
4y ago
But now you've forced computeHmac to only work only secrets, when there is no such need. You've coupled an implementation of an abstract algorithm with the particular case that _you_ want to use it this one time with sensitive sec
94.
▲
by
henrydark
4y ago
How do you operator overload in C++ so that calling computeHmac(secret(string)) returns secret(string)?
95.
▲
by
henrydark
4y ago
Given that they mention SQL more than other things, and stress SoA and memory intensive applications, I think this makes more sense than it would otherwise
96.
▲
by
henrydark
4y ago
But it's not just operator overloading, there seems to be a monad-like "secret" that makes calls to func(a, ...) -> b with secret(a) return secret(b). The example doesn't spell this out explicitly, but I think those
97.
▲
by
henrydark
4y ago
I don't k ow anything about wolves or parasites, but those two things don't contradict each other. Maybe wolves with the parasite are exactly more likely to form such a family unit
98.
▲
by
henrydark
4y ago
So like a CRDT for time
99.
▲
by
henrydark
4y ago
Replicate looks like numpy's repeat. For example np.repeat(list("abcd"), [2,1,0,2]) is equivalent to the first example in the link.
100.
▲
by
henrydark
4y ago
This is circular: sure, if telnet is _obsolete_, then remove it. But being obsolete exactly means no one is using it anymore. If someone is using it, then it's not obsolete. Regarding security, some would advocate that telnet, or whate
101.
▲
by
henrydark
4y ago
Except that dark matter might not actually exist, and it's a change in equations that is needed. I'm not sure what the software analogy is, except that there's no software dark matter, just people not familiar with their tool
102.
▲
by
henrydark
4y ago
This isn't surprising given that it's well known that we share more than 90% of our DNA with tree creatures across the universe
103.
▲
by
henrydark
4y ago
And dollars times pounds is similarly a unit of covariance
104.
▲
by
henrydark
4y ago
> ... to prevent silly mistakes like multiplying $100 with £20 Honest question, what should multiplying $100 with $20 give?
105.
▲
by
henrydark
4y ago
Working with sage for about 17 years, I've had the complete opposite experience. There is no alternative for holistic number theory, group theory, and algebraic geometry (except maybe MAGMA, which I haven't used in years), and sag
106.
▲
by
henrydark
4y ago
Does it handle multiple writers on the same machine? For example two people ssh-ing with the same user to a remote machine with hishtory
107.
▲
by
henrydark
4y ago
This fits with the literature on block vs random order exercise in learning motor skills, where random order mostly outbeats block. For example see [1] [1] https://best-essays-service.org/essays/health/the-effect-o
108.
▲
by
henrydark
4y ago
Some laws were put into place before the current internet scale was imagined and would probably not be made today
109.
▲
by
henrydark
4y ago
I often find that downloading lots of data from s3 using `xargs aws sync`, and then xargs on some crunching pipeline, is much faster than a 100 core spark cluster
110.
▲
by
henrydark
4y ago
With all this work to remove allocations I get the feeling that what really is needed is C++ with Go's concurrency syntax and runtime
111.
▲
by
henrydark
4y ago
that's for real and complex fields, and it's not exactly that. I don't think there's anything better than O(n^2) with no conditions
112.
▲
by
henrydark
4y ago
Right, but without generics
113.
▲
by
henrydark
4y ago
I once noticed a similar state machine in a restaurant I used to patronize. Instead of taking table numbers, they would bring toothpicks when coming to ask if everything is Ok. The way I upset the system was to hide the toothpicks. The wait
114.
▲
by
henrydark
4y ago
To be fair, mathoverflow.net has always been for professional mathematics, mostly for professional mathematicians. Though these days even professional questions are sometimes treated poorly.
115.
▲
by
henrydark
4y ago
It is pretty cool. py-spy has also been doing this for a few years https://github.com/benfred/py-spy
116.
▲
by
henrydark
4y ago
Python has coroutines (in the original sense), so one can implement almost Break-break. For example, it's easy to implement an object so that this will work as expected: from easytowritelibrary import LoopManager lm = LoopManager
117.
▲
by
henrydark
4y ago
Specifically the original double loop example also has this behavior and complexity. If the loops were written as for y in a2: if cond: break for x in a1: # something then they would have O(|a2|) complexity instea
118.
▲
by
henrydark
4y ago
This could be fine, but it does restrict things somewhat and could lead to more unexpected results. The piece doesn't present the correct way to use multiple inheritance in python, so this section is a bit of a strawman. Namely, it is
119.
▲
by
henrydark
4y ago
> in general the trend for new languages seems to be to not have exceptions There is also a parallel opposite trend happening in (the obviously not mainstream) "effect" languages, such as koka and eff. The new theory of algebra
120.
▲
by
henrydark
4y ago
I'm sure that most python developers who have worked with pickle for more than 3 lines of code can confirm that pickle does not in fact just work
More ›