Thread: Music

  1. #1
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413

    Music

    What are you currently listening to?

    Flux Pavilion - Standing On A Hill - YouTube

  2. #2
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    Trivia question of the night:

    For what value of x is (x /= x) true?

  3. #3
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by Epy View Post
    Trivia question of the night:

    For what value of x is (x /= x) true?
    Since we're on a C forum, and you said "/=" instead of "≠" (nice try though). The answer is 1 (one).

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    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

  5. #5
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Quote Originally Posted by Epy View Post
    Trivia question of the night:

    For what value of x is (x /= x) true?
    Assuming you mean "not equal", and without considering any specific programming language semantics, any floating point number will do. Infinity or NaNs also work.

    EDIT: Oh, and lately listening to classical music mostly. Currently exploring Rachmaninoff less popular work.
    Last edited by Mario F.; 05-08-2016 at 08:46 AM.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Mario F.
    Assuming you mean "not equal", and without considering any specific programming language semantics, any floating point number will do. Infinity or NaNs also work.
    I was able to find quite a few counterexamples with this C++ program:
    Code:
    #include <iostream>
    
    int main()
    {
        for (double x = -10000.0; x < 10000.0; x += 0.01)
        {
            if (x != x)
            {
                std::cout << x << " is not equal to " << x << std::endl;
                break;
            }
        }
        std::cout << "done" << std::endl;
    }
    which makes sense to me since floating point inaccuracy is concerned with two different values that may otherwise appear identical, whereas in comparing x with x, ordinarily the same value is compared.
    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

  7. #7
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    Quote Originally Posted by Mario F. View Post
    Assuming you mean "not equal", and without considering any specific programming language semantics, any floating point number will do. Infinity or NaNs also work.

    EDIT: Oh, and lately listening to classical music mostly. Currently exploring Rachmaninoff less popular work.
    Yup, that's what I was looking for (Inf or NaN). I was looking at some old Fortran code I wrote and I had res /= res as a portable way to check for NaN.

  8. #8
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    I've been trying out this band.

    If you happen to like what's known as theatricore, that is. What a weird term. It comes from metalcore which is a genre that takes some of the harder/more "metal" parts and combines them with some more "hardcore" emo influences. Then you combine theatricality to that bada bing, bada boom, you get theatricore!

  9. #9
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    I've had Dream Theater's new album, "The Astonishing," on repeat since it came out. Truly an outstanding work of art.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  10. #10
    Registered User
    Join Date
    Dec 2014
    Posts
    19
    Just some music from the 80s.

  11. #11
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158

  12. #12
    Registered User
    Join Date
    Apr 2013
    Posts
    1,658
    A lot of various kinds of music. My wife and I dance at both club style and swing type venues.

  13. #13

  14. #14
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  15. #15
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    Quote Originally Posted by Yarin View Post
    Really missing the like button.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Music
    By MaGaIn in forum C++ Programming
    Replies: 17
    Last Post: 11-01-2007, 03:09 AM
  2. Music
    By Queatrix in forum A Brief History of Cprogramming.com
    Replies: 29
    Last Post: 04-18-2007, 04:58 PM
  3. Music?
    By fuchu in forum A Brief History of Cprogramming.com
    Replies: 39
    Last Post: 06-28-2005, 08:45 AM
  4. Music
    By The Dog in forum A Brief History of Cprogramming.com
    Replies: 29
    Last Post: 07-22-2002, 10:33 PM

Tags for this Thread