677 karma · joined Jan 8, 2017 (9y ago) · 329 submissions
comment 6y ago · link · parent
The effective divergence time is much longer than since 1947 -- I believe that around 1900 people in England thought their cousins in India a generation behind in dress & everyday speech. And formal bureaucratic terms were already ossified, another classic is "out of station" (as in, out of town, away from the office) which IIRC is from east-india company days.
comment 6y ago · link · parent
Something like this is the norm in some more mathematical fields, where only the polished final version is published, as if done by pure thought. To build that, first you have to reproduce it, invariably by building your own code -- perhaps equally awful, but independent.
comment 6y ago · link · parent
I guess it can be made so, but not necessarily easy / fast (if it's parallel, and sensitive to floating point rounding). And sounds like the kind of engineering effort GP is saying isn't worth it. Re-running exactly the same monte-carlo chain does tell you something, but is perhaps the wrong level to be checking. Re-running from a different seed, and getting results that are within error, might be much more useful.
comment 6y ago · link · parent
There is simply no question of how (to use their example) `mean(::CuArray; dims)` should work, it not only follows Base's notation, but extends the same `Statistics.mean` function, so that exotic arrays can be passed to packages written before the package defining them existed.
comment 6y ago · link · parent
(All the standard libraries are baked in by default, in much the same way I think, and so can't be updated without making a new version of Julia. But they all load fast.)
comment 6y ago · link · parent
I guess the selling point is that being good at many things means you don't have to keep switching between all these languages, or glueing them together. Others have mentioned the composability benefits of this. But it also has a learning advantage, I think. You can incrementally learn to speed up the crucial piece of something. You can learn just enough metaprogramming to solve some problem you have.
comment 6y ago · link · parent
I think the thing to understand here is that mixing speeds is awful for capacity. There are some fast trains now, and everything else has to be scheduled around them, which means they each eat up many slots, to clear the line a safe distance ahead. There's lots of demand for more slow trains, which can't be run.
If you built a new slow line, you would still have this problem. And the slow trains want to stop many places, so you can't build the line through open fields, and building through towns is really expensive.
So you build a new fast line. And then it may as well go a little faster than the existing fast trains. But this increment isn't the main point.
Or at least that's my understanding. I don't doubt the price will grow. I have also heard there may have been other not-quite-as-fast options, refurbishing a disused line instead?
comment 6y ago · link · parent
I don't know of a way to heavier outline fonts. I believe the commonly used versions aren't in fact derived smoothly from Metafont, but either fitted to the bitmaps, or drawn by hand over them. That would have been a good time to correct this sad mistake.
comment 6y ago · link · parent
comment 6y ago · link · parent
comment 6y ago · link · parent
Friend on Android like OsmAnd, which sounds like a much bigger app, contours are an add-on IIRC. I think can even do things like editing the map & submitting your corrections.
I have never got around to printing maps, but have occasionally carried paper maps too. OSM is not as detailed as the best EU country maps, but is far better than anything on paper in most faraway mountain ranges.
comment 6y ago · link · parent
I think this is called "dutch disease" by economists: the high wages paid by the dirt-digging (early on) mean that you can't simultaneously be competitive in metal-bashing, which makes it hard to develop other industries.
comment 6y ago · link · parent
At least in Korea. In less successful countries, domestic top dogs were simply protected, and were quite happy to keep making cars from the '50s.
An excellent book on this story is "How Asia Works" by Joe Studwell. (On which I'd be interested to hear any opinions from actual Koreans.)
comment 6y ago · link · parent
Here's a paper with nice graphs, drawing where different languages put the boundaries between words -- they divide up the hue-saturation space into a varying number of blobs:
https://www.pnas.org/content/115/31/7937
(The data isn't theirs, it was painstakingly colected by going and asking lots of people "what colour is this pantone?". The paper does some fancy stuff on top of that. But it has nice graphs.)
comment 6y ago · link · parent
https://github.com/ChrisRackauckas/EllipsisNotation.jl
I think that `/src/Name.jl` must have the main module, and `/test/runtests,jl` tests. And the package manager cares about `Project.toml`. But beyond this there are no real rules enforced, although there really seems to be one way to do things.
Here's a much bigger project, organised the same way. `include(file.jl)` literally copies in the text, and it's somewhat conventional to collect all imports & exports in the main file:
https://github.com/JuliaNLSolvers/Optim.jl/blob/master/src/O...
Still no sub-modules. No files included in mysterious locations. Methods being defined for functions from elsewhere are all qualified, like `Base.show(io::IO, t::OptimizationState) = ...`
comment 6y ago · link · parent
It seems great to me that paths & source files are mostly irrelevant, you're free to re-organise without changing anything. And that `using Xyz` is always talking to the package manager. You can make sub-modules and say `using .Xyz`, but there's very little need to do so, and few packages do.
You can shoot yourself in the foot by including source twice, as you can by generating it with a macro, or simply copy-pasting wrong.
comment 6y ago · link · parent
While ordinary horizontal curves are cambered, IIRC the resulting train-vertical acceleration is still one of the limiting factors.