PureBasic 5.40 LTS beta 10 is out !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
RichAlgeni
Addict
Addict
Posts: 935
Joined: Wed Sep 22, 2010 1:50 am
Location: Bradenton, FL

Re: PureBasic 5.40 LTS beta 3 is out !

Post by RichAlgeni »

Outstanding additions! Thanks muchly!!
supercdfr
User
User
Posts: 54
Joined: Tue Mar 16, 2010 9:28 pm

Re: PureBasic 5.40 LTS beta 3 is out !

Post by supercdfr »

Seems to have a bug in the packer lib.

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
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.
User_Russian
Addict
Addict
Posts: 1517
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 5.40 LTS beta 3 is out !

Post by User_Russian »

supercdfr wrote:Seems to have a bug in the packer lib.
http://www.purebasic.fr/english/viewtop ... =4&t=62992
Opcode
Enthusiast
Enthusiast
Posts: 138
Joined: Thu Jul 18, 2013 4:58 am

Re: PureBasic 5.40 LTS beta 1 is out !

Post by Opcode »

User_Russian wrote:
Fred wrote:- Removed RemovePackFile()
Why did you remove this function?
How to delete files from the archive?
+1

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).
sartic
Enthusiast
Enthusiast
Posts: 143
Joined: Thu Aug 26, 2010 8:26 am

Re: PureBasic 5.40 LTS beta 1 is out !

Post by sartic »

IdeasVacuum wrote:
Added HTTPS/TLS support for SendMail()
Wow - that's a biggy! 8)
yeah, great release.
can not wait final :)
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PureBasic 5.40 LTS beta 3 is out !

Post by skywalk »

Fred wrote:- Updated SQLite to 3.8.10.2
May I request that v54 final include the latest SQLite?
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
User avatar
Teddy Rogers
User
User
Posts: 98
Joined: Sun Feb 23, 2014 2:05 am
Location: Australia
Contact:

Re: PureBasic 5.40 LTS beta 3 is out !

Post by Teddy Rogers »

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.
User avatar
TI-994A
Addict
Addict
Posts: 2698
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: PureBasic 5.40 LTS beta 3 is out !

Post by TI-994A »

Teddy Rogers wrote:...I have been noticing a trend of a fattening up of compiled binaries with every new PB version.
Fred explains it in reply to the following post:

> 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 :D
User avatar
Teddy Rogers
User
User
Posts: 98
Joined: Sun Feb 23, 2014 2:05 am
Location: Australia
Contact:

Re: PureBasic 5.40 LTS beta 3 is out !

Post by Teddy Rogers »

Obviously I missed that one, thank you for pointing it out. Enjoyed reading Fred's reply too, straight and to the point... :)

Ted.
sartic
Enthusiast
Enthusiast
Posts: 143
Joined: Thu Aug 26, 2010 8:26 am

Re: PureBasic 5.40 LTS beta 1 is out !

Post by sartic »

supercdfr 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 ? :evil:
few KB no problem today
please be respectful
Registered user of PB (on Linux Mint 21.1 & Win 10 64bit)
User avatar
heartbone
Addict
Addict
Posts: 1058
Joined: Fri Apr 12, 2013 1:55 pm
Location: just outside of Ferguson

Re: PureBasic 5.40 LTS beta 1 is out !

Post by heartbone »

sartic wrote:
supercdfr 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 ? :evil:
few KB no problem today
please be respectful
I guess some of us are way more sensitive than others.
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.
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PureBasic 5.40 LTS beta 3 is out !

Post by skywalk »

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
User avatar
aaaaaaaargh
User
User
Posts: 55
Joined: Thu Jul 27, 2006 1:24 pm

Re: PureBasic 5.40 LTS beta 3 is out !

Post by aaaaaaaargh »

Fred wrote:
- Added Auto redirect support for ReceiveHTTPFile() and ReceiveHTTPMemory()
Hurray, that is just great! :D

Thanks guys!
Opcode
Enthusiast
Enthusiast
Posts: 138
Joined: Thu Jul 18, 2013 4:58 am

Re: PureBasic 5.40 LTS beta 1 is out !

Post by Opcode »

heartbone wrote:
sartic wrote:
supercdfr 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 ? :evil:
few KB no problem today
please be respectful
I guess some of us are way more sensitive than others.
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.
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.
User avatar
TI-994A
Addict
Addict
Posts: 2698
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: PureBasic 5.40 LTS beta 3 is out !

Post by TI-994A »

aaaaaaaargh wrote:
Fred wrote:
- Added Auto redirect support for ReceiveHTTPFile() and ReceiveHTTPMemory()
Hurray, that is just great! :D
Indeed. Now, many of the examples that downloaded assets from DropBox are working again. :D
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 :D
Post Reply