HNHacker News
TopNewBestAskShowJobs

kailuowang

867 karma · joined June 18, 2012

submissionscomments
kailuowang··on Scala’s Types of Types
I think you are thinking a group of things as a group of types. Those two concepts are separate. A group of things has its own type which is not necessarily related to the type of the things in that group.

If you want an Everything type that is different from the Any type, the only type I can think of would be a type whose instances behave the same as every type. That doesn't make a lot sense to me.

kailuowang··on Scala Center
May I ask which language are you mainly using other than scala?
kailuowang··on Scala Center
Yes, scala is big and complex, but IMO, it remains by and large coherent. That might be the ultimate reason why scala developers from all kinds of different backgrounds didn't abandon it even after facing many of its shortcomings and bugs.

I think scala will remain a very favorable language for any team that needs all of the following three.

1, ability to do functional programming with a strong(ish) type system

2, ability to do actor based parallel/distributed programming

3, Java compatibility

kailuowang··on Yann LeCun's comment on AlphaGo and true AI
Can someone elaborate the difference between reinforcement learning and unsupervised learning? It seems that I mistakenly think that human learns through reinforcement learning, that we learn by the feedback from the outside world. I mean without feedback from aldult can a baby even learn how to walk?
kailuowang··on Re: Obama on Fetishizing Our Phones
Would like to see more detailed logic in the original post. For e.g. why specifically the parallel between physical world and digital is flawed.
kailuowang··on Scala School
My advice is that don't expect that you can "learn" Scala in a couple of weeks or months. Instead expect that you can learn enough Scala to get the next task done. If you like it, you might be pretty happy spending a couple years learning it.
kailuowang··on Scala School
> nobody is actually shipping software

What about Spark, Kafka and Akka? I actually think the Scala community is working very hard to improve user experience, it's just that they don't do in the expense of soundness.

As a ruby -> Scala developer, I don't miss DHH.

kailuowang··on AlphaGo beats Lee Sedol again in match 2 of 5
Yes the function themselves are pure mathematical functions, but the way to derive them relies on human intuition (not mathematical formula). It's like saying: I know how to do a 1 times 3, I just do 1 + 1 + 1, but I can't tell you why, then I can't say that 1 times 3 is just mathematics.
kailuowang··on AlphaGo beats Lee Sedol again in match 2 of 5
> turns Go into a simple game of mathematics

This can be claimed to be true when we understand how deep neural networks mathematically.

kailuowang··on AlphaGo and AI Progress
My understanding is that once the neural network is trained you don't need as much computation power to put it in use.
kailuowang··on Bernie Tax Calculator
> only come from 'greedy wallstreet executives'

Not an executive of any kind and can barely afford to raise one kid in a tiny apartment in NYC. According to this calculator, under Bernie's tax plan I will have pay more tax equivalent to one month of disposable income.

So yeah, it's almost certain that whatever Bernie promised, will be, as it always be, paid by the upper middle class.

kailuowang··on Visual Turing Test
I got the 8/10. Style is extremely important in understanding an artist and his work. Without a grasp on the original style, it's hard to see if a painting is genuinely of that style. So a more substantial visual Turing test would be a series of original works by an artist v.s. a series of simulated works targeting that style by AI.
kailuowang··on Make your service more resilient with Kanaloa – an Akka based lib
Author here, will answer any questions.

Kanaloa is a set of work dispatchers implemented using Akka actors. These dispatchers sit in front of your service and dispatch received work to them. They make your service more resilient through the following means:

Auto scaling - it dynamically figures out the optimal number of concurrent requests your service can handle, and make sure that at any given time your service handles no more than that number of concurrent requests. This algorithm was also ported and contributed to Akka as Optimal Size Exploring Resizer (although with some caveats).

Back pressure control - this control is Little’s law inspired. It rejects requests when estimated wait time of which exceeds a certain threshold.

Circuit breaker - when error rate from your service goes above a certain threshold, kanaloa dispatcher stops all requests for a short period of time to give your service a chance to “cool down”.

Real-time monitoring - a built-in statsD reporter allows you to monitor a set of critical metrics (throughput, failure rate, queue length, expected wait time, service process time, number of concurrent requests, etc) in real time. It also provides real-time insights into how kanaloa dispatchers are working.

kailuowang··on Car turns driver in for hit-and-run
It will be really interesting to see who would be the first organization running automated Taxi. I think as long as Google isn't dumb enough to let go its pioneer engineering team members they are still the front runner. The only thing is that they don't have the a manufacturing capability. Now that they poached Tesla's lead engineer in the area, a Tesla - Google join force is actually more likely, Tesla has more need for Google now.
kailuowang··on Car turns driver in for hit-and-run
If the car is self driving there is less need to own a car. Selfdriving taxi will be significantly cheaper than current taxi. A privately operating self driving taxi system might be even more economic than building an extensive public transportation system that covers the typical spread-out American cities. It is probably cheaper than owning a car.
kailuowang··on The most beautiful theory
for anyone who is interested in Einstein's ideas/theory and philosophy within the context of social and science history, there is an wonderful mooc offered by Peter Galison from Harvard.

