4,734 karma · joined Jul 6, 2015 (11y ago) · 1,825 submissions
comment 8mo ago · link · parent
And then the next step is to dynamically vary resources based on prediction of user stickiness. User is frustrated and thinking of trying competitor -> allocate full resources. User is profiled as prone to gambling and will tolerate intermittent rewards -> can safely forward requests to gimped models. User is an resolute AI skeptic and unlikely to ever preach the gospels of vibecoding -> no need to waste resources on him.
comment 8mo ago · link · parent
>I’ve assigned this problem [binary search] in courses at Bell Labs and IBM. Professional programmers had a couple of hours to convert the above description into a program in the language of their choice; a high-level pseudocode was fine. At the end of the specified time, almost all the programmers reported that they had correct code for the task. We would then take thirty minutes to examine their code, which the programmers did with test cases. In several classes and with over a hundred programmers, the results varied little: ninety percent of the programmers found bugs in their programs (and I wasn’t always convinced of the correctness of the code in which no bugs were found).
>I was amazed: given ample time, only about ten percent of professional programmers were able to get this small program right. But they aren’t the only ones to find this task difficult: in the history in Section 6.2.1 of his Sorting and Searching, Knuth points out that while the first binary search was published in 1946, the first published binary search without bugs did not appear until 1962.
The invariants are "tricky", not necessarily hard but also not trivial to where you can convert your intuitive understanding back into code "with your eyes closed". Especially since most implementations you write will only be "subtly flawed" rather than outright broken. Randomizing an array is also one of the algorithms in this class, conceptually easy but most implementations will be "almost right", not actually generating all permutations.
comment 8mo ago · link · parent
comment 8mo ago · link · parent
I do agree that the notion of difficulty needs to be recalibrated though, seemingly impressive RE tasks can now be done trivially with LLMs.
comment 8mo ago · link · parent
Yeah as far as I understand this basically _is_ where the connection to calculus comes in. As the article points out, it's very similar to computing the derivative via infinitessimals, e.g. (x+dx)^3 = x^3 + 3x^2 dx + O(dx^2), and from that you recover the term linear in dx as the derivative, 3x^2 . For the derivative you consider epsilon as a nilpotent where dx^2 = 0, and for hensel lifting lemma any term with a factor of p^2 gets zeroed (modulo p^2).
I'm just a layperson but I'm not really convinced that this is differential calculus in a meaningful sense. The other commenter mentioned "formal derivative" which seems fitting. There might be a connection to "umbral calculus" (something i know nothing about fwiw) though in the way you use the formal computations of derivatives for identities on polynomial equations, even without there being any differentials actually involved.
comment 8mo ago · link · parent
There's a simpler way to see this, any such y can be represented as y = nk + x where i,j are divisor & remainder. Then f(y) = f(nk + x) = f(x) modulo n since by binomial theorem all other terms other than those with just x will be divisible by n.
comment 8mo ago · link · parent
comment 8mo ago · link · parent
>The Global Equity Index Management team applies disciplined portfolio construction and efficient trading techniques designed to help minimize tracking error and maintain close alignment with benchmark characteristics [of S&P 500].
So given that this only affects NASDAQ i'm guessing they aren't affected? And even if S&p 500 started to play the same games, why can't their supposedly disciplined "Global Equity Index Management team" simply opt not to play along with these shenanigans? Or if they simply do mechanically track the s&p 500, what exactly is the "management fee" paying for?
comment 8mo ago · link · parent
comment 8mo ago · link · parent
comment 8mo ago · link · parent
Of course you can also just simulate this by peppering your code with print statements, so maybe it's not that useful in the end after all.
comment 9mo ago · link · parent
comment 9mo ago · link · parent
comment 9mo ago · link · parent
comment 9mo ago · link · parent
I guess the target audience they're going for is people who already have iPhones/iPads but would have bought a chromebook for school instead. This seems to be a reversal from their previous "what's a computer"-style ads that tried to sell iPads as the replacement for personal computing.
comment 9mo ago · link · parent