Page 20 of 42
Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 3:41 pm
by Marc56us
Yeeeesssss !
Raspberry Model B
Debian
Code (console for now)
Code: Select all
OpenConsole()
PrintN("Hello 1st PureBasic program on Raspberry pi!")
Input()
CloseConsole()
End
compile
Code: Select all
# ./pbcompiler HelloPureBasic.pb -e HelloPureBasic
PureBasic 6.00 Beta 1 - C Backend (Linux - arm32)
Loading external modules...
Starting compilation...
Starting compilation...
7 lines processed.
Creating the executable.
- Feel the ..PuRe.. Power -
Run
Code: Select all
# ./HelloPureBasic
Hello 1st PureBasic program on Raspberry pi!
"Hello World" works so the rest will follow.

Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 3:52 pm
by Fred
The IDE runs, so it should be no problem. BTW, I'm using the IDE using ssh+X redirect and VcXsrv on Windows, and the IDE is displayed on the Windows which makes the dev very easy.
Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 4:32 pm
by kenmo
Awesome! Excited for RasPi as a new target platform, and more Linux focus (as Windows/Mac have been driving me more toward the Linux world

)
Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 5:08 pm
by Marc56us
Fred wrote: Fri Nov 26, 2021 3:52 pm
The IDE runs, so it should be no problem. BTW, I'm using the IDE using ssh+X redirect and VcXsrv on Windows, and the IDE is displayed on the Windows which makes the dev very easy.
Yes! It works.
Thanks for the tip.
It took me a long time to get it to work: I thought VcXsrv was not working because I had a black screen for several minutes but it was due to the extreme slowness of the Raspberry 2 compared to my PC.
PB Windows 10 with above PB on Raspberry (remote display with VcXsrv)

Awsome, Fred and Team
Well, now I have to remember everything I did to get here... (fortunately by doing it in command line it's enough to take the history files and to make cards of it)

Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 5:11 pm
by mk-soft
Big thanks,
The WebGadget runs again on Ubuntu 21.04
So my WebKitGadget project is obsolete.
Under macOS it is still a problem with the IDE. Maybe I have time to find the crash in the next days.
Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 6:49 pm
by Wolfram
Thanks Fred!
Can someone give me an example how to use the C backend on macOS please?
Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 7:11 pm
by mk-soft
Wolfram wrote: Fri Nov 26, 2021 6:49 pm
Thanks Fred!
Can someone give me an example how to use the C backend on macOS please?
Open the purebasic.app package with the Finder and select the file pbcompilerc in the compilers folder. Copy the path at the bottom from Finder of the status bar (context menu).
Under pb settings in compilers, insert and add the path.
Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 9:26 pm
by Seymour Clufley
Thank you for this. It must have been a huge amount of work, so please know that it is appreciated.
Now please, for the love of God, make it easier to donate to you - including crypto.
Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 9:42 pm
by idle
congratulations on the long slog to get the c backend running on arm really looked forward to this for a long time
Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 9:44 pm
by netmaestro
So when we push 'compile/run' from the IDE with Beta 1 for Windows are we automatically getting the C backend?
Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 9:51 pm
by fsw
Hi Fred,
Thank you very much, for the M1 version.
Will download it right away!
Question: does PB use Metal on macOS or do you plan to use it in the future?
Thank you for your dedication to this neat programming language.
Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 9:57 pm
by skywalk
Fred, you always make the Holidays special! This is my favorite gift

Can't wait to unwrap it...
Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 11:09 pm
by DeanH
Thank you very much for completing the Beta test version! I have recompiled all 12 of my library system's exe's using the 64-bit C backend. The compiler crashed twice but recompiling immediately worked. Apart from this, everything appears good. So far I have not seen any major speed differences between the C and ASM compilations.
I noticed the SQLite verison is still 3.33. Is that to be updated in the final release? The current version is 3.36. It contains some useful extra functions such as Drop Column.
Re: PureBasic 6.00 Beta 1 released !
Posted: Fri Nov 26, 2021 11:24 pm
by Otrebor
Thank you for your great work!!
Re: PureBasic 6.00 Beta 1 released !
Posted: Sat Nov 27, 2021 12:52 am
by StarBootics
Hello everyone,
Just finish the work prior to be able to compile my Model Editor for my game project with the V6.00 Beta 1. With the ASM Backend it took very small amount of time to Compile. With the C backend without any optimization it took a little bit of time and with optimization it took a while but it was expected. What was not expected is the difference of the final rendering after a surface normal smoothing operation. See the difference in the picture here :
https://www.dropbox.com/s/cev4oyptnu5fn ... n.jpg?dl=0
I know the algorithm responsible for the normal smoothing but it will take time to narrow down the problem of what is happening differently between the None Optimize and the Optimize output done by the C Backend.
Maybe this weekends ...
Best regards
StarBootics