677 karma · joined Jan 8, 2017 (9y ago) · 329 submissions
comment 7y ago · link · parent
comment 7y ago · link · parent
Most buildings there are also designed much more for winter. The windows seal well but often don't open that wide, and there will be a fire door making sure you can't get cross-ventilation, etc.
comment 7y ago · link · parent
JuliaBox (and https://nextjournal.com/) are cloud services, but if you have a real computer and want to do this for more than a few minutes, just install it. (There's also no need for virtualenv etc.)
comment 7y ago · link · parent
comment 7y ago · link · parent
$ julia --compile=min -e '@time (using GR; plot(rand(20)))'
0.375836 seconds (368.83 k allocations: 20.190 MiB, 1.65% gc time)
$ julia --compile=min -e '@time (using Plots; plot(rand(20)))'
4.302867 seconds (6.41 M allocations: 371.485 MiB, 5.07% gc time)comment 7y ago · link · parent
Plotting is indeed slower than ideal, have not used Gadfly but Plots is more like 15s after restarting, then 10ms each time after. GR is faster, 5s or so the first.
comment 7y ago · link · parent
Mathematicians of course label objects however suits the problem at hand. It's extremely common to write say c_0 + c_1 x + c_2 x^2 + ... for a taylor series starting with a constant, or start at -1 or -n if that's tidier.
comment 7y ago · link · parent
Flipping through a few of his notebooks, I guess he's from the part of academia that was core Matlab-land, engineering-style number-crunching. Mathematica is mostly people doing symbolic things, and people doing lots of stats are yet another story.
comment 7y ago · link · parent
The beds with their own screens look nicer than the ones in trains I've taken (and at comparable density) and far far nicer than anything in the air I've ever had. (Also nicer than the airport lounges I've slept in between flights...) There are also private cabins which I'm sure cost double.
comment 7y ago · link · parent
Tourists pay 25% VAT on everything, so it's not like they pay no taxes. I think literally having to prove residence (or citizenship? or tax-residence?) sounds like the sort of bureaucratic hell I'd rather not encounter at the ticket machine. But note that some countries find a way, e.g. Switzerland has 50% discount cards which are far too expensive to make sense for tourists, but make it cheaper for locals.
City transport is a different game, and harder to calculate down to individual levels -- you need all those 10%-full 11pm trams so that people can get home, on some days.
comment 7y ago · link · parent
But since you seem to understand the paper a bit, may I ask: I thought convolution was done by FFT, shaving N^2 to NlogN and all that. Are these automated compilers they discuss smart enough to find that, or are they literally re-arranging (1)? Or is it all so memory-bound that this question makes no sense?
comment 7y ago · link · parent
comment 7y ago · link · parent
$ julia -e '@time (using GR; plot(rand(20)))'
3.931433 seconds (10.38 M allocations: 521.292 MiB, 6.44% gc time)
$ julia -e '@time (using Plots; plot(rand(20)))'
19.498644 seconds (57.26 M allocations: 2.844 GiB, 8.07% gc time)
Running with less compilation: $ julia --compile=min -e '@time (using GR; plot(rand(20)))'
0.375836 seconds (368.83 k allocations: 20.190 MiB, 1.65% gc time)
$ julia --compile=min -e '@time (using Plots; plot(rand(20)))'
4.302867 seconds (6.41 M allocations: 371.485 MiB, 5.07% gc time)
But, as you say, it's much much quicker once started, like 1-5ms per plot.comment 7y ago · link · parent
Here's how long a vector of 5 random numbers takes, after a cold start, on 1.1:
$ julia -e '@time rand(5)'
0.054343 seconds (121.03 k allocations: 6.219 MiB)comment 7y ago · link · parent
Some junior professor, who's up for tenure based on research output, and teaching prizes based on being liked... in his shoes, would you decide to spontaneously give mostly B & Cs next year, and spend weeks fighting unhappy students?
Thinking about how we'd like the idea system to work is just daydreaming. You've got to think about the incentives facing all the people involved. And at the moment, these seem to point towards inflation.
comment 7y ago · link · parent
Law schools often do this, and I heard many stories of things like (in the days of physical books...) moving the perfect references, a week before the deadline, to an unrelated shelf in order to trip up your classmates.
By contrast the science students tended to collaborate on everything outside of an exam room, and learned a lot from each other this way. Even if their grades were less perfectly reflective of individual understanding.