https://www.edx.org/course/einstein-revolution-harvardx-emc2...

Highly recommended.

kailuowang··on Five years of Scala and counting: debunking some myths
The traditional concept of generics you see in C# wouldn't be a selling point for Scala. There are more powerful "generic" programming tool in the scala world. See this article for an example. https://meta.plasm.us/posts/2015/11/08/type-classes-and-gene...
kailuowang··on Hoffa: TPP a punch to the gut of U.S. workers
The software industry in U.S. did have a similar experience 5-15 years ago when "outsourcing" is the fashion.

What came out of that, it appears to me, is a booming software industry with more local competent and confident software engineers.

I am for reaching a economic global optimum.

kailuowang··on What Developmental Milestones Are You Missing?
I dont see these as hard milestones that requires the amount of effort suggested by the article. To me, it all comes down to strict logical thinking.

Take the last milestone of understanding tradeoffs as an example, if you are good at identifying logic jumps in an argument (or the validity), you will be good at understanding tradeoffs. Because you can't be logical to think "something has a downside and thus I shouldn't pick it."

kailuowang··on China to begin two-child policy
Source: (in chinese, please use Google Translation) http://www.21ccom.net/articles/zgyj/fzyj/article_20120629627...
kailuowang··on China to begin two-child policy
The brutality and cruel enforcement is not a widespread problem at least in the eyes of general Chinese population. The only lawful enforcement for the one-child policy is a financial fine (which more and more people can afford now). Any other forceful abortion is against the law. And that is the more common situation in China.

The problem of illegal and brutal "enforcement" only exists in some rural areas and nowadays with the popularity of Internet, it a lot more rare than before.

And thus it's not part of the incentive to end the one-child policy.

kailuowang··on China to begin two-child policy
Just to make it clear, these types of enforcement are not norms. The law never suggested such enforcement. The law is that you get a financial fine if you have more than one child, that's it. It's actually against the law to force any kind of abortion. That being said, in some rural area, some officials maybe so greedy to make achievement for their "career" that they "enforce" this policy by breaking the law.

Some of the examples you listed have only one report. And it's policy that lasted almost 40 years in a country with a billion people.

kailuowang··on List of the Most Popular MOOCs
I found it very interesting that the second most popular Mooc of all time is a philosophy course.

Although personally I like better the philosophy introduction offered by MIT:

https://courses.edx.org/courses/MITx/24.00_1x/3T2014/info

I am also looking forward to this one https://www.edx.org/course/philosophy-minds-machines-mitx-24...

> An introduction to philosophy of mind, exploring consciousness, reality, AI, and more. The most in-depth philosophy course available online.

> What you will learn

The basics of argumentation

Some central arguments for and against the view that a sufficiently powerful computer can think (AI)

The main theories of mental states and their relations to physical states

Some central arguments for and against the view that the world is not as we perceive it to be

What the "hard problem of consciousness" is

kailuowang··on Java 8’s new Optional type doesn't solve anything
Implementing a monad like structure without a monadic for loop syntax sugar tends to confuse people. It's hard to picture writing most operations as map or flatmap.
kailuowang··on Goodbye CoffeeScript, Hello TypeScript
From the cons the author listed for typescript, this article is way too generous with this language. Like CoffeeScript it is just an intermediate solution to the problems JS has. We are still far away from inventing a good language for UI logic development. IMO Elm is pointing in the right direction, Scala.JS is getting some interesting traction and momentum.
kailuowang··on ‘99.99 percent air’: Boeing releases video of revolutionary lightweight metal
Doesn't seem a good protection against your head hitting a sharp edge - due to its elasticity.
kailuowang··on Why Japanese Kids Can Walk to School Alone
> this articles makes it appear as if Japan was the outlier but the truth is that the US is

This is a typical U.S. center mentality. US is an outlier in many aspects in day-to-day life. And when American travels abroad they deem many difference they encountered as exotic things unique to that place. I heard an American tourist comment when an Italian restaurant heated the milk before serving her child - "what an interesting Italian tradition", well, people all over the world avoid giving their children milk of fridge temperature.

kailuowang··on Why Japanese Kids Can Walk to School Alone
I am from China, I go to school alone since 6. Most other kids do that since 7. That was some decades ago. Now I live in U.S. it has become unthinkable to me, mostly because the lack of gun control and the number of gun owners who are so ready to fire their weapons in public.
kailuowang··on DNA extracted from ancient African skeleton shows mixing with Eurasians
Would like to ask that as well.
kailuowang··on Chinese University Tops MIT in Engineering Rankings
There might be less critical thinking but probably more than you think. The core Chinese culture is advocating avoiding conflicts, and the best way to achieve that to chinese is a hierarchical order. The boss determines what to do, the subordinates do it. Your engineers might very well have some questions, but questioning any person other than their subordinates is against their instinctual habbit. If you want to "see" critical thinking in your team, you need serious and even creative effort to encourage it.
← PreviousPage 2 of 10Next →