I’ve been carrying out some ‘tests’ since installing PureBasic 5.73LTS.
So far although I have noted a few problems it works satisfactorily for me.
Caveat: I will outline the problems which may not be acceptable to most other users!
1. It needs to be installed with the security temporarily reduced.
2. The IDE does not exit cleanly: always. @
mk-soft has kindly squashed this bug.
3. Initially some text could not be entered. Each character was the same as character + command. Ie ‘O’ invoked the ‘Open dialog’ rather than the text character. @
dibor suggested mapping Command to Control: Then it worked!
4. Although code could be compiled and run in the IDE, compiling to an app produced the following text in a dialog:
ld: warning: object file (Window.a(AddWindowTimer.0)) was built for newer macOS version (10.8 ) than being linked (10.7)
ld: warning: object file (String.a(Bin.o))
5. Sound does not work on either machine due to changes in BigSur.
6. In general code runs about the same speed (often faster) as my 2016 MacBook i7. This, I found odd as it is not running natively. Some code to count bits set in an integer variable is, I hope, a good example. It is taken from the Forum thread below.
https://www.purebasic.fr/english/viewtopic.php?p=465067#p465067I ran this code on both Intel and M1 MacBooks Pro:
Model Name: MacBook Pro
Model Identifier: MacBookPro12,1
Processor Name: Dual-Core Intel Core i7
Processor Speed: 3.1 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 4 MB
Hyper-Threading Technology: Enabled
Memory: 8 GB
System Firmware Version: 425.0.0.0.0
—————————————————————————————————————
Model Name: MacBook Pro
Model Identifier: MacBookPro17,1
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 8 GB
System Firmware Version:6723.6
I decided to include my own code that I
had been using as it shows how much better code is available!
i7 . . . . . . . . . . . . . M1 . . . . . . . . . . Type
—————————————————————————————————————————————————
t0 = 29 (12%) ....... t0 = 28 (11%) ...... (Intel)
t1 = 236 (100%) ..... t1 = 244 (100%) .... (wilbert)
t2 = 266 (112%) ..... t2 = 220 (90%) ..... (luis)
t3 = 650 (275%) ..... t3 = 227 (93%) .... (luis2)
t4 = 1183 (501%) ..... t4 = 1250 (512%) .. (Little John)
t5 = 1636 (693%) ..... t5 = 1918 (786%) .. (Trond)
t6 = 964 (408%) ..... t6 = 1117 (457%) .. (Trond2)
t7 = 42 (17%) ........ t7 = 35 (14%) .... (idle)
t8 = 170 (72%) ....... t8 = 121 (49%) .... (said version of trond unrolled)
t9 = 104 (44%) ....... t9 = 84 (34%) .... (idle-PB)
ta = 1801 (763%) ..... ta = 1639 (671%) . (davido)
tb = 48 (20%) ........ tb = 33 (13%) ... (idle-64bit)
——————————————————————————————————————