Page 7 of 9

Re: PureBasic 5.50 beta 1 is out

Posted: Fri Jun 24, 2016 12:39 pm
by walbus
B64 on PB works worry free !

Re: PureBasic 5.50 beta 1 is out

Posted: Fri Jun 24, 2016 2:55 pm
by Fred
wilbert wrote:
Keya wrote:Im just wondering about a situation where for example i read a full .EML file with its base64-encoded attachments into an AllocateMemory(Lof(hFile)) buffer, and then use wilberts FindData module to quickly locate the position of each attachment in the buffer. If Base64Decoder expects a string I would need to make a str=PeekS copy from the buffer? wouldnt be good with large attachments (slower + duplicated memory), especially with base64 sizes being +33% ?
If you need to decode big attachments, you could build you own high speed decoder. The Base64 specification is not that complicated.
For small attachments, the impact on memory and speed probably isn't that big.
Allocation and copy will probably not matter compared to the decode/encode operation. You shouldn't worry on such micro optimisation nowaday, modern OS provides extremly fast alloc and block copy operations.

Re: PureBasic 5.50 beta 1 is out

Posted: Fri Jun 24, 2016 3:06 pm
by Little John
Fred wrote:Yes, that's it. It would be something like that:

Code: Select all

Result = Base64Decoder(Input$, *OutputBuffer, OutputSize)
Result$ = Base64Encoder(*InputBuffer, InputSize [, Flags])
I see. That would make Base64 encoding and decoding simpler.

Re: PureBasic 5.50 beta 1 is out

Posted: Fri Jun 24, 2016 3:24 pm
by Keya
Fred wrote:Allocation and copy will probably not matter compared to the decode/encode operation. You shouldn't worry on such micro optimisation nowaday, modern OS provides extremly fast alloc and block copy operations.
My customers deserve the best though, I won't have them waiting extra time just for my app to make a duplicate copy of a large buffer just to convert it to a string type because i'm too unprofessional to use an existing buffer! :) but I understand if it will make use of the function easier for beginners albeit at the expense of flexibility, so I will look to use other base64 decode functions, i know there are fortunately several existing implementations PB'ers have posted over the years which probably already fit the bill so we're probably already spoiled for choice! :)

Re: PureBasic 5.50 beta 1 is out

Posted: Fri Jun 24, 2016 4:50 pm
by DontTalkToMe
Keya wrote: My customers deserve the best though
Awww, everyone selling a product should have a sign like that at the office and probably inside their fridge too.

Re: PureBasic 5.50 beta 1 is out

Posted: Fri Jun 24, 2016 4:55 pm
by Keya
each to their own :)

Re: PureBasic 5.50 beta 1 is out

Posted: Fri Jun 24, 2016 7:19 pm
by netmaestro
Some signs at one of my actual workplaces:

Our customers deserve the best - so what the hell are you doing here?

Prices subject to change according to your attitude

Here every day is free coffee tomorrow

No whining

Menu choices: You can take it or leave it

Re: PureBasic 5.50 beta 1 is out

Posted: Tue Jul 12, 2016 7:20 am
by Fred
Beta 2 is out ! It does includes a bunch of fixes and updated SQLite lib to 3.13.0.

Re: PureBasic 5.50 beta 1 is out

Posted: Tue Jul 12, 2016 7:36 am
by Lebostein
Fred wrote:Beta 2 is out ! It does includes a bunch of fixes and updated SQLite lib to 3.13.0.
Great work! Thanks for the Mac OS X fixes!!!!

With Windows XP in Virtual Machine I get an error because the compiler could not be loaded.... :?:
This installation was copied as a zip archive to the Virtual Machine after installing and zipping on an other machine. I had never problems before with that routine....

Re: PureBasic 5.50 beta 2 is out

Posted: Tue Jul 12, 2016 9:34 am
by Fred
A new quick fix version has been pushed on the server. If you already downloaded before this post, please download it again, sorry for the inconvenience !

Re: PureBasic 5.50 beta 2 is out

Posted: Tue Jul 12, 2016 6:42 pm
by skywalk
Thanks for the SQLite update to latest v3.13.0 :D

Re: PureBasic 5.50 beta 2 is out

Posted: Tue Jul 12, 2016 7:04 pm
by kenmo
Fred, why does PB 5.50 create a folder in my Temp directory every time I compile/run??

I currently have 158 folders called "PureBasic#######"
They are only ~1 MB each, but it seems like extra clutter.

Running PB Win x86 on Win 7 x64

Re: PureBasic 5.50 beta 2 is out

Posted: Tue Jul 12, 2016 7:24 pm
by Lebostein
kenmo wrote:Fred, why does PB 5.50 create a folder in my Temp directory every time I compile/run??

I currently have 158 folders called "PureBasic#######"
They are only ~1 MB each, but it seems like extra clutter.

Running PB Win x86 on Win 7 x64
Same problem here with XP. The Temp directory is full of PB subfolders... and the "no compiler loaded" error in the virtual machine persists...

Re: PureBasic 5.50 beta 2 is out

Posted: Wed Jul 13, 2016 1:35 am
by NoahPhense
Fred wrote:A new quick fix version has been pushed on the server. If you already downloaded before this post, please download it again, sorry for the inconvenience !
Hi Fred,

I just noticed this update and am reinstalling. I have subscribed to this thread as well. Is there where beta 3 will be "announced" as well? Or will it be a separate thread?

Cheers!

- np

Re: PureBasic 5.50 beta 2 is out

Posted: Wed Jul 13, 2016 3:21 pm
by thyphoon
hi Fred,

thanks for All. I love to use PB at work or for my pleasure. But Pleeeeeeeeeeeeaaaaaaase ! Add Proxy support to http lib ! Some solution (curl or my own http include file) can't be used if we want to make a module.

Pity ! Pity ! Pity !