traumatic wrote:va!n, what's the difference in having .lib, .plib, .yadayada?
You're saying the main problem was that people don't release their sources
and if they stop maintaining it, the users are stuck. How should another
library format change that? Did I miss your point?
@traumatic:
Ok, maybe i explained it a bit bad!? I will try to explain the difference! But first i have to correct you, i dindt sayed that the mainproblme is that people dont releaes their sources and may stop maintaining things! Its still ok, when the author dont release the source! Its another point i mean!
PureBasic has its own lib format. This libs are pre-compiled asm/c/purebasic+talibite routines, also so called obj files stored in a special format (libs) for the PureBasic compiler/linker, right?
When people coding/building a bug in their lib code and dont release their sources - sure we cant fix that kind of bug! But as i said before this isnt the problem i want talk about!
Whats with all the PureBasic libs created using PureBasic and Talibite!? Even when the source(s) are clean and their isnt any bug inside - but what happens, when compiling/creating an officiel lib and the compiler version you are using has somewhere "inside" a small bug!? Sure, this compiler bug will be fixed for the PureBasic release!
When the author stopped his lib project in the meantime, their is still the old lib available (possible with an "old" internaly compiling bug) !!! This is the point we should think about! (as i said in my posting before, i dont want fight here any persons nor programs!)
Another problem could be, when PureBasic will change his lib format in the future, like in the past - so this old compiled lib is no longer useable and your projects - using this lib(s) - may die!
The next point is, when the Author of the lib created/compiled his lib with PureBasic 3.94 (no optimisations by the compiler) but future releases like PureBasic 4.0 may optimize your lib-source in speed as best as possible...! So you may have a very great PureBasic compiler but you must use an old "not optimized" purebasic lib! (because the lib is compiled and it will only linked to your exe)
Such problems can be easy solved for the future! Even when the author has not released the source of his lib!
The official PureBasic libs may have its old lib format as before, because this libs are coded in asm or c - So Fred can easy fix something when a their is a known bug problem!
But for libs created by PureBasic with Talibite, it would be nice, when the libs are no longer pre-compiled as it is for now! (reasons see above)!!
So my idea was, to have a new feature in PureBasic... for example to create PureBasic libs to the standard "dynamic linked libs" format used in c/c++ !!! So everybody can create free libs without spreading his source!
So it should be possible to use this libs again in purebasic by something like IncludeLib (official c/c++ lib format!) !!!
Another way could be, Libs created using Purebasic with Talibite, will saved to a new PureBasic lib format with the extension *.plb or *.plib !!
Ofcourse this libs can be used in PureBasic by something like "IncludePLib" !?
Where is the difference to this plib format? The source of this lib will not be compiled to any machinecode - it will be stored in any crytped or special format - so the source is still unreadable for other persons! The feature of this would be, when using this lib in future projects, newer PureBasic compilers will see that its a plib and will internally compile the lib code new (with future optimisations) and link then to the exe!
I know, i am not good in explaining... ;-/ Btw, if you dont understand what i mean, just drop me a PM and we can talk in german or chat by ICQ
@Blade!
Exactly!
@ts-soft:
Sure, when their is a way to create *.lib or *.blib , their must be a way to include them again... What about following new commands..
IncludeLib "file.lib" <- (official lib format like For c/c++)
IncludeObj "file.obj" <- (official obj format like asm And For c/c++ !?)
IncludeResource "file.res" <- (official resource format)
IncludeScript "file.rc" <- (script, thanks to ts-soft
When Fred like go the way To use his own lib format For libs created by purebasic, also
the so called *.plib format, we need something lile:
IncludePLib "file.plib"
I still hope and wish that some people may understand my idea and maybe you can help me to explain it to other persons too! Thanks
