Search found 34 matches
- Sun May 19, 2024 3:07 pm
- Forum: Off Topic
- Topic: Chat GPT 4o Code
- Replies: 34
- Views: 14558
Re: Chat GPT 4o Code
So basically.. Same problems 3.5 and 4 had....
Phantom functions
Non-existent libraries
Broken base syntax
By the way it does the same with Python and Rust and it's way better at those... The fact every time someone brings this up at least one person acts like experienced coders have been ...
- Sun May 19, 2024 3:33 am
- Forum: Off Topic
- Topic: Chat GPT 4o Code
- Replies: 34
- Views: 14558
Re: Chat GPT 4o Code
What if the user already had an "Untitled - Notepad" window open? Then you'll likely reposition that while opening a new blank window as well.
If you read ChatGPT's code, you'll see that it uses the newly-opened Notepad handle, thus ensuring no existing Notepad window would be affected.
I'm ...
- Sat May 18, 2024 4:32 pm
- Forum: Off Topic
- Topic: Chat GPT 4o Code
- Replies: 34
- Views: 14558
Re: Chat GPT 4o Code
" It would be nice if the rainbow color could rotate. Please lets make this code as fast and as optimal as possible. Lets do the oposite of being wasteful this time."
Only problem was the couple of mod functions it thought you could just say x mod y instead of using it like a function and ...
Only problem was the couple of mod functions it thought you could just say x mod y instead of using it like a function and ...
- Sat May 18, 2024 12:33 pm
- Forum: Off Topic
- Topic: Chat GPT 4o Code
- Replies: 34
- Views: 14558
Re: Chat GPT 4o Code
" I would like you to optimize the code as much as possible while making it as wasteful as possible in memmory etc. Also if you can see some missing features please feel free to add to make it feel like a real game. " - I meant to tell it make it less wastefull oops! I'll have to change it later lol ...
- Sat May 18, 2024 6:18 am
- Forum: Off Topic
- Topic: Chat GPT 4o Code
- Replies: 34
- Views: 14558
Re: Chat GPT 4o Code
Wow it really can get you started or work as a filler. This is so much better than it was.
BarryG I am very surprised it managed that so well. It would be much faster than looking it up functions or examples. greatly increases productivity. Very cool!
r-i-v-e-r: Thank you for the in depth ...
BarryG I am very surprised it managed that so well. It would be much faster than looking it up functions or examples. greatly increases productivity. Very cool!
r-i-v-e-r: Thank you for the in depth ...
- Sat May 18, 2024 2:32 am
- Forum: Off Topic
- Topic: Chat GPT 4o Code
- Replies: 34
- Views: 14558
Re: Chat GPT 4o Code
I was very surpised as well. I have tried this in the past with many Large Language Models. They all really completely fail to understand purebasic because it is less known.
The code also looks pretty advanced, organized and just overall very well written which amazed me even more.
The code also looks pretty advanced, organized and just overall very well written which amazed me even more.
- Sat May 18, 2024 2:12 am
- Forum: Off Topic
- Topic: Chat GPT 4o Code
- Replies: 34
- Views: 14558
Chat GPT 4o Code
I thought this would be interesting to show. It seems that Chat Gpt can finally write good purebasic code. It only took one attempt.
i had to add initkeyboard() , ExamineKeyboard(), StartDrawing(ScreenOutput()), stopdrawing()
it was only missing these 4 lines.
; PureBasic Snake Game
; Basic ...
i had to add initkeyboard() , ExamineKeyboard(), StartDrawing(ScreenOutput()), stopdrawing()
it was only missing these 4 lines.
; PureBasic Snake Game
; Basic ...
- Tue Aug 03, 2021 5:27 am
- Forum: Coding Questions
- Topic: Speed up processing a certain string
- Replies: 15
- Views: 3224
Re: Speed up processing a certain string
if it's very slow and your using readstring on the files it maybe possible to speed it up by using readdata and just read from the memory directly.
Also you can speed it up a little more by using purebasic 6 (c backend) in compiler options with optimizations checked.
btw my computer is running at ...
Also you can speed it up a little more by using purebasic 6 (c backend) in compiler options with optimizations checked.
btw my computer is running at ...
- Tue Aug 03, 2021 5:14 am
- Forum: Coding Questions
- Topic: Speed up processing a certain string
- Replies: 15
- Views: 3224
Re: Speed up processing a certain string
Here is another way to do it. Seems to be a bit faster. Not sure if this is useful to you or not. It basically just filters everything.
If you think this is ok and need some changes if you could have bigger sample size it would be great maybe 100 lines? lol
Here are my results. code 1 is mine code ...
If you think this is ok and need some changes if you could have bigger sample size it would be great maybe 100 lines? lol
Here are my results. code 1 is mine code ...
- Thu Jul 29, 2021 4:24 pm
- Forum: Coding Questions
- Topic: drawtext doesn't work with customfilters?
- Replies: 7
- Views: 2126
Re: drawtext doesn't work with customfilters?
Thank you guys for the help :)
I came up with something similar Demivec but, but didn't commit to the full rgba lol. I was trying to check for alpha colors but, set it up incorrectly.
I ended up using your smaller solution. I also really appreciate the eye candy bits and effort on the longer ...
I came up with something similar Demivec but, but didn't commit to the full rgba lol. I was trying to check for alpha colors but, set it up incorrectly.
I ended up using your smaller solution. I also really appreciate the eye candy bits and effort on the longer ...
- Thu Jul 29, 2021 5:31 am
- Forum: Coding Questions
- Topic: drawtext doesn't work with customfilters?
- Replies: 7
- Views: 2126
drawtext doesn't work with customfilters?
Hmm thought this was working at one point am I missing something?
Global Window = OpenWindow(#PB_Any,0,0,100,100,"test")
Global Canvas = CanvasGadget(#PB_Any,0,0,100,100)
Procedure Endprogram()
End
EndProcedure
Procedure FilterCallback(x, y, SourceColor, TargetColor)
ProcedureReturn ...
Global Window = OpenWindow(#PB_Any,0,0,100,100,"test")
Global Canvas = CanvasGadget(#PB_Any,0,0,100,100)
Procedure Endprogram()
End
EndProcedure
Procedure FilterCallback(x, y, SourceColor, TargetColor)
ProcedureReturn ...
- Sun Jun 20, 2021 12:50 am
- Forum: Announcement
- Topic: DATA Tool - 50% smaller output - First sample code
- Replies: 21
- Views: 12757
Re: DATA Tool - 50% smaller output - First sample code
When I created mine it looked mostly chinese and worked great except for the extreme high amount of lag from the vast variety of characters... seems there are a lot a chinese characters in the unicode list. I was just running tests so that I would be able to post code with larger images without ...
- Sat Jun 19, 2021 5:29 pm
- Forum: Announcement
- Topic: DATA Tool - 50% smaller output - First sample code
- Replies: 21
- Views: 12757
Re: DATA Tool - 50% smaller output - First sample code
I also tried this a while ago, was quite funny... I used pretty much all of the unicode characters and while it certainly saved a bit space it really lagged the scrolling of the ide and other programs supporting unicode. 

- Sat Jun 19, 2021 5:16 pm
- Forum: Tricks 'n' Tips
- Topic: Simple example Tree Gadget w/ rightclick menu & drag and drop
- Replies: 5
- Views: 2742
Re: Simple example Tree Gadget w/ rightclick menu & drag and drop
I separated the paste procedure into three different procedures to help clear things up and in doing so I seem to have fixed a bug similar to what you are describing. Care to try again? Feels just a tad bit cleaner as well.
Thanks for your support! :D
Was actually using this as a quick editing ...
Thanks for your support! :D
Was actually using this as a quick editing ...
- Fri Jun 18, 2021 4:28 pm
- Forum: Tricks 'n' Tips
- Topic: Simple example Tree Gadget w/ rightclick menu & drag and drop
- Replies: 5
- Views: 2742
Re: Simple example Tree Gadget w/ rightclick menu & drag and drop
Sorry for the mess ;) try this one for those extra options you are looking for it was just a quick sketch : use drag and drop to access the options. There maybe bugs I didn't put much effort into it and needs some serious cleaning lol.
Global window = OpenWindow(#PB_Any,0,0,800,800,"",#PB_Window ...
Global window = OpenWindow(#PB_Any,0,0,800,800,"",#PB_Window ...