[Python-ideas] Implementing a set of operation (+, /, - *) on dict consistent with linearAlgebrae

julien tayon julien at tayon.net
Tue Oct 30 15:06:51 EDT 2018

Thanks robert for the praise. It feels nice.

I may be bold, but I really hate to come empty handed to a discussion. So
this lib is nothing more than doing my homework when I don't have a PhD.

Actually, science (in my opinion) is about measuring. What I propose is
nothing more than (if you add Vector traits) giving native metrics to
objects (having coded in Perl for too long I still see objects as a
hierarchy of blessed MutableMappings, I am sorry). And I think that
measurements are a corner stone of science, thus of data science. (my
opinion you may not share).

Thus it could be kind of extending some of the concepts of datasets :
https://www.python.org/dev/peps/pep-0557/ to additionnal default behaviour
(that could be subscribed optionnally).

As an everyday coder, this behaviour does solve problems I can illustrate
with code (like aggregating data, or measuring if I might have doubon in a
set of dataset, transforming objects into objects).

I do not want to force feed the community with my "brilliant" ideas, I much
more would like to plead my case on how adopting "consistent geometric
behaviours" at the language level would ease our lives as coders, if this
is not inappropriate.

Please don't look at the lib. Look at the idea of making operators behave
in a consistent way that gives the property of well known mathematic
constructions to the core of the language.

It also enables parallelisation without side effects (aka the map reduce of
the poors), which are a first order consequence of the linear algebrae.

I may not be gifted with writing long dissertations, however, I have a
pragmatic mind. So I don't mind being challenged a tad, as long as we talk
about stuffs like : how does it profit python coders to be standard, can
you show me real life example ?

However, if a "no (answer)" is a "no", I do understand. I like python the
way it is, and I don't want to introduce friction in the process of
improving python by being off topic.

Thus if no one is interested, I still have a last word : keep up the good
work! And thank you all for what you bring us.


On Tue, 30 Oct 2018 at 19:11, Robert Vanden Eynde <robertve92 at gmail.com>

> Julien, your article is very pleasant to read (and funny) but as other say
> the mailing list is not there to share some articles, but for proposition
> to the standard python library,
> do our own lib on github and pypi first if you want to Share some code to
> the world !
> And if project becomes super useful to everyone one day, it may come one
> day to the standard library so that everybody will have it.
> Cheers,
> Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20181030/327e5d16/attachment.html>

More information about the Python-ideas mailing list