I will wait for native functions, i hope wishes will become reality
My wishlist for PureBasic 4.50
Re: My wishlist for PureBasic 4.50
I never use array, only linked list, it's so easy.
I will wait for native functions, i hope wishes will become reality
I will wait for native functions, i hope wishes will become reality
A+
Denis
Denis
Re: My wishlist for PureBasic 4.50
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.
Re: My wishlist for PureBasic 4.50
Usually easy things come at a price. A linked list has a lot of levels of indirection (memory access).Denis wrote:I never use array, only linked list, it's so easy.
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 !
"Have you tried turning it off and on again ?"
Re: My wishlist for PureBasic 4.50
luis,
may be you're right, but that's how i code :roll:
To try to avoid heap fragmentation, i use HeapSetInformation API (Windows).
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
Denis
Re: My wishlist for PureBasic 4.50
Whoops sorry, didn't want to perturb the status quo. (uhmmm I want to try the eye-rolling me too: :roll:. Nice!)Denis wrote:luis,
may be you're right, but that's how i code :roll:
That completely address the multiple indirections argument ! Case closed !Denis wrote: To try to avoid heap fragmentation, i use HeapSetInformation API (Windows).
Back to my hole playing with old fashioned arrays.
"Have you tried turning it off and on again ?"
Re: My wishlist for PureBasic 4.50
Actually it is not needed anymore, as we do use custom, block optimized allocator: http://www.purebasic.fr/blog/?p=8Denis 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).
Re: My wishlist for PureBasic 4.50
Ok Fred for linked listFred wrote:Actually it is not needed anymore, as we do use custom, block optimized allocator: http://www.purebasic.fr/blog/?p=8Denis 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).
In my project, i use a lot allocateMemory().
I will keept this API on.
A+
Denis
Denis
Re: My wishlist for PureBasic 4.50
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...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.
Re: My wishlist for PureBasic 4.50
indeed.. that would be awesome.
c ya,
nco2k
c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Re: My wishlist for PureBasic 4.50
This is definitely the one feature I would like to see the most as well.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.
-
Seymour Clufley
- Addict

- Posts: 1266
- Joined: Wed Feb 28, 2007 9:13 am
- Location: London
Re: My wishlist for PureBasic 4.50
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."
Re: My wishlist for PureBasic 4.50
I want a teapot object generator!!!! 

Re: My wishlist for PureBasic 4.50
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?
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
Re: My wishlist for PureBasic 4.50
Min() Max() and predictable expression evaluation...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Re: My wishlist for PureBasic 4.50
An easy way to create custom gadgets in PB.
[:: PB Registered ::]
Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti


