Re: [Numpy-discussion] PyData Barcelona this May

2017-03-20 Thread Chris Barker
On Mon, Mar 20, 2017 at 11:58 AM, Jaime Fernández del Río <
jaime.f...@gmail.com> wrote:

>  I have just submitted a workshop proposal with the following short
> description:
>
> Taking NumPy In Stride
> This workshop is aimed at users already familiar with NumPy. We will
> dissect
> the NumPy memory model with the help of a very powerful abstraction:
> strides.
> Participants will learn how to create different views out of the same data,
> including multidimensional ones, get a new angle on how and why
> broadcasting
> works, and explore related techniques to write faster, more efficient code.
>

I'd go!

And nice title :-)

Any thoughts on a similar one for SciPy in Austin?

-CHB





> Let's see what the organizers think of it...
>
> Jaime
>
>
> On Fri, Mar 17, 2017 at 10:59 PM, Ralf Gommers 
> wrote:
>
>>
>>
>> On Sat, Mar 18, 2017 at 8:41 AM, Chris Barker 
>> wrote:
>>
>>> On Fri, Mar 17, 2017 at 4:37 AM, Jaime Fernández del Río <
>>> jaime.f...@gmail.com> wrote:
>>>

- many people that use numpy in their daily work don't know what
strides are, this was a BIG surprise for me.

 I'm not surprised at all. To start with, the majority of users are
>> self-taught programmers that never used something lower level than Python
>> or Matlab. Even talking to them about memory layout presents challenges.
>>
>>
>>>
-

 Based on that experience, I was thinking that maybe a good topic for a
 workshop would be NumPy's memory model: views, reshaping, strides, some
 hints of buffering in the iterator...

>>>
>> This material has been used multiple times in EuroScipy tutorials and may
>> be of use: http://www.scipy-lectures.org/advanced/advanced_numpy/index.
>> html
>>
>> Ralf
>>
>>
>>
>>> I think this is a great idea. In fact, when I do an intro to numpy, I
>>> spend a bit of time on those issues, 'cause I think it's key to "Getting"
>>> numpy, and not something that people end up learning on their own from
>>> tutorials, etc. However, in my  case, I try to jam it into a low-level
>>> intro, and I think that fails :-(
>>>
>>> So doing it on it's own with the assumption that participant already
>>> know the basics of the high level python interface is a great idea.
>>>
>>> Maybe a "advanced" numpy tutorial for SciPy 2017 in Austin also???
>>>
>>> Here is my last talk -- maybe it'll be helpful.
>>>
>>> http://uwpce-pythoncert.github.io/SystemDevelopment/scipy.html#scipy
>>>
>>> the strides stuff is covered in a notebook here:
>>>
>>> https://github.com/UWPCE-PythonCert/SystemDevelopment/blob/m
>>> aster/Examples/numpy/stride_tricks.ipynb
>>>
>>> other notebooks here:
>>>
>>> https://github.com/UWPCE-PythonCert/SystemDevelopment/tree/m
>>> aster/Examples/numpy
>>>
>>> and the source for the whole thing is here:
>>>
>>> https://github.com/UWPCE-PythonCert/SystemDevelopment/blob/m
>>> aster/slides_sources/source/scipy.rst
>>>
>>>
>>> All licensed under: Creative Commons Attribution-ShareAlike -- so please
>>> use anything you find useful.
>>>
>>> -CHB
>>>
>>>
>>>
>>> And Julian's temporary work lends itself to a very nice talk, more on
 Python internals than on NumPy, but it's a very cool subject nonetheless.

 So my thinking is that I am going to propose those two, as a workshop
 and a talk. Thoughts?

 Jaime

 On Thu, Mar 9, 2017 at 8:29 PM, Sebastian Berg <
 sebast...@sipsolutions.net> wrote:

> On Thu, 2017-03-09 at 15:45 +0100, Jaime Fernández del Río wrote:
> > There will be a PyData conference in Barcelona this May:
> >
> > http://pydata.org/barcelona2017/
> >
> > I am planning on attending, and was thinking of maybe proposing to
> > organize a numpy-themed workshop or tutorial.
> >
> > My personal inclination would be to look at some advanced topic that
> > I know well, like writing gufuncs in Cython, but wouldn't mind doing
> > a more run of the mill thing. Anyone has any thoughts or experiences
> > on what has worked well in similar situations? Any specific topic you
> > always wanted to attend a workshop on, but were afraid to ask?
> >
> > Alternatively, or on top of the workshop, I could propose to do a
> > talk: talking last year at PyData Madrid about the new indexing was a
> > lot of fun! Thing is, I have been quite disconnected from the project
> > this past year, and can't really think of any worthwhile topic. Is
> > there any message that we as a project would like to get out to the
> > larger community?
> >
>
> Francesc already pointed out the temporary optimization. From what I
> remember, my personal highlight would probably be Pauli's work on the
> memory overlap detection. Though both are rather passive improvements I
> guess (you don't really have to learn them to use them), its very cool!
> And if its about highlighting new stuff, these can probably 

Re: [Numpy-discussion] PyData Barcelona this May

2017-03-20 Thread Jaime Fernández del Río
Thanks for the links, Chris and Ralf, will be very helpful eventually. I
have just submitted a workshop proposal with the following short
description:

Taking NumPy In Stride
This workshop is aimed at users already familiar with NumPy. We will dissect
the NumPy memory model with the help of a very powerful abstraction:
strides.
Participants will learn how to create different views out of the same data,
including multidimensional ones, get a new angle on how and why broadcasting
works, and explore related techniques to write faster, more efficient code.

Let's see what the organizers think of it...

Jaime


On Fri, Mar 17, 2017 at 10:59 PM, Ralf Gommers 
wrote:

>
>
> On Sat, Mar 18, 2017 at 8:41 AM, Chris Barker 
> wrote:
>
>> On Fri, Mar 17, 2017 at 4:37 AM, Jaime Fernández del Río <
>> jaime.f...@gmail.com> wrote:
>>
>>>
>>>- many people that use numpy in their daily work don't know what
>>>strides are, this was a BIG surprise for me.
>>>
>>> I'm not surprised at all. To start with, the majority of users are
> self-taught programmers that never used something lower level than Python
> or Matlab. Even talking to them about memory layout presents challenges.
>
>
>>
>>>-
>>>
>>> Based on that experience, I was thinking that maybe a good topic for a
>>> workshop would be NumPy's memory model: views, reshaping, strides, some
>>> hints of buffering in the iterator...
>>>
>>
> This material has been used multiple times in EuroScipy tutorials and may
> be of use: http://www.scipy-lectures.org/advanced/advanced_numpy/index.
> html
>
> Ralf
>
>
>
>> I think this is a great idea. In fact, when I do an intro to numpy, I
>> spend a bit of time on those issues, 'cause I think it's key to "Getting"
>> numpy, and not something that people end up learning on their own from
>> tutorials, etc. However, in my  case, I try to jam it into a low-level
>> intro, and I think that fails :-(
>>
>> So doing it on it's own with the assumption that participant already know
>> the basics of the high level python interface is a great idea.
>>
>> Maybe a "advanced" numpy tutorial for SciPy 2017 in Austin also???
>>
>> Here is my last talk -- maybe it'll be helpful.
>>
>> http://uwpce-pythoncert.github.io/SystemDevelopment/scipy.html#scipy
>>
>> the strides stuff is covered in a notebook here:
>>
>> https://github.com/UWPCE-PythonCert/SystemDevelopment/blob/
>> master/Examples/numpy/stride_tricks.ipynb
>>
>> other notebooks here:
>>
>> https://github.com/UWPCE-PythonCert/SystemDevelopment/tree/
>> master/Examples/numpy
>>
>> and the source for the whole thing is here:
>>
>> https://github.com/UWPCE-PythonCert/SystemDevelopment/blob/
>> master/slides_sources/source/scipy.rst
>>
>>
>> All licensed under: Creative Commons Attribution-ShareAlike -- so please
>> use anything you find useful.
>>
>> -CHB
>>
>>
>>
>> And Julian's temporary work lends itself to a very nice talk, more on
>>> Python internals than on NumPy, but it's a very cool subject nonetheless.
>>>
>>> So my thinking is that I am going to propose those two, as a workshop
>>> and a talk. Thoughts?
>>>
>>> Jaime
>>>
>>> On Thu, Mar 9, 2017 at 8:29 PM, Sebastian Berg <
>>> sebast...@sipsolutions.net> wrote:
>>>
 On Thu, 2017-03-09 at 15:45 +0100, Jaime Fernández del Río wrote:
 > There will be a PyData conference in Barcelona this May:
 >
 > http://pydata.org/barcelona2017/
 >
 > I am planning on attending, and was thinking of maybe proposing to
 > organize a numpy-themed workshop or tutorial.
 >
 > My personal inclination would be to look at some advanced topic that
 > I know well, like writing gufuncs in Cython, but wouldn't mind doing
 > a more run of the mill thing. Anyone has any thoughts or experiences
 > on what has worked well in similar situations? Any specific topic you
 > always wanted to attend a workshop on, but were afraid to ask?
 >
 > Alternatively, or on top of the workshop, I could propose to do a
 > talk: talking last year at PyData Madrid about the new indexing was a
 > lot of fun! Thing is, I have been quite disconnected from the project
 > this past year, and can't really think of any worthwhile topic. Is
 > there any message that we as a project would like to get out to the
 > larger community?
 >

 Francesc already pointed out the temporary optimization. From what I
 remember, my personal highlight would probably be Pauli's work on the
 memory overlap detection. Though both are rather passive improvements I
 guess (you don't really have to learn them to use them), its very cool!
 And if its about highlighting new stuff, these can probably easily fill
 a talk.

 > And if you are planning on attending, please give me a shout.
 >

 Barcelona :). Maybe I should think about it, but probably not.


 > Thanks,
 >
 > Jaime
 >
 > --
 > (\__/)