Re: [python-uk] C is it faster than numpy

2022-02-25 Thread Martin
Yeah it uses BLAS, you can read about it here
https://markus-beuckelmann.de/blog/boosting-numpy-blas.html

On Fri, 25 Feb 2022, 09:54 SW,  wrote:

> I think it uses fortran (or used to?) but yes, still close to the metal.
>
> Thanks,
> S
>
> On 25/02/2022 10:41, Giorgio Zoppi wrote:
>
> Well,
> numpy is written in C :) Maybe your C is not the numpy equivalent?
> Best Regards,
> Giorgio
>
> Il giorno ven 25 feb 2022 alle ore 09:03 BELAHCENE Abdelkader <
> abdelkader.belahc...@enst.dz> ha scritto:
>
>> Hi,
>> a lot of people think that C (or C++) is faster than python, yes I agree,
>> but I think that's not the case with numpy, I believe numpy is faster than
>> C, at least in some cases.
>>
>>
>> *Is there another explanation ? Or where can find  a doc speaking  about
>> the subject? *Thanks a lot
>> Regards
>> Numpy implements vectorization for arrays, or I'm wrong. Anyway here is
>> an example Let's look at the following case:
>> Here is the result on my laptop i3:
>>
>> Labs$ *python3 tempsExe.py  5*
>>   sum with Python: 1250025000 and NumPy 1250025000
>>   time used Python Sum: * 37.28 sec *
>>   time used  Numpy Sum:  *1.85 sec*
>>
>> Labs$ *./tt5 *
>>
>>
>> *   CPU  time :7.521730 The value : 1250025000 *
>> 
>>
>> This is the Python3 program :
>>
>> import timeit as it
>> import numpy as np
>> import sys
>> try :
>> n=eval(sys.argv[1])
>> except:
>> print ("needs integer as argument") ; exit()
>>
>> a=range(1,n+1)
>> b=np.array(a)
>> def func1(): return sum(a)
>> def func2(): return np.sum(b)
>>
>> print(f"sum with Python: {func1()} and NumPy {func2()} ")
>> tm1=it.timeit(stmt=func1, number=n)
>> print(f"time used Python Sum: {round(tm1,2)} sec")
>> tm2=it.timeit(stmt=func2, number=n)
>> print(f"time used  Numpy Sum: {round(tm2,2)} sec")
>>
>> and Here the C program:
>> #include 
>> #include 
>> #include 
>> long func1(int n){
>>  long  r=0;
>> for (int  i=1; i<= n;i++) r+= i;
>>  return r;
>> }
>> int main(int argc, char* argv[]){
>>  clock_t c0, c1;
>> long v,count; int n;
>>if ( argc < 2) {
>>   printf("Please give an argument");
>>  return -1;
>>   }
>> n=atoi(argv[1]);
>> c0 = clock();
>>  *for (int j=0;j < n;j++) v=func1(n);*
>>  c1 = clock();
>>  printf ("\tCPU  time :%.2f sec", (float)(c1 - c0)/CLOCKS_PER_SEC);
>>  printf("\n\tThe value : %ld\n",  v);
>> }
>> ___
>> python-uk mailing list
>> python-uk@python.org
>> https://mail.python.org/mailman/listinfo/python-uk
>>
>
>
> --
> Life is a chess game - Anonymous.
>
> ___
> python-uk mailing 
> listpython-uk@python.orghttps://mail.python.org/mailman/listinfo/python-uk
>
>
> ___
> python-uk mailing list
> python-uk@python.org
> https://mail.python.org/mailman/listinfo/python-uk
>
___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] Python webinar 30 April

2019-04-29 Thread Martin Campbell
Sorry to add to the spam but does anyone know why I only receive some emails 
from this list? For example I have received Harry’s reply, and I received the 
original email but the reply Leanne has sent at 10:37 I have not received. 
Nothing in Junk or Spam mail either?

From: python-uk  on 
behalf of Harry Percival 
Reply-To: "hj...@cantab.net" , UK Python Users 

Date: Wednesday, 24 April 2019 at 10:42
To: Leanne Bevan 
Cc: UK Python Users 
Subject: Re: [python-uk] Python webinar 30 April

don't worry about me Leanne! i'm just one person, I don't represent the group 
as a whole. i only represent the annoying-loudmouths-called-harry segment.

if you can find a way of writing those emails without the (R) registered 
trademark symbols all over the place, I think they would come across better.  
my two cents.

On Wed, 24 Apr 2019 at 10:37, Leanne Bevan 
mailto:lean...@greymatter.com>> wrote:
Sorry, didn’t mean to spam you all.

I wasn’t quite sure how user group mailing list works.

Leanne


Leanne Bevan

Marketing Executive

+44 (0) 1364 655161
[Grey Matter Registered]

