Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tylerhou
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
27 ms
·
331.
▲
by
tylerhou
5y ago
Ah, this is definitely possible as well; you could statically analyze the function and then topologically sort the recursive calls. But that falls into an optimization category which requires some sophisticated analysis. That type of optimi
332.
▲
by
tylerhou
5y ago
Yeah, debugging the written function is not easy, but that could be improved by adding the normal tools for rewrites (sourcemap). Also, you can put print/logging statements inside the function; the rewrite preserves those. In theory th
333.
▲
by
tylerhou
5y ago
You're right, fixed.
334.
▲
by
tylerhou
5y ago
Hi HN, I wrote this. Admittedly Fiber is not the best name — in the current implementation we don't yield to the scheduler except for recursive function calls, and our "scheduler" only runs a function to completion. These thi
335.
▲
Show HN: Python decorator that enables arbitrarily-deep tail/non-tail recursion
(github.com)
119 points
by
tylerhou
5y ago
|
21 comments
336.
▲
by
tylerhou
5y ago
My point is your analogy is not comparable, not that OP is acting morally or not morally. When a company issues dividends, it voluntarily (consensually) gives to those who have provided it value. When you steal from other fisherman and call
337.
▲
by
tylerhou
5y ago
> …receiving stock dividends from companies at which you've never worked is theft that should be criminalized No, because when you receive dividends, you have provided something of value to the company (capital). Without your money,
338.
▲
by
tylerhou
5y ago
https://liquipedia.net/starcraft2/2015_Match-Fixing_Scandal#...
339.
▲
by
tylerhou
5y ago
It depends on the harm done. Obviously if you’re playing with your friends there is likely no harm done. If you’re wasting 50+ other people’s time (e.g. FPS battle arenas) then you might want a harsher punishment. Of course there are degree
340.
▲
by
tylerhou
5y ago
Of course you're right in cases of a cold start. But if I understand the benchmark in the linked post correctly, the TTFB was measured assuming that the VM was already hot & and the code optimized through TurboFan already. (Hence &
341.
▲
by
tylerhou
5y ago
Assuming that we're using V8 and the function is hot, both the JS code and the WASM will be compiled to optimized bytecode by V8's TurboFan optimizing compiler. The two big reasons why JS is inefficient vs Rust+WASM is because (1)
342.
▲
by
tylerhou
5y ago
> * Rust compiled to WASM is faster than Javascript (ok, but I'm not going to switch my entire stack just to use your CDN) First, the JavaScript is compiled to hot bytecode (WASM-equivalent) by the VM, so the performance difference
343.
▲
by
tylerhou
5y ago
Tarjan's proof of inverse* Ackermann bound is hard to understand; it's much easier to understand the proof of the log*(n) bound, which is also an extremely slow growing function: https://people.eecs.berkeley.edu/~v
344.
▲
by
tylerhou
5y ago
Nit: when you say better you mean "more economically efficient in terms of $s produced." That's not necessarily equivalent to a policy that would be the best for society.
345.
▲
by
tylerhou
5y ago
> but once a piece of data gets confirmed... it can never be changed or removed from the blockchain. But it can, in the exact same manner as described in this article: have an 51% attacker build up a long chain and hide it from the world
346.
▲
by
tylerhou
5y ago
As someone who went to Exeter and did higher-level math there, you didn't have to even start calculus in order to graduate. Also, the calculus taught there is roughly the same level as a decent public school. And you can probably get t
347.
▲
by
tylerhou
5y ago
But then your definition of leak is arbitrary, because who's to say that memory won't be re-accessed in the future? You're right that that problem is equivalent to the halting problem.
348.
▲
by
tylerhou
5y ago
I'm advocating for the honest representation of the net utility for social programs by stating their benefits in addition to their downsides. It's not a fair representation to only show losses without acknowledging that without un
349.
▲
by
tylerhou
5y ago
They're not saying that the US spends $35T on defense, they are saying that the budget is so complex that the aggregate value of internal transactions (i.e. budget allocation flowing down to sub-departments) is $35T. They use this comp
350.
▲
by
tylerhou
5y ago
What are you trying to advocate for; making it much harder to receive unemployment benefits? Then your statement demonstrates the exact point the parent commenter is trying to make. 89% of payments weren't considered fraudulent. I.e. i
351.
▲
by
tylerhou
5y ago
I don't know if Valgrind (or Clang msan) would catch this bug as it might not be associated with any calls to *alloc/mmap/free/etc. Seems like a kernel issue, and I don't know if Valgrind has the capability to peer
352.
▲
by
tylerhou
5y ago
It's not equivalent; you can tag every pointer with a special bit. Then statically you know the accessible roots at every instruction pointer value, and you can simply traverse accessible memory regions, following tagged pointers. Free
353.
▲
by
tylerhou
5y ago
By DP state, I mean the arguments to the recursive function (for U, the state is the tuple (i, j)). For example, if you wanted to use DP to compute all-pairs-shortest-paths (Floyd-Warshall), you add a third parameter to the DP state ((f(u,
354.
▲
by
tylerhou
5y ago
> If we can find X Almost certainly we need to add terms into the DP state to compute X; unfortunately adding just the number of vertices doesn’t work as some triangles have two edges in which a point can be inserted to create a quadrila
355.
▲
by
tylerhou
5y ago
If you didn’t care about the restrictions, then the answer is N*M choose 4.
356.
▲
by
tylerhou
5y ago
It might be easier to define f(m, n, v) where f(m, n, v) is the number of v-vertex shapes that can fit within a m-n square with exactly one vertex in the top left hand corner. Then Q(m, n) = \sum_{i \in m, j \in n} f(m, n, 4). f also lends
357.
▲
by
tylerhou
5y ago
https://twitter.com/wirecutterunion/status/14577658948688486... https://www.reddit.com/r/wirecutter/comments/qrakja/support_...
358.
▲
by
tylerhou
5y ago
This study is for household transmission in an extended setting. That's not the same as transmission e.g. in an outdoor environment or for short, casual contact. Vaccinated people are less likely to be infected, hence "breakthroug
359.
▲
by
tylerhou
5y ago
I would also like nominal types in TypeScript, but one issue is that it might open a can of worms that is antithetical to one of TypeScript’s main design goals: that a change in the typing of a program should not be able to modify behavior.
360.
▲
by
tylerhou
5y ago
Native async/await functions use generator functions under the hood, which are an implementation of coroutines. Like all fully-fledged coroutine implementations, generators can suspend execution while preserving the stack by yielding c
More ›