Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
leethargo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
91.
▲
by
leethargo
6y ago
Suggestion: For multi-page documents, it would be nice to use slightly different rotation parameters for each page.
92.
▲
by
leethargo
6y ago
Exactly. When we're used to alternate parenting and work, and rarely do "co-parenting" simultaneously, it can happen that both us assume the other is currently watching after the child, when neither is :-\
93.
▲
What scientists must know about hardware to write fast code
(biojulia.net)
2 points
by
leethargo
6y ago
|
0 comments
94.
▲
by
leethargo
6y ago
Yeah, we have set up a "parent" repo with git submodules for all the individual repos. But it was an afterthought and our workflow has not really caught up to the new possibilities.
95.
▲
by
leethargo
6y ago
Maybe I don't know about git subtree. I guess it can "preserve history" in the sense of keeping a corresponding new commit for every old commit, but they wouldn't have the same hash id?
96.
▲
by
leethargo
6y ago
Git subtree wouldn't preserve hashes of the existing history?
97.
▲
by
leethargo
6y ago
Often there are implicit dependencies between (versions of) the many repos. E.g. where I work, it was decided to put test data in a separate from the code (to keep the latter repo small in size). But now, when you add a new test case, it wi
98.
▲
by
leethargo
6y ago
I've been implementing Dynamic Programming, from scratch, just yesterday. But it wasn't for work either.
99.
▲
by
leethargo
7y ago
We are building the LITIC platform [0] for self-service decision analytics apps. There is a visual drag-n-drop language for formulas and optimization models, charts & tables with interactive features, and a visual WYSIWG app designer. [
100.
▲
Privacy-friendly contact tracing (Covid-19, whitepaper)
(github.com)
1 points
by
leethargo
7y ago
|
0 comments
101.
▲
by
leethargo
7y ago
You mean GNU Guile?
102.
▲
by
leethargo
7y ago
I don't have more experience, necessarily, but I think the argument builds on the facts that pure functions don't have side-effects, which avoids many of the problems of simultaneous data editing, and also the use of immutable dat
103.
▲
by
leethargo
7y ago
From what I've read recently, I agree with this distinction. It's simply a matter of definition. R_0 is the infection rate without any measures taken. Sometimes, R is used for the net infection (e.g. with social distancing).
104.
▲
by
leethargo
7y ago
Maybe ony more leery of depending on public transport. I've stopped using subway last week, and can still run errands by bicycle, i.e., don't need a car. But I also mostly WFH so it's easy, of course.
105.
▲
by
leethargo
7y ago
In a year, it might still not be over.
106.
▲
by
leethargo
7y ago
I guess you mean the total national capacity, not the local capacity in the most affected towns? Symptomatic patients are probably not going to be transferred over long distances, right?
107.
▲
by
leethargo
7y ago
The source is supposedly a "respected virologist" from the Charite hospital in Berlin. He started a daily podcast related to COVID-19 [1], but I did not have a chance to find this quote yet. EDIT: That same virologist also warned
108.
▲
by
leethargo
7y ago
That's good to know, I didn't challenge the argument when it was presented.
109.
▲
by
leethargo
7y ago
My team also uses feature branches, with a squashed merge commit. They used the argument that it's easy to revert that commit. But I didn't want to lose the detailed history either, so our squash commit message contains the comple
110.
▲
by
leethargo
7y ago
I see now and agree fully. On my first reading I managed to misinterpret your comment in a way I can't imagine now.
111.
▲
by
leethargo
7y ago
Yes, I meant (fully) associative.
112.
▲
by
leethargo
7y ago
In Julia, you can actually omit the `*` for multiplication, if it involves literals, i.e. julia> x = 10 10 julia> 2x 20 julia> 2 x ERROR: syntax: extra token "x" after end of expression But you have to be
113.
▲
by
leethargo
7y ago
Why? In math, that's actually how operators are defined.
114.
▲
by
leethargo
7y ago
OK, but for operators that are both left- and right-associative, this notation (variable number of arguments) is already used, e.g. in LISP, right?
115.
▲
by
leethargo
7y ago
I like the example about the distributive law. But for the associative law, one could also simply write: add(x, add(y, z)) == add(x, y, z)
116.
▲
by
leethargo
7y ago
I thought I might get some anecdotal evidence for this by teaching our daughter Scheme (and prefix notation) before she enters elementary school :-)
117.
▲
by
leethargo
7y ago
True. For some classes of problems, code generation is actually used here: https://cvxgen.com/docs/index.html
118.
▲
by
leethargo
7y ago
Actually, see the issue described here: https://stackoverflow.com/questions/38434300/why-is-quicksum... Using Python sum() is quite slow, so the packages provides a kind of lazy quicksum().
119.
▲
by
leethargo
7y ago
I can't find a benchmark right now, but the specific issue with Python in this case was not dynamic dispatch, but memory allocation and GC. And yes, that lead to having the model creation time dominate the solve time by an order of mag
120.
▲
by
leethargo
7y ago
Embedded DSLs in Python sometimes have a lot of overhead because of the way large expressions are built with operator overloading (x + y + z + ...), creating lots of intermediate objects. But there are solver-specific alternatives, such as
More ›