PureBasic 6.40 alpha 4 is ready, surprise inside !

Developed or developing a new product in PureBasic? Tell the world about it.
mikejs
Enthusiast
Enthusiast
Posts: 176
Joined: Thu Oct 21, 2010 9:46 pm

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Post by mikejs »

AZJIO wrote: Mon Feb 02, 2026 10:28 am AddFastStringStr
AddFastStringVal

AddFString()
AddFStringStr()

BufferString()
AddBufferStringStr()
AddBStringStr()

LenString()
AddLenStringStr()
AddLStringStr()

StringEx()
AddStringExStr()
Is there a performance reason why we would need all these Str variants?

Would 100,000 iterations of AddFStringStr(a, b) be faster than the same number of AddFString(a, Str(b))?

Because otherwise this seems like a lot of proliferation of functions - and incomplete as it would also need StrF, StrD, maybe Hex versions as well. Maybe even FormatDate()?

We already have a range of simple functions for turning variables of various kinds into strings with flexibility over the formatting, and I'm not sure we need many new functions that replicate all that, unless calling Str() etc all the time defeats the purpose.

(Or am I misunderstanding something here?)

Same argument applies whether it's FastString, StringBuilder, or whatever as the base name of the function.

On that question, what about BuildString()? By analogy with ReadFile(), CreateDirectory(), etc. PB is generally more "VerbNoun()" than "NounVerber()".
Axolotl
Addict
Addict
Posts: 934
Joined: Wed Dec 31, 2008 3:36 pm

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Post by Axolotl »

Sometimes I wish there was a (sensible) naming convention (Namespace, Module, etc.) for all constants, commands, and functions. That would make adding new libraries and system functions more future-proof.
Even if it's not very likely, the new names could lead to conflicts with existing code. (Just my thoughts while reading your comments)
No complaints, please keep up the good work.
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
User avatar
tola
User
User
Posts: 14
Joined: Tue May 03, 2011 10:13 am
Location: France - Loire 42

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Post by tola »

Hello,

With version 6.40 beta 3, I can neither save nor load files. PureBasic freezes when the save or load dialog boxes appear.

I have an old PC running Windows 10 with several versions of PureBasic in different directories.

I disabled the Windows 10 antivirus, but it didn't help.

I tried using other directories, but that didn't work either.

Is anyone else experiencing the same issue?
+--=--=--=--=--=--=--=--=--=--+
french coder
User avatar
mk-soft
Always Here
Always Here
Posts: 6579
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Post by mk-soft »

tola wrote: Mon Feb 02, 2026 3:02 pm Hello,
With version 6.40 beta 3, I can neither save nor load files. PureBasic freezes when the save or load dialog boxes appear.
I have an old PC running Windows 10 with several versions of PureBasic in different directories.
I disabled the Windows 10 antivirus, but it didn't help.
I tried using other directories, but that didn't work either.
Is anyone else experiencing the same issue?
Works fine here. Send a PN with test-code
My Projects EventDesigner V3 / ThreadToGUI / OOP-BaseClass / Windows: Module ActiveScript
PB v3.30 / v5.75 - OS Mac Mini - VM Window Pro / Linux Ubuntu
Downloads on my OneDrive
CalamityJames
User
User
Posts: 83
Joined: Sat Mar 13, 2010 4:50 pm

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Post by CalamityJames »

Not the same issue, but I have had repeated crashes when loading a project from the "Recent Projects" menu item. If the project is loaded on PureBasic launch, as I have it set to do, there is no problem. I can drop and drag a project file with no difficulty. The problem is not confined to one project file, and does not happen with earlier versions of PureBasic
User avatar
syntonica
User
User
Posts: 26
Joined: Fri Feb 06, 2026 10:34 pm

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Post by syntonica »

Code: Select all

b$ = FastString(0, 64000)
For i = 1 To 250000
  AppendFastString(0, a$)
  b$+"*"
Next
Question to anyone:
What strategy is being used to expand the string's capacity, if any? Normally, I see it doubled and reallocated, but this can get pretty dicey with very large strings.
Fred
Administrator
Administrator
Posts: 18513
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Post by Fred »

It's not doubled, it's the size of the appened string + the buffer size you defined in CreateStringBuilder()
User avatar
syntonica
User
User
Posts: 26
Joined: Fri Feb 06, 2026 10:34 pm

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Post by syntonica »

Fred wrote: Mon Feb 09, 2026 10:25 am It's not doubled, it's the size of the appened string + the buffer size you defined in CreateStringBuilder()
Oh, that's perfect. Thank you!
I grind through lots of strings and this helps.
User avatar
minimy
Addict
Addict
Posts: 868
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: PureBasic 6.40 alpha 3 is ready, surprise inside !

Post by minimy »

Thank you very much for this new version.
Great addition the new string super fast.
Donloaded and testing.
If translation=Error: reply="Sorry, Im Spanish": Endif
Fred
Administrator
Administrator
Posts: 18513
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.40 alpha 4 is ready, surprise inside !

Post by Fred »

2026-02-12: alpha 4 is out, the assembly x64 backend is back in business ! If you can, please test it to see if everything works as expected.
User avatar
marcoagpinto
Addict
Addict
Posts: 1090
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: PureBasic 6.40 alpha 4 is ready, surprise inside !

Post by marcoagpinto »

Fred wrote: Thu Feb 12, 2026 8:43 am 2026-02-12: alpha 4 is out, the assembly x64 backend is back in business ! If you can, please test it to see if everything works as expected.
Thanks, @Fred and team.
devulder
User
User
Posts: 21
Joined: Fri Dec 19, 2008 5:52 pm

Re: PureBasic 6.40 alpha 4 is ready, surprise inside !

Post by devulder »

Hi,
On MacOS, install 6.40 alpha 4
When running window title display "PureBasic 6.30 beta 7"
MacOS users can you confirm ?
Fred
Administrator
Administrator
Posts: 18513
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.40 alpha 4 is ready, surprise inside !

Post by Fred »

It's only for Windows x64 for now (still in alpha)
User avatar
Kiffi
Addict
Addict
Posts: 1522
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: PureBasic 6.40 alpha 4 is ready, surprise inside !

Post by Kiffi »

devulder wrote: Thu Feb 12, 2026 4:46 pmOn MacOS...
The alpha version is only available for Windows for the time being
Hygge
User avatar
idle
Always Here
Always Here
Posts: 6197
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: PureBasic 6.40 alpha 4 is ready, surprise inside !

Post by idle »

web server is working ok with 6.40 A4 asm backend
500ms to load 1.6mb from Sydney to Auckland
3026ms to load 1.6mb from Frankfurt to Auckland
Post Reply