Hacker Newsnew | past | comments | ask | show | jobs | submit | more yror10's commentslogin

If you write ruby and want TCO put this at the top of your .rb file:

    RubyVM::InstructionSequence.compile_option = {
      :tailcall_optimization => true,
      :trace_instruction => false
    }


Why is it optional? What is the benefit of having it disabled by default if there is a decent implementation?


They disabled it for error reporting/debugging reasons. Because you don't need to create a new stack frame, you eliminate that information in the backtrace.


I've seen at least one paper that shows a way to fix this... hm.


A lot of people prefer having complete, explicit stacks for debugger use over having tail calls.


loops don't leave a stack trace either...


And also apply this patch, if you're using MRI (the C implementation, and the most common Ruby runtime): https://gist.github.com/plexus/11201946


I'll take that into account. I'm glad you like it though :)


I like the concept of the random encounter, but it may need to resolve around something.

Lets say with Artsy, two people get a random piece of art and look at it and discuss it. It would be nice to relate about a common thing somehow. I don't think that I've seen this type of random person thing done with enough existing applications.


I've heard about the 20% things but look a the page and ask yourself. Anyone could have made that in 5 minutes + maybe a week for discussion.


Of course. I was being sarcastic.


O, ok haha


It is on google.com but most of the other country domains (.ie, .co.uk, etc...) havent got it yet. Currently its the same with google instant.


.ie has google instant, but not the new statusbar. I've got it from Ireland on google.com though.


I'm on .ie and I have it:

http://i52.tinypic.com/2cf8kdh.jpg

I only noticed a friend with it on his account last week. The next time I singed into my account it came up, and it's been there ever since.


thats not it


This is already shown by the rareness of a google 404. You hardly ever get it these days. Except if a server crashes for about 1 second, (where my preference would be "you are the lucky winner to click your mouse at the same second as our server crash!"


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: