PureBasic 6.00 released !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Lord
Addict
Addict
Posts: 847
Joined: Tue May 26, 2009 2:11 pm

Re: PureBasic 6.00 Alpha 1 released !

Post by Lord »

@walbus/Saki:
cas wrote: Fri May 28, 2021 11:52 am

Code: Select all

CompilerIf #PB_Compiler_Processor=#PB_Processor_C
  Debug "c backend"
CompilerElse
  Debug "fasm backend"
CompilerEndIf
This was a tip by cas!
Image
Aleks_Longard
User
User
Posts: 59
Joined: Mon Dec 24, 2012 9:07 am
Location: Germany, Munich

Re: PureBasic 6.00 Alpha 1 released !

Post by Aleks_Longard »

Fred!
It's very cool news!!!
My very very big thanks for new compiler!

With this new PureBasic i can delete my C compiler!
Sory my bad english
User avatar
mback2k
Enthusiast
Enthusiast
Posts: 257
Joined: Sun Dec 02, 2007 12:11 pm
Location: Germany

Re: PureBasic 6.00 Alpha 1 released !

Post by mback2k »

Thank you very much, Fred and team! In my big projects only the following constructs stopped working with the C backend:

Code: Select all

ExtractJSONStructure(JSONValue(File), @Items\ServiceProviders(), ServiceProviderItem)
gives

Code: Select all

purebasic.c:7121:19: error: expected expression before 's_serviceprovideritem'
 void* p672=(void*)s_serviceprovideritem;
                   ^~~~~~~~~~~~~~~~~~~~~
and

Code: Select all

End SendNotifyMessage_(#HWND_BROADCAST, Temp\Application, 0, #MessageWindow)
gives

Code: Select all

purebasic.c:8059:1: error: 'PB_ExitCode' undeclared (first use in this function); did you mean 'PB_ErrorCode'?
 PB_ExitCode=65535;
 ^~~~~~~~~~~
 PB_ErrorCode
Unfortunately I am unable to reproduce these errors with smaller code snippets outside of my projects context.
User avatar
mk-soft
Always Here
Always Here
Posts: 5333
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic 6.00 Alpha 1 released !

Post by mk-soft »

Please report bugs in Bug C-backEnd. PB_ExitCode has already been reported.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Marc56us
Addict
Addict
Posts: 1477
Joined: Sat Feb 08, 2014 3:26 pm

Re: PureBasic 6.00 Alpha 1 released !

Post by Marc56us »

It would be nice if PureBasic 6.00 also modernized the IDE and help theme,
following for example the one you put for SpiderBasic.
(The same colors for the code on this forum would also be a plus.)

https://www.spiderbasic.com/documentati ... start.html
Image

https://www.spiderbasic.com/documentati ... _help.html
Image

For possible new customers, the current PB IDE and Help theme: yellow background and Courier font reminds too much of old Windows 95 programs, or even Windows 3.x.

:wink:
User_Russian
Addict
Addict
Posts: 1443
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.00 Alpha 1 released !

Post by User_Russian »

Marc56us wrote: Thu Jun 03, 2021 8:20 amIt would be nice if PureBasic 6.00 also modernized the IDE and help theme
I disagree!
No need to modernized. Let it be as it is now.
User avatar
Lord
Addict
Addict
Posts: 847
Joined: Tue May 26, 2009 2:11 pm

Re: PureBasic 6.00 Alpha 1 released !

Post by Lord »

User_Russian wrote: Thu Jun 03, 2021 9:47 am
Marc56us wrote: Thu Jun 03, 2021 8:20 amIt would be nice if PureBasic 6.00 also modernized the IDE and help theme
I disagree!
No need to modernized. Let it be as it is now.
I agree 100%. Let the IDE as it is.
Image
User avatar
ChrisR
Addict
Addict
Posts: 1127
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: PureBasic 6.00 Alpha 1 released !

Post by ChrisR »

I agree 100% with Marc56, Like what, tastes and colors :wink:
I personally find the default theme really bland and retro for a modern language. But with the benefit of being restful for eyes.
It would be good to modernize the default theme in my opinion and to follow the Windows's theme evolutions with an entire team dedicated to ergonomics.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: PureBasic 6.00 Alpha 1 released !

Post by BarryG »

ChrisR wrote: Thu Jun 03, 2021 1:01 pmthe benefit of being restful for eyes
Discussion 14 years ago about the yellow being restful -> viewtopic.php?f=7&t=29500
User avatar
marcoagpinto
Addict
Addict
Posts: 939
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: PureBasic 6.00 Alpha 1 released !

Post by marcoagpinto »

I sent a private e-mail to Fred weeks ago and no reply :cry:

So I will make it public:
Will 6.0 use fast strings?

Strings are currently very slow because in every access to them PB scans until it reaches the end.

The idea would be to have the size of each string stored in a 32-bit number (up to 4 GB strings) and it would only seek for the end if all the 32-bits were set to 1 (meaning that the string could be over 4 GB).

I know this will consume more RAM but it could be in a setting for users to turn it on/off.

This is an idea worth checking for.

Thank you very much!
Also, change V6.0 licence to a yearly subscription so that you can get more money for development.

EDIT:
Also add a two-pass compiler to optimise the code, such as:
x+10+5+5
would become compiled as:
x+20
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: PureBasic 6.00 Alpha 1 released !

Post by Keya »

marcoagpinto wrote: Tue Jun 08, 2021 6:32 am Also add a two-pass compiler to optimise the code, such as:
x+10+5+5
would become compiled as:
x+20
That would be automatically handled by the gcc C compiler.
That's one of the real beauties of the new C backend - so many optimisations from one of the smartest compilers on the planet
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: PureBasic 6.00 Alpha 1 released !

Post by Keya »

If you're curious about all the optimisations that our source code will now be subject to with the new C backend, thanks to one of the best optimising compilers in the world - GCC - please check out this wikipedia page: https://en.wikipedia.org/wiki/Optimizing_compiler
This also FREES Fred from having to focus on optimisation, now that a state-of-the-art compiler takes care of that, enabling Fred to focus on things like bugfixes and new features.
It was a very brave move for Fred to move to the C backend, but I can only see it as an absolute winner 👍 :) A POWERFUL upgrade.
User avatar
marcoagpinto
Addict
Addict
Posts: 939
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: PureBasic 6.00 Alpha 1 released !

