Thread: Need to know parameter format for a Call function?

  1. #76
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,909
    Does this guy remind anybody else of CommonTater?

  2. #77
    Registered User
    Join Date
    Jul 2014
    Location
    Amarillo, Texas
    Posts
    104
    Quote Originally Posted by anduril462 View Post
    Does this guy remind anybody else of CommonTater?
    If you're trying to insult me it doesn't have any effect on me. I don't know who Common Tater is and really couldn't care less.
    Anyway, "Who is John Galt"?

  3. #78
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Will1
    I challenge you to add 5,000 "rows" to your SQL data base and see how long it takes and you come back with a bunch of bull
    phantomotap posted the results along with the shell script used to obtain those results. That is hardly "a bunch of bull".

    Quote Originally Posted by Will1
    "phantomotap" evaded making a real comparison of SQL to ADAM.
    That could be true. I observe that in the shell script phantomotap posted, the insertions of rows do not appear to be wrapped in a single transaction. If so, the results obtained may be worse than they could have been.

    Quote Originally Posted by Will1
    ADAM can add thousands of records to a file in a fraction of a second. How long does it take modern SQL to add thousands of "rows" to a data base on a PC?
    A quick check of the results posted by phantomotap shows that 10000 rows were added in a fraction of a second. Of course, there's the big elephant in the room as stated in post #65: these comparisons are only useful in making/debunking specious claims since there are so many factors that are left unaccounted.

    Quote Originally Posted by Will1
    What other relational database system do you suggest I compare ADAM with?
    SQL is not a relational database system. I explained this in post #13. You might compare ADAM with relational database systems in general, or with a specific relational database system (e.g., DB2, SQLite), or with some other database system (e.g., Berkeley DB, Kyoto Cabinet). In general, relational database systems use some dialect of SQL, but "SQL data base" is not the correct term, especially considering that it is often not necessarily to write SQL to access a relational database from within a program.

    Quote Originally Posted by Will1
    How old are you young guns anyway?
    That does not matter since an ad hominem argument is a logical fallacy.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #79
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Quote Originally Posted by anduril462 View Post
    Does this guy remind anybody else of CommonTater?
    Beat me to the punch!

  5. #80
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by anduril462 View Post
    Does this guy remind anybody else of CommonTater?
    The attitude is similar; but, other than they are both likely older than me; I do NOT see any resemblance.

    I trusted CommonTater to have a solid knowledge of what he stated; he was just too stubborn to admit he could be wrong.
    Will1 seems to have no understanding of what a relational database system really is;
    I am guessing he thinks SQL means Microsoft SQL Server but it is hard to get him to understand my questions let alone get answers.

    SQL - Wikipedia, the free encyclopedia
    Relational database - Wikipedia, the free encyclopedia

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  6. #81
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    Does this guy remind anybody else of CommonTater?
    O_o

    If you reference what I imagine, the similarity is no stronger for CommonTater than many of the other "old hats" that refuse to keep their knowledge relevant.

    You'll see such in just about every field.

    [Edit]
    There is actually a good episode of "Scrubs" taking up the issue.

    Well, not so good if you are complaining about the attitude and not the underlying cause.
    [/Edit]

    Soma
    Last edited by phantomotap; 07-25-2014 at 03:25 PM.
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  7. #82
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    Quote Originally Posted by phantomotap View Post
    If you reference what I imagine, the similarity is no stronger for CommonTater than many of the other "old hats" that refuse to keep their knowledge relevant.
    For me, the comparison was funny in the context of members known on these forums - and was based on some (admittedly humorous) personality similarities. But definitely not an absolute comparison.

    Like Tater: Uses advanced age to justify authority
    Unlike Tater: Doesn't see the Windows OS as the greatest
    Like Tater: Makes substantial claims based on personal experience without providing supporting data
    Unlike Tater: Not banned

  8. #83
    Registered User
    Join Date
    Jul 2014
    Location
    Amarillo, Texas
    Posts
    104
    Quote Originally Posted by laserlight View Post
    phantomotap posted the results along with the shell script used to obtain those results. That is hardly "a bunch of bull".
    I didn't see his results. what post did he put them in?

    A quick check of the results posted by phantomotap shows that 10000 rows were added in a fraction of a second. Of course, there's the big elephant in the room as stated in post #65: these comparisons are only useful in making/debunking specious claims since there are so many factors that are left unaccounted.
    I changed the add records count to 25,000 and the result was that it took about 1/3 of a second or so, I'd estimate, and took up 12.87 Megabytes of disk space..


    SQL is not a relational database system. I explained this in post #13. You might compare ADAM with relational database systems in general, or with a specific relational database system (e.g., DB2, SQLite), or with some other database system (e.g., Berkeley DB, Kyoto Cabinet). In general, relational database systems use some dialect of SQL, but "SQL data base" is not the correct term, especially considering that it is often not necessarily to write SQL to access a relational database from within a program.
    The only thing that you can compare ADAM with is IBM's VSAM which, as I said in a previous post, I may have designed. Google it!

    That does not matter since an ad hominem argument is a logical fallacy.
    WOW, impressive, you know a little Latin!

    Anyway, "Who is John Galt?"
    Last edited by Will1; 07-25-2014 at 08:51 PM.

  9. #84
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    I didn't see his results. what post did he put them in?
    O_o

    Oh. Now I see where the CommonTater comparison was born...

    Anyway, "Who is John Galt?"
    Are you really so far removed from modern technology that you feel that put upon in this thread? Really?

    What? Are we now supposed to feel sorrow for you and buy your nonsense as Yog Sothoth's own gospel?

    Wait. I can also make allusions to literature! That must I am the co-developer of "VSAM".

    Time to get paid...

    dolla dolla bill yall
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  10. #85
    Registered User
    Join Date
    Jul 2014
    Location
    Amarillo, Texas
    Posts
    104
    Quote Originally Posted by Matticus View Post
    Unlike Tater: Not banned
    Banning someone is in violation of the Supreme Law, the First Amendment to our Constitution guarantees the right to freedom of speech. Banning Tater is denying him his right to speak.

    I probably will be banned before long because you brain washed children don't want to hear the truth like the following:

    Comparing a PC to a mainframe is like comparing a Cesna 150 to a Boeing 747 jetliner. Sure you can round up a few hundred Cesna 150s and carry as many pasengers as a 747 jetliner can but what a mess you'd have like rounding up a few hundred PCs to have as much computer power as an IBM system 390 has. They still couldn't do what a system 390 can do. Like a whole herd of Cesna 150s couldn't carry a space shuttle across the country like a 747 did.

    Anyway, "Who is John Galt?"

  11. #86
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Will1
    I didn't see his results. what post did he put them in?
    Post #69. Refer to the output of two runs (with different arguments) of the shell script posted.

    Quote Originally Posted by Will1
    The only thing that you can compare ADAM with is IBM's VSAM
    You forgot to qualify that with "with respect to speed", but even then that remains to be seen since the timings that you quoted are easily achievable.

    Quote Originally Posted by Will1
    WOW, impressive, you know a little Latin!
    I happen to know appropriate terms in English inherited from Latin, and because I assist at Mass in Latin, I happen to understand quite a few set phrases in Latin. That does not equate to knowing Latin, no more than someone able to parrot out memorised C code knows C. So, sorry, bad guess

    Quote Originally Posted by Will1
    Banning someone is in violation of the Supreme Law, the First Amendment to our Constitution guarantees the right to freedom of speech.
    You misunderstand the nature of freedom of speech in a privately owned forum. (Besides making the mistake of assuming that we have a shared Constitution.)
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  12. #87
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by Will1 View Post
    Banning someone is in violation of the Supreme Law, the First Amendment to our Constitution guarantees the right to freedom of speech. Banning Tater is denying him his right to speak.
    FYI: This website is NOT being ran by the USA Federal Government!
    I hope you know more about programming than you know about the USA constitution.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  13. #88
    Registered User
    Join Date
    Jul 2014
    Location
    Amarillo, Texas
    Posts
    104
    Quote Originally Posted by laserlight View Post
    Post #69. Refer to the output of two runs (with different arguments) of the shell script posted.
    I added 5,000 (Now 25,000) records to an ADAM file and suggested a test of adding that many rows to an SQL (System Querry Language) data base and have yet to hear any results of how long it takes.

    You forgot to qualify that with "with respect to speed", but even then that remains to be seen since the timings that you quoted are easily achievable.
    Yeah and also I meant with respect ro KSDS, RRDS, and ESDS.

    You misunderstand the nature of freedom of speech in a privately owned forum. (Besides making the mistake of assuming that we have a shared Constitution.)
    Yeah, the politically motivated news media of this country often practices censorship of opposing political views and can do it because they are privately owned.

    OK, You're not from the USA. The Constitution of the United States and the Bill of Rights are the most inspired documentation of how a civilization should be composed ever written. Those who embrace "The Communist Manifesto" want to take the right of the individual away so they force people to do their bidding. That is also true of Fascists. Here in the USA you are free to spout any kind of philosophy and not be censored. Anyway, "Who is John Galt?"
    Last edited by Will1; 07-26-2014 at 10:30 AM.

  14. #89
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Will1
    I added 5,000 (Now 25,000) records to an ADAM file and suggested a test of adding that many rows to an SQL (System Querry Language) data base and have yet to hear any results of how long it takes.
    You appear to have yet to read post #69 in its entirety. Anyway, after modifying phantomotap's shell script to wrap the insertions in a single transaction, I get about 0.9s on average for 25000 records, if we just count wall clock time. It has been stressed to you so many times: this doesn't really mean anything; it is fairly useless as a benchmark, but there you have it: SQLite3 "can add thousands of records to a file in a fraction of a second".

    Quote Originally Posted by Will1
    Anyway, "Who is John Galt?"
    Sorry, not an Ayn Rand fan, so I'm not impressed.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  15. #90
    Registered User
    Join Date
    Jul 2014
    Location
    Amarillo, Texas
    Posts
    104
    Quote Originally Posted by laserlight View Post
    You appear to have yet to read post #69 in its entirety.
    Een the DOS version of ADAM files will hold up to 4 Gigabytes of data. What I was looking for is the speed of SQL data bases adding Rows and the space SQL uses to store rows of data.

    Anyway, after modifying phantomotap's shell script to wrap the insertions in a single transaction, I get about 0.9s on average for 25000 records, if we just count wall clock time. It has been stressed to you so many times: this doesn't really mean anything; it is fairly useless as a benchmark, but there you have it: SQLite3 "can add thousands of records to a file in a fraction of a second".
    I changed the number of records to be added to 50,000 and ADAM took nearly a second to do it. Still twice as fast as you were able to achieve with adding rows to an SQL data base. It used less than 26 Megabytes of disk space. How much space does an SQL data base with 512 byte rows take up on the hard drive?

    We've wandered all over the place here so lets get back to the reason I started this thread. What I was really looking for is the expertise to help me create a server that allows clients to create and access an ADAM file. Since no-one seems to be interested in real software development I probably won't be posting much anymore. What I've done so far seems to be a waste of time.

    Sorry, not an Ayn Rand fan, so I'm not impressed.
    I think you should read "Atlas Shrugged" and compare the situation to modern times. Ayn Rand, GRHS, was quite prophetic when she wrote that back in the 1950s.
    Last edited by Will1; 07-27-2014 at 09:27 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function call Overhead and Function Call Stack
    By Alam Khan in forum C++ Programming
    Replies: 2
    Last Post: 04-26-2014, 08:28 AM
  2. Replies: 4
    Last Post: 10-03-2011, 06:30 AM
  3. Replies: 13
    Last Post: 08-24-2006, 12:22 AM
  4. Parameter in a function
    By cpluspluser in forum C++ Programming
    Replies: 2
    Last Post: 04-09-2003, 07:48 PM