My wishlist for PureBasic 4.50

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: My wishlist for PureBasic 4.50

Post by Denis »

I never use array, only linked list, it's so easy.

I will wait for native functions, i hope wishes will become reality :D
A+
Denis
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: My wishlist for PureBasic 4.50

Post by srod »

It's the need to mutex protect even read only linked lists when dealing with multithreads which leads me to always seek other data structures. :)
I may look like a mule, but I'm not a complete ass.
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: My wishlist for PureBasic 4.50

Post by luis »

Denis wrote:I never use array, only linked list, it's so easy.
Usually easy things come at a price. A linked list has a lot of levels of indirection (memory access).
Arrays are a lot faster.
It's not without reason often you see heavy neural networks (an example so well suited to be represented with objects or some sort of linked lists), implemented as many parallel arrays (to optimize the speed of a factor of 3/5 times if not more).

So a sentence like yours "I never use array, only linked list" is a little scary. :o

I have nothing against linked lists by the way when they're not abused !
"Have you tried turning it off and on again ?"
A little PureBasic review
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: My wishlist for PureBasic 4.50

Post by Denis »

luis,
may be you're right, but that's how i code :roll:

To try to avoid heap fragmentation, i use HeapSetInformation API (Windows).
A+
Denis
User avatar
luis
Addict
Addict
Posts: 3893
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: My wishlist for PureBasic 4.50

Post by luis »

Denis wrote:luis,
may be you're right, but that's how i code :roll:
Whoops sorry, didn't want to perturb the status quo. (uhmmm I want to try the eye-rolling me too: :roll:. Nice!)
Denis wrote: To try to avoid heap fragmentation, i use HeapSetInformation API (Windows).
That completely address the multiple indirections argument ! Case closed !

Back to my hole playing with old fashioned arrays. :cry:
"Have you tried turning it off and on again ?"
A little PureBasic review
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: My wishlist for PureBasic 4.50

Post by Fred »

Denis wrote:luis,
may be you're right, but that's how i code :roll:

To try to avoid heap fragmentation, i use HeapSetInformation API (Windows).
Actually it is not needed anymore, as we do use custom, block optimized allocator: http://www.purebasic.fr/blog/?p=8
Denis
Enthusiast
Enthusiast
Posts: 778
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: My wishlist for PureBasic 4.50

Post by Denis »

Fred wrote:
Denis wrote:luis,
may be you're right, but that's how i code :roll:

To try to avoid heap fragmentation, i use HeapSetInformation API (Windows).
Actually it is not needed anymore, as we do use custom, block optimized allocator: http://www.purebasic.fr/blog/?p=8
Ok Fred for linked list :D

In my project, i use a lot allocateMemory().
I will keept this API on.
A+
Denis
eesau
Enthusiast
Enthusiast
Posts: 589
Joined: Fri Apr 27, 2007 12:38 pm
Location: Finland

Re: My wishlist for PureBasic 4.50

Post by eesau »

srod wrote:Being able to embed dynamic lists / arrays / maps within arbitrary structures, for my money, is the most pressing requirement now for PB - at least in terms of the work I do. :wink: Not a complaint as such because PB is awesome and there are always ways around such things. In these cases I simply use a suite of utilities which I have built up over the years. Still, adding this natively to PB would, to my mind, plug the last remaining gap for me. :)
I agree, embedding lists, arrays and maps into structures would be extremely useful. Because it isn't possible at the moment, I had to write my own procedures for both linked lists and hash tables (maps). Implementing this would make things much easier for me, and probably for many others as well...
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Re: My wishlist for PureBasic 4.50

Post by nco2k »

indeed.. that would be awesome. :shock:

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Matt
Enthusiast
Enthusiast
Posts: 447
Joined: Sat May 21, 2005 1:08 am
Location: USA

Re: My wishlist for PureBasic 4.50

Post by Matt »

srod wrote:Being able to embed dynamic lists / arrays / maps within arbitrary structures, for my money, is the most pressing requirement now for PB - at least in terms of the work I do. :wink: Not a complaint as such because PB is awesome and there are always ways around such things. In these cases I simply use a suite of utilities which I have built up over the years. Still, adding this natively to PB would, to my mind, plug the last remaining gap for me. :)
This is definitely the one feature I would like to see the most as well.
Seymour Clufley
Addict
Addict
Posts: 1264
Joined: Wed Feb 28, 2007 9:13 am
Location: London

Re: My wishlist for PureBasic 4.50

Post by Seymour Clufley »

LinkedLists and Maps inside structures would be good, but IMHO not as good as multi-dimensional structures. In any case I have faith that fundamental things like this will be added sooner or later.
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Re: My wishlist for PureBasic 4.50

Post by djes »

I want a teapot object generator!!!! Image
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Re: My wishlist for PureBasic 4.50

Post by Marco2007 »

My wishlist for 4.50:
It`s not the last one.....

Only two guys are coding this very big thing (multi-plattform + 32-bit & 64-bit + etc....).
...Fred full-time and Freak is a student?
PureBasic for Windows
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: My wishlist for PureBasic 4.50

Post by blueznl »

Min() Max() and predictable expression evaluation...
( 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... )
Saboteur
Enthusiast
Enthusiast
Posts: 272
Joined: Fri Apr 25, 2003 7:09 pm
Location: (Madrid) Spain
Contact:

Re: My wishlist for PureBasic 4.50

Post by Saboteur »

An easy way to create custom gadgets in PB.
[:: PB Registered ::]

Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
Post Reply