Post by marcoagpinto »

Keya wrote: Tue Jun 08, 2021 2:20 pm If you're curious about all the optimisations that our source code will now be subject to with the new C backend, thanks to one of the best optimising compilers in the world - GCC - please check out this wikipedia page: https://en.wikipedia.org/wiki/Optimizing_compiler
This also FREES Fred from having to focus on optimisation, now that a state-of-the-art compiler takes care of that, enabling Fred to focus on things like bugfixes and new features.
It was a very brave move for Fred to move to the C backend, but I can only see it as an absolute winner 👍 :) A POWERFUL upgrade.
@Keya

Will it also use "fast strings" out of the box for ultra speed?

Thanks!
User avatar
Keya
Addict
Addict
Posts: 1891
Joined: Thu Jun 04, 2015 7:10 am

Re: PureBasic 6.00 Alpha 1 released !

Post by Keya »

marcoagpinto wrote: Wed Jun 09, 2021 1:25 am @Keya
Will it also use "fast strings" out of the box for ultra speed?
I would guess no, because C uses null-terminated "C strings" - the same as Purebasic has always used.
There have been examples posted though of "fast strings" (eg storing the length before the string), but I'd be surprised if it became native
hoerbie
Enthusiast
Enthusiast
Posts: 119
Joined: Fri Dec 06, 2013 11:57 am
Location: DE/BY/MUC

Re: PureBasic 6.00 Alpha 1 released !

Post by hoerbie »

Hi,

I would like to ask for a new Alpha 2 version, as there are now so many [Done] Bugs.

Greets, hoerbie
Post Reply