Page 7 of 15

Re: PureBasic 5.40 LTS beta 3 is out !

Posted: Sun Sep 06, 2015 2:44 am
by RichAlgeni
Outstanding additions! Thanks muchly!!

Re: PureBasic 5.40 LTS beta 3 is out !

Posted: Tue Sep 08, 2015 6:09 pm
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.

Re: PureBasic 5.40 LTS beta 3 is out !

Posted: Tue Sep 08, 2015 6:19 pm
by User_Russian
supercdfr wrote:Seems to have a bug in the packer lib.
http://www.purebasic.fr/english/viewtop ... =4&t=62992

Re: PureBasic 5.40 LTS beta 1 is out !

Posted: Tue Sep 08, 2015 7:09 pm
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).

Re: PureBasic 5.40 LTS beta 1 is out !

Posted: Sat Sep 12, 2015 1:46 pm
by sartic
IdeasVacuum wrote:
Added HTTPS/TLS support for SendMail()
Wow - that's a biggy! 8)
yeah, great release.
can not wait final :)

Re: PureBasic 5.40 LTS beta 3 is out !

Posted: Sun Sep 13, 2015 6:08 pm
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.

Re: PureBasic 5.40 LTS beta 3 is out !

Posted: Tue Sep 15, 2015 4:55 am
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.

Re: PureBasic 5.40 LTS beta 3 is out !

Posted: Tue Sep 15, 2015 5:16 am
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

Re: PureBasic 5.40 LTS beta 3 is out !

Posted: Tue Sep 15, 2015 8:08 am
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.

Re: PureBasic 5.40 LTS beta 1 is out !

Posted: Tue Sep 15, 2015 4:58 pm
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

Re: PureBasic 5.40 LTS beta 1 is out !

Posted: Tue Sep 15, 2015 9:08 pm
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.

Re: PureBasic 5.40 LTS beta 3 is out !

Posted: Tue Sep 15, 2015 9:54 pm
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.

Re: PureBasic 5.40 LTS beta 3 is out !

Posted: Tue Sep 15, 2015 10:00 pm
by aaaaaaaargh
Fred wrote:
- Added Auto redirect support for ReceiveHTTPFile() and ReceiveHTTPMemory()
Hurray, that is just great! :D

Thanks guys!

Re: PureBasic 5.40 LTS beta 1 is out !

Posted: Wed Sep 16, 2015 12:54 am
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.

Re: PureBasic 5.40 LTS beta 3 is out !

Posted: Wed Sep 16, 2015 8:43 am
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