HNHacker News
TopNewBestAskShowJobs

bonobo3000

292 karma · joined November 5, 2014

submissionscomments
bonobo3000··on Waiting for an Employment-Based Green Card
Yeah, 15 years ago it was easy to get a green card. The situation is nothing like that today. India & China have it especially bad because of a lot of applicants and hence long, long waitlists.
bonobo3000··on RxJS is great. So why have I moved on?
if you don't mind me asking, how do you really learn about the different models of concurrency/parallelism well enough to be able to compare them based not only on API/programming model but also performance and low-level differences?

as an example,i want to build a web crawler. ive worked with akka actors, and that seems like a good fit because the messaging logic for scraping is simple and it gives me remote distribution for free.. but then i see all these other models and wonder - what is the difference in doing it with Rx or futures etc? is there any difference besides choice of programming model in terms of how these things actually map to low level primitives?

bonobo3000··on Python Is Not C: Take Two
As long as you're taking suggestions - i would like to see bigger fonts, syntax highlighted code and maybe more color contrast between sidebar/top/comments and the main content.
bonobo3000··on Why does programming suck?
In the ideal world, i would program purely at the level of a sugared lambda calculus, free of trivial things like runtime,memory use,network latencies,serialization,platform incompatibilities,dependency management,string encoding/decoding issues <so many others>. Basically everything that makes programming different from math.

However, programming may be lambda calculus at a theoretical level, but execution is a turing machine. All these little real world things that can be abstracted away in abstractions(!!), have to be unabstracted to meet a bunch of very real NAND gates somewhere, limited memory, resources etc.

Thats one reason it "sucks", but thats why its engineering and not math. Maybe one day computers will just be so powerful that we can afford to treat memory as infinite, runtime as infinitesimal, and build all the abstractions we want for free - then programming will be done :)

In this fun world, when i want to build something ill just draw a bunch of squiggly boxes and describe an alarmingly underspecified thingy i want done. Then the program will automatically figure out all possible inputs, quickly perform a "32 questions" kind of thing and resolve any ambiguity, then produce code. Managers will once again be confused why "adding this textbox is so hard", but this time they will be right - i will just tell lambda to go make a textbox.

bonobo3000··on A Guide to Fully Homomorphic Encryption
Also, homomorphic encryption isn't about making it more efficient, its about being able to compute any function over the encrypted dataset, and get the same result as if it was over the unencrypted version - this is pretty cool if it works because you could say send over an encrypted version of a program to let someone else test it without giving any details of how it works.

from the paper:

  The purpose of homomorphic encryption is to allow computation on encrypted
  data. Thus data can remain confidential while it is processed, enabling useful
  tasks to be accomplished with data residing in untrusted environments. In a
  world of distributed computation and heterogeneous  networking this is a hugely
  valuable capability.
bonobo3000··on I am Peter Roberts, an immigration lawyer who does work for YC and startups. AMA
>For example, in order to be legally employed on an H1B in the "San Jose-Sunnyvale-Santa Clara, CA" MSA (Metropolitan Statistical Area), you must be getting paid at least $98,342 per year or $47.28 per hour.

Wow, i had no idea the prevailing wage was that high. Does this mean literally everyone on an H1B in the bay area is making at least $100k/year?! I should have negotiated harder...

bonobo3000··on On the unreasonable reality of “junior” developer interviews
I don't see a problem here. When asked to implement the interface, you don't have to know and implement every single method off the top of your head.. Sounds more like an opportunity to discuss what operations are important for the use case and implement a few.
bonobo3000··on Git Cheat Sheet
heres one i like:

"git stash branch <branchname>"

like "git stash" it stashes away all the untracked modifications you have, but it puts them onto another branch. i often end up making partial progress on things that should be conceptually in different branches at once - this way, you can stash unrelated changes into different branches, and then merge each branch as you finish.

bonobo3000··on A scientist studying the accuracy of stereotypes
Hahaha yes, absolutely :)

This is another thing that makes stereotypes tricky - it takes a little bit of statistical insight to see how they can be both right in some sense but completely wrong in the other, but statistics is very unintuitive, and math doesn't grab headlines. So that kind of argument is difficult to use with non-nerds, but ultimately i think its the only accurate one.

