|
Why would someone use Code Project for answers to questions if they are using Chat GPT? The integration would not make any sense, really.
I have a paid subscription to Open AI ChatGPT and use it all the time. Not ashamed of it either. I usually use Google to cross check questionable answers for accuracy, but it gets me 80-90% of the way there.
Just saying.
|
|
|
|
|
I am just curious as a hobbyist programmer.
I m used to asking real people for help on Codeproject when I was learning C++ back in the day. I hate C++ thank goodness for C#.
I believe tools like ChatGPT should be used like an assistant.
I am honestly making so much progress in my stuff lately because of ChatGPT.
I wouldn't mind if Codeproject had some sort of interface is all.
|
|
|
|
|
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
|
|
|
|
|
What C++ compiler/IDE are you using?
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
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
|
|
|
|
|
Can gcc be integrated in VS Code as a default compiler/debugger?
Advertise here β minimum three posts per day are guaranteed.
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
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.
|
|
|
|
|
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
|
|
|
|
|
You're not even talking in terms of an "option". "Time is pressing": use two browser tabs.
(Use it or lose it)
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
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.
|
|
|
|
|
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?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I haven't used it. What's ChatGPT's response to "Plz send codez URGENT!"? 
|
|
|
|
|
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.
|
|
|
|
|
|
Wordle 703 2/6
π©π¨β¬β¬π¨
π©π©π©π©π©
|
|
|
|
|
Wordle 703 4/6
β¬π©β¬β¬π¨
β¬π©β¬β¬π©
π©π©β¬β¬π©
π©π©π©π©π©
Brain not in gear! I forgot to use the yellow I found on the 1st line until the 4th line! 
|
|
|
|
|
Wordle 703 3/6
β¬β¬β¬π¨β¬
β¬π©π©β¬β¬
π©π©π©π©π©
|
|
|
|
|
Wordle 703 4/6
β¬β¬β¬β¬β¬
β¬π¨π©β¬β¬
β¬β¬π©π©β¬
π©π©π©π©π©
|
|
|
|
|
Wordle 703 4/6*
β¬π¨β¬β¬π¨
β¬β¬β¬π¨π¨
β¬β¬π©π©β¬
π©π©π©π©π©
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 703 4/6
π¨β¬β¬β¬β¬
π©β¬β¬π©β¬
β¬π©β¬β¬β¬
π©π©π©π©π©
|
|
|
|
|
π©π¨β¬β¬π¨
π©β¬π¨π¨β¬
π©π©π©π©π©
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 703 4/6
β¬β¬β¬π©π¨
β¬β¬π©π©β¬
β¬β¬π©π©π©
π©π©π©π©π©
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 703 3/6*
β¬β¬π©β¬π©
β¬π¨π©π¨π©
π©π©π©π©π©
|
|
|
|