Better HN
topnewbestaskshowjobs
Log inSign up

TJSomething

812 karma · joined Oct 10, 2013 (13y ago) · 304 submissions

Submissions

comment 8y ago · link · parent

I personally prefer the RedMonk rankings [1] over TIOBE, since TIOBE's entirely about Google hits, which lags as an activity indicator by a few years, because sites for languages that have stopped being used stay around for years. Also, Google hits counts are really noisy, especially for languages that have names that are also words, like Go and Elixir. RedMonk uses recent GitHub and Stack Overflow activity as a proxy for popularity.

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

Where is this is going to leave GraalVM and JIT for ARM? I believe both of those are exclusive to Oracle. And I was kind of excited to use GraalVM.

comment 8y ago · link · parent

Schools have fixed costs and marginal costs, just like everything else. Fixed costs consist of capital, like buildings. Marginal costs are like teaching time and books. Increasing your capital is usually relatively slow, e.g. buildings take a while to build and land takes a while to sell.

comment 8y ago · link · parent

I can't find it right now, but I've read a study that showed that teaching Python and then another language yields better understanding then just jumping into the harder language.

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

Those Wikipedia pages are kind of awful for pedagogy, but they have the right equations, so I won't cover those.

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

I once backed crowdfunded hardware before crowdfunding services like Kickstarter were really a thing and they couldn't really get their credit card provider to accept the risk, so I had to use an international wire transfer for it. I guess cryptocurrency would be decent for that.

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

I think the issue here is that advertisers are not willing to evaluate if clients can protect user data unless large sums of money are offered up front.

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

Numbers aren't lists of digits. They're abstract concepts that are referred to by lists of digits for the purpose of convenience. You can even have numbers without having invented digits. It's just annoying to write out one million, two hundred thirty-four thousand, five hundred sixty-seven and eighty-nine hundredths. So, we say 1,234,567.89 (or 1.234.567,89 for countries that use the comma for decimals).

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

It's as "real" as 1/2, which is on your list.

comment 8y ago · link · parent

You can use publicly available data feeds that changes every few minutes. For example, CNN's Afterhours trading data [0] seems to work pretty well. And it's just HTML, so you just hash it and you're good.

[0] http://money.cnn.com/data/afterhours/

comment 8y ago · link · parent

My biggest concern is that there's an Enterprise Edition of GraalVM. I'm a little suspicious that the Community Edition will end up crippled and EE will cost more money than I'll ever want to spend.

comment 8y ago · link · parent

In my experience, the academic subreddits found in the defaults are pretty civil (i.e. science, philosophy, space, history). But they all have well-defined mission statements and heavy-handed moderation (e.g. no memes or any other kind of offtopic discussion).

That said, starting from zero is still a good idea.

comment 8y ago · link · parent

Looks like that's about 45 MB [1]. For comparison, Electron is about 80 MB. Qt starts at 50 MB depending on what you need, but a few years ago I got it down to 16 MB with UPX and a customized ICU. Gtk starts at ~20 MB and compresses to about half that with UPX. You could probably get those a bit smaller if your license permits static linking, but then you have to write C++.

[1] https://steveperkins.com/using-java-9-modularization-to-ship...

comment 8y ago · link · parent

And 184 mL (about 6.5 shots total, 1.5 fl oz each) of hard liquor (80% ABV).

comment 8y ago · link · parent

I mean, aside from the DNC's emails [2] [3] and gaining access to Arizona and Illinois voting records [1]. I'd personally put 1 to 4 odds against direct modification of voting numbers, given that voting machines are woefully insecure [4].

[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 8y ago · link · parent

I'd assume by looking for a favicon request without any other requests.

comment 8y ago · link · parent

I'm seeing the same thing in Firefox 57.0.3 on Debian, if my viewport is more than or equal to 1320 pixels wide. It goes away for the text on screen if I force it to repaint, but comes back if I scroll or resize the viewport.

comment 8y ago · link · parent

Perhaps proving that you're running on the same hardware as Coinbase is most easily done by statistical attacks, which requires collecting data over time.

comment 8y ago · link · parent

I'd hope that Amazon would zero out that RAM first, since whoever uses the machine next could always dump /dev/mem.

comment 9y ago · link · parent

Sounds like a bit of a catch-22: you don't want to collect the data until you've collected enough data to know that you're not causing harm.

comment 9y ago · link · parent

In a medical setting, most computers are public. Sharing passwords is a HIPAA violation, because HIPAA requires a complete, accurate log of everyone who has looked at or modified a medical record.

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

My experience in my CS MS was that there was ~50% discount on tuition, a subsidized health insurance plan, and not quite enough to live on.

comment 9y ago · link · parent

Except they updated C in 2011 and they're already working on C2X.

http://www.open-std.org/JTC1/SC22/WG14/www/docs/n2086.htm

comment 9y ago · link · parent

Additionally, if you can find a caf and a decaf version of the same coffee, you can brew half-caf coffee.

One thing is that you need to use high-end decaf. I've found that decaf using the Mountain Water Process is good.

comment 9y ago · link · parent

Well, one thing I noticed was an inconsistency with "thy" and "thine". Which one you use depends on if the following word starts with a vowel, with "thine" before vowels and "thy" otherwise. For example, the article has "in thy own case", as well as, "output thine data". Some investigation seems to lead me to believe that this a more a matter of style, but I still think it sounds wrong.

comment 9y ago · link · parent

That page is out of date. They added filtering for everyone in November.

comment 9y ago · link · parent

My work doesn't like most URLs with xyz TLDs.

comment 9y ago · link · parent

> Go, which is much older than Swift, Rust, D, etc.

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

For C++, one kind of nonsensical types is abominable function types, which are bare functions with cv-qualifiers [1] [2].

[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p017...

[2] https://news.ycombinator.com/item?id=10935171

comment 9y ago · link · parent

That would be Desai, et al. Though I can't access the paper right now, they say that the 2011 regulations have tripled handoffs, increasing handoff risk. It also turned out that the average amount of sleep per week was not increased by much after instituting the regulations.

[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

1
7891011