You all know, PureBasic using precompiled .res files containg of stuff like constants, structures and macros afaik... This precompiled files cant be viewed by a user just using any texteditor for example.
So i ask you: Why we do not have simply all this stuff readable by any texteditor and PureBasic could precompile this list in the memory for example while startup. This idea would have one big feature for all users... everybody can take a look to the *.res files!
I think there is no secret about the precompiled constant files as they are all public available in the so called *.h header files. Having all the stuff readable in any texteditor would help people to find mistakes (for example wrong defined constants) and would help to check and compare the purebasic collected constants with official *.h header files... This would make live more easy for checking/fixing/updating i.e. missing constants to the comunity!
This is just an idea... what do you think about this... I got this idea while finding some missing constants... http://www.purebasic.fr/english/viewtopic.php?t=21271
Precompiled .res files
Precompiled .res files
va!n aka Thorsten
Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,
As fr34k said, it's much faster to parse a binary file than a text file (and convert all ascii number to real number). It also limit the number of string allocations which can be very big, as the whole file stay in memory and only pointers are used. It's not to offuscate the reading or whatever, as with an hex editor you can 'guess' the structure. We could have encrypted it if we didn't want that, but there is no point to do that.
By the way, the provided 'Structure viewer' can show :
- Structures
- Constantes
- Interfaces
All are defined in .res files
What do you think of adding a page to the 'Structure Viewer' :
- Macros ( as they are also defined in .res files )
- Structures
- Constantes
- Interfaces
All are defined in .res files
What do you think of adding a page to the 'Structure Viewer' :
- Macros ( as they are also defined in .res files )
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer


