PureBasic Forum
https://www.purebasic.fr/english/

PureBasic 5.30 is out !
https://www.purebasic.fr/english/viewtopic.php?f=14&t=60012
Page 1 of 5

Author:  Fred [ Wed Jul 23, 2014 11:43 am ]
Post subject:  PureBasic 5.30 is out !

Hi folks,

That's it, PureBasic 5.30 final version is out ! The beta phase was longer than usual and even if it's holiday and summer time,
it's not a valid excuse ;). So let's jump a bit in PureBasic development internals, so you can better understand why.

First of all, the IDE is now fully unicode. It looks like a no brainer as in PureBasic it's more or less a checkbox to enable to have your program
working in unicode, right ? Well, not this time. The (new) IDE is around for almost 10 years now (09/21/2005) and it grew out of proportion
by including tons of features. We heavily use raw pointers to process string buffers quickly, and when switching to unicode, all the strings
went to UCS-2 (16-bit character). The stuff here is Scintilla is working internally in UTF-8, so all our comparisons between PB strings and Scintilla internal
didn't work anymore as one side was UTF-8 and the other UCS-2. Also, all the Scintilla commands which needed a buffer as parameter needed to be
changed as we mostly used a pointer to a PB string for this. We also had API calls here and here which required some adaptation work, and there was
no compiling error or runtime warning, so usually a nice crash was awaiting us when missing one and reaching this code section. To be honest,
it was quite a bit depressing to see a solid IDE get back to a shacky shape. This looks brighter now, and the unicode switch allowed us to fix long standing IDE
issues which is cool. It was a needed update, especially for the internal debugger which can now handle unicode programs. There is will be probably some quicks
left but it should be ironed out in future versions.

We also made important internal compiler changes to enable runtime serialization trough the XML and new JSON lib. It doesn't seem like a big deal
from the user point of view, but actually it is. What is runtime serialization ? In a nutshell: you have your nice linked list of complex
structured elements (which can contain dynamic map, array etc.) and you want to save it, so when you quit your program, you wont loose these data.
To do that, you had mostly only one way until now: walk the list, write all the fields of your structure to either a file or a database. It can be
time consumming to write this, and if you add a new field in your structure, you have to update both your load and save routines. With
5.30 serialization functions, you can do that with only one command. The compiler will flag your structure as a runtime one so it gets all
needed information (like fieldname, fieldtype etc.) and build special information table to allow full recursive analysing and dumping of the
structure data. We made this change generic in the compiler, so any command (even user libs) can use this feature. To allow this, we needed to support
'shadow parameters' in PB function call. Basically, when we declare a command parameter as "Runtime Structure" like in InsertJSONStructure(),
one hidden parameter is added to the function call to add more information to the structure. The same is done to when a runtime list, map or
array is need like in InsertJSONList/Map/Array(). Adding such a core feature in the compiler is always tricky and can creates new hard to track issues
(like stack mis-aligment), and that's why the IDE didn't started anymore on some Windows x64 computers.

And finally, a word about LTS (Long Time Support). The 5.30 is the first version which is released in parallel than an LTS version. That means than
we had to update our build servers and deployment tools to handle 2 concurrents versions (when building and when releasing). The website
also needed some update to handle this properly. It's small things but it does add-up and it in the end, it takes time to get everything right
and properly working.

As a side note, all the doc are now updated to the new format in every languages and I would like to thank Andre and Mesa for the
huge work done on this. A programming langage without a good doc is not a good programming langage.

I hope you didn't fell asleep when reading this, enjoy the new version !

The final list of changes:

Code:
- Added: New "Issue" tool for IDE to build todo/issue lists easily from comments.
- Added: JSON library
- Added: ParseXML(), ComposeXML(), InsertXMLArray/List/Map/Structure(), ExtractXMLArray/List/Map/Structure() to XML lib
- Added: OpenGLGadget() with native opengl commands and constants support for Windows, OSX and Linux
- Added: ExamineRegularExpression() and related commands to process regex matches step by step (with group support)
- Added: ClipOutput(), UnclipOutput(), SetOrigin(), GetOriginX(), GetOriginY()
- Added: GetWindowData(), SetWindowData()
- Added: AllocateStructure(), FreeStructure()
- Added: #PB_Default support to WindowBounds() to reset min/max size
- Added: 'Format' parameter to Read/WriteProgramString(), WriteProgramStringN() and ReadProgramError()
- Added: /PREPROCESS compiler flag to create a big single source with all macros, compilerif and file include resolved. Can be combined with /COMMENTED to get the original source with comments as well.
- Added: Optional '#Server' parameter to NetworkServerEvent() to check events only on a specific server
- Added: #PB_String_NoZero flag support to PokeS() to avoid writing the ending null character
- Added: #PB_Enumeration support for Defined()
- Added: #PB_Explorer_HiddenFiles to show hidden files in the explorer gadgets
- Added: Optional 'Type' parameter to CreateBillboardGroup()
- Added: BillboardGroupCommonDirection(), BillboardGroupCommonUpVector()
- Added: #PB_Entity_MinVelocity and #PB_Entity_ForceVelocity to SetEntityAttribute()
- Added: SetMaterialAttribute() with #PB_Material_DepthCheck and #PB_Material_DepthWrite constants
- Added: #PB_Material_DepthCheck support for GetMaterialAttribute().
- Added: Engine3DStatus() with these constants: #PB_Engine3D_NbRenderedTriangles, #PB_Engine3D_NbRenderedBatches, #PB_Engine3D_CurrentFPS, #PB_Engine3D_MaximumFPS, #PB_Engine3D_MinimumFPS, #PB_Engine3D_AverageFPS, #PB_Engine3D_ResetFPS
- Added: #PB_Absolute / #PB_Relative support to CameraDirectionX/Y/Z(), CameraX/Y/Z(), EntityX/Y/Z(), LightX/Y/Z(), LightDirectionX/Y/Z(), BillBoardGroupX/Y/Z(), NodeX/Y/Z(), ParticleEmitterX/Y/Z() and FetchOrientation()
- Added: ParticleSpeedFactor(), DisableParticleEmitter()
- Added: GetEntityCollisionMask(), GetEntityCollisionGroup(), SetEntityCollisionFilter()
- Added: WaterHeight(), FreeWater()
- Added: Fully unicode IDE
- Added: Highlighting of repeated occurrences of the currently selected word in the IDE
- Added: Plain-text editing mode to edit non-PB files in the IDE
- Added: 'Issues' IDE tool to collect and display TODO/FIXME markers inside the code
- Added: Ctrl+E and Ctrl+Shift+E shortcut to align/shift comments in a selected code block
- Added: Ctrl+M and Ctrl+Shift+M shortcut to select the current code block (repeated presses select the next code block)
- Added: PopupMenu to IDE error log for clear/copy operation
- Added: %HOME and %PROJECT to IDE tool commandline options, added PB_TOOL_Project to available env vars
- Added: Automatic code indentation can align comments at the end of code lines in the IDE
- Added: AutoComplete remembers last selection for Structure/Module AutoComplete
- Added: Context sensitivity for current module/procedure for variable display and expression eval in the debugger

- Changed: FormatXML() with #PB_XML_ReFormat no longer adds newlines inside single-line elements for a more readable output
- Changed: DeleteElement() now returns the data pointer to the new current element (if any)
- Changed: SetXMLAttribute() to accept newline characters in attributes (will be encoded as character entities)
- Changed: Added a mandatory "name" parameter to CreateXMLNode() as some parser needs it at node creation time
- Changed: The way (X)IncludeFile and IncludeBinary works: it's now relative to the file which contains these statements (which is easier to handle)
- Changed: #PB_Event_SizeWindow and #PB_Event_MoveWindow are no more realtime on Windows, use BindEvent() to get real time update. It should fixes ugly flickering when realtime resizing on Windows.
- Changed: DataSection label within Procedure are now local labels.
- Changed: ASM local label prefix has been changed from "l_" to "ll_" ("ll" for local label), to avoid possible clash with main labels.
- Changed: #PB_LinkedList constant has been renamed to #PB_List for better consistancy
- Changed: Removed the "Billboard" parameter from AddBillboard() as it was not used. Now returns the new billboard index.
- Changed: Updated Scintilla to version 3.4.2

- Removed: MaterialDepthWrite() (replaced by SetMaterialAttribute())
- Removed: CountRenderedTriangles() and Engine3DFrameRate(), replaced by Engine3DStatus()


Have fun,

The Fantaisie Software Team

Author:  djes [ Wed Jul 23, 2014 11:47 am ]
Post subject:  Re: PureBasic 5.30 is out !

Yeah ! Great work men, thank you very much ! :D

Author:  PB [ Wed Jul 23, 2014 11:48 am ]
Post subject:  Re: PureBasic 5.30 is out !

Thanks, Fred! :D

[Edit] Dammit djes, I wanted to be the first! :lol:

[Edit #2] I'm thanking Fred for the Announcement here.
Of course I thank Freak as well for all his contributions,
and to Andre for the docs, and whomever else helps
that I currently don't know about. ;)

Author:  ts-soft [ Wed Jul 23, 2014 11:55 am ]
Post subject:  Re: PureBasic 5.30 is out !

thanks Fred :D

Author:  Zebuddi123 [ Wed Jul 23, 2014 12:01 pm ]
Post subject:  Re: PureBasic 5.30 is out !

Thanks Guys Great Work :)

IDE Title still showing as Beta 9 x64 x86

Zebuddi. :)

Author:  c4s [ Wed Jul 23, 2014 12:04 pm ]
Post subject:  Re: PureBasic 5.30 is out !

Thanks (also for the little insight on the internals)! 8)

Author:  STARGĂ…TE [ Wed Jul 23, 2014 12:21 pm ]
Post subject:  Re: PureBasic 5.30 is out !

Thank you!

Author:  GG [ Wed Jul 23, 2014 12:29 pm ]
Post subject:  Re: PureBasic 5.30 is out !

Thanks team, let's try it...

Author:  Fred [ Wed Jul 23, 2014 12:31 pm ]
Post subject:  Re: PureBasic 5.30 is out !

Zebuddi123 wrote:
Thanks Guys Great Work :)

IDE Title still showing as Beta 9 x64 x86

Zebuddi. :)


It doesn't here anymore (was a small issue), could you try to redownload it ?

Author:  Foz [ Wed Jul 23, 2014 12:34 pm ]
Post subject:  Re: PureBasic 5.30 is out !

Thanks Fred!

A generic serializer - in xml AND json! *drools*

This finally fixes a problem of generic communication between 32 bit clients and 64 bit servers! Woohoo!

Author:  Fred [ Wed Jul 23, 2014 12:36 pm ]
Post subject:  Re: PureBasic 5.30 is out !

BTW, could some of you test the links for the LTS version on your user account and confirm everything is OK ?

Author:  Little John [ Wed Jul 23, 2014 12:54 pm ]
Post subject:  Re: PureBasic 5.30 is out !

Great!
Many thanks for PB 5.30, and also for the interesting information from behind the scenes!

Author:  Foz [ Wed Jul 23, 2014 1:04 pm ]
Post subject:  Re: PureBasic 5.30 is out !

Fred wrote:
BTW, could some of you test the links for the LTS version on your user account and confirm everything is OK ?

Aye, they all download fine for me.

And the Windows x64 5.22 installs just fine as well.

Author:  Zebuddi123 [ Wed Jul 23, 2014 1:08 pm ]
Post subject:  Re: PureBasic 5.30 is out !

Thanks Fred Re-downloaded fine now :)

Zebuddi. :D

Author:  Foz [ Wed Jul 23, 2014 1:12 pm ]
Post subject:  Re: PureBasic 5.30 is out !

Foz wrote:
Fred wrote:
BTW, could some of you test the links for the LTS version on your user account and confirm everything is OK ?

Aye, they all download fine for me.

And the Windows x64 5.22 installs just fine as well.

Slight Problem!

Install the 5.30 x64, and in the uninstall list in Programs & Features, PureBasic 5.30 appears.
Now install 5.22 x64, and then reopen the uninstall list (to refresh it), only PureBasic 5.22 appears, 5.30 has disappeared.

The uninstall programs still work though, so all is not lost.

Page 1 of 5 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/