Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. You know this right Chris?

You know this right Chris?

Scheduled Pinned Locked Moved The Lounge
javacomdebuggingtoolshelp
16 Posts 10 Posters 3 Views 1 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.
  • H honey the codewitch

    I absolutely love C++. I love that you can essentially open a dialogue with the compiler in the code instead of just the runtime executable. In essence you can make the compiler run code at compile time to generate code involving complex compile time computations. The closest thing C# has is that new code generation feature, which works entirely differently, though admittedly I haven't use it. Aside from that, no language can do what C++ can do in that respect, at least to my knowledge. Metaprogramming is powerful.

    There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

    J Offline
    J Offline
    jmaida
    wrote on last edited by
    #6

    What C++ compiler/IDE are you using?

    "A little time, a little trouble, your better day" Badfinger

    H 1 Reply Last reply
    0
    • J JoeSox

      Chris, have you thought of integrating ChatGPT to help people debug? I am just curious if the asking for help has or will go down after ChatGPT? I am not using it to debug, no, not me, never, I prefer humans. I hope the human aspect always stays around but some of us like myself don't wish to wait for a reply sometimes when time is pressing. Or maybe Codeproject just expects all of us to be using tools like ChatGPT? asking for a friend. :java: :bob:

      Later, JoeSox “Write hard and clear about what hurts.” - Ernest Hemingway Last.fm - CPForAndroid++- Earthbotics.com

      1 Offline
      1 Offline
      11917640 Member
      wrote on last edited by
      #7

      JoeSox wrote:

      Chris, have you thought of integrating ChatGPT to help people debug?

      Better to ask ChatGPT: ChatGPT, have you thought of registering in CodeProject to help people debug? This may be more effective and doesn't require any development.

      1 Reply Last reply
      0
      • J JoeSox

        Chris, have you thought of integrating ChatGPT to help people debug? I am just curious if the asking for help has or will go down after ChatGPT? I am not using it to debug, no, not me, never, I prefer humans. I hope the human aspect always stays around but some of us like myself don't wish to wait for a reply sometimes when time is pressing. Or maybe Codeproject just expects all of us to be using tools like ChatGPT? asking for a friend. :java: :bob:

        Later, JoeSox “Write hard and clear about what hurts.” - Ernest Hemingway Last.fm - CPForAndroid++- Earthbotics.com

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #8

        So the number of "how do I debug my code (that I'm not going to show you)" questions go down, and the number of "how do I get ChatGPT to debug my code (that I'm not going to show you)" go up? :rolleyes:


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        1 Reply Last reply
        0
        • J jmaida

          What C++ compiler/IDE are you using?

          "A little time, a little trouble, your better day" Badfinger

          H Offline
          H Offline
          honey the codewitch
          wrote on last edited by
          #9

          i use gcc and vs code usually

          There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

          S 1 Reply Last reply
          0
          • J JoeSox

            Chris, have you thought of integrating ChatGPT to help people debug? I am just curious if the asking for help has or will go down after ChatGPT? I am not using it to debug, no, not me, never, I prefer humans. I hope the human aspect always stays around but some of us like myself don't wish to wait for a reply sometimes when time is pressing. Or maybe Codeproject just expects all of us to be using tools like ChatGPT? asking for a friend. :java: :bob:

            Later, JoeSox “Write hard and clear about what hurts.” - Ernest Hemingway Last.fm - CPForAndroid++- Earthbotics.com

            StarNamer workS Offline
            StarNamer workS Offline
            StarNamer work
            wrote on last edited by
            #10

            I haven't used it. What's ChatGPT's response to "Plz send codez URGENT!"? :D

            S 1 Reply Last reply
            0
            • H honey the codewitch

              i use gcc and vs code usually

              There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

              S Offline
              S Offline
              Single Step Debugger
              wrote on last edited by
              #11

              Can gcc be integrated in VS Code as a default compiler/debugger?

              Advertise here – minimum three posts per day are guaranteed.

              H 2 Replies Last reply
              0
              • S Single Step Debugger

                Can gcc be integrated in VS Code as a default compiler/debugger?

                Advertise here – minimum three posts per day are guaranteed.

                H Offline
                H Offline
                honey the codewitch
                wrote on last edited by
                #12

                Yeah. If on windows you just have to install something like MiniGW to get gcc to run under windows and then VS Code will detect the compilers. It doesn't work as well with WSL, but there's an extension for that which I haven't used and seems like work.

                There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

                1 Reply Last reply
                0
                • S Single Step Debugger

                  Can gcc be integrated in VS Code as a default compiler/debugger?

                  Advertise here – minimum three posts per day are guaranteed.

                  H Offline
                  H Offline
                  honey the codewitch
                  wrote on last edited by
                  #13

                  I should add, there are subtle differences between MSVC and GCC in the way they generate function returns (and possibly other things) One side effect of this, is calling DirectX or GDI+ functions can lead to crashing with GCC. You have to modify a system header to make it work, but you can do so in a non-destructive manner. I won't get into it here, because it's a lot of stuff, but if you ever run into that situation let me know and I'll give you the deets.

                  There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

                  1 Reply Last reply
                  0
                  • StarNamer workS StarNamer work

                    I haven't used it. What's ChatGPT's response to "Plz send codez URGENT!"? :D

                    S Offline
                    S Offline
                    Slacker007
                    wrote on last edited by
                    #14

                    ChatGPT is what ALL people will use for urgent code please requests. ChatGPT does not give you negative feedback like "we are not going to do the work for you" or "try Google". Help forums will not be used much in the near future.

                    1 Reply Last reply
                    0
                    • H honey the codewitch

                      I absolutely love C++. I love that you can essentially open a dialogue with the compiler in the code instead of just the runtime executable. In essence you can make the compiler run code at compile time to generate code involving complex compile time computations. The closest thing C# has is that new code generation feature, which works entirely differently, though admittedly I haven't use it. Aside from that, no language can do what C++ can do in that respect, at least to my knowledge. Metaprogramming is powerful.

                      There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

                      J Offline
                      J Offline
                      jschell
                      wrote on last edited by
                      #15

                      honey the codewitch wrote:

                      In essence you can make the compiler run code at compile time to generate code involving complex compile time computations.

                      Which hopefully even you use very seldom. I have been doing code generation since the 80's (or perhaps early 90s?) I have done it in many languages. Mostly one shot but sometimes even as part of the build. No need to do it as you describe though. There is enough complexity in what I do.

                      H 1 Reply Last reply
                      0
                      • J jschell

                        honey the codewitch wrote:

                        In essence you can make the compiler run code at compile time to generate code involving complex compile time computations.

                        Which hopefully even you use very seldom. I have been doing code generation since the 80's (or perhaps early 90s?) I have done it in many languages. Mostly one shot but sometimes even as part of the build. No need to do it as you describe though. There is enough complexity in what I do.

                        H Offline
                        H Offline
                        honey the codewitch
                        wrote on last edited by
                        #16

                        It's primarily about optimizing but because of the way it works you must design for it. If it serves the design, I'll use it. For example, my graphics library supports arbitrary binary footprints and representations for pixels. The only way to compute the shifts to get at the individual channels efficiently is to do so during compile time. One of the places I hated using it, but it was really the only way, is building execution chains, similar to a SQL execution plan except at compile time, to spit graphics at a display or another draw destination in the way that most efficient for it. At runtime, even computing that would have not been worth any savings you'd pick up downstream.

                        There's smoke in my iris But I painted a sunny day on the insides of my eyelids So I'm ready now (What you ready for?) I'm ready for life in this city And my wings have grown almost enough to lift me

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups