812 karma · joined Oct 10, 2013 (13y ago) · 304 submissions
comment 8y ago · link · parent
In this case though, Elixir is still way lower, at somewhere around 30th compared to Go's 14th.
[1] https://redmonk.com/sogrady/2018/08/10/language-rankings-6-1...
comment 8y ago · link · parent
comment 8y ago · link · parent
I was able to find the article "What About a Simple Language? Analyzing the Difficulties in Learning to Program" by Mannila, et al., which found that first time programmers found it easier to write bug-free programs in Python than Java and subsequently had a lot less trouble with the details of Java after learning Python, as they did not have to use the mental bandwidth to learn the most basic concepts of programming while also learning static typing and the incantations required to use Java.
comment 8y ago · link · parent
Say we have a curve that corresponds to how good of a fit your model is. We want to try to find the maximum on that curve. However, calculating every point of the curve is too expensive, so we want to minimize the number of points we have to check. So, we start with a guess as to the highest point on the curve and take the first and second derivatives of the curve at that point. This gives us enough to fit a parabola that approximates the curve in the neighborhood of our initial guess point. Then, it's pretty easy to solve for the highest point on the parabola. That's our new guess. Repeat that a few times until the guesses stop shifting much. If the curve is nicely shaped (i.e. smooth everywhere, only has one maximum), the guesses will converge on the highest point.
This is a often faster than a similar method, gradient ascent, which relies upon only taking the first derivative. This would yield a line in the vicinity of our guess, and then we just move our guess a little bit, such that it goes up the line. This is pretty slow, since it can't just go straight to a guess of the top, and if you go too fast, then it'll blow right past the maximum.
The Hessian matrix is the higher dimensional equivalent to the second derivative there and the gradient is the equivalent for the first derivative. For example, if we have a two dimensional surface in 3D, then those matrices will be 2x2 and capture the curvature of the 3D paraboloid in the vicinity of the guess. As you go up in dimensionality, they're called quadric hypersurfaces.
When you're fitting a logistic regression, your hypersurface is the logarithm of the likelihood that the data you have fits the logistic curve with parameters at that point. The logarithm makes the hypersurface better behaved and makes the calculus easier. You just need the gradient and the Hessian, evaluate those at your initial guess, fit a quadric hypersurface to the guess there, pop up to the top of that hypersurface, repeat a few times, and you've got your model.
comment 8y ago · link · parent
That really just boils down to cryptocurrency being good for business models that are so new that they sound really risky. I'm not really sure that enabling such models is really a net good to society.
comment 8y ago · link · parent
And if you don't profit from a website and just want to place advertisements to keep the lights on, you don't have that kind of money.
comment 8y ago · link · parent
0.5 in base 10 is the same as 0.1 in base 2, which is the same as 0.11111... in base 3. And the choice of base is completely arbitrary, with some societies using others, like base 12 or base 60.
comment 8y ago · link · parent
That said, starting from zero is still a good idea.
comment 8y ago · link · parent
[1] https://steveperkins.com/using-java-9-modularization-to-ship...
comment 8y ago · link · parent
[1] https://www.washingtonpost.com/world/national-security/fbi-i...
[2] https://www.usnews.com/news/world/articles/2017-11-03/inside...
[3] https://www.cnn.com/2016/12/26/us/2016-presidential-campaign...
[4] https://www.defcon.org/images/defcon-25/DEF%20CON%2025%20vot...
comment 9y ago · link · parent
My guess is that many medical computers aren't well administrated and leave autofill on, which can easily cause accidental HIPAA violations.
comment 9y ago · link · parent
comment 9y ago · link · parent
Go is definitely newer than D, which came out in December 2001, though D2, which is significantly different, came out in June 2007, while Go came out in November 2009. And, in the grand scheme of things, Go isn't too much older than Rust, which came out in January 2012.
Additionally, from the point of view of "no UI libs," basically every natively compiled language is at a significant disadvantage on Android, even the originally intended native language, C++ (1983).
comment 9y ago · link · parent
[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p017...
comment 9y ago · link · parent
[1] https://www.sciencedaily.com/releases/2013/03/130325183819.h...
[2] Desai SV, Feldman L, Brown L, et al. Effect of the 2011 vs 2003 Duty Hour Regulation–Compliant Models on Sleep Duration, Trainee Education, and Continuity of Patient Care Among Internal Medicine House Staff: A Randomized Trial. JAMA Internal Medicine, 2013; DOI: 10.1001/jamainternmed.2013.2973