Page 6 of 7
Re: My wishlist for PureBasic 4.50
Posted: Tue Nov 24, 2009 7:47 pm
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

Re: My wishlist for PureBasic 4.50
Posted: Tue Nov 24, 2009 7:55 pm
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.

Re: My wishlist for PureBasic 4.50
Posted: Tue Nov 24, 2009 9:12 pm
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.
I have nothing against linked lists by the way when they're not abused !
Re: My wishlist for PureBasic 4.50
Posted: Tue Nov 24, 2009 9:42 pm
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).
Re: My wishlist for PureBasic 4.50
Posted: Tue Nov 24, 2009 10:03 pm
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.

Re: My wishlist for PureBasic 4.50
Posted: Wed Nov 25, 2009 9:59 am
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
Re: My wishlist for PureBasic 4.50
Posted: Wed Nov 25, 2009 11:19 am
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
In my project, i use a lot allocateMemory().
I will keept this API on.
Re: My wishlist for PureBasic 4.50
Posted: Wed Nov 25, 2009 12:44 pm
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.

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...
Re: My wishlist for PureBasic 4.50
Posted: Wed Nov 25, 2009 1:09 pm
by nco2k
indeed.. that would be awesome.
c ya,
nco2k
Re: My wishlist for PureBasic 4.50
Posted: Sun Nov 29, 2009 3:46 am
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.

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.
Re: My wishlist for PureBasic 4.50
Posted: Mon Nov 30, 2009 2:50 am
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.
Re: My wishlist for PureBasic 4.50
Posted: Mon Nov 30, 2009 9:36 am
by djes
I want a teapot object generator!!!!

Re: My wishlist for PureBasic 4.50
Posted: Wed Dec 02, 2009 11:22 pm
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?
Re: My wishlist for PureBasic 4.50
Posted: Thu Dec 03, 2009 5:37 pm
by blueznl
Min() Max() and predictable expression evaluation...
Re: My wishlist for PureBasic 4.50
Posted: Thu Dec 03, 2009 8:56 pm
by Saboteur
An easy way to create custom gadgets in PB.