Thread: riding the last wave of C++

  1. #76
    Registered User whackaxe's Avatar
    Join Date
    Mar 2004
    Posts
    332
    php isnt only used for forums ya know. http://www.hotscripts.com/PHP/Script...ams/index.html
    loads of stuff. and the whole point in learning php is to be able to build your own ones. i was working on a game like www.starkingdoms.com once, and you can't find anything already written that will help you. it's like telling everyone here to go onto planetsourcecode.com

    I <3 PHP

  2. #77
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by whackaxe
    actually, there is a non web part of PHP. not very conveniant for shure, but it's fun to program http://gtk.php.net/

    and php is written in C, but it could be written in Java
    Ah, but that project was only intended to show that PHP could be used outside of web programming... not to show that PHP is generally good for normal programming.

    At least if I remember correctly, havent read the docs there for quite a while.
    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

  3. #78
    C > C++ duders ggs's Avatar
    Join Date
    Aug 2001
    Posts
    435
    you'll be shocked when the LISP strikes back, bubba

    LISP and ML will whup C and C++ and C# and C-- and C+

    or, maybe D will
    .sect signature

  4. #79
    Me -=SoKrA=-'s Avatar
    Join Date
    Oct 2002
    Location
    Europe
    Posts
    448
    >>
    ...if NASA used Java they'd never get a response from their robots on Mars -
    >> they'd still be loading and interpreting the code. I'm sure they use C and assembly.
    Sorry Bubba, http://www.cnn.com/2004/TECH/space/0...ars.java.reut/
    SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
    I say what I say, I mean what I mean.
    IDE: emacs + make + gcc and proud of it.

  5. #80
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    Wow, no way... Java?? In my experience, java is slow/buggy/difficult to use...

    Oh well, it's just a news story. Probably they're using Java for the rover to entertain itself while waiting for new commands to come in, while C/assembly is what controls its AI
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  6. #81
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Now thats unbelievable. No wonder the damn things ain't working right.





    Deleted my post because it was too much of a rant.

    Here was it's premise, in short: C/C++ rocks.
    Last edited by VirtualAce; 04-17-2004 at 10:06 AM.

  7. #82
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    >php is written in C

    I have often heard this, but I wonder how it is possible.

    You can't write languages in C, you write programs. The notion of a language is abstract and can only be described on paper.

    I can see how you can write a php interpreter/compiler in C, but not the language itself....unless maybe it is a scripting language...is it?
    My Website

    "Circular logic is good because it is."

  8. #83
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    PHP is a scripting language

  9. #84
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    davidp- Easy, all a programming language really is is just a bunch of words that all work together to generate some sort of file that can be executed. The language itself is meaningless of course (the computer itself can't understand it, that's why we write compilers to compile the code), but it saves us from typing zeros and ones all day long and looking at giant lookup tables for the assembly calls

    -And yes, PHP is a server-side scripting language

  10. #85
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    I have often heard this, but I wonder how it is possible.
    One way of looking at it is that PHP refers both to the language, as well as to the interpreter.

    all a programming language really is is just a bunch of words that all work together to generate some sort of file that can be executed
    Not quite. There are rules to the use of these words and symbols, sort of meta-information to the words and symbols that make up a language.
    Certainly from that point of view, one would be better of writing PHP in BNF than PHP in C.
    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

  11. #86
    Registered User whackaxe's Avatar
    Join Date
    Mar 2004
    Posts
    332
    PHP is a scripting language. when you ask for a PHP page on a web site, the web server sends the file through PHP.exe and retrieves the output. so your lines of code are interpreted by C and tehn acted upon etc...

  12. #87
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Lookup tables for asm?? I'm not sure I follow. You can program in assembly w/o lookup tables quite easily.

    If you asked me what the binary equivalent or even hex opcode of a mov instruction was I probably couldn't tell you...but I can still code using the mov instruction.

    I'm sorta lost as to your statement.

  13. #88
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    New York
    Posts
    1,905
    i dunno, i'm just used to seeing one of my friends program in assembly and he used to use these lookup tables of all the basic opcodes and assembly calls. I'm guessing it was just cuz he was just learning how to do it

    -laserlight
    yah, i know what you mean, i was mainly just pointing out that you can technically make a language in C, because all a language really is is just a different way of writing code.

  14. #89
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,743
    I emailed the college board and they sent me an interesting link.

    I think many of you would be interested in looking at it.

    http://www.collegeboard.com/ap/pdf/a...rt_surveys.pdf

    It is the report of the committe that made the decision to change from C/C++ to Java
    My Website

    "Circular logic is good because it is."

  15. #90
    Registered User
    Join Date
    Jan 2003
    Posts
    648
    Nuh uh. The collegeboard changed to Java purely because they are getting paid by Sun to do it. They are in a contract with them and they are required to teach it for another 2 or 4 years. And because Fran Trees wants to make more money by making more of her stupid AP books and also promoting "Women in Computing." That book is I believe called "Out of the Penthouse: Women in Computer Science."

    Purely business and money.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compression/Decompression Wave File and MP3
    By cindy_16051988 in forum Projects and Job Recruitment
    Replies: 51
    Last Post: 04-29-2006, 06:25 AM
  2. writing a wave file from my wave samples
    By Queatrix in forum Windows Programming
    Replies: 2
    Last Post: 12-31-2005, 11:54 PM
  3. Processing a sine wave file
    By subdene in forum C++ Programming
    Replies: 2
    Last Post: 07-12-2004, 03:04 PM
  4. Help open wave file in Borland C++ plz
    By toa2k in forum C++ Programming
    Replies: 1
    Last Post: 01-22-2004, 07:55 AM
  5. MP3 to WAVE and WAVE to MP3 conversion
    By Blizzarddog in forum C++ Programming
    Replies: 8
    Last Post: 01-01-2004, 08:32 PM