This was a tip by cas!cas wrote: ↑Fri May 28, 2021 11:52 amCode: Select all
CompilerIf #PB_Compiler_Processor=#PB_Processor_C Debug "c backend" CompilerElse Debug "fasm backend" CompilerEndIf
PureBasic 6.00 released !
Re: PureBasic 6.00 Alpha 1 released !
@walbus/Saki:
-
- User
- Posts: 59
- Joined: Mon Dec 24, 2012 9:07 am
- Location: Germany, Munich
Re: PureBasic 6.00 Alpha 1 released !
Fred!
It's very cool news!!!
My very very big thanks for new compiler!
With this new PureBasic i can delete my C compiler!
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
Re: PureBasic 6.00 Alpha 1 released !
Thank you very much, Fred and team! In my big projects only the following constructs stopped working with the C backend:
gives
and
gives
Unfortunately I am unable to reproduce these errors with smaller code snippets outside of my projects context.
Code: Select all
ExtractJSONStructure(JSONValue(File), @Items\ServiceProviders(), ServiceProviderItem)
Code: Select all
purebasic.c:7121:19: error: expected expression before 's_serviceprovideritem'
void* p672=(void*)s_serviceprovideritem;
^~~~~~~~~~~~~~~~~~~~~
Code: Select all
End SendNotifyMessage_(#HWND_BROADCAST, Temp\Application, 0, #MessageWindow)
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
Re: PureBasic 6.00 Alpha 1 released !
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
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: PureBasic 6.00 Alpha 1 released !
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
https://www.spiderbasic.com/documentati ... _help.html
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.
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
https://www.spiderbasic.com/documentati ... _help.html
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.
-
- Addict
- Posts: 1443
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: PureBasic 6.00 Alpha 1 released !
I agree 100%. Let the IDE as it is.User_Russian wrote: ↑Thu Jun 03, 2021 9:47 amI disagree!
No need to modernized. Let it be as it is now.
Re: PureBasic 6.00 Alpha 1 released !
I agree 100% with Marc56, Like what, tastes and colors
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.
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.
Re: PureBasic 6.00 Alpha 1 released !
Discussion 14 years ago about the yellow being restful -> viewtopic.php?f=7&t=29500
- marcoagpinto
- Addict
- Posts: 947
- Joined: Sun Mar 10, 2013 3:01 pm
- Location: Portugal
- Contact:
Re: PureBasic 6.00 Alpha 1 released !
I sent a private e-mail to Fred weeks ago and no reply
So I will make it public:
EDIT:
Also add a two-pass compiler to optimise the code, such as:
x+10+5+5
would become compiled as:
x+20
So I will make it public:
Also, change V6.0 licence to a yearly subscription so that you can get more money for development.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!
EDIT:
Also add a two-pass compiler to optimise the code, such as:
x+10+5+5
would become compiled as:
x+20
Re: PureBasic 6.00 Alpha 1 released !
That would be automatically handled by the gcc C compiler.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's one of the real beauties of the new C backend - so many optimisations from one of the smartest compilers on the planet
Re: PureBasic 6.00 Alpha 1 released !
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.
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.
- marcoagpinto
- Addict
- Posts: 947
- Joined: Sun Mar 10, 2013 3:01 pm
- Location: Portugal
- Contact:
Re: PureBasic 6.00 Alpha 1 released !
@KeyaKeya 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.
Will it also use "fast strings" out of the box for ultra speed?
Thanks!
Re: PureBasic 6.00 Alpha 1 released !
I would guess no, because C uses null-terminated "C strings" - the same as Purebasic has always used.marcoagpinto wrote: ↑Wed Jun 09, 2021 1:25 am @Keya
Will it also use "fast strings" out of the box for ultra speed?
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
Re: PureBasic 6.00 Alpha 1 released !
Hi,
I would like to ask for a new Alpha 2 version, as there are now so many [Done] Bugs.
Greets, hoerbie
I would like to ask for a new Alpha 2 version, as there are now so many [Done] Bugs.
Greets, hoerbie