HNHacker News
TopNewBestAskShowJobs

ynd

197 karma · joined March 29, 2008

submissionscomments
ynd··on Ask HN: Musicians?
I play the guitar. But I wouldn't call myself a musician just yet.

Love music though.

ynd··on Encouraged Commentary (cool use of jQuery to enhance blog commenting)
Inline comments organize comments around the subjects of a post.

That's neat for code. Not so for discussions I think.

Inline comments make it hard to read all the comments at once. And I often care more about that than being able to select which comment I'll read according to it's subject.

ynd··on Coding Horror: Finishing The Game
# Here's a less crude rewrite

# It reflects conditional probability better

  def boy_girl_problem():
    from random import choice

    families = {}
    for i in range(1000):
      families[i] = []
      families[i].append(choice(['BOY', 'GIRL']))
      families[i].append(choice(['BOY', 'GIRL']))
  
    had_both_sex = filter(lambda f: set(f) == set(['BOY', 'GIRL']), families.values())
    had_one_girl = filter(lambda f: 'GIRL' in f, families.values())

    return len(had_both_sex) / float(len(had_one_girl))
ynd··on Ask HN: Best HN threads in '08?
Evolution of Mona Lisa in JavaScript & Canvas http://news.ycombinator.com/item?id=392036
ynd··on Coding Horror: Finishing The Game
# The hard part: THIS IS AN 'A POSTERIORI' PROBLEM.

# The fact as ALREADY happened.

# BG/GB being DIFFERENT is NOT THE TWIST.

# Whether they are or not it will amount to 50% total.

# TWIST: BB is not possible.

  def boy_girl_problem():
    from random import choice

    families = {}
    for i in range(1000):
      families[i] = []
      families[i].append(choice(['BOY', 'GIRL']))
      families[i].append(choice(['BOY', 'GIRL']))
  
    had_both_sex = filter(lambda f: set(f) == set(['BOY', 'GIRL']), families.values())
    had_two_boys = filter(lambda f: 'GIRL' not in f, families.values())

    return len(had_both_sex) / float(len(families) - len(had_two_boys))
# average(boy_girl_problem) == 2/3
ynd··on Is it crazy to quit a 6+ figure salaried job to do a startup right now?
If your current job makes you happy, then I think it's crazy, given the 6 figure salary.
ynd··on How To Be Creative
why?
ynd··on Evolution of Mona Lisa in JavaScript & Canvas
for example by using HSV comparision for fitness

I tried with HSB. It didn't produce good results. The image was always too dark.

In HSB, colors that are far apart in our perception can have close distance. For example two colors with the same Brightness, Saturation but a different Hue.

Using HSB in the DNA was perfect. It's hard to mutate a RGB color in the right direction. You have to get 3 composants right. In HSB a single modification can change everything.

BTW, I coded a Java version after seeing the original. It works, but first, it doesn't converge very fast, second, it's stuck at: http://i33.tinypic.com/2yycdc8.jpg

On the bright side, I can easily switch the population size to 50. Java is very good at this. I piggy back on automatic hardware acceleration for rendering.

How did you get yours to converge sooo fast?!

ynd··on Poll: Hacker News (Myers-Briggs) Personality Types
Accurate!

I classified myself as INTP after reading the descriptions.

My-Type classified me as INTP after I took the test.

ynd··on 19 year old from Florida commits suicide on Justin.tv
Why are you defending this thread so bad?
ynd··on Ask HN: Django hosting
I recommend a VPS with slicehost.com at 20$ month, with Nginx to serve static files and fastcgi for Django. Nginx+FastCGI is the answer to the memory constraints(256mb).

There are multiple plan you can update to. And since it's a VPS, updating is painless.

ynd··on Ask YC: What do you think of my new search engine?
Congratulations.

The hits are dead on for obscure subjects.

ynd··on A hacker's loneliness
I feel the same. But I started to change my ways so I don't become too isolated.
ynd··on Ninja out.
What?
ynd··on Ask PG: How many lines of Arc for a search on Hacker News?
Meanwhile use http://searchyc.com/
ynd··on Startup Marketing Advice.
oops. If only there was a delete/edit button.
ynd··on Ask YC: Review my startup, take two (ad exchange)
I am looking for banner exchange sites for my startup.

Your site was interesting at first but there are two drawbacks.

You don't give free credits on registration. We want to use banner exchange to jumpstart our site. We don't have users. We want users. Without starting credits I have a cold start problem.

1 for 1 banner exchange doesn't solve my problem. I want to drive traffic to by newborn site. Another formula would be better.

ynd··on Graham and Feynman Meet in the Middle
"First it is necessary to thoroughly understand the properties and limitations of the materials to be used (for turbine blades, for example), and tests are begun in experimental rigs to determine those."

I love this approach to engineering. Feynman always manages to remind me what I like about science and engineering.

ynd··on Alan Kay: The Early History of Smalltalk
gets me every time...
ynd··on Here's why dynamic languages are slow and how to fix it
nice. I had never questioned the value of catching the errors early.

thanks

ynd··on Should UIs be document- or stream- centric?
I think the problem with his theory is that he is thinking of the desktop as a single entity. He thinks the _desktop_ should evolve to support streams better. That's a mistake.

The desktop is just a bunch of applications co-existing. Some programs have a document-centric interface because they deal with documents. Others have evolved an interface suited to the streams they deal with. MSN, IRC, RSS aggregators come to mind. I don't think there's more to it.

I agree that people are using streams more than before but I'm not sure of the implications of this fact.

ynd··on Guido on the fate of Lambda, map() and filter(), and reduce() in Python 3000
I'm quoting Larry Wall because he said something interesting.

The comprehensions from twisted were not written for clarity so they aren't good examples. The programmer wanted a one-liner to define these constants.

ynd··on Guido on the fate of Lambda, map() and filter(), and reduce() in Python 3000
It's a question of habit. If you're experienced with Python List comprehensions, they become clearer than anything else.

"The main problem I see with Ruby is that the Principle of Least Surprise can lead you astray, as it did with implicit lexical scoping. The question is, whose surprise are you pessimizing? Experts are surprised by different things than beginners. People who are trying to grow small programs into large programs are surprised by different things than people who design their programs large to begin with.

For instance, I think it's a violation of the Beginner's Principle of Least Surprise to make everything an object. To a beginner, a number is just a number. A string is a string. They may well be objects as far as the computer is concerned, and it's even fine for experts to treat them as objects. But premature OO is a speed bump in the novice's onramp. " Larry Wall, http://interviews.slashdot.org/article.pl?sid=02/09/06/13432...

ynd··on Ask YC: Could you point to examples of great and terrible code
In terms of simplicity and architecture I think Ikarus Scheme and Rubinius are good reads. Both are compilers/VMs that have been expressed in their most beautiful form.
ynd··on New functional language - C#
Congratulations to the .Net team. C# - which started as a Java look-alike - has come a long way.
ynd··on Mac People: Safari or Firefox 3?
FF3. Apple developers succeeded in make Safari FEEL more solid but it crashes too often. I also wish Safari was as configurable as FF.
ynd··on CPUShare: allows anyone to sell their spare CPU cycles
Is anyone here interested in buying CPU cycles?

I wonder if there's a market of buyers. The idea is cool though.

ynd··on How tough is your project? 5 leads.
This is one of the first questions to ask.

I feel like this article gives a good method to find out.

ynd··on Ask YC: Who are YOUR heroes?
K and R for unix/c

Darwin

← PreviousPage 2 of 2