Page 1 of 2
PureBasic Librarian
Posted: Tue Jan 09, 2024 3:22 pm
by akee
We really need a PureBasic Librarian to organize code since Tailbite has been EOL.
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 3:15 am
by moricode
yes , it sound weir when you can't even code a user library with the same programing language , what point is this ? a strip down version of language ?
C could code user library in C ,
C++ could code user library in C++
Purebasic ?
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 4:08 am
by AZJIO
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 4:45 am
by moricode
he means this userlibrary that inside the folder userlibrary:
How do you code this userlibrary ? see the list of library in the folder
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 7:50 am
by Bisonte
moricode wrote: Wed Jan 10, 2024 4:45 am
... How do you code this userlibrary ? see the list of library in the folder
In the past, we could use Tailbite for this.
Some "gurus" wrote them in ASM or C...
I would also like to have the possibility to create user libraries again... Simple and native... This is one of my dreams

Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 8:54 am
by AZJIO
1. If the code is converted to asm or C, then what is the problem with writing it?
2. What is the difference between lib and pbi? What compiles faster?
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 9:28 am
by moricode
AZJIO wrote: Wed Jan 10, 2024 8:54 am
1. If the code is converted to asm or C, then what is the problem with writing it?
2. What is the difference between lib and pbi? What compiles faster?
This is different concept here
the "userlibrary" here is the special things that only exist in purebasic
so we hard-core fans need it as a PB native features, it is not like something in C or pbi
it is a FAITH of purebasic
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 9:35 am
by Fred
It's not different at all, the userlibrary will be a compiled version of a .pbi meaning than if the user which shipped the lib disappear out of the blue, you're left with unsupported library and function which will break sooner or later. We went trough this at the PB starts where a lot of user libs where available, none of them still work with current version. So the real only difference is you can 'hide' your code, if you don't want someone else to copy it easily (if you plan to sell it for example).
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 3:04 pm
by Quin
Yeah, user libraries honestly just got annoying. For example, I wanted to use PureSpeech for SAPI output, but it no longer works with PB >= 4.00. If it had been in .pbi form, I could've just modified it myself.
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 4:37 pm
by plouf
i also dont see the reason to create closed source stuff and target ONLY PureBasic community, make it dll , and target everyone in every languange...
btw isnt MAke Lib FActory the "new talbite" ? ->
https://www.purebasic.fr/english/viewtopic.php?t=69323&
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 4:51 pm
by akee
I believe I read somewhere that one of the things Tailbite did was to split all the procedures in a file into individual sections. They are placed in a user library. So when you compile the code only the procedures that are used are included in the final exe.
The use of a Librarian should be to organize your code and produce smaller executables.
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 5:34 pm
by DarkDragon
akee wrote: Wed Jan 10, 2024 4:51 pm
I believe I read somewhere that one of the things Tailbite did was to split all the procedures in a file into individual sections. They are placed in a user library. So when you compile the code only the procedures that are used are included in the final exe.
The use of a Librarian should be to organize your code and produce smaller executables.
What Tailbite does is basically compiling a static library instead of a shared dll. I once made a
linux version of it, but it doesn't exist anymore. I think ABBKlaus made a new port of Tailbite for Linux.
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 5:35 pm
by Quin
Something that would actually be really cool is if PB could generate static libraries (e.g. .lib files) instead of a DLL, so we can make libraries that can be statically linked in any programming language without needing a DLL.
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 7:13 pm
by chi
You could try
Pb2StaticLib... Maybe it fits your needs.
Re: PureBasic Librarian
Posted: Wed Jan 10, 2024 7:36 pm
by mk-soft
User Library only makes sense if you program your own functions and controls in 'C' and include the headers from the Purebasic SDK.
Thus the user libraries can also be recompiled with 'C' with a new version of the Purebasic SDK and pblibrarymaker.
I do not mean here the 'C' backend of Purebasic!
But I haven't tried it myself yet