Compile a PB into PB library

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
SkyManager
Enthusiast
Enthusiast
Posts: 339
Joined: Tue Jan 30, 2007 5:47 am
Location: Hong Kong

Compile a PB into PB library

Post by SkyManager »

It would be nice to compile PB procedures into a standard PB library so that programmer can easily build up their own library for fast application programming.

I know that we can use ASM or C/C++ to do that.
But this is a very funny logic : I thought most PB users hate coding in ASM or C/C++ and that they choose to use Basic. If PB users are good at ASM or C/C++, they will simply use C/C++ and they will forget PB.

I do not want to use third party library such as Tailbite!
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Re: Compile a PB into PB library

Post by Kale »

SkyManager wrote:I do not want to use third party library such as Tailbite!
Why not? as this allows you to do exactly this. :shock:
--Kale

Image
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

@SkyManager

Good idea.
I agree with you.

It would be very cool to have such a compiler feature(option).
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Compile a PB into PB library

Post by PB »

> Why not?

Tailbite is too hard to set up (I got too many errors to bother with it).
Also there is no guarantee of future versions if the author gives up on it.
A native PureBasic "Create library" menu command is just so much easier.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
SCRJ
User
User
Posts: 93
Joined: Sun Jan 15, 2006 1:36 pm

Post by SCRJ »

Agree, would be a nice feature. :D
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

yep, would be fine.
oh... and have a nice day.
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

Would be handy to have it built in.
Hydrate
Enthusiast
Enthusiast
Posts: 436
Joined: Mon May 16, 2005 9:37 pm
Contact:

Post by Hydrate »

I couldnt agree more, this would be very usefull.

For now we can all just make dll files and give people the information though no? lol.
.::Image::.
SkyManager
Enthusiast
Enthusiast
Posts: 339
Joined: Tue Jan 30, 2007 5:47 am
Location: Hong Kong

Post by SkyManager »

If Tailbite can do it, I'm sure PB can do it too.

For the PB team, please read this
If PB users are good at ASM or C/C++, they will simply use C/C++ and they will forget PB.
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

SkyManager wrote:For the PB team, please read this
If PB users are good at ASM or C/C++, they will simply use C/C++ and they will forget PB.
Repeating a phrase doesn't necessariliy make it true. ;)
Good programmers don't comment their code. It was hard to write, should be hard to read.
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Post by DarkDragon »

You want to wait longer and longer for your PB updates?! Bad decision and bad way of adding features. My feature wish would be a second and a third Fred: then they can manage such a lot parts of PureBasic maybe.
bye,
Daniel
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

El_Choni is Tailbite's author, so he's clearly capable of implimenting this feature - why not let him create a version that can be built into the PB compiler? I'm sure niether party would begrudge a small fee :)
~I see one problem with your reasoning: the fact is thats not a chicken~
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Post by Denis »

I Agree with you SkyManager.

Tailbite was done because such a tool was lacking.
I think it's time to add this.
A+
Denis
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

El_Choni wrote:I haven't had time for coding at all lately, and I doubt I'll have any in the future.
As sad an eventuality as this is, we must face the fact that Tailbite's future development will have to continue without the participation of the original author. I hope the PureBasic team will see fit to take it on and bring it under the Fantaisie umbrella, but in the end it's entirely up to them to decide whether that's something they want to do.

Speaking only for myself, I can say without reservation that I'd be glad to pay for a library compiler as an add-on product to PureBasic, and I'm sure I'm not alone in this view.

To El_Choni: Thank you very much for creating and supporting this tool over the past years. It truly is a fine piece of work and much appreciated by a great many PureBasic coders. I wish you all the very best in the future.
BERESHEIT
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

With PB4 of course we find that using the threadsafe switch causes different versions of certain library routines to be linked in with the final executable. Consequently, we find ourselves having to create multiple versions of our tailbitten libs just to cater for the different switches. Of course, it is possible to create one tailbitten lib which caters for ansi/unicode/threadsafe etc. but this does involve a little more work for the creator of the lib.

I just prefer to use source code include files and that way remain completely in control.

In a way I wish PB generated threadsafe code without exception, at least this way we wouldn't have to worry about the different library versions. Dito for Unicode. Sure it might slow some routines down a little, but hey there's always inline asm etc.
I may look like a mule, but I'm not a complete ass.
Post Reply