dbTalk Databases Forums  

Pick PHP

comp.databases.pick comp.databases.pick


Discuss Pick PHP in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #41  
Old   
mlucas@doxgroup.com
 
Posts: n/a

Default Re: Pick PHP - 03-11-2010 , 01:06 PM






On Mar 10, 7:47*pm, wjhonson <wjhon... (AT) aol (DOT) com> wrote:
Quote:
On Mar 9, 5:32*am, Kevin Powick <kpow... (AT) gmail (DOT) com> wrote:

On Mar 9, 3:44*am, Chairpotato <chairpot... (AT) gmail (DOT) com> wrote:

Which is why all the web jobs are either using LAMP or AJAX
structures, and not Pascal or Lisp right?

You do realize that the "M" in LAMP is for MySQL. *Good luck
supplanting that.

I think you are looking to solve a problem that isn't there.

Yes mySQL is an SQL database, and yes it can live on the same web
server as the PHP interpreter, so you'd think they'd be fast working
together. *I'm however talking about the creation of a Pick-style
database, not another SQL database.



Web apps are already horribly slow in the best cases

Really? *How so? *Most web apps are a GUI to a back end doing all the
heaving lifting. *Any slowness is likely the pipeline, over which you
have no control.

That's right. That's why the addition of a few *slow* database lookups
won't make any difference to the web-app user. *The speed issue is
more tied to the speed of the user-connection, not the intra-process
speed between local components on the server.

adding a few
slow but local database lookups won't be noticed in all that.

Yes, they will.

No they won't.



Fine but that doesn't negate the advantage of having a database and
application all written using the same language.

True, or we all wouldn't be using MV. *However, PHP is a terrible
choice to write a database engine.

Says you
Lots of people are using PHP to do database lookups already.
It's just that their only reasonable choices are flat file or mySQL.
Now they'll have a third choice. *That's it.
I have read this thread with great interest as it has unfolded. It's
sort of like kids watching the neighbor lady sunbathe through a whole
in the fence.

However, I have to add my nickels worth here. I didn't see it said
directly, but many times indirectly...

There's a HUGE difference in write an interface to an existing
database that has its own DBMS and writing the DBMS itself in PHP. I
would say that PHP is quite possibly the worst language to write a
DBMS in. Doing lookups it exactly what it is meant for, handling all
the back end of a DBMS is not. There's a ton of overhead in any DBMS,
record locking, file locking, multi-user access control, physical
storage and access of the data, encryption, decryption, etc. You add
all that in and write it in PHP and it will be the slowest thing you
have ever seen in you entire life. PHP is not an executable (machine)
language, it is interpreted and by it's very nature it is slow at
doing I/O. I/O is the life blood of and good DBMS. Something that
takes milliseconds in executable (machine) code can take whole seconds
even minutes in an interpreted language.

Just to aswage the barage of complaints that Pick Basic is typical
only compiled to pseudo code, I offer the fact that all the I/O is
actually execute in machine code. When you READ a record from a file
you do not have to write the low-level, read a sector off of disk and
parse into a set of records code. All of that is handled at the
machine level, not the interpreted pseudo-code level

I started to write something similar in Perl one time, then I woke
up! What nightmare! Just not the correct tool for the job. The fact
is, that connecting to an existing DBMS and requesting data is what
PHP and Perl are more suited to, not writing the DBMS itself.

Thanks for reading,

Marshall

Reply With Quote
  #42  
Old   
Symeon
 
Posts: n/a

Default Re: Pick PHP - 03-11-2010 , 04:15 PM






Why would you want to write a database in php ??? any database not
just a pick style one. (actually why would you write anything new in
php - oh lets not go there tho ).

Reply With Quote
  #43  
Old   
frosty
 
Posts: n/a

Default Re: Pick PHP - 03-11-2010 , 04:26 PM



Symeon wondered:
Quote:
Why would you want to write a database in php ??? any database not
just a pick style one. (actually why would you write anything new in
php - oh lets not go there tho ).
We _dreamed_ about writing databases in PHP!

Our managers would wake us up two hours before
we went to bed so that we could write entire
Operating Systems in LISP! And in the afternoon
we'd port the entire O/S to a memory stick...

--
frosty

Reply With Quote
  #44  
Old   
Ross Ferris
 
Posts: n/a

Default Re: Pick PHP - 03-11-2010 , 08:06 PM



On Mar 12, 8:26*am, "frosty" <fros... (AT) bogus (DOT) tld> wrote:
*And in the afternoon
Quote:
we'd port the entire O/S to a memory stick...

--
frosty
WOW! If you have the OS bootable from a memory stick, when you are
finished with the PHP port of Pick, I know just the competition you
could enter ....

Reply With Quote
  #45  
Old   
wjhonson
 
Posts: n/a

Default Re: Pick PHP - 03-12-2010 , 05:12 AM



On 11 Mar, 10:06, mlu... (AT) doxgroup (DOT) com wrote:
Quote:
There's a HUGE difference in write an interface to an existing
database that has its own DBMS and writing the DBMS itself in PHP. *I
would say that PHP is quite possibly the worst language to write a
DBMS in.
Then you've never worked in LISP. Quite possibly the worst language
to write anything in.

Quote:
Doing lookups it exactly what it is meant for, handling all
the back end of a DBMS is not. *There's a ton of overhead in any DBMS,
record locking, file locking, multi-user access control, physical
storage and access of the data, encryption, decryption, etc.
Doesn't look like a ton to me. Looks like a bucketful.
At any rate, it is not the DBMS that's doing the encryption and
decryption. The DBMS itself does not care what sort of data its
handling, provided you tell it, this is "text", this is "binary", etc.

Quote:
You add
all that in and write it in PHP and it will be the slowest thing you
have ever seen in you entire life.
I don't know, pretty stiff competition for the lowest rung there. One
time I wrote a continuously updating clock for a menu program, in Pick
BASIC. Brought the system to its knees, but hey it was fun to figure
out how to do it.

Quote:
PHP is not an executable (machine)
language, it is interpreted and by it's very nature it is slow at
doing I/O. *I/O is the life blood of and good DBMS. *Something that
takes milliseconds in executable (machine) code can take whole seconds
even minutes in an interpreted language.

If you know of any web application that is processing a thousand
records a minute or something, let me know. Otherwise I just don't
see the problem here.

Quote:
Just to aswage the barage of complaints that Pick Basic is typical
only compiled to pseudo code, I offer the fact that all the I/O is
actually execute in machine code. *When you READ a record from a file
you do not have to write the low-level, read a sector off of disk and
parse into a set of records code. *All of that is handled at the
machine level, not the interpreted pseudo-code level

When you read a record in PHP you also do not have to handle reading a
sector off a disk.... I think you went overboard there. What modern
DBMS exposes the sectors to the programmer? Reading a block (frame)
in PHP is exceedingly simple, much more so than in Pick BASIC by the
way. Set your state variable and explode the contents on FF and then
again on FE and you're done. I don't see what's so hard.

Quote:
I started to write something similar in Perl one time, then I woke
up! *What nightmare! *Just not the correct tool for the job. *The fact
is, that connecting to an existing DBMS and requesting data is what
PHP and Perl are more suited to, not writing the DBMS itself.

Fine I wont' invite you to the coming out party then.

Will

Reply With Quote
  #46  
Old   
Kevin Powick
 
Posts: n/a

Default Re: Pick PHP - 03-12-2010 , 10:28 AM



On Mar 12, 5:12*am, wjhonson <wjhon... (AT) aol (DOT) com> wrote:

Quote:
If you know of any web application that is processing a thousand
records a minute or something, let me know. *Otherwise I just don't
see the problem here.
Umm.... Even at today's lowliest website one thinks in terms of
transactions per second, not minute. As for examples of websites
certainly processing more than a thousand records per minute, lets try
sites like Google, Amazon, Yahoo, etc. Ever heard of them?

Quote:
I don't see what's so hard.
Dunning-Kruger effect? ;-)

--
Kevin Powick

Reply With Quote
  #47  
Old   
RJ
 
Posts: n/a

Default Re: Pick PHP - 03-12-2010 , 10:53 AM



"Kevin Powick" <kpowick (AT) gmail (DOT) com> wrote

Quote:
On Mar 12, 5:12 am, wjhonson <wjhon... (AT) aol (DOT) com> wrote:

If you know of any web application that is processing a thousand
records a minute or something, let me know. Otherwise I just don't
see the problem here.

Umm.... Even at today's lowliest website one thinks in terms of
transactions per second, not minute. As for examples of websites
certainly processing more than a thousand records per minute, lets try
sites like Google, Amazon, Yahoo, etc. Ever heard of them?

I don't see what's so hard.

Dunning-Kruger effect? ;-)

obviously wrongly named - should be CDP effect.
BobJ
Quote:
--
Kevin Powick

Reply With Quote
  #48  
Old   
Ross Ferris
 
Posts: n/a

Default Re: Pick PHP - 03-12-2010 , 04:23 PM



On Mar 13, 2:28*am, Kevin Powick <kpow... (AT) gmail (DOT) com> wrote:
Quote:
On Mar 12, 5:12*am, wjhonson <wjhon... (AT) aol (DOT) com> wrote:

If you know of any web application that is processing a thousand
records a minute or something, let me know. *Otherwise I just don't
see the problem here.

I know that one of our clients external web sites would eat that!
Currently investigating SSD's to overcome I/O bottlenecks

In terms of inward facing systems (but still a web application), have
a number a Visage sites (so intranet rather than internet) with >500
(max 1,000) seats, so I think they would be well over this lower limit
to

Reply With Quote
  #49  
Old   
wjhonson
 
Posts: n/a

Default Re: Pick PHP - 03-13-2010 , 04:30 AM



You guys are just being silly now. Do you really think that Google is
a candidate for this application?

I'm talking about bridging the great leap from flat file to SQL-type
databases, in PHP. Right now PHP programmers only have limited file
support. I'm only talking about giving them an option here. Not
trying to build something that scales into the millions of
transactions.

If we can introduce those non-MV PHP programmers *slowly* to the idea
of multivalue, that would help the entire marketplace, in my opinion.

Then if they want to "improve" their speed by using some "better" mv
database, it won't be a huge jump. It will seem natural.

Reply With Quote
  #50  
Old   
frosty
 
Posts: n/a

Default Re: Pick PHP - 03-13-2010 , 01:05 PM



wjhonson wrote:
Quote:
..I'm talking about bridging the great leap from flat file to SQL-type
databases, in PHP. Right now PHP programmers only have limited file
support. I'm only talking about giving them an option here. Not
trying to build something that scales into the millions of
transactions.

If we can introduce those non-MV PHP programmers *slowly* to the idea
of multivalue, that would help the entire marketplace, in my opinion.

Then if they want to "improve" their speed by using some "better" mv
database, it won't be a huge jump. It will seem natural.
This is a good idea, IMO. From where I sit, it would be much more
beneficial to have an ORM layer between Ruby on Rails and the MV
database so that the RoR programmers could access the MV data via
Active Record.

--
frosty

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.