PureBasic v4.00 - Beta 1

Developed or developing a new product in PureBasic? Tell the world about it.
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Thanks a lot for it :).
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

We have to thank you! So.... please users... donate, donate, donate! :D
Tranquil
Sebe
Enthusiast
Enthusiast
Posts: 160
Joined: Sun Dec 19, 2004 10:55 pm
Location: Munich
Contact:

Post by Sebe »

Yeah, after that stylish update they deserve every euro we can donate. Even if it's just 1 euro or 3,31 :roll:
koehler
User
User
Posts: 58
Joined: Sat May 03, 2003 7:46 am

Cool

Post by koehler »

Great, look forward to it. Happy to tip a 10, for it too.
RichardL
Enthusiast
Enthusiast
Posts: 532
Joined: Sat Sep 11, 2004 11:54 am
Location: UK

Post by RichardL »

Some experiences with PB Release 4 Beta…

1. Installed new release into a new directory and tested a few trivial procedures just to make sure the installation was OK.

2. What next? It would be unwise to convert all my current work over to a new environment that will inevitably have some errors. I must run with 3.94 until the new version is out of Beta. I decided to take a medium size application and go through the process of converting it… this will give me an indication of the complexity and the pitfalls of the conversion process.

3. I chose an instrumentation package that involves DLLs, high speed graphics, some primitive sound functions and multiple screens, about 6400 lines of source. Working with a COPY of the original source I repeatedly compiled it and responded to each error message. I made some arrays global, included the File# into lots of places where the new compiler needs it and generally learned a lot about the new system.

4. I found three major problems and wrote three helpful bug reports. In the process of creating the essential mini-app that showed each problem and how to reproduce it the cause of each error was found, and was always an instance of not reading the documents supplied… More haste, less speed.

5. After about six hours of work the final version now runs with just one problem left… I get a rude message and an invitation to send a report to Microsoft when the program closes. I have seen this mentioned elsewhere so will be patient.

Summary:
No real difficulties upgrading. Be patient and careful. RTFM.
Common sense -- stay with 3.94 for a while for mission critical software.

Click the DONATE button, do NOT let it be lonely and un-loved.

RichardL
User avatar
geoff
Enthusiast
Enthusiast
Posts: 128
Joined: Sun Apr 27, 2003 12:01 am
Location: Cornwall UK
Contact:

Post by geoff »

geoff wrote: Fred, I hope this is the last time we need such major changes.
I have spent 5 hours converting a PB3.94 program to PB4.0, and I still have 28 other programs to do.
Fred wrote: Why converting all ?
the fool wrote:I too don't understand that..
Source code needs to be maintained.
Why?
1) Because applications sometimes needs to be changed.
2) Because it takes a long time to find every last bug, sometimes years.

If you don't convert code you have to keep a different version of the compiler for each of your programs. This is impractical and leads to compatibility problems between the programs which may share common procedures, for example. Old compiler versions are not supported so if you have compile problems you will get no help.

Am I missing something here?
I thought that porting source code to the latest compiler version was standard practice?
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

@geoff,
Use search/replace ... you will see... it is faster next time ! :wink:
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

geoff: it all depends of your programs. If I have a program in v3.94 which works well and doesn't need anything else than bug fixes, i would let it in v3.94 and use it to do the few fixes. If you plan to enhance a lot your programs, then it makes sens.
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

geoff wrote: Am I missing something here?
I thought that porting source code to the latest compiler version was standard practice?
Yes, it's definitly not standard to port all your code.
The Software company we work with maintains 3 versions of there administrative software, just because it works with Sybase on the server and Omnis7 or Omnis studio on the client side.
They can not affort to go updating all customers to always be on the newest database software an Omnis version....license is expensive also.
So there are 3 update packages when they have an update.
http://www.jurisoft.be/
They now have 5283 users :)
User avatar
geoff
Enthusiast
Enthusiast
Posts: 128
Joined: Sun Apr 27, 2003 12:01 am
Location: Cornwall UK
Contact:

Post by geoff »

Icesoft wrote:Use search/replace ... you will see... it is faster next time
I wish it was that easy Icesoft.
It's not just name changes.

For example, if you have a procedure that writes to the current open file you now have to pass the file # to this procedure so that the file# can be put in the new Read / Write commands.

Also the File System commands. I had to do a partial re-write of a re-entrant file listing procedure, because of this change.

But I am not complaining about this, the changes make sense.

All I am saying is, lets not change things too often.

---------------------------

To make things easier I have written a small program to create a highlighted text version of each of my source codes, where any commands that require attention are highlighted.

But it takes a time.
The (small) program I am currently working on has 353 highlighted commands, some of which are simple name changes but most aren't.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

That aside, geoff, the new version is pretty neat, isn't it?
@}--`--,-- A rose by any other name ..
User avatar
geoff
Enthusiast
Enthusiast
Posts: 128
Joined: Sun Apr 27, 2003 12:01 am
Location: Cornwall UK
Contact:

Post by geoff »

:D Yes, no question, it's brilliant.

I have been holding my breath for doubles for longer than I can remember.

I'ts nice to breath again.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

:D Snap.
@}--`--,-- A rose by any other name ..
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> For example, if you have a procedure that writes to the current open
> file you now have to pass the file # to this procedure so that the file#
> can be put in the new Read / Write commands

Search: WriteStringN(
Replace: WriteStringN(0,

Very easy. Make it even faster by using an app like this...

http://www.rjlsoftware.com/software/utility/search/

...to do it to ALL your PureBasic sources in one big hit, and you're done.
Then just do a search for all "WriteStringN(0," in each app as required,
and check to make sure they're using the correct file number. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
IceSoft
Addict
Addict
Posts: 1682
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

@PB,
You are understand me. :wink:
Belive! C++ version of Puzzle of Mystralia
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Post Reply