greymatter.com
 | 
facebook
 | 
twitter
 | 
linkedin
 | find 
us
 | hear more from us

© Grey Matter Ltd 1983-Present. Registered in England and Wales

Registered office — The Old Maltings, 2 Prigg Meadow, Ashburton, Devon TQ13 7DF

Company number — 1671407 VAT number — GB 384904621

This message is intended solely for the addressee and may contain confidential 
information. If you have received this message in error please immediately and 
permanently delete it and notify the sender that you have done this. Any 
dissemination, distribution, disclosure, copying or use of the information 
contained in this message or in any attachment without prior permission of the 
addressee is strictly prohibited.

The contents of an attachment to this e-mail may contain software viruses which 
could damage your own computer system. While we have taken every reasonable 
precaution to minimise this risk, we cannot accept liability for any damage 
which you sustain as a result of software viruses. You should carry out your 
own virus checks before opening the attachment.

The contents of this message are the opinion of the author. Neither Grey Matter 
nor the author assert the accuracy of the contents and they do not constitute 
representations or advice of Grey Matter Limited or the author. Neither Grey 
Matter nor the author are liable for any actions taken on the basis of any of 
the contents. This is save to the extent of any written agreement in place with 
Grey Matter Limited to the contrary.
From: python-uk 
mailto:greymatter@python.org>>
 On Behalf Of Harry Percival
Sent: 24 April 2019 10:04
To: UK Python Users mailto:python-uk@python.org>>
Subject: Re: [python-uk] Python webinar 30 April

honestly i think the main thing that pushed it over the threshold of my 
personal mental spam filter me were the (r) symbols

On Wed, 24 Apr 2019 at 08:25, John Lee mailto:j...@pobox.com>> 
wrote:
Harry Spam!

Seriously: why is this spam?

I was interested to see that this exists.

On Fri, 19 Apr 2019, at 21:01, Harry Percival wrote:
> Intel® Spam.
>
> On Wed, 17 Apr 2019, 15:40 Leanne Bevan, 
> mailto:lean...@greymatter.com>> wrote:
> > Hello, 
>
> > __ __
>
> > Webinar:  Parallelism in Python. 
> > 
>
> > 30 April. 2pm BST.
>
> > __ __
>
> > It used to be the case that you would never use the words ‘high 
> > performance’ and ‘python' in the same sentence. The Intel® distribution of 
> > Python changes all that. In this session we show how you can speed up your 
> > Python code using Intel®’s distribution. We also show how you can 
> > parallelise your python code, and how to use Intel® Parallel Studio to 
> > profile and identify time-consuming bottlenecks.
>
> > __ __
>
> > Intel® Parallel Studio XE includes a suite of developer tools that enable 
> > you to maximise and improve the performance of your code using various 
> > techniques such as parallelism and vectorisation. 
>
> > __ __
>
> > Grey Matter is proud to be an Intel® Software Elite Reseller. We can 
> > provide licensing and advice on the Intel® Software tools available.
>
> > __ __
>
> > We are hosting this webinar with Stephen Blair-Chappell from Bayncore, an 
> > Intel® Partner 

[python-uk] Musclegenes is hiring!

2015-02-12 Thread Martin P. Hellwig
We are looking for two post-junior Python developer, this will be full time
at our office in Bicester.

Here is the job description:

Python Software Developer

Job Description

This is an exciting opportunity to work within the world’s number one
fitness
genetics testing company. We are looking for two python software developers
to join
our team at a post-junior and senior level. The successful candidates will
work
primarily for the in-house technology team, which supports the company with:
- A custom internal administration system written in Django
- A custom customer portal system (also written in Django)
- Integration of the customer portal system with a PHP site
- Various integrations with third party tools and services

We have a number of future projects such as a multi-platform mobile app,
design and
implementation of a 'big data' system that will keep us going beside the
maintenance
and improvements of the existing systems.

Desirable attributes

If you have the following attributes you are just what we are looking for
to join our
team!
- Fluency in written and spoken English
- Ability to quickly familiarise with new tools and technology
- Proficiency with the Python Programming language
- Exposure to Django, HTML and JavaScript
- Experience with different software development processes
- Ability to work with an agile development mindset (we still use
specifications, but you may need to write it yourself first)
- You don't need to be a geek, but it will certainly help

Future opportunities

MuscleGenes is currently growing at a significant pace, and as a result we
anticipate
there being further opportunities for career progression as the company
expands,
including promotion to more senior roles and/or additional skills training.
Working hours and salary This is a 38h working week full time position.
Working hours are negotiable based on company requirements.
Starting salary will be in the range of £25,000 - £35,000 depending on
experience, which will be reviewed on a regular basis.

