PureBasic 5.40 LTS beta 10 is out !
- RichAlgeni
- Addict
- Posts: 935
- Joined: Wed Sep 22, 2010 1:50 am
- Location: Bradenton, FL
Re: PureBasic 5.40 LTS beta 3 is out !
Outstanding additions! Thanks muchly!!
Re: PureBasic 5.40 LTS beta 3 is out !
Seems to have a bug in the packer lib.
i try the sample :
All i obtain is the "bug" message. I make the zip file with a right click on windows.
I try the same code with version 5.31, it work.
i try the sample :
Code: Select all
UseZipPacker() ; Open the packed file
If OpenPack(0, "c:\vncviewer.zip") ; List all the entries
If ExaminePack(0)
While NextPackEntry(0)
Debug "Name: " + PackEntryName(0) + ", Size: " + PackEntrySize(0)
Wend
EndIf
ClosePack(0)
Else
Debug "bug"
EndIf
I try the same code with version 5.31, it work.
-
- Addict
- Posts: 1517
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: PureBasic 5.40 LTS beta 3 is out !
http://www.purebasic.fr/english/viewtop ... =4&t=62992supercdfr wrote:Seems to have a bug in the packer lib.
Re: PureBasic 5.40 LTS beta 1 is out !
+1User_Russian wrote:Why did you remove this function?Fred wrote:- Removed RemovePackFile()
How to delete files from the archive?
I don't use it often but I do use it in a few things that I need it for (stripping out APK's from Android ROMs etc).
Re: PureBasic 5.40 LTS beta 1 is out !
yeah, great release.IdeasVacuum wrote:Wow - that's a biggy!Added HTTPS/TLS support for SendMail()
can not wait final

Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
Re: PureBasic 5.40 LTS beta 3 is out !
May I request that v54 final include the latest SQLite?Fred wrote:- Updated SQLite to 3.8.10.2
3.8.11.x includes a sneaky bug fixed and a ~2x speed improvement.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
- Teddy Rogers
- User
- Posts: 98
- Joined: Sun Feb 23, 2014 2:05 am
- Location: Australia
- Contact:
Re: PureBasic 5.40 LTS beta 3 is out !
Maybe it's just me being a bit pedantic, I have been noticing a trend of a fattening up of compiled binaries with every new PB version. Is there still a focus on having small optimised compiled PureBasic binaries?
Ted.
Ted.
Re: PureBasic 5.40 LTS beta 3 is out !
Fred explains it in reply to the following post:Teddy Rogers wrote:...I have been noticing a trend of a fattening up of compiled binaries with every new PB version.
> exe size
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 

- Teddy Rogers
- User
- Posts: 98
- Joined: Sun Feb 23, 2014 2:05 am
- Location: Australia
- Contact:
Re: PureBasic 5.40 LTS beta 3 is out !
Obviously I missed that one, thank you for pointing it out. Enjoyed reading Fred's reply too, straight and to the point... 
Ted.

Ted.
Re: PureBasic 5.40 LTS beta 1 is out !
few KB no problem todaysupercdfr wrote:I just compile a program with 4.50B1, and what the fuck is this size ????
My exe goes from 433Ko to 725Ko without changing a line of code.
Where are the optimisations ?
please be respectful
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
Re: PureBasic 5.40 LTS beta 1 is out !
I guess some of us are way more sensitive than others.sartic wrote:few KB no problem todaysupercdfr wrote:I just compile a program with 4.50B1, and what the fuck is this size ????
My exe goes from 433Ko to 725Ko without changing a line of code.
Where are the optimisations ?
please be respectful
I sensed no true disrespect, rather bewilderment by the difference.
A 67.4% increase in executable size with no source code changes is a lot.
No matter how you try to minimize it by the characterization of the value 292 as a few.
However, just because we have been spoiled by the amazingly small code size coming from the PB compilers over the years,
there was no guarantee that was a feature of the compiler.
If the executable size truly is a problem, then Fred's advice is very good.
There is not much that you can do with the newer version, that you can't do with a recent older version of the compiler.
Keep it BASIC.
Re: PureBasic 5.40 LTS beta 3 is out !
Fred has also mentioned other tricks like renaming/removing undesired libs from the PB install folder. Also, if your code has orphaned functions, they are still compiled into final exe. Currently, you have to edit the commented asm and delete the unused functions and then reassemble the modified asm. These are not optimal, but a workaround.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
- aaaaaaaargh
- User
- Posts: 55
- Joined: Thu Jul 27, 2006 1:24 pm
Re: PureBasic 5.40 LTS beta 3 is out !
Hurray, that is just great!Fred wrote:
- Added Auto redirect support for ReceiveHTTPFile() and ReceiveHTTPMemory()

Thanks guys!
Re: PureBasic 5.40 LTS beta 1 is out !
If you're aiming for a smaller executable size you can always pack it with UPX or another and reduce its footprint to at least 70% of its original size as well.heartbone wrote:I guess some of us are way more sensitive than others.sartic wrote:few KB no problem todaysupercdfr wrote:I just compile a program with 4.50B1, and what the fuck is this size ????
My exe goes from 433Ko to 725Ko without changing a line of code.
Where are the optimisations ?
please be respectful
I sensed no true disrespect, rather bewilderment by the difference.
A 67.4% increase in executable size with no source code changes is a lot.
No matter how you try to minimize it by the characterization of the value 292 as a few.
However, just because we have been spoiled by the amazingly small code size coming from the PB compilers over the years,
there was no guarantee that was a feature of the compiler.
If the executable size truly is a problem, then Fred's advice is very good.
There is not much that you can do with the newer version, that you can't do with a recent older version of the compiler.
Re: PureBasic 5.40 LTS beta 3 is out !
Indeed. Now, many of the examples that downloaded assets from DropBox are working again.aaaaaaaargh wrote:Hurray, that is just great!Fred wrote:
- Added Auto redirect support for ReceiveHTTPFile() and ReceiveHTTPMemory()

Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel 
