---------- Message transféré ---------- De : "[hidden email]" <[hidden email]> Date : 11 mai 2017 10:54 Objet : Re: 11/05/17 - Tabular Data Structures for Data Analysis - Oleksandr Zaytsev À : "Nick Papoylias" <[hidden email]> Cc : On Thu, May 11, 2017 at 10:20 AM, Nick Papoylias <[hidden email]> wrote:
No need for changes, this exists already. Use atWrap: index put: value and atWrap: with negative indexes. 'hello' atWrap: -2 There is a specific version for Array using a primitive. #[ 10 20 30 40 ] atWrap: -1 atWrap:0 gives you the last item. atWrap: -1 gives 30 This is different from 0 based index languages. The interesing thing about atWrap: is that it uses modulo interally so you do not need to care about that. ($/ split: 'abc/def/ghi/jkl') atWrap: -1 --> 'ghi' The Matrix class has a bunch of things API wise but the class is highly inefficient, doing copies all the time etc. It would be nice to have some kind of futures/copy on write style things in there. I miss cbind and rbind. These are useful. I have some half baked super inefficient implementations of these things for Matrix. The ability to name columns is also nice to have. In R one does: df <- dataframe() cbind(df, c(1,2,3)) cbind(df, c(4,5,6)) names(df)<-("C1", "C2", "C3") names can be found back with: names(df) A Smalltalkish style would be welcome. Maybe looking at the Voyage queries can be helpful. Phil
rowNamed: rowAt: yes, look like it. But if we want to model things like R dataframes for example, this has to be seen as a vectorized operation, so you can to use row slices, column slices, and logical indexes. Check this out:
|
Envoyé de mon iPhone
|
I would love to, but to go to Lille from my country I would need a visa. Which is not that easy to acquire. So maybe I will come to PharoDays 2018.On Tue, May 16, 2017 at 7:26 PM, <[hidden email]> wrote:
|
I was asking Philippe but hope to see you also at ESUG ! Envoyé de mon iPhone
|
In reply to this post by SergeStinckwich
On Tue, May 16, 2017 at 6:26 PM, <[hidden email]> wrote:
I am. There is a 'coding time' slot :-) Phil
|
In reply to this post by SergeStinckwich
We may also use Discord and do something "somewhat live" Phil On Tue, May 16, 2017 at 7:23 PM, <[hidden email]> wrote:
|
I'm interested to help for such new "containers". May be we should proceed that way: On Tue, May 16, 2017 at 7:44 PM, [hidden email] <[hidden email]> wrote:
|
write some tests and ask for a good implementations. Crazy implementors like henrik can probably beat us all :) On Wed, May 17, 2017 at 7:55 PM, Stephane Ducasse <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |