Parallel Python or Ruby?
1–10 of 21 posts
Re: Parallel Python or Ruby?
#2I'd like to poke around with Python's compiler module and look at the AST--you could enforce that a certain class of functions have no side effects, and then spawn multiple processes to execute them semi magically.
Futures like the ones in IO (http://www.iolanguage.com/scm/git/checkout/Io/docs/IoGuide.h...) always struck me as a pretty cool way to abstract away synchronization problems. Using the multiprocess stuff as a background would be fun.
Re: Parallel Python or Ruby?
#3There's probably a whole bunch of other Enumerable methods that could be made to run in parallel as well.
Re: Parallel Python or Ruby?
#4Re: Parallel Python or Ruby?
#5Haven't you heard about the egregious buffer overflow vulnerabilities found recently in Ruby? Not a good idea to use it for anything serious in light of those, IMO.
Finally, Ruby has more than one implementation. Finding a hole in one implementation says nothing about the language overall.
Re: Parallel Python or Ruby?
#6 async {
do_something;
cede;
do_something;
}
do_something_else;
cede;
See http://search.cpan.org/dist/Coro/Coro.pm for more information.[Edit: If you want to see a continuation-based web framework built with Coro, look at Continuity: http://search.cpan.org/~awwaiid/Continuity-0.994/lib/Continu...
It's very cool.]
Re: Parallel Python or Ruby?
#7Haven't you heard about the egregious buffer overflow vulnerabilities found recently in Ruby? Not a good idea to use it for anything serious in light of those, IMO.
I'm not a Ruby fan, but wouldn't finding those buffer overflows make it more secure ? Now that they've been found, they're fixed. (Sure, it could be indicative of overall careless design, but I don't think that's the case here. A few silly mistakes, now no longer a problem.) Finally, Ruby has more than one implementation. Finding a hole in one implementation says nothing about the language overall.
Re: Parallel Python or Ruby?
#8Keep in mind that Python 2.6 already has the new multiprocessing package, which presents a simple interface for multiprocess computation. I'd like to poke around with Python's compiler module and look at the AST--you could enforce that a certain class of functions have no side effects, and then spawn multiple processes to execute them semi magically. Futures like the ones in IO ( http://www.iolanguage.com/scm/git/che…
Re: Parallel Python or Ruby?
#9Earlier quoted context omitted.
I'm not a Ruby fan, but wouldn't finding those buffer overflows make it more secure ? Now that they've been found, they're fixed. (Sure, it could be indicative of overall careless design, but I don't think that's the case here. A few silly mistakes, now no longer a problem.) Finally, Ruby has more than one implementation. Finding a hole in one implementation says nothing about the language overall.
The mistakes are so amateurish that it should raise questions about the rest of the codebase (i.e. the defects which are yet to be found)...
Re: Parallel Python or Ruby?
#10One change to ruby that would be useful, would be to make Enumerable.collect run in parallel. There's probably a whole bunch of other Enumerable methods that could be made to run in parallel as well.
It's multicore if you're using jruby.