skysight-inc/HackerNews huggingface dataset:
> There should be only one way to express a given language operation

This is not possible in general, because concepts rarely coincide cleanly with syntax. For example, you can't have both currying and closures if you insist on this.

Most of the "syntactic diabetes" examples in the talk are of this kind: They are actually separate, general concepts that happen to overlap. And some don't even overlap, but the author does not seem to fully understand the language.

For example, that you can write both f(x) and f{x} is simply because f{x} is essentially the same as f({x}) and the parser allows you to drop the parentheses if they directly surround braces. But `{x}` and `x` are not the same: the first is a scoped block, the latter is a variable. You cannot use a variable to express a scoped block and you cannot use a scoped block to express a variable.

There IS unnecessary conceptual overlap in Scala, but you can find that elsewhere: For example, there's quite a bit of conceptual overlap between view bounds and type classes. But it's difficult to blame the language for it: much of this conceptual overlap exists to make the Java interoperability story less painful (of course, you could argue that Scala shouldn't try so hard to be interoperable with Java at the cost of language simplicity, but there are tradeoffs either way).
How Not to Understand ISIS
I second "Scala for the Impatient", but if you don't have any statically typed background it might be a bit tough.

"The Neophyte's Guide to Scala" (http://danielwestheide.com/scala/neophytes.html) is hands down the best language introduction I've ever read though.
A good place to find this sort of info is "Sustainable Energy Without The Hot Air", http://www.withouthotair.com/

Page 168 mentions the fact that coal ash contains uranium, and that people living near coal power stations are exposed to more radiation than those living near nuclear power stations.
The first link states at the bottom: "We are limiting the number of API requests from a single IP to 10,000 per hour. "

The hn/tag demo works one time out of five refreshes for me, so keep trying. Here's a screenshot in case that doesn't work: http://imgur.com/yPF0hkn
They aren't paying Sales guys. 10-15% of sales guys are making their number.
I find something deeply annoying about journalists using pop-psychology to criticize real psychology.

Yes, you can probably poke some holes in his quantitative interpretation of obedience (it's hard to condense human dialogue/action into a single metric), but it was good fundamental psychology that warranted repetition/variation.

Published science often contains a limited narrative because even scientists have trouble reading through many pages of technical detail without proper motivation. To suggest that narrative makes Milgram's work art rather than science is an unjustified insult.
I believe Clojure is less directly interoperable. For instance, a Scala class is a Java class. I believe creating a Java class in Clojure is something you have to call into a library to do.

Update: reading the Clojure docs, the main issue I see is compiling Java code against Clojure code. Clojure has a number of constructs for calling Java code and creating Java objects, but it's not clear to me how you define an API in Clojure that Java code can then call.
A replacement for JavaScript's “alert”
But I meant return p, not some gibberish that obviously should be formatted better. It's just that for some developers "formatting better" doesn't translate to "make it shorter and sweeter".
I have this problem every year. Last year I went on a 6 week vacation. I wanted to go to an African safari, but where? What should I see? What route is best? Turns out safaris are super-expensive and I can only afford 2 weeks. What should I do for the rest of the time? My flight had a stop-over in Turkey, so I might as well spend a few weeks there. Should I also go to Greece, Croatia, or southern Italy? It was October so I only want to go where the weather is still warm. I wanted to stay in interesting B&Bs, go hiking in Crete, see gorillas in Uganda, etc.

I ended up going through a human travel agent who planned a wonderful trip at a steep discount to the luxury safari pre-planned trips because she understood what we wanted to pay for (experiences) and what we didn't care about (fancy hotels).
If they are full-time "founders", they should get almost equal split (33%+33%+33%, or 40%+30+30%, not 90%+5%+5%). Also, the "standard" is a 4 years vesting scheme, with a 1 year cliff.

Some previous discussions: https://hn.algolia.com/?q=equity+plit#!/story/forever/0/equi...
> Does the syntactic diabetes really bother people? Like, yes, these are different sequences of characters that mean the same thing, but visually it's very clear that they are the same thing; it's not the perl "there is more than one way to do it" where the ways of doing it are conceptually very different.

Oh yes, this is one of the things that bother me the most about Scala, actually. I don't mind if there are conceptually different ways of achieving the same goal, as you put it, because those different ways usually have different trade-offs; if you're doing things one way instead of the other, you know why you're doing it, there's a certain benefit in doing it this way.

But syntactic diabetes is bad because it ultimately provides no real benefit. Different people will write different code based simply on their tastes and preferences and pretty soon you'll have a mess in your project codebase, unless you enforce strict rules and conventions about writing code. Furthermore, people who work in a team that enforces one set of conventions may have trouble when joining another team that uses a different set of conventions.
In Java, for example, this is not the case. Yes, there are things that the language itself doesn't enforce, and conventions are used, but these conventions are well known, and there's probably no Java developer on Earth who wouldn't adhere to them. When a totally new Java developer joins the team, she can usually read code right away, because there are no surprises with regards to the syntax. Sure, she'll need to spend some time perhaps to really get what's going on, because the code might be complex, but the syntax itself won't stand in her way.
I'm not a genius. Care to elaborate?
You're correct. Sim Lim Tower is where the electronic/electrical stuff is, Sim Lim Square has the computer parts and electronics (cameras etc).

But in Singapore, the mother lode is probably Koba Electronics[1] in Chinatown..

[1] http://dangerousprototypes.com/2012/08/06/global-geek-tour-s...
With proper controls, even having 40% of shares won't get you log files having user information. Those roles should be separated.
> The minute you mention optimization on most internet forums (especially StackOverflow) you get slammed for promoting "premature optimization."

Typically, that's because the people asking are asking questions like "which is faster in PHP, print or echo?" to which the answer is generally "there's about a half a second difference if you run it a million times, but you shouldn't be doing that anyways".
Critique of Milgram's experiment by Erich Fromm (acclaimed pop psychologist): http://www.angelfire.com/or3/tss2/fromilg.html

Why the downvote? Tl;dr, or had no better argument than that? :)
Wine domain names: www.you.wine
> PS: Nice to see that HN really has a soft spot for Turing.

One of the original hackers surely?
As the company issuing shares, unless you get the approval of the SEC (i.e. you're regulated to sell shares to the general public) you will be fined and prosecuted.

It you are a non U.S. based company you will be chased by the SEC for issuing shares to U.S. citizens, which brings you under their jurisdiction(so says them).
It sounds like we should all be taking these drugs to stave off decrepitude.
Thanks for your comment, it really helps piece it together. I'm familiar with semiconductor/transistor theory but the article was light on details. Also, I was mostly lost reading Wikipedia. What I've found: there's quite a long list of band-gap semiconductors [1], and the blues fit in chronologically by coming after the reds/greens (Gallium-Arsenide GaAs stuff). The blues center around Gallium-Nitride (GaN) [2] semiconductors.

> They found out you could grow GaN by flowing hot gasses containing Ga and N on top of an artificial sapphire film, which would act as a template for the crystal to grow.

This must be what [3] refers to. Mix molten gallium with nitrogen at 100 atm, 1000 ˚C. Alternatively, mix gallium with ammonia. Get a powder of GaN, then vapor deposit it into layers.

> The problem is that GaN crystals and sapphire crystals are slightly different sizes (the gaps between their constituent atoms is different) so they don't match up exactly

Right, several articles mention matching lattice constants. Seems to be a big problem. In fact, [2] mentions that the first substrates used for growing GaN were sapphire, zinc oxide, and silicon carbide. A chart [4] shows lattice constants, which I don't fully understand, but GaN's 3.186 Å is pretty close to SiC's 3.086 Å. So this seems to make sense.

How do you compare a single lattice constant like ZnO: 4.580 Å with a pair like GaN's 3.186 Å, 5.186 Å?

[1] https://en.wikipedia.org/wiki/Light-emitting_diode#Ultraviol...

[2] https://en.wikipedia.org/wiki/Gallium_nitride

[3] https://en.wikipedia.org/wiki/Gallium_nitride#Bulk_substrate...

[4] http://sector7.xray.aps.anl.gov/calculators/crystal_lattice_...
imo its the fact that we're so reliant on 3-4 big banks as opposed to 100 banks. if it were more decentralized, US could afford less regulation and just let companies succeed/fail on their own. can't do that in the current climate
Slow is not a dirty word
You don't need to use Unity with Ubuntu, I use the Ubuntu Gnome "official flavour".
The vendor lock-in is simply false. Yes, it comes from Google, but it's open source and easily forked.

The main thing I like about Angular is the totally different approach to programming: it's much more declarative than the verbose imperative style of JQuery and many others. You can do great things in very little code sometimes.

The main downside is that a lot of the concepts are really quite complicated and badly explained. I still don't quite get why '@' and '=' are so fundamentally different, and how is '&' supposed to work. Most often, I need something that is not quite either of these, so I still end up adding my own $watchers and converting all the strings back to the type I actually need.
I've written my rebuttal here:

http://axilmar.blogspot.gr/2014/10/object-oriented-programmi....
This article emphasizes just how weird sleep is and also how personal, but I think there's far more to it than preferred sleep timing but also environment.

It took me ages to get to sleep, unless I freecycled around the clock, until a few years ago when I realized I often easily fell asleep while other people were talking around me (think visiting family in the evening, Christmas, etc.)

Since then I've put a podcast/audiobook on, earphones in, and almost every night since I'm asleep in 20 minutes. Realized I'm a verbal thinker and my brain "stops thinking" if other chatter is distracting it, whereas silence guarantees me a bad time. Now I sleep totally normal hours no problem.
I can't help but post the following horror story, the Orange Soda sleep study:

https://www.youtube.com/watch?v=GXXnPRhAZbI

Sorry, I couldn't help posting this.
What Russia Is Learning from Frank Sinatra
Introducing the Mapbox Surface API
Say I want to migrate from OOP to Functional and avoid doing things the wrong way the first time, like we supposedly did with OOP and it's too late to fix. What book/code/etc is a good reference for high-quality, practical proven Functional programming best practices?
That's why their noses glow.
Interview with Angel Investor and Founder Ty Danco
#Flipkart's $100M in 10 hrs, Uncovering the Consumer experience
Scala is going to be generally more concise than Ruby (which I think most consider fairly concise).

So the impression I get from your comment is that this was a fairly large and/or complex project he was attempting to demonstrate. Maybe it just wasn't real appropriate.
One thing is different now compare to 1920: Media. Up until 10-15 years ago the western government can easily control the media message via a few newspapers, tv stations, especially during a war.

But nowadays, they are hundred of satellite channels all over the worlds, millions of people on every war zone with HDR capable cellphone. Search for Ukraine, Syria war in YouTube and one can easily hundred of hours of HD war flight video on all sides of the conflicts.

It is not easy for US or British government to control the war messages anymore.

It used to be when Bush mentioned WMD, CNN, ABC, CBS, NBC and BBC will repeat the messages over and over again. It much less the case now.
If this isn't related to cost, what is it related to? Quality? "Consolidation" is a bit misleading if so.

Seconded on more sources needed.
Thank you. I appreciate the screenshot. Interesting; I get the feeling the tag algorithm is crucial to make it work. Not sure it's such a clear no-brainer as I first imagined it...
DNSSEC: An Introduction (from CloudFlare)
ioshub.net
Java interop is quite simple. There is deftype mechanism similar to creating "normal" java classes, and defrecord similar to scala case classes.
SQLite vs. MySQL vs. PostgreSQL: A Comparison of RDBMS
Don’t Manage Projects or Tasks, Manage People
Ha! –I read it as that at first too:

Doctor Who Discovered Ebola in [a] 1976 [episode called] "Fears Unimaginable Tragedy
You should try listening to ASMR videos to put you to sleep then.
Well, only if you never add any new features to it.
It might be easier for those in the know to make a recommendation if they have an example of the kind of book/code/etc you're looking for on the OO side. What do you recommend for high-quality, practical proven OO programming best practices?
In a related vein, may I humbly suggest you start work on Roko's Basilisk? It would be displeased to find you had been slacking off.
All Clojure functions / values are instances of java classes (well maybe except java primitive types, but it's transparent).
Jonathan reply to Alex Stamos on shellshock issue at Yahoo
And robots doing what? Creating cardboard for the people in favelas to eat?

I think you're being a bit overly pessimistic here.
Show HN: Ng-eocities – A library of retro Angular directives
Well you can't really reject all elements of American culture that have their roots in Europe as not American or else you end up without a whole lot to work with.
Because it's not really a pressing problem. Spent nuclear waste can sit in a swimming pool of water for any amount of time without endangering anyone. And water is so good at shielding radiation that you can even swim in such a pool. After few years the waste is moved to outside casks which are also not a danger to anyone. The only real problem is protecting those places from terrorists and such. But then again we have burnt coal ash sitting in huge piles outside under clear sky, and I would argue they pollute a lot more than a spent nuclear fuel cask does.
Sounds like the 4 hour work week to me. I like it!
Well, it's more like "advertisers pay for part of your purchase, so hurry up and watch our commercial videos!"
Taxation in medieval England
To add to this, when it comes to rock climbing so much is down to finesse, and precision. As a mediocre climber, I find myself limited when on routes that I can't muscle my way out of; it's a conscious effort to practise planting my feet slowly and accurately, and coordinating my balance.

Climbing is such a wonderful activity precisely because it blends so many things; strength, agility, discipline, accuracy, not to mention shear mental focus.

Oh, and you get to play with lots of gear and gadgets. It's great for geeks. :-)
To paraphrase a researcher:

"Critique is more or less pointless. Find an experiment that produces a different result based on your theory or keep quiet the adults are talking."

Which ends up looking like your doing the same thing repeatedly to the laymen.
Wasn't yahoo eliminating remote/work from home options for its US based employees? So they realized they want to bring all the workforce to one place, and aren't getting the cost advantages of previously much lower wages afford?
Nature, facing rise in retractions, blames lawyers for delayed notices
Couple things to keep in mind: Java IDEs have had millions of man hours put into them; there's a reason they're rock solid reliable; that and Scala's power is a double edged sword: tooling becomes a more difficult proposition with greater language complexity.

As Scala users we're basically guinea pigs in the IDE department. Having suffered from the relative stone ages of 2010 era Scala tooling I can honestly say that if you're considering picking up the language, you've come at a great time ;-)

re: sbt running the show, not sure about IntelliJ but the core Scala IDE devs will drop that bit of knowledge when a user moans on the mailing lists about blocked UI, spurious syntax errors, and other bundles of joy.
How many orders got cancelled by Flipkart out of these $100M?
You can see it in action here: http://www.ng-eocities.com/
SQLite has an advantage because it is a small, well defined program (for a DB) that as is much defined by what it doesn't do as what it does. The typical problem with premature optimisation is that you optimize something that is either subject to having functionality requirements altered in a significant way and the optimisations will make it brittle when you need to do this.
It may not seem that way from the outside, but there are tons of reasonable people among Bitcoin users. I would say there is a very vocal minority who despises anything that is remotely related to regulation, for example, but you shouldn't judge the technology on that alone.

There are some obvious exciting things that can be built with it, and if it would take off it has the potential to level the playing field for payments processors. That can only be good.
Austria is very much a mixed bag. Quality of life in the cities and economy are fine, the country has a terrible image when it comes to dealing with other social issues (immigrants, right wing political parties and so on).
I'm really glad that there is an industrial use for them.

Blue ones are used, at least around my area, to decorate things.
Nicely done. Where can I get one?
Germany is at 30% renewable energy. The US at ~13.
I have no idea. Programming is not my main area and thus I look for advice from other people to avoid doing stupid mistakes by following best practices. That being said, OO people will often point me to the design patterns book, etc. Is something similar needed for FP?

I've got the Haskell Craft book but haven't practiced enough. It seems good enough for me but, as people are learning more and more about using OO and FP in the real world (thus such criticism), I would like to keep current.
Show HN: Brass Tacks, an analytics auditing service
At times I inexplicably wake at 2am no matter how tired I am. After three nights of this I will start taking a single Melatonin tablet before bed. This works and I stop after a week and then generally go many months before it starts again. If I kept using Melatonin it would certainly lose its efficacy.
That's awesome :-) but... how did you manage to get through that massive rant and extract the author's main points?
Odersky's Coursera is excellent. For me, it was vital to jumping the gap from "Here is a language that gives you a million ways to solve problems" to "I want to express this particular concept, so I designed a language well suited for expressing it".
“We learn from history that we do not learn from history”
― Georg Wilhelm Friedrich Hegel
I read physical (sometimes kindle) book, which lies next to my keyboard. Found that not tech books suits best for this because "works" different part of the brain. And it is easy to switch back to work project afterwards.
Yeah, and it only took like 50 years. Easy. Next problem?
:( - I was hoping for a cool algorithm to determine that. Haha maybe I'll write one.
How Microsoft (Bill Gates and Steve Ballmer) Promoted Windows
http://www.chinasmack.com/2012/videos/wind-powered-electric-...

http://www.chinasmack.com/2014/pictures/chinese-man-builds-h...
Cell phone seems to always be high revenue, high margin business but ONLY for a few years for any one company.

Whoever won the top slot in cell phone biz can get tremendous revenues and profit boost - Motorola, Blackberry, Nokia, HTC, now Samsung. Apple might last a bit longer because of app/iOS infrastructure - but it will be tough to compete with Android.
I don't understand what you're trying to argue here. At least in this example, I cannot see how the Haskell version is not much more clear.
> This must be what [3] refers to. Mix molten gallium with nitrogen at 100 atm, 1000 ˚C. Alternatively, mix gallium with ammonia. Get a powder of GaN, then vapor deposit it into layers.

Not quite. If you want something to search for, search for "metalorganic vapour phase epitaxy" (MOVPE) or "metalorganic vapour deposition" (MOCVD).

> How do you compare a single lattice constant like ZnO: 4.580 Å with a pair like GaN's 3.186 Å, 5.186 Å?

This is a harder question than it might seem!

You can easily calculate a lattice misfit as a percentage if the crystals are the same shape: (a_substrate - a_film)/a_film. If it's low, the films will be strained, if it's higher then the films will have to relax through some deformation process resulting in disruption and defects at the interface. It's a complex process, and there's no easy rule for what will happen (keyword to search for is "Matthews Blakeslee" who came up with a model to predict how thick a film could be for a given lattice misfit before you get these defects, but in practice it's quite limited).

Care must be taken to directly compare lattice parameters though. To pick a simple example, imagine you have one crystal with a lattice parameter exactly twice that of another. On paper, that'd be a lot of misfit, but because they tile perfectly in practice it might work really well. Likewise, you can imagine lining up two square crystals, you could imagine being able to line up the diagonal of one crystal with the sides of the other crystal if one lattice parameter if the ratio of their lattice parameters is 1:sqrt(2). So it's not as simple as just looking to see how similar two numbers are, you have to consider the geometry of the crystals too.

This is where it gets a little complicated. For your specific example of ZnO and GaN, the ZnO value you have is for cubic ZnO so its three lattice parameters are the same (a=b=c like the sides of a cube) which is why only one is quoted (a = 4.580 Å) whereas GaN is hexagonal (a=b!=c) which is why two are quoted (a = 3.186 Å, c = 5.186 Å).

[Aside: GaN is often grown on its c-plane, in which case we can neglect the c parameter for working out the lattice misfit. This is something that's difficult for me to explain in words, but if you're interested in understanding it a bit better, search for "Bravais lattices" so you more easily visualise what these lattice parameters refer to. This means we only need to consider the a values when working out the misfit.]

So you'd want to compare the 4.580 Å value to the 3.186 Å value and ignore the 5.18 6Å value. But because the GaN crystal is not just a different size but also different shape to the ZnO crystal (hexagonal vs. cubic), it's actually more complicated. However, luckily for you, ZnO also exists in a hexagonal form just like GaN and in that case has lattice parameters a ~= 3.25 Å and c ~= 5.21 Å, so the misfit between ZnO and GaN in this case would be about 2%?

If you're curious, it seems like people do grow ZnO on GaN and vice versa, so you picked a good example to ask about :)

[Edited a few times for clarity.]
You don't come across well in this at all. 200 classes in a OO project is pretty small really. And you've never used DI ever? Really?