{"id":547,"date":"2006-11-10T04:00:07","date_gmt":"2006-11-10T09:00:07","guid":{"rendered":"http:\/\/blogs.law.harvard.edu\/hoanga\/2006\/11\/10\/jruby-doesnt-support-fork\/"},"modified":"2006-11-19T23:31:46","modified_gmt":"2006-11-20T04:31:46","slug":"jruby-doesnt-support-fork","status":"publish","type":"post","link":"https:\/\/archive.blogs.harvard.edu\/hoanga\/2006\/11\/10\/jruby-doesnt-support-fork\/","title":{"rendered":"Jruby doesn&#8217;t support fork()"},"content":{"rendered":"<p><a name=\"a675\"><\/a>I noticed Charles Nutter (one of the JRuby developers)   <a href=\"http:\/\/www.ruby-forum.com\/topic\/83540#149108\">mentioning<\/a>  that the fork() method in JRuby will most not likely be supported:<\/p>\n<p><em>  We would strongly prefer to avoid any implementation that requires fork,  since we can&#8217;t really support fork in JRuby.  <\/em><\/p>\n<p>While I can understand the difficulties in the Java VM giving lots of hell  trying to handle something like fork() I feel it&#8217;s a shame since it means  if you use fork and quite a few process related calls in Ruby it will  not be portable in JRuby.  For a sysadmin, handling processes is one of  their jobs so personally, I hope they can come up with some way to  handle it somehow.  But JRuby&#8217;s strengths might not be in a scripting  language for sys admins but providing a way to integrate   <a href=\"http:\/\/www.rubyonrails.org\">rails<\/a> with the monster that is  J2EE.  How cool would it be to develop a rails application all in the  context of a java web application that you can just deploy right into  a Java application server?  I think this could be JRuby&#8217;s little nitch  (besides being an integration tool for java devs)<\/p>\n<p><a href=\"http:\/\/www.ruby-forum.com\/topic\/83540\">More here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I noticed Charles Nutter (one of the JRuby developers) mentioning that the fork() method in JRuby will most not likely be supported: We would strongly prefer to avoid any implementation that requires fork, since we can&#8217;t really support fork in JRuby. While I can understand the difficulties in the Java VM giving lots of hell [&hellip;]<\/p>\n","protected":false},"author":703,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[972,615],"tags":[],"class_list":["post-547","post","type-post","status-publish","format-standard","hentry","category-programming","category-ruby"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/posts\/547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/users\/703"}],"replies":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/comments?post=547"}],"version-history":[{"count":0,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/posts\/547\/revisions"}],"wp:attachment":[{"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/media?parent=547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/categories?post=547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/tags?post=547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}