677 karma · joined Jan 8, 2017 (9y ago) · 329 submissions
comment 7y ago · link · parent
As far as I'm aware there is no budget for a police force. There is, however, a double-your-money-back guarantee on all advice from blog posts!
I do think the manual could be clearer about using/import. Perhaps this should be emphasised under workflow [1], and packaging differences from Python included in the list [2]. The experts have forgotten what the pain-points were; contributions from those who have not are thus welcomed.
[1] https://docs.julialang.org/en/v1/manual/workflow-tips/ [2] https://docs.julialang.org/en/v1/manual/noteworthy-differenc...
comment 7y ago · link · parent
I am curious what people write all day for this to be such a big issue. It's not like you need to re-invent N-dimensional array indexing every morning -- we have abstractions. If translating code then it could be from either convention... or from a mathematics book. (Where you may note that mathematicians are unconvinced by the CS arguments... admittedly not a group of people known for taste in all matters, but taste in notation they have thought about quite a bit.)
comment 7y ago · link · parent
comment 7y ago · link · parent
Seriously though, it's hard to write one manual which gives everyone the perfect on-ramp for their needs. I actually think it's fair to aim it low, make it easy for matlab refugees to get started, interactively. People who know how namespacing works in several other languages (and intend to write big projects) are the ones well-equipped to know how to dig deeper. Nobody has been victimised!
comment 7y ago · link · parent
You could translate most of those files line-for-line, with quite a few lines identical or trivially changed (bracket shape, or max -> maximum). This is often a useful thing to do, get a transliterated version running, and then re-write bits of it more idiomatically, while checking that the output is identical.
comment 7y ago · link · parent
The promise now is that things should be more stable.
comment 7y ago · link · parent
By one letter!
And in the right direction: for trying things out interactively, `using ThePackage` and then having everything available is great.
Then once you know what you want to do, in more careful code you can switch to `import` and qualify more things, and your future self with thank you.
But serving both of these needs seems like a valid design goal. I'm not sure the manual does a great job of explaining this right now, import vs. using also changes the rules around adding methods to functions, and it is perhaps more confusing than it has to be.
comment 7y ago · link · parent
The optimum must depend strongly on what work you are doing, how expensive tired mistakes are to fix, how much downtime there is waiting for someone else, etc.
comment 7y ago · link · parent
Many physics problems involve trying to find a function which minimises something -- energy, entropy, action. Or the state which makes the difference between two things zero. Sometimes adjusting many parameters slowly down the gradient is a good way to find these.
In bayesian statistics, the basic problem is to sample from a distribution, which you know only indirectly, by some kind of monte-carlo method. But the space to sample can be enormous. If I understand right, advanced ways of doing this exploit the gradients (of functions defining the distribution) to try to choose samples efficiently.
People have hacked tensorflow to do all sorts of things which its creators didn't intend. Or written tools specialised for another particular domain (like Stan). I guess the excitement is that instead of re-inventing the wheel in each domain, maybe this can be pushed down to become a language feature which everyone above uses.
comment 7y ago · link · parent
Lots of other industries need face-to-face contact. It would not be a better world if we had to tip the dentist's receptionist, the office building's security guy, the plumber's apprentice who does comes back to finish the job... although it's still important that all of these behave well.
comment 7y ago · link · parent
Restaurants are basically a 200 year-old technology, but rich people dining well when visiting each others' country houses goes back a lot further. And I believe it was the custom that, on departing, a visitor would tip the host's servants. It's my impression that this is where the custom came from (but not an expert opinion).
comment 7y ago · link · parent
But there seem to be two equilibria. Opening a restaurant in Paris and telling diners they should tip 20% because you aren't paying the waiters (oh and we left VAT off the menu, another 20%)... even if this were legal, I think you'd have great trouble attracting either customers or waiters.
comment 7y ago · link · parent
But this is how you have to regard US menu prices: you add 1/3 or so and have a ballpark figure for what it's going to cost you. Whereas ordering the "menu €15.50" is something you can safely do after checking that you have 15.50 in your pocket.
comment 7y ago · link · parent
In cars, it's more like your airbnb host tosses you the keys & asks if you can park it in the basement quickly while he opens up. Much better a Yaris than a stick-shift V12 monster with no rear window.
comment 7y ago · link · parent
Are there any good natural experiments like this?
Some lottery winners take the annuity, maybe that is close? (Although they are selected both to play the lottery, and to have the sense not to immediately buy a ferrari.)
Some places have pretty generous disability pay, I wonder if people who just got it or just didn't might be a useful experiment?
comment 7y ago · link · parent
comment 7y ago · link · parent
Human languages face the same trade-off: in some word order is very important, in others less so, but they need to compensate with some kind of case labels.
comment 7y ago · link · parent
I don't know what happened to the buildings which housed the lower half. I know Berlin in 1900 was famous for having lots of awful newly-built tenement buildings, much lower standards than NYC or London at the same period. Maybe these were much less likely to be restored?
But I agree that selection isn't the whole story. Technology is some of it: heating was never cheap, but lighting was even more expensive, which is why old factories have huge windows. I think formality was another part, having a big formal room for guests was important for respectability, whereas today most housing is designed much more around its daily use... so things get subdivided to have more separate bedrooms.