The Wikipedia Review: A forum for discussion and criticism of Wikipedia
Wikipedia Review Op-Ed Pages

Welcome, Guest! ( Log In | Register )

> Should Wikipedia's software be rewritten in Ruby on Rails?
Rating  5
LamontStormstar
post Sat 11th October 2008, 9:40am
Post #1


Postmaster
*******

Group: Regulars
Posts: 2,359
Joined: Fri 18th Aug 2006, 7:25am
Member No.: 342

WP user page - talk
check - contribs



Should Wikipedia's software be rewritten in Ruby on Rails? Discuss.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
Somey
post Sat 11th October 2008, 8:02pm
Post #2


Can't actually moderate
*********

Group: Moderators
Posts: 11,814
Joined: Sat 17th Jun 2006, 7:47pm
From: Dreamland
Member No.: 275



Personally, now that Delphi for PHP exists, I can't imagine why anyone would want to switch from PHP to Ruby on Rails, unless they were already skilled in it of course.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LamontStormstar
post Mon 13th October 2008, 5:44pm
Post #3


Postmaster
*******

Group: Regulars
Posts: 2,359
Joined: Fri 18th Aug 2006, 7:25am
Member No.: 342

WP user page - talk
check - contribs



QUOTE(Somey @ Sat 11th October 2008, 1:02pm) *

Personally, now that Delphi for PHP exists, I can't imagine why anyone would want to switch from PHP to Ruby on Rails, unless they were already skilled in it of course.



I once worked on Delphi back in the 1990s. I'd tried visual basic, then I tried Delphi. Delphi was only a little slower to develop in than Visual Basic and Delphi was more powerful and code was slower. I then tried C++ because a friend recommedned it, which was hard and slow to develop in, though code got even smaller and the program was faster. I later gave up on C++.

I'm not sure what Delphi for PHP is about. Delphi is a bit of a better language than PHP




QUOTE(Kelly Martin @ Sat 11th October 2008, 6:00pm) *

QUOTE(LamontStormstar @ Sat 11th October 2008, 8:35am) *
Java would probably be even slower than PHP. Whenever I go to a website with a java applet, if it is really complex it slows my computer way down.
Server side Java is nothing like client-side java. The slowness you're experiencing is due to your browser launching a JVM inside the browser. Server side Java doesn't have this problem; the JVM is already running in the server and all you get is the same HTML you'd get from the PHP app -- it's just generated that much faster. A properly implemented Java webapp will run rings around a PHP app.

MediaWiki runs 25% faster just by running it within Quercus, which is pretty much just a PHP interpreter written in Java. A full reimplementation in Java would be 50% to 75% faster.

I doubt that a Ruby on Rails implementation would be that much faster as RoR is, like PHP, a fully interpreted language (although the odds are that the RoR interpreter is more efficient than PHP, as PHP's is just about the worst-performing interpreter there is in common use). Java is at least compiled to JVM code. The only way to get faster than that would be to go to a fully compiled language like C or C++.




Hmm... isn't the native PHP interpreter written in C++ or something low-level? If it's not, that's surprising.

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
LamontStormstar   Should Wikipedia's software be rewritten in Ruby on Rails?   Sat 11th October 2008, 9:40am
Lar   Should Wikipedia's software be rewritten in R...   Sat 11th October 2008, 1:19pm
Milton Roe   But I tell my clients not to replace perfectly go...   Sat 11th October 2008, 8:39pm
LamontStormstar   Java would probably be even slower than PHP. When...   Sat 11th October 2008, 1:35pm
Kelly Martin   Java would probably be even slower than PHP. When...   Sun 12th October 2008, 1:00am
KamrynMatika   Ruby is slower than PHP. Ruby can be 20x slower th...   Sat 11th October 2008, 5:10pm
Somey   Personally, now that Delphi for PHP exists, I can...   Sat 11th October 2008, 8:02pm
Somey   I'm not sure what Delphi for PHP is about. De...   Mon 13th October 2008, 6:32pm
gomi   Hmm... isn't the native PHP interpreter writt...   Mon 13th October 2008, 6:49pm
The Joy   I thought Brion Vibber and friends had switched to...   Sat 11th October 2008, 8:14pm
KamrynMatika   I thought Brion Vibber and friends had switched t...   Sat 11th October 2008, 8:26pm
Kelly Martin   The PHP interpreter is written in C or C++ (I forg...   Mon 13th October 2008, 6:43pm
Somey   PHP is a fantastically crappy language. It's a...   Mon 13th October 2008, 6:51pm
gomi   PHP is a fantastically crappy language. Yes, it is...   Mon 13th October 2008, 6:51pm
Kelly Martin   PHP is a fantastically crappy language.Yes, it is ...   Mon 13th October 2008, 7:03pm
GlassBeadGame   [quote name='gomi' post='135661' date='Mon 13th O...   Mon 13th October 2008, 8:10pm
Kelly Martin   I'm a rank beginner compared to many of you bu...   Mon 13th October 2008, 8:20pm
GlassBeadGame   I'm a rank beginner compared to many of you b...   Mon 13th October 2008, 8:27pm
LamontStormstar   I know the site Twitter runs on RoR. Kelly, what ...   Mon 13th October 2008, 6:49pm
LamontStormstar   Hmmm I thought Python was faster than PHP and Perl...   Mon 13th October 2008, 6:57pm
gomi   Hmmm I thought Python was faster than PHP and Per...   Mon 13th October 2008, 8:52pm
dogbiscuit   In the old days MySQL was a no no compared with Po...   Mon 13th October 2008, 9:10pm


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

-   Lo-Fi Version Time is now: 20th 5 13, 7:13pm