Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. The Lounge
  4. Realtime programing ?
Forum Updated to NodeBB v4.3 + New Features

Realtime programing ?

Scheduled Pinned Locked Moved Unsolved The Lounge
8 Posts 5 Posters 2.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    U7Development
    wrote on last edited by
    #1

    Hi!..
    See the The Fly film some days ago... i was wondering how Set Brundle did to delivery command to computer in realtime, you write an order, computer computes it instantly, ..

    I'm wondering if this is really possible with Qt Creator or any other classic IDE.

    For instance a Window is showing at the same time as the code is being writen.

    I write: QLabel qlabel = new QLabel(this);
    On the window nothing visible happens...
    I write: qlabel->setText(QString("Hello");
    The label with "Hello" word shows on any point of the window
    I write: qlabel->setGeometry(0, 0, 300, 300);
    The label with "Hello" word sets its position at the top left corner..

    .. and so.

    it is just like if compiler is on guard compiling and showing result instantly..

    Is it possible or just fiction ? :O

    JonBJ 1 Reply Last reply
    0
    • U U7Development

      Hi!..
      See the The Fly film some days ago... i was wondering how Set Brundle did to delivery command to computer in realtime, you write an order, computer computes it instantly, ..

      I'm wondering if this is really possible with Qt Creator or any other classic IDE.

      For instance a Window is showing at the same time as the code is being writen.

      I write: QLabel qlabel = new QLabel(this);
      On the window nothing visible happens...
      I write: qlabel->setText(QString("Hello");
      The label with "Hello" word shows on any point of the window
      I write: qlabel->setGeometry(0, 0, 300, 300);
      The label with "Hello" word sets its position at the top left corner..

      .. and so.

      it is just like if compiler is on guard compiling and showing result instantly..

      Is it possible or just fiction ? :O

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @U7Development
      That would be the Qt & C++ interpreter, not compiler.

      1 Reply Last reply
      2
      • U Offline
        U Offline
        U7Development
        wrote on last edited by
        #3

        Yes correct, is it possible?

        JonBJ JohanSoloJ 2 Replies Last reply
        0
        • U U7Development

          Yes correct, is it possible?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @U7Development
          I was being a bit tongue-in-cheek, not totally serious. :)

          For one thing, after qlabel->setText(QString("Hello"); it wouldn't actually appear unless you had the Qt event loop running somewhere.

          With Python + PySide2/PyQt you can effectively type in the statements interactively, because Python is an interpreter, but as I say it won't quite behave as you describe. But you could play with it to see!

          There are C++ "interpreter"s online, some serious some not, some like http://cpp.sh/ which are really compilers but are worth it for a quick test of something. Though note it won't offer you Qt!

          U 1 Reply Last reply
          1
          • JonBJ JonB

            @U7Development
            I was being a bit tongue-in-cheek, not totally serious. :)

            For one thing, after qlabel->setText(QString("Hello"); it wouldn't actually appear unless you had the Qt event loop running somewhere.

            With Python + PySide2/PyQt you can effectively type in the statements interactively, because Python is an interpreter, but as I say it won't quite behave as you describe. But you could play with it to see!

            There are C++ "interpreter"s online, some serious some not, some like http://cpp.sh/ which are really compilers but are worth it for a quick test of something. Though note it won't offer you Qt!

            U Offline
            U Offline
            U7Development
            wrote on last edited by
            #5

            @JonB lol !!
            OK, it seems I was dreaming a bit, thanks for answering!

            1 Reply Last reply
            0
            • U U7Development

              Yes correct, is it possible?

              JohanSoloJ Offline
              JohanSoloJ Offline
              JohanSolo
              wrote on last edited by
              #6

              @U7Development said in Realtime programing ?:

              Yes correct, is it possible?

              I know two C++ interpreters: there is cling, and there used to be cint.

              `They did not know it was impossible, so they did it.'
              -- Mark Twain

              1 Reply Last reply
              0
              • fcarneyF Offline
                fcarneyF Offline
                fcarney
                wrote on last edited by
                #7

                I have this image in my head of a game show called: Real Time Programming!
                People face off and run interpreters to solve problems.
                A = announcer
                A: Bob makes a bold move in Python. Shorter code yes, but execution speed may be a detriment.
                A: Nancy chooses a classic, C++. She is a template wizard from Kentucky.
                ...
                A: The competition is getting intense. Bob is writing list comprehensions like a maniac.
                A: Unbelievable, Nancy has just written a recursive template. We have never seen this in a competition before! Truly an amazing feat!
                A: Bobs code is struggling, but that move to "push to the internals" has really payed off.
                A: It looks like however that it is all over. Nancy's template wizardry has payed off BIG!

                C++ is a perfectly valid school of magic.

                S 1 Reply Last reply
                3
                • fcarneyF fcarney

                  I have this image in my head of a game show called: Real Time Programming!
                  People face off and run interpreters to solve problems.
                  A = announcer
                  A: Bob makes a bold move in Python. Shorter code yes, but execution speed may be a detriment.
                  A: Nancy chooses a classic, C++. She is a template wizard from Kentucky.
                  ...
                  A: The competition is getting intense. Bob is writing list comprehensions like a maniac.
                  A: Unbelievable, Nancy has just written a recursive template. We have never seen this in a competition before! Truly an amazing feat!
                  A: Bobs code is struggling, but that move to "push to the internals" has really payed off.
                  A: It looks like however that it is all over. Nancy's template wizardry has payed off BIG!

                  S Offline
                  S Offline
                  Shayna
                  Banned
                  wrote on last edited by
                  #8
                  This post is deleted!
                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved