PureBasic Librarian

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
akee
Enthusiast
Enthusiast
Posts: 496
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

PureBasic Librarian

Post by akee »

We really need a PureBasic Librarian to organize code since Tailbite has been EOL.
moricode
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 25, 2023 3:55 am

Re: PureBasic Librarian

Post 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 ?
moricode
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 25, 2023 3:55 am

Re: PureBasic Librarian

Post by moricode »



he means this userlibrary that inside the folder userlibrary:

Image

How do you code this userlibrary ? see the list of library in the folder
User avatar
Bisonte
Addict
Addict
Posts: 1305
Joined: Tue Oct 09, 2007 2:15 am

Re: PureBasic Librarian

Post 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 ;)
PureBasic 6.21 (Windows x64) | Windows 11 Pro | AsRock B850 Steel Legend Wifi | R7 9800x3D | 64GB RAM | RTX 5080 | ThermaltakeView 270 TG ARGB | build by vannicom​​
English is not my native language... (I often use DeepL.)
AZJIO
Addict
Addict
Posts: 2143
Joined: Sun May 14, 2017 1:48 am

Re: PureBasic Librarian

Post 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?
moricode
Enthusiast
Enthusiast
Posts: 162
Joined: Thu May 25, 2023 3:55 am

Re: PureBasic Librarian

Post 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 :shock:

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
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic Librarian

Post 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).
Quin
Addict
Addict
Posts: 1131
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic Librarian

Post 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.
plouf
Enthusiast
Enthusiast
Posts: 281
Joined: Fri Apr 25, 2003 6:35 pm
Location: Athens,Greece

Re: PureBasic Librarian

Post 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&
Christos
akee
Enthusiast
Enthusiast
Posts: 496
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: PureBasic Librarian

Post 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.
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: PureBasic Librarian

Post 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.
Last edited by DarkDragon on Wed Jan 10, 2024 5:42 pm, edited 1 time in total.
bye,
Daniel
Quin
Addict
Addict
Posts: 1131
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: PureBasic Librarian

Post 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.
User avatar
chi
Addict
Addict
Posts: 1087
Joined: Sat May 05, 2007 5:31 pm
Location: Austria

Re: PureBasic Librarian

Post by chi »

You could try Pb2StaticLib... Maybe it fits your needs.
Et cetera is my worst enemy
User avatar
mk-soft
Always Here
Always Here
Posts: 6209
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic Librarian

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply