Search found 2793 matches

by pdwyer
Sun May 07, 2023 1:50 pm
Forum: General Discussion
Topic: PB IDE, how to turn on procedure Info?
Replies: 2
Views: 311

PB IDE, how to turn on procedure Info?

I seem to have turned off the IDE's feature so that when you type a " ( " after a function name that you get details of the parameters that go into it. I was likely playing with auto-complete or something in the past and turned this off. Autocomplete works fine but I can't find a settings ...
by pdwyer
Sun Feb 05, 2023 1:59 pm
Forum: General Discussion
Topic: Purebasic support from GPT-Chat...
Replies: 29
Views: 3145

Re: Purebasic support from GPT-Chat...

Has any one read the "Attention is all you need" article? At first it doesn't seem that difficult to understand (at a high, theoretical level) but if you start trying to implement it (like you would your own ANN) you find it's a bit of a rabbit hole for the dependencies. Curious is anyone ...
by pdwyer
Wed Dec 28, 2022 12:29 pm
Forum: General Discussion
Topic: Purebasic support from GPT-Chat...
Replies: 29
Views: 3145

Re: Purebasic support from GPT-Chat...

Funnily, in the post above I mentioned "powerbasic" and not "purebasic" which is an odd mistake for me to make as I haven't used powerbasic for 15 years! :lol: Trying to correct myself in that conversation with GPT led me in a circle Anyway, looks like it wasn't able to answer th...
by pdwyer
Wed Dec 28, 2022 11:55 am
Forum: General Discussion
Topic: Purebasic support from GPT-Chat...
Replies: 29
Views: 3145

Re: Purebasic support from GPT-Chat...

ChatGPT can apparently hardly provide anything worthy of the name "support". We have already experienced that it told a newbie complete nonsense, which we then had to correct here on the forum. That is absurd. Little John, I thought this would be a good challenge, I'm not doing this to be...
by pdwyer
Tue Dec 27, 2022 12:37 pm
Forum: General Discussion
Topic: Purebasic support from GPT-Chat...
Replies: 29
Views: 3145

Re: Purebasic support from GPT-Chat...

Perhaps my example wasn't good. It was merely to show that it had PB in scope of it's training algo. I guess as far as it's output performance it was a poor example. OpenAI GPT is currently way ahead of any of the competition and when it comes to natural language processing and context recognition i...
by pdwyer
Mon Dec 26, 2022 1:53 pm
Forum: General Discussion
Topic: Purebasic support from GPT-Chat...
Replies: 29
Views: 3145

Re: Purebasic support from GPT-Chat...

A random followup in the conversation: is it possible to use opencl in purebasic? reply Yes, it is possible to use OpenCL in PureBasic. OpenCL (Open Computing Language) is a framework for writing programs that can be executed on a wide range of hardware platforms, including CPUs, GPUs, and other typ...
by pdwyer
Mon Dec 26, 2022 1:49 pm
Forum: General Discussion
Topic: Purebasic support from GPT-Chat...
Replies: 29
Views: 3145

Purebasic support from GPT-Chat...

I've been playing with GPT-Chat and amazed how good it is at writing code. So I gave it a very quick PB test to see if it knows PB too... I'm not sure if you've been playing with this tool but I've been talking to it for a couple of hours tonight and I think the world just changed. :shock: (And I do...
by pdwyer
Sun Nov 20, 2022 12:04 pm
Forum: General Discussion
Topic: Memory leaks using ReadProgramString, RunProgram, WriteProgramStringN etc?
Replies: 0
Views: 329

Memory leaks using ReadProgramString, RunProgram, WriteProgramStringN etc?

I don't think this is a PB issue as such, more likely best practices when using IO communication between processes using RunProgram ReadProgramString WriteProgramStringN AvailableProgramOutput etc I'm not sure if I have a specific question in this case, I'm just wondering if anyone has used these fo...
by pdwyer
Sat Oct 22, 2022 5:09 am
Forum: Coding Questions
Topic: Can I use "Dynamic numbering" in my code, if so, how?
Replies: 9
Views: 804

Re: Can I use "Dynamic numbering" in my code, if so, how?

Wow,

I'm going to need some time to study this.

I'm curious about your code auto-gen thingy too
by pdwyer
Mon Oct 17, 2022 2:48 pm
Forum: Coding Questions
Topic: Can I use "Dynamic numbering" in my code, if so, how?
Replies: 9
Views: 804

Re: Can I use "Dynamic numbering" in my code, if so, how?

Thanks MK-Soft, you have given me some ideas to build on
by pdwyer
Mon Oct 17, 2022 2:35 pm
Forum: Coding Questions
Topic: How to use online API ?
Replies: 7
Views: 1353

Re: How to use online API ?

I went down this rabbit hole a little but perhaps I'm not the best to give advice as I struggled. PB has a json lib but I found it quite difficult to use and for simple stuff just stayed with string concatenation manually as it was not intuitive If you need to use complex json in PB, spend some time...
by pdwyer
Sun Oct 16, 2022 1:23 pm
Forum: Coding Questions
Topic: Can I use "Dynamic numbering" in my code, if so, how?
Replies: 9
Views: 804

Re: Can I use "Dynamic numbering" in my code, if so, how?

Looking at the PB help file in the section called "PureBasic objects" I realise that these are some kind of library for statically linking to the final executable but I'd like to create a module that works in a similar way but have it in a PBI file or DLL rather than a statically linked li...
by pdwyer
Sun Oct 16, 2022 11:29 am
Forum: Coding Questions
Topic: Can I use "Dynamic numbering" in my code, if so, how?
Replies: 9
Views: 804

Can I use "Dynamic numbering" in my code, if so, how?

I'd like to create a module (several actually) where a create() call can create an instance using #PB_Any and I return a handle/id It sounds like it works similar to PB Object handles for managing images, files, connections etc. Does anyone have any boilerplate code for how to do something like this...
by pdwyer
Sun May 15, 2022 1:29 pm
Forum: General Discussion
Topic: NBody UI (Thanks Jack for the code)
Replies: 3
Views: 519

Re: NBody UI (Thanks Jack for the code)

If you want to see older trails, if you set: VectorSourceColor(RGBA(0,0, 0, 40)) to VectorSourceColor(RGBA(255,255, 255, 40)) you can watch the change. (eg after tweaking a mass or x position so that the orbits cross and then wait for a bit till they planets nearly collide all sorts of fun things ca...