As a MuscleGenes employee you will receive free gym membership at our local
facility ‘The Gym, Bicester’, and also be enrolled in our stock option
scheme, which
will give you a share of the profits in the event that the company is sold
or goes public.
For more information or to apply for this role, please contact Martin P.
Hellwig at he...@musclegenes.com or call on 075 27 59 39 49.
___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


[python-uk] Looking for Big Data experience

2015-01-19 Thread Martin Campbell
Hi all,

Advance apologies if this is outside the scope of this group, but I thought it 
would be a good place to start. The company I work for (Comet Global Consulting 
– www.cometgc.com) is looking for people with realtime Big Data experience, 
specifically with Cassandra. If you are such a person (or know anyone who fits 
the bill) and would like to discuss potential opportunities then please let me 
know and I’ll put you in touch with the right folks here.

Thanks
Martin
___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] Posting about seeking work?

2014-03-03 Thread Martin P. Hellwig
I don't know about here, but you are more then welcome to post it on the g+
python-uk community page:
https://plus.google.com/u/0/communities/109155400666012015869


On 3 March 2014 12:41, chris.d...@gmail.com wrote:


 Is it considered appropriate to post about seeking work? The about
 page for the list suggests it is

 This list is to help UK Python users to form a community, arrange
 events, advertise help or jobs wanted or sought and generally
 chat.

 but it always seems a bit awkward busting out with hey, I'm looking
 for work when most of the postings are about other things.

 I am, in fact, looking for work but will refrain from posting details
 unless people say something along the lines of yeah, that's okay.

 Thanks.

 --
 Chris Dent   http://burningchrome.com/
 [...]
 ___
 python-uk mailing list
 python-uk@python.org
 https://mail.python.org/mailman/listinfo/python-uk

___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] copyright info in source

2013-09-09 Thread Martin P. Hellwig
I concur, you do not have to put the full license text in it, a reference
to it is fine.
The logic behind that request is that some files may be seen out of context
of the project (as there is no reference), without having a license
attached the file can be legally misrepresented as being public domain.


So yes a one liner as Andy has given is all you need, by having your name
and year, any reference can be then looked up by anybody who is interested.


On 9 September 2013 14:24, Andy Robinson a...@reportlab.com wrote:

 On 9 September 2013 14:18, Jonathan Hartley tart...@tartley.com wrote:
  They'd like me to include a license and copyright info in every source
 file
  (including empty __init__.py files).

 I have had this with big companies before, long ago.  It may actually
 be sufficient to have one line saying something like...

 Copyright Jonathan Hartley 2013.  MIT-style license; see
 mypackage/LICENSE.TXT for details

 - Andy
 ___
 python-uk mailing list
 python-uk@python.org
 https://mail.python.org/mailman/listinfo/python-uk

___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] copyright info in source

2013-09-09 Thread Martin P. Hellwig
Yes you are right, however quoting the adage; explicit is better then
implicit :-)
To be honest, I find it rather strange that someone who likes to use your
code is dictating you what to do, me being a contractor would reply with:
Sure I'll do that for you, that is then X£ please, if you are not happy
with that, you can FO ;-) Though there is some bragging rights if you can
say that Google uses your code in one of their flagship products,
 so it is just up to you, nobody can make/force you.
I would be interested though in what you decide to do.


On 9 September 2013 16:13, Jonathan Hartley tart...@tartley.com wrote:

  Why would a file ever be seen out of context? Surely to make my source
 available without the LICENSE file is breaking the terms of my license, so
 I'm not sure why I ought to jump through hoops just to cater for such
 people. Am I wrong?

 Jonathan




 On 09/09/13 14:30, Martin P. Hellwig wrote:

  I concur, you do not have to put the full license text in it, a
 reference to it is fine.
  The logic behind that request is that some files may be seen out of
 context of the project (as there is no reference), without having a license
 attached the file can be legally misrepresented as being public domain.


  So yes a one liner as Andy has given is all you need, by having your
 name and year, any reference can be then looked up by anybody who is
 interested.


  On 9 September 2013 14:24, Andy Robinson a...@reportlab.com wrote:

 On 9 September 2013 14:18, Jonathan Hartley tart...@tartley.com wrote:
  They'd like me to include a license and copyright info in every source
 file
  (including empty __init__.py files).

  I have had this with big companies before, long ago.  It may actually
 be sufficient to have one line saying something like...

 Copyright Jonathan Hartley 2013.  MIT-style license; see
 mypackage/LICENSE.TXT for details

 - Andy
  ___
 python-uk mailing list
 python-uk@python.org
 https://mail.python.org/mailman/listinfo/python-uk




 ___
 python-uk mailing 
 listpython-uk@python.orghttps://mail.python.org/mailman/listinfo/python-uk


 --
 Jonathan Hartleytart...@tartley.comhttp://tartley.com
 Made of meat.   +44 7737 062 225   twitter/skype: tartley



 ___
 python-uk mailing list
 python-uk@python.org
 https://mail.python.org/mailman/listinfo/python-uk


___
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] [pyconuk] Python-UK Google Plus Community

2012-12-11 Thread Martin P. Hellwig
On 11 December 2012 10:48, Jonathan Hartley tart...@tartley.com wrote:

 On 11/12/2012 09:02, Mike Sandford wrote:

 On Mon, 2012-12-10 at 21:08 +, Russel Winder wrote:

 For me the problem is not Google, the problem is that it is a forum. A
 forum is a place you have to go to to find out what is happening. Some
 people like this. I want interaction to come to me. In particular it
 needs to be in my email.  Google has this idea that if you sign up for
 email notifications, you get notified of the presence of an event, you
 still have to go to the forum to discover the content of the
 contribution.

 Nicely put. I've been on some places where notifications come in and you
 have to click through (and possibly sign in!) and after a bit that extra
 step becomes do it later, and do it later turns into never. An email I
 can scan and decide pretty much immediately. And then delete it.

 That last point is important. I get to manage my own interaction.

 Mike S.

 __**_
 pyconuk mailing list
 pyco...@python.org
 http://mail.python.org/**mailman/listinfo/pyconukhttp://mail.python.org/mailman/listinfo/pyconuk


 Nobody has proposed replacing the mailing list, or changing it in any way.

 Somebody just started a G+ community as well, and thought you all might
 like to know.

 Hugs,

 Jonathan


 --
 Jonathan Hartleytart...@tartley.comhttp://tartley.com
 Made of meat.   +44 7737 062 225   twitter/skype: tartley


 And that somebody being me :-)
Indeed it is not meant to replace *your* choice of communication, however I
felt that there are a lot of people who prefer another form of
communication, like google community pages. I do have in mind that I try
not to fragment the uk python community any more as it already  is and I do
want to be held responsible for being a good community admin.
Tim Golden did suggest a bi-directional link, however I feel that this
might not be beneficial in the amount of +1's and me-too's I expect to
occur. However I'll try bridging it manual by posting stuff that is on this
list also on the community page and vice verse if appropriate.

I do feel that the community page is growing quite nicely as in the three
days of existence we have just over 100 members.


Kind regards,

Martin P. Hellwig
___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk


Re: [python-uk] Introducing CKAN (Open Knowledge Foundation)

2010-12-24 Thread Martin Goodson
sorry - didn't mean to post to the whole list!

On 24 Dec 2010, at 19:50, Martin Goodson wrote:

Interesting. I've often thought its such a shame there is no centralised data 
catalog in my field of biomedical research. There is a great culture of 
openness in the community of scientists but all the data sets are in disparate 
corners of the web. If I want some data on some particular aspect of biology 
(which is bound to be out there on someones departmental website somewhere) 
most of the time I wouldn't know where to start. Its a shame because there is 
so much data out there. Anyway, probably just a pipedream, but it would be nice.

Martin






On 24 Dec 2010, at 18:18, James Gardner wrote:

Hi all,

For those of you who haven't heard about the Open Knowledge Foundation
we are a not-for-profit promoting open knowledge: that's any kind of
information - sonnets to statistics, genes to geodata - that can be
freely used, reused, and redistributed [1] and we rely heavily on Python
for a lot of our work.

One of our key products is called CKAN [2]. It's an open source,
web-based data catalogue written in Pylons, SQLAlchemy and Genshi which
is used by various organisations, governments and councils around the
world to help them organise and share data with the public. Most notably
it powers the UK government's http://data.gov.uk site which you may have
seen in the news when the UK government released details of all
department's spending over £25,000 [3].

CKAN is rapidly becoming very popular so we are looking for more people
who are passionate about open knowledge to join our team. Although we do
have voluntary contributors we are particularly interested in hiring
expert Python web developers (probably as contractors and based in
London if possible) so I wanted to draw your attention to the links
below in case you are interested:

http://www.python.org/community/jobs/index.html?#open-knowledge-foundation-worldwide-but-particularly-london
http://blog.ckan.org/2010/12/16/python-web-expert-jobs/

Beyond that it would just be nice to connect with other people on this
list who are interested in open data and Python so do get in touch with
me (on or off list) if this is your sort of thing.

Happy Christmas all,

James


Personal blog: http://jimmyg.org/blog

[1] The Open Knowledge Foundation: http://okfn.org
[2] CKAN developer site http://ckan.org and catalogue: http://ckan.net 
[3] http://www.bbc.co.uk/news/uk-politics-11795313




___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk

___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk

___
python-uk mailing list
python-uk@python.org
http://mail.python.org/mailman/listinfo/python-uk