My wishlist for PureBasic 4.50

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Kale wrote:In fact i think i read somewhere in another thread that Fred wouldn't even know where to begin implementing OOP in PB (me neither), it would take a massive redesign and a huge amount of learning on his part.
Dunno where you read this, but i won't have to learning anything to build an object oriented version of PB. I do use object language on daily basis (C++ and JAVA) and trust me, it's not that difficult to do a compiler which handle that (there is quite some BASIC around with OOP support btw). The fact is you can't have both approach in the same langage. C++ is a real mess in this regards. You can still code in procedural way and object oriented way, at the same level, in the same programs. It result is very hard to maintain code, especially from old C ports which have been 'objectized'.

Now, we have some plan for PB to handle bigger programs, but that's only a draft for now, and we have to implement it. Stay tuned.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

I seem to remember you saying years ago Fred that the compiler would need a complete redesign before it could support OOP in any meaningful way? Perhaps it is to that comment which Kale referred?
I may look like a mule, but I'm not a complete ass.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Fred wrote:Now, we have some plan for PB to handle bigger programs, but that's only a draft for now, and we have to implement it. Stay tuned.
OMG, tell us more, more, more! :shock: 8)
--Kale

Image
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

I am guessing modules perhaps? Those that compiler to static object files.

Then again, my guesses are never very reliable! :)
I may look like a mule, but I'm not a complete ass.
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Post by hallodri »

@srod

daydreamer :D
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

hallodri wrote:@srod

daydreamer :D
lol.

:lol:
I may look like a mule, but I'm not a complete ass.
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

srod wrote:I seem to remember you saying years ago Fred that the compiler would need a complete redesign before it could support OOP in any meaningful way? Perhaps it is to that comment which Kale referred?
This is true, it would need a major overhaul as it hasn't been build for it from the start. That doesn't mean it would be hard but probably very time consuming ;)
Lubos
Enthusiast
Enthusiast
Posts: 167
Joined: Tue Feb 03, 2004 12:32 am
Contact:

The Times They Are A-Changin?

Post by Lubos »

Fred wrote: Now, we have some plan for PB to handle bigger programs, but that's only a draft for now, and we have to implement it. Stay tuned.
In accord BASIC acronym I consider PureBasic as a tool for casual programmers („beginers“). Small a medium tasks are typical for such users.Objects are not essential.
I (and many others) like PB just for simple procedural syntax.

In 2005/10 Fred said in one interview:“ I don't plan to add class and such I think it will split the PB world in 2 classes (!): the one which have understood fully how OOP work and other which don't. Which means than you couldn't share source codes easily anymore at one place. Procedural and Object Oriented Programming are two opposite concepts and it's not a good idea to mix them in a BASIC language (which is intended for beginners...)”

Is this opinion still valid?
Niffo
Enthusiast
Enthusiast
Posts: 500
Joined: Tue Jan 31, 2006 9:43 am
Location: France

Post by Niffo »

it's as simple as creating two sections in the forum ...
Niffo
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: The Times They Are A-Changin?

Post by Fred »

Lubos wrote:In 2005/10 Fred said in one interview:“Procedural and Object Oriented Programming are two opposite concepts and it's not a good idea to mix them in a BASIC language (which is intended for beginners...)”

Is this opinion still valid?
Yes, it's still valid. It's exactly what i wrote above :)
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Re: The Times They Are A-Changin?

Post by Kale »

Fred wrote:
Lubos wrote:In 2005/10 Fred said in one interview:“Procedural and Object Oriented Programming are two opposite concepts and it's not a good idea to mix them in a BASIC language (which is intended for beginners...)”

Is this opinion still valid?
Yes, it's still valid. It's exactly what i wrote above :)
Fred, have you ever though of developing a language that isn't targetted at beginners? A complete new language using OOP from the ground up? I'd buy such a thing. :wink:
--Kale

Image
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

I hope that never happens... unless that's what it takes to keep Fred's bank account in the black and PureBasic alive...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

Post by Poshu »

Thoughtfully, if you want a language which is not beginner oriented, you've got some choice already available on the market. I can't see any point to a Fred-developed, hard to use language... Still, to me, OOP isn't that hard to write and is easier to read (tell me, when you open a year-old procedural code, can you immediately understand what you were doing?).
But I still enjoy PB the way it is.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

I just want a version of C# or Java which compiles natively through FASM! :P
--Kale

Image
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

Post by Poshu »

Let's say: I would like PureBasic to compile under Android (google's smartphone OS) for the 4.50... 4.60 worse case scenario :twisted:
Post Reply