Re: Re[4]: Euphoria CGI Success
- Posted by Jason Gade <jaygade at yahoo.com> Feb 14, 2006
- 499 views
Vincent wrote: > > akusaya wrote: > > <snip> > > Yes I know Eu is very fast compared to PHP. However that is not what > > we need for websites. Moreover, who wants to use PHP for doing sieve? > > If sieve were really needed, one could use C and call the sieve > > function from Eu or PHP and that will be faster. > > Yes. Euphoria is much faster than PHP across the board. I don't know why > Robert > compares Eu to PHP using Sieve, but we'll get a better idea as to exactly how > fast Euphoria is in comparison to other languages once Jason finishes his > language > shootout benchmarks and tests them. Yeah, that's on my to-do list. I'm kind of working on ESL right now, though (see below). I'll probably bounce around between projects like that but it is better than not coding at all... > > > One more thing is, how if 100 users request the same page at one time > > period (which is typical for a website). Wouldn't there be 100 exu > > processes running simultaneously? How about the startup time? > > > > OK, I tested the exu runtime from my webhosting server. > > > > date>tgl; for((i=0;i<100;i++)); do echo a|./ex examliat.ex ; done; > > date>>tgl > > cat tgl > > > > output: > > Tue Feb 14 14:28:25 GMT 2006 > > Tue Feb 14 14:28:29 GMT 2006 > > > > It needs 4 seconds to run. It is Eu 2.4. I havent tried Eu 2.5. Hope > > it is not too bad. > > Get Euphoria 2.5 and try running it with 10,000 requests to view the page at > the same time. That is a typical high traffic page. Then perhaps after that, > try 10,000,000 requests at the same time. That is typical for sites like > Yahoo, > MSN, Google, etc. It really comes down to the proper tool for the job. PHP was designed for the web, and I think Google uses a lot of Python. Plus those companies have massive clusters and server farms with load balancing and all that kind of stuff that is way above *my* head. But then again, *most* web/networking stuff is way above my head. > > Couldn't you just say that Eu is not really suited for serving > > webpages? (no offense) > > Euphoria is fine for CGI. It isn't as good as Perl or PHP, but that is mostly > because of the lack of complete CGI support libraries. Hopefully that will > change > with the ESL project. [Switch topic] ESL project. Yeah. I'm kind of working on stuff, basically filesys.e right now and maybe seqops.e (sequence operations) in the near future. I don't think ESL has any specifications for CGI-type stuff and I certainly don't know anything about it. So, I don't know. If it wasn't for Jeremy Peterson I think the ESL project would be about dead. I'm taking his code as a basic blueprint and re-creating it to fit my own ideas. Hopefully the rest of the team will accept my code once I release it, or else I'll just release it on its own. -- "Any programming problem can be solved by adding a level of indirection." --anonymous "Any performance problem can be solved by removing a level of indirection." --M. Haertel j.