PureBasic 6.20 is out !

Developed or developing a new product in PureBasic? Tell the world about it.
Little John
Addict
Addict
Posts: 4770
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: PureBasic 6.20 is out !

Post by Little John »

PBJim wrote: Mon Feb 17, 2025 3:34 pm Out of interest, is there a demonstration of work that's been done within the realm of mobile applications with Spiderbasic, even something very simple to inspire others to make a start?
Maybe you'll find something on the SpiderBasic forum.
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: PureBasic 6.20 is out !

Post by AZJIO »

PBJim wrote: Mon Feb 17, 2025 3:34 pm Out of interest, is there a demonstration of work that's been done within the realm of mobile applications with Spiderbasic, even something very simple to inspire others to make a start?
link, help
The help file for the phone
User avatar
SPH
Enthusiast
Enthusiast
Posts: 561
Joined: Tue Jan 04, 2011 6:21 pm

Re: PureBasic 6.20 is out !

Post by SPH »

By skimming the possible ideas to integrate into PureBasic (except 3D), there will be nothing more to add.
One day, we may have a "PureBasic 9 Integral"...

Yeah, yeah, I see it around version 9, I don't know why.

!i!i!i!i!i!i!i!i!i!
!i!i!i!i!i!i!
!i!i!i!
//// Informations ////
Portable LENOVO ideapad 110-17ACL 64 bits
Version de PB : 6.12LTS - 64 bits
gamparono
New User
New User
Posts: 5
Joined: Tue Nov 14, 2023 6:33 pm

Re: PureBasic 6.20 is out !

Post by gamparono »

IsPack() is fully missing in 6.20, added only to online manual(.chm file also missing whole page)

P.S. btw, would someone be able to fix IDE syntax highlight please?
P.P.S. Also figuring out occasional IDE crashes(freezes) after 6.10 release, can't get specific steps...
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.20 is out !

Post by Fred »

Please open regular bug reports, we can't track these properly here
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

Re: PureBasic 6.20 is out !

Post by AZJIO »

WebWiewProxy - there's not a typo in here? WebViewProxy?
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.20 is out !

Post by Quin »

AZJIO wrote: Tue Feb 18, 2025 6:11 pm WebWiewProxy - there's not a typo in here? WebViewProxy?
Already reported here.
User_Russian
Addict
Addict
Posts: 1516
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.20 is out !

Post by User_Russian »

gamparono wrote: Tue Feb 18, 2025 7:27 am IsPack() is fully missing in 6.20, added only to online manual(.chm file also missing whole page)
Sometimes this happens.
For example, in version 5.50, a line appeared in the history
- Added: #StringConstant$ syntax support, to get the address of a string constant
But it was never implemented. Later this line disappeared from history.
User avatar
minimy
Enthusiast
Enthusiast
Posts: 551
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: PureBasic 6.20 beta 3 is out !

Post by minimy »

pf shadoko wrote: Tue Jan 28, 2025 10:40 am
minimy wrote: Fri Jan 17, 2025 6:32 pm PB 6.20 and Ogre1.4 can run over macos catalina?
sorry for the late reply
normally the bug with macs is fixed
can you confirm?
Sorry pf_shadoko i was very busy, no work over macos catalina 10.15.7.
Initengine3D() no run.
ohhhhh!! :cry:
Try with if initengine3d() but not..
If translation=Error: reply="Sorry, Im Spanish": Endif
akee
Enthusiast
Enthusiast
Posts: 496
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: PureBasic 6.20 is out !

Post by akee »

Just checking, PureLibrary does not support inline assembly yet right?
Compiling this old code returns an error.

Code: Select all

; QuickHelp  GetCPUID() - Returns the CPU's Processor ID.
ProcedureDLL$ GetCPUID()
  Protected tmp_HiBits.l
  Protected tmp_LoBits.l
  Protected tmp_Serial.q
  ! mov eax, 01h
  ! cpuid
  ! mov dword [p.v_tmp_LoBits], eax
  ! mov dword [p.v_tmp_HiBits], edx
  tmp_Serial = (tmp_HiBits << 32) | tmp_LoBits
  ProcedureReturn Hex(tmp_Serial, #PB_Quad)
EndProcedure

;Debug GetCPUID()

Code: Select all

Compiling C:\Data\PureLibrary\Library\GetCPUID.pb to library GetCPUID.
PureBasic 6.20 - C Backend (Windows - x64)
Compiling C:\Data\PureLibrary\Library\GetCPUID.pb
Loading external libraries...
Starting compilation...
16 lines processed.
Error: Assembler
error: unknown type name 'mov'
   64 |  mov eax, 01h
      |  ^~~
purebasic.c:64:11: error: invalid suffix "h" on integer constant
   64 |  mov eax, 01h
      |           ^~~
purebasic.c:64:11: error: expected identifier or '(' before numeric constant
breeze4me
Enthusiast
Enthusiast
Posts: 633
Joined: Thu Mar 09, 2006 9:24 am
Location: S. Kor

Re: PureBasic 6.20 is out !

Post by breeze4me »

akee wrote: Thu Feb 27, 2025 11:04 am Just checking, PureLibrary does not support inline assembly yet right?
Compiling this old code returns an error.

Code: Select all

; QuickHelp  GetCPUID() - Returns the CPU's Processor ID.
ProcedureDLL$ GetCPUID()
  Protected tmp_HiBits.l
  Protected tmp_LoBits.l
  Protected tmp_Serial.q
  ! mov eax, 01h
  ! cpuid
  ! mov dword [p.v_tmp_LoBits], eax
  ! mov dword [p.v_tmp_HiBits], edx
  tmp_Serial = (tmp_HiBits << 32) | tmp_LoBits
  ProcedureReturn Hex(tmp_Serial, #PB_Quad)
EndProcedure

;Debug GetCPUID()
Since the C backend is used when compiling, you must use inline C syntax.

Code: Select all

; QuickHelp  GetCPUID() - Returns the CPU's Processor ID.
ProcedureDLL.s GetCPUID()
  Protected eax.l, edx.l
  
  !__asm__ __volatile__ (
  !".intel_syntax noprefix;"
  
  !"mov eax, 1;"
  !"cpuid;"
  
  !".att_syntax" 
  !:"=a" (v_eax), "=d" (v_edx)
  !);
  
  ProcedureReturn Hex((edx << 32) | eax, #PB_Quad)
EndProcedure

;Debug GetCPUID()
Quin
Addict
Addict
Posts: 1122
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic 6.20 is out !

Post by Quin »

akee wrote: Thu Feb 27, 2025 11:04 am Just checking, PureLibrary does not support inline assembly yet right?
Compiling this old code returns an error.
Correct, currently PureLibrary creation in PureBasic is limited to the C backend. So you can use inline C, but not inline Asm.
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PureBasic 6.20 is out !

Post by skywalk »

With the C optimizer, native code gets very close or exceeds asm.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
akee
Enthusiast
Enthusiast
Posts: 496
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: PureBasic 6.20 is out !

Post by akee »

thanks breeze4me... your code works.
Post Reply