how big of a list xcan we have in Pd? How many elements can a t_atom have?
cheers
On 04.07.19 00:20, Alexandre Torres Porres wrote:
how big of a list xcan we have in Pd?
i don't think there's a limit. i've just successfully created a list of about 690.000.000 elements (all floats) with [list store], which happens to consume ~50% (according to htop) of my memory (32GB RAM); whenever i output the list (e.g. to measure its length with [list length]) the system starts to swap.
the ideal representation of such a list would take 2.5GB of memory (an array of single precision floats), however, due to Pd's t_atom type it should take about 10GB on a 64bit system.
whenever you bang [list store], it creates two copies of the stored list (amounting to about 30GB) which probably explains why it takes so long to type this email.
How many elements can a t_atom have?
given that a t_atom is a scalar: one. (or: i don't understand the question; what do you mean with "element"?)
gnas+ IOhannes
On 4 Jul 2019, at 09:21, IOhannes m zmoelnig zmoelnig@iem.at wrote:
On 04.07.19 00:20, Alexandre Torres Porres wrote:
how big of a list xcan we have in Pd?
i don't think there's a limit.
Since Pd’s argc for passing list vectors is an int, isn’t the maximum list size bound by INT_MAX, so something in the order of 2x10^9 ?
Jamie
On 04.07.19 10:53, Jamie Bullock wrote:
On 4 Jul 2019, at 09:21, IOhannes m zmoelnig zmoelnig@iem.at wrote:
On 04.07.19 00:20, Alexandre Torres Porres wrote:
how big of a list xcan we have in Pd?
i don't think there's a limit.
Since Pd’s argc for passing list vectors is an int, isn’t the maximum list size bound by INT_MAX, so something in the order of 2x10^9 ?
+2147483648 :-)
On 4 Jul 2019, at 10:29, IOhannes m zmoelnig zmoelnig@iem.at wrote:
On 04.07.19 10:53, Jamie Bullock wrote:
On 4 Jul 2019, at 09:21, IOhannes m zmoelnig zmoelnig@iem.at wrote:
On 04.07.19 00:20, Alexandre Torres Porres wrote:
how big of a list xcan we have in Pd?
i don't think there's a limit.
Since Pd’s argc for passing list vectors is an int, isn’t the maximum list size bound by INT_MAX, so something in the order of 2x10^9 ?
+2147483648 :-)
Ha yeah! Wrote that in a rush, of course I meant 2^31 :*)
J
but that's 2ˆ30 ;)
Em qui, 4 de jul de 2019 às 07:32, Jamie Bullock jamie@jamiebullock.com escreveu:
On 4 Jul 2019, at 10:29, IOhannes m zmoelnig zmoelnig@iem.at wrote:
On 04.07.19 10:53, Jamie Bullock wrote:
On 4 Jul 2019, at 09:21, IOhannes m zmoelnig zmoelnig@iem.at wrote:
On 04.07.19 00:20, Alexandre Torres Porres wrote:
how big of a list xcan we have in Pd?
i don't think there's a limit.
Since Pd’s argc for passing list vectors is an int, isn’t the maximum
list size bound by INT_MAX, so something in the order of 2x10^9 ?
+2147483648 :-)
Ha yeah! Wrote that in a rush, of course I meant 2^31 :*)
J
Pd-dev mailing list Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev
Em qui, 4 de jul de 2019 às 13:54, Roman Haefeli reduzent@gmail.com escreveu:
+2147483648 :-)
Ha yeah! Wrote that in a rush, of course I meant 2^31 :*)
but that's 2ˆ30 ;)
You sure?
no, but a google search led me to this: http://potenciasde2.blogspot.com/
2ˆ30 = 2 147 483 648
:/
so I assumed int goes from -2147483648 to +2147483647 for being in a range of 2ˆ31
a calculator gives : 2ˆ30 = 1073741824. The webpage is wrong. (you can see it problem between 2^23 and 2^24)
a int is obviouslly from range -(2^31)-1 to (2^31)-1 this is about from -2*10^9 to 2*10^9
cheers
Le 05/07/2019 à 00:42, Alexandre Torres Porres a écrit :
Em qui, 4 de jul de 2019 às 13:54, Roman Haefeli <reduzent@gmail.com mailto:reduzent@gmail.com> escreveu:
>>> +2147483648 :-) >> Ha yeah! Wrote that in a rush, of course I meant 2^31 :*) > but that's 2ˆ30 ;) You sure?
no, but a google search led me to this: http://potenciasde2.blogspot.com/
2ˆ30 = 2 147 483 648
:/
so I assumed int goes from -2147483648 to +2147483647 for being in a range of 2ˆ31
Pd-dev mailing list Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev
yeah, I know, I was just pointing how I got misled :/
next time: don't be lazy to use a calculator
Em sex, 5 de jul de 2019 às 06:03, cyrille henry ch@chnry.net escreveu:
a calculator gives : 2ˆ30 = 1073741824. The webpage is wrong. (you can see it problem between 2^23 and 2^24)
a int is obviouslly from range -(2^31)-1 to (2^31)-1 this is about from -2*10^9 to 2*10^9
cheers
Le 05/07/2019 à 00:42, Alexandre Torres Porres a écrit :
Em qui, 4 de jul de 2019 às 13:54, Roman Haefeli <reduzent@gmail.com
mailto:reduzent@gmail.com> escreveu:
>>> +2147483648 :-) >> Ha yeah! Wrote that in a rush, of course I meant 2^31 :*) > but that's 2ˆ30 ;) You sure?
no, but a google search led me to this:
http://potenciasde2.blogspot.com/
2ˆ30 = 2 147 483 648
:/
so I assumed int goes from -2147483648 to +2147483647 for being in a
range of 2ˆ31
Pd-dev mailing list Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev
Pd-dev mailing list Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev
sorry, I should not reply to this list so early in the morning.
Le 05/07/2019 à 18:44, Alexandre Torres Porres a écrit :
yeah, I know, I was just pointing how I got misled :/
next time: don't be lazy to use a calculator
Em sex, 5 de jul de 2019 às 06:03, cyrille henry <ch@chnry.net mailto:ch@chnry.net> escreveu:
a calculator gives : 2ˆ30 = 1073741824. The webpage is wrong. (you can see it problem between 2^23 and 2^24) a int is obviouslly from range -(2^31)-1 to (2^31)-1 this is about from -2*10^9 to 2*10^9 cheers Le 05/07/2019 à 00:42, Alexandre Torres Porres a écrit : > > > Em qui, 4 de jul de 2019 às 13:54, Roman Haefeli <reduzent@gmail.com <mailto:reduzent@gmail.com> <mailto:reduzent@gmail.com <mailto:reduzent@gmail.com>>> escreveu: > > > >>> +2147483648 :-) > >> Ha yeah! Wrote that in a rush, of course I meant 2^31 :*) > > but that's 2ˆ30 ;) > > You sure? > > > no, but a google search led me to this: http://potenciasde2.blogspot.com/ > > 2ˆ30 = 2 147 483 648 > > :/ > > so I assumed int goes from -2147483648 to +2147483647 for being in a range of 2ˆ31 > > _______________________________________________ > Pd-dev mailing list > Pd-dev@lists.iem.at <mailto:Pd-dev@lists.iem.at> > https://lists.puredata.info/listinfo/pd-dev > _______________________________________________ Pd-dev mailing list Pd-dev@lists.iem.at <mailto:Pd-dev@lists.iem.at> https://lists.puredata.info/listinfo/pd-dev
Pd-dev mailing list Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev
hmm?
next time: don't be lazy to use a calculator
anyway, I was talking about me, just to make sure :)
Em sex, 5 de jul de 2019 às 16:29, cyrille henry ch@chnry.net escreveu:
sorry, I should not reply to this list so early in the morning.
Le 05/07/2019 à 18:44, Alexandre Torres Porres a écrit :
yeah, I know, I was just pointing how I got misled :/
next time: don't be lazy to use a calculator
Em sex, 5 de jul de 2019 às 06:03, cyrille henry <ch@chnry.net <mailto:
ch@chnry.net>> escreveu:
a calculator gives : 2ˆ30 = 1073741824. The webpage is wrong. (you
can see it problem between 2^23 and 2^24)
a int is obviouslly from range -(2^31)-1 to (2^31)-1 this is about from -2*10^9 to 2*10^9 cheers Le 05/07/2019 à 00:42, Alexandre Torres Porres a écrit : > > > Em qui, 4 de jul de 2019 às 13:54, Roman Haefeli <
reduzent@gmail.com mailto:reduzent@gmail.com <mailto:reduzent@gmail.com mailto:reduzent@gmail.com>> escreveu:
> > > >>> +2147483648 :-) > >> Ha yeah! Wrote that in a rush, of course I meant 2^31 :*) > > but that's 2ˆ30 ;) > > You sure? > > > no, but a google search led me to this:
http://potenciasde2.blogspot.com/
> > 2ˆ30 = 2 147 483 648 > > :/ > > so I assumed int goes from -2147483648 to +2147483647 for being
in a range of 2ˆ31
> > _______________________________________________ > Pd-dev mailing list > Pd-dev@lists.iem.at <mailto:Pd-dev@lists.iem.at> > https://lists.puredata.info/listinfo/pd-dev > _______________________________________________ Pd-dev mailing list Pd-dev@lists.iem.at <mailto:Pd-dev@lists.iem.at> https://lists.puredata.info/listinfo/pd-dev
Pd-dev mailing list Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev
Pd-dev mailing list Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev
On 04/07/2019 23:42, Alexandre Torres Porres wrote: no, but a google search led me to this: http://potenciasde2.blogspot.com/
2ˆ30 = 2 147 483 648
Yeah, but they have the obviously incorrect:
2ˆ23 = 8 388 608 2ˆ24 = 33 554 432
-- matthew brandi | 020 8882 4616
On Thursday, July 4, 2019, 3:35:14 AM EDT, Alexandre Torres Porres porres@gmail.com wrote: how big of a list xcan we have in Pd?
100
How many elements can a t_atom have?
1000 For best results, no bigger than: 5 All assuming the Pd user needs to hit low latency soft realtime deadlines.
-Jonathan