Better HN
topnewbestaskshowjobs
Log inSign up

improbable22

677 karma · joined Jan 8, 2017 (9y ago) · 329 submissions

Submissions

comment 7y ago · link · parent

My point was that counting letters in one short command seems myopic here, it's not something you type in isolation. Julia package names tend to be much longer and more explicit than python/R ones. But julia code (at least mine) tends to be more compact, partly because I can write things like A ⊗ B instead of np.kron(A,B).

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

Certainly Atom (and Juno), Sublime Text, and Jupyter notebooks.

comment 7y ago · link · parent

Indeed it's starting to sound rather more like a church than a bikeshed!

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

Yes, in julia A = rand(2,2) is a matrix, and reshape(A,:) is a vector view of the same continuous block of memory. You may also index A[i] directly, as if it were a vector; eachindex(A) is an iterator which uses whichever style of indexing is going to be quickest (and in cache-friendly order).

comment 7y ago · link · parent

But you have to type `python3` which is 7 letters to 5, if we're counting :)

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

For such things, Julia is often very close to Matlab indeed, or at least it can be used that way.

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

There was a big transition to 1.0 last year, for which 0.7 was a transitional release (1.0 but with deprecation warnings for old syntax). The package ecosystem took a few months to catch up, which may have been a confusing time to start.

The promise now is that things should be more stable.

comment 7y ago · link · parent

> `using` is shorter than `import`

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

My understanding is that it was just selective breeding -- strawberries might be the most recently domesticated plant, Europe 1200-ish?

And like everything else, the more modern varieties are bigger & easier to farm, at the expense of taste.

comment 7y ago · link · parent

Interesting, I had an idea there were studies from WWII aircraft plants or the like, but have never tried to look them up.

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

There are examples quite far from neural networks, the ones I can think of are broadly optimisation problems:

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

Yes to this.

There are also significant regional variations in how people interact. And it is more common to stand up & pay on the way out, which solves the frequent American complaint of having to wait forever for the check.

comment 7y ago · link · parent

Why shouldn't the whole thing be a package deal? The management needs to ensure every step from buying ingredients to putting it on a plate is done well, why is the act of delivering it to your table singled out? You vote with your feet by going back.

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

Indeed. I think it goes back much further too.

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

I forget the names but various high-profile restaurants in the US have tried this, and abandoned it. I don't know whether the problem was with attracting capable waiters, or the price scaring off customers, or just change making people uncomfortable.

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

No I wouldn't got that far, for most of us there are places we can and cannot afford.

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

Footnote 1 explains "The article is based on a lecture at the 2018 summer program Prospects in Theoretical Physics", which is a 2-week school for grad students, most of whom would not be working on exactly this.

comment 7y ago · link · parent

The funny part is that this may also be the most approachable thing Witten has ever written. In case the name isn't familiar, he's a leading theoretical physicist (with a fields medal), and I'm sure this was his idea of taking a week's holiday.

https://en.wikipedia.org/wiki/Edward_Witten

comment 7y ago · link · parent

Would be curious to hear what you have in mind here -- could you expand?

comment 7y ago · link · parent

Absolutely, but those ones will already have pulled in their usual configurations.

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

> more interesting experiment to fund just 100 people for life

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

Sure, why not something like pico / nano? Seems more friendly to occasional users, who are the people most likely to hit the default.

comment 7y ago · link · parent

And if I understand right, the reason is that the written language is more distinct from the spoken one(s) than in the west. Perhaps more like written mathematics, is this a terrible analogy? Russians write the same formulae with the exact same meaning, but say them over the phone completely differently.

comment 7y ago · link · parent

Well, many different notations are convenient in different contexts. The compiler they target is a bit more flexible than developers', so they are free to just describe what they are doing on page 1.

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

Thanks, had never seen that. Presumably the committee had a starchitect and an ambassador, both with veto power.

comment 7y ago · link · parent

Do you have other examples in mind? Trying to think of some and failing...

comment 7y ago · link · parent

I'm surprised people think it brutalist. I took those tiled ceilings to be a classical reference -- the pantheon in tube shape.

comment 7y ago · link · parent

The street view shows what I think would have been housing for people moderately high up the scale. I'm pretty sure that none of the initial residents would have washed the floors themselves... certainly upper half, right? So there's something in the selection view.

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.

comment 7y ago · link · parent

30s: https://www.youtube.com/watch?v=bocfNOjeBm8

40s: https://www.youtube.com/watch?v=zIaxPa2aUDI

1
567
11