That brings up another good point in that its really a perfect opportunity for media outlets that like to turn controversy into clicks. Its very controversial and very broadly applicable.

bonobo3000··on A scientist studying the accuracy of stereotypes
Agreed. In super-liberal circles, i see people sounding alarms at the mere mention of race, even in a completely non-offensive way.

You can't tackle a problem you aren't even willing to talk straight about. The current system is something like attempting to make an ostrich walk while its head is forced in the sand.

bonobo3000··on A scientist studying the accuracy of stereotypes
The bias started out with a good intention - "all people should have the same rights and opportunities".

But the official, carefully constructed non-offensive party line reasoning behind it in the US seems to be something like "all people of all types ever are the same", which is just not true. Any one deviating from the party line is automatically labelled bigot, and anyone defending these people is lumped into the same bucket.

Its NOT wrong to make generalizations about people. Our brains are pattern finding machines - we generalize all the time. It IS wrong to use them as justification to treat certain people differently - because a statistic computed on a population of millions doesn't really tell you anything about a specific person. So it makes sense to discard the generalization prior - i.e be unbiased and not view someone through stereotypes.

Its a hard problem - tolerating honesty but not bigotry, someones right to be offended vs. the offenders right to speak their mind etc etc. But right now US culture is very biased towards not being offensive, at the cost of truth - at the least, this kind of attitude does not belong in research. Research needs to be about truth.

bonobo3000··on Are women really better than men at furniture assembly (as IKEA claim)?
Glad to see this! Women often tell me i "finish screwing way too fast". I now understand they are simply jealous of my potential as a furniture assembly man.
bonobo3000··on Vine mistakenly ships iOS app with debug mode enabled
Fair point, but that would take away half the fun of debugging for me :(
bonobo3000··on EC2 Dedicated Hosts
Would you mind explaining a little about how bare metal is different from this? Isn't a dedicated host a real physical machine?
bonobo3000··on I Want to Run Stateful Containers, Too
What exactly does containerizing everything give you anyways? I really don't get it.

Before - use chef/puppet to manage dependencies, distribute config files. run processes. maybe use something like upstart to restart on failure.

After - use Dockerfiles to manage dependencies (same thing, bunch of install commands). now you have a container for the web app, one for another service, etc. so everything is isolated.. great. what do you gain over running 2 separate processes? thats pretty damn isolated too.. except for the same disk, they each have own virtual memory, state, config files etc..

I'm not a (modern) ops expert at all, but i know my way around the command line. What do you gain from Docker or say launching a mongo instance on the cloud instead of just renting a server and launching the process? I really want to know. Atleast on a small scale, say if you're managing say 10-20 servers, i don't see the point.

bonobo3000··on Covariance and Contravariance
I think the example is right. Cat is a subtype of Animal, and Animal is a subtype of Thing

Cat < Animal < Thing

So if the function takes any animal, of course it can take a cat (so its covariant in argument). And because all animals are things, we can say the output type of f is Thing.. its just less accurate than Animal but still correct - that is the contravariance in the result.

Cat extends Animal means "Cat can do everything Animal can, plus maybe more stuff". So all cats are animals, but not all animals are cats. So Cat is a subtype of Animal.

For the second question,

"an instance of subclass can replace an instance of superclass" is the right one.

Really it makes a lot of sense intuitively. e.g say Int is a subclass of Number (a simpler way to read is just "Int is a Number") . then anything you can do with numbers, you can do with ints too so we can put an int in place of a number.

bonobo3000··on The Immigration Iliad
You could ask the same question of any student, immigrant or not.
bonobo3000··on Google and ASUS Launch the $85 Chromebit, a Chrome OS Desktop on an HDMI Stick
I think streaming works on chromecast if you use the apps. Trying to broadcast netflix/videos through the browser still doesn't work though, the audio/video go out of sync. So you can only watch videos through apps.

It would be really cool if this was powerful enough to work for any video.

bonobo3000··on Five years of Scala and counting: debunking some myths
The rant is mostly about the Scala collections API. I think the "expert" opinion is that yes, Scala collections are broken and incredibly complex, and theres a proposal for new implementations here:

https://github.com/lampepfl/dotty/issues/818

I think the talk was pretty influential, but atleast the community is responding. I don't think it spells doom for Scala.

bonobo3000··on The Infinite Jukebox
So awesome! I had no idea there was an API to analyze songs, this is really cool. Is the source for this available anywhere?
bonobo3000··on Sideloading f.lux on iOS with Xcode 7
Thats what I was using until today! So glad to see flux is possible on iOS.
bonobo3000··on Old Techies Never Die; They Just Can’t Get Hired as an Industry Moves On (2012)
>My latest example of this was learning Scala 5 years ago. Bet on something new, and then you get calls from all over the country to work on it, as most people are trying it, but few know what they are actually doing.

As a young dev, I really want to learn how to do this. I'm a newcomer to the Scala party, but I can definitely see it becoming a huge player and there are so many reasons - Odersky has basically a team of PhDs at EPFL constantly making awesome stuff for the language and they have made some incredible stuff - TASTY + scala-meta is one of the latest, Scala.JS is another, and really the list goes on and on.

But I'm only beginning to clue in on this now. Would've been great if I had jumped in earlier. If you don't mind me asking, how do you learn to pick the right horse? What were the signals for Scala? my guess now is the fact that Odersky was a major contributor to Java and built both a strong technical team and corporate backing, but thats hindsight ofcourse :)

bonobo3000··on A woman rants about man bashy stuff written by “women in tech”
Great post. I would just like to say that as an immigrant to the US, i see this tendency to turn every debate into "with us or against us" is much more prominent in the media here. I believe that most people across the world are reasonable enough to see the vast "grey areas" you mentioned between any two poles, but when we just read about an issue in passing, we tend to accept what we read so a media pushing dumb controversial articles can create this tendency.

The renewed push for accepting women in the workplace is simply one instance where a (reasonable) position has been chosen (women should have all the same opportunities as men in the workplace), but anyone who speaks against this position (even if just to improve it, or learn more) is labeled a old-fashioned,bigoted, and much worse.

The answer is to take a position without instantly shaming anyone who disagrees. So we can have an open discussion. The way controversial issues are treated here reminds me of medieval times - if you don't believe, you will be "excommunicated" from society. Debates aren't football games where you watch and cheer for your team to win. Right now, everyone is cheering for the womens side. Dont get me wrong, I am too, but that doesn't mean the other side is wrong/evil.

bonobo3000··on We can't see our culture very well, because we see with it
touche :p
bonobo3000··on We can't see our culture very well, because we see with it
With sufficient advances in NLP & ML, i dream that one day you will be replaced by a bot able to generate snarky comments about slow/mobile-unfriendly/ad-riddled webpages automatically.
bonobo3000··on Assembly Language: Still Relevant Today
Thats a good point, thanks.
bonobo3000··on Assembly Language: Still Relevant Today
Finance is the "parasitic" industry that powers every big VC and every tech IPO - the reason that founders can pay programmers as much as they do these days.
bonobo3000··on The web is becoming unusable
Adblock/uBlock works great. If you want to experience the web as it is, then yeah I agree, it sucks. No one has really figured out how to monetize content without ads yet because people won't pay for it, so thats where we are.
bonobo3000··on A lot happens
"'Tis better to have loved and lost than never to have loved at all." :) Its really a matter of faith whether you believe that or not, so i wont offer any argument other than to say i mostly believe it, and most peoples actions would show they believe it too.

I guess it ultimately comes down to a persons belief systems and emotions at that point, far beyond the reach of mere logical arguments. We are animals first, thinking human beings second (this is the topic of one my favorite songs, Apeman- https://www.youtube.com/watch?v=aRHqs8SffDo)

bonobo3000··on A lot happens
This is a highly personal decision, so this is just my 2c. Yes. Its the only thing worth anything.

Nothing in this world is stable. Your boss will fire you if you cant perform. Your friends may move away or change. Some will try to use you, but even the best ones will never care about you the way your partner will. Its an anchor in the storm of life.

There are probably many many authors who can wax poetic about this stuff better than me though, so I'll stop now.

← PreviousPage 2 of 4Next →