Live data from Hacker News

From Python to Numpy

labri.fr

11–20 of 55 posts

Re: From Python to Numpy

#11
As someone who has used numpy for many years and written a great deal of production code using it, I was surprised when I read through this and saw some numpy tricks that I didn't know regarding the speeds of various operations! This is really a fantastic reference that provides a deeper level of understanding of what numpy does under the hood.

One thing I will highlight that the author just touched on briefly, is that numpy combined with numba is really a phenomenal combination for dealing with very computationally intensive problems.

The folks at Continuum Analytics have really done a fantastic job building numba (numba.pydata.org), which JIT compiles a subset of python functions using LLVM, and is designed to work seamlessly with numpy arrays. Numba makes it much easier to speed up performance bottlenecks and allows you to easily create numpy ufuncs which can take advantage of array broadcasting.

Re: From Python to Numpy

#12

> be warned that I'm a bit picky about typography & design: Edward Tufte is my hero And it shows, the theme is beautiful. Also some of the best ASCII diagrams I've seen. Worth a look at the source, even if you don't care about Python.

Fonts are barely readable: too thin, too white on my browser/screen.

Re: From Python to Numpy

#13
post #5

Earlier quoted context omitted.

I don't mind empty margins, but having 60% of my screen empty for no reason is excessive, and I do read slower because of it. If I want shorter lines, I'll just resize my browser, thanks. I agree with you about the font being too thin, but the line length annoyed me much more.

My problem is that the notes are off-screen - their seems to be an assumption that I'm reading on a widescreen monitor...

Yes, sorry for that. I need to work a bit more on a more responsive CSS.

Re: From Python to Numpy

#17
Does anyone have a recommendation for something similar to this but for Python itself? I have been trying to find something that is not necessarily an intro or crash course book but a book with tips, great explanations, and neat examples (which this e-book(?)/site has).

I see that the author has responded to a couple comments here. Thank you for your great work! It's always great to have a nice reference material with concise examples. I think this will be helpful to everyone(beginners and advanced python users alike)!

Re: From Python to Numpy

#18

Does the book exist in PDF?

Not yet but I'm working on it (meanwhile you can try a rst2latex.py on the sources) for a very rough draft.

Amazing work. If you take a look at latex please consider also XeTeX for its beautiful font support. It can give a lot of satisfaction when packaging good content. Microtype is also nice if one sticks to pdflatex.

Re: From Python to Numpy

#19

> be warned that I'm a bit picky about typography & design: Edward Tufte is my hero And it shows, the theme is beautiful. Also some of the best ASCII diagrams I've seen. Worth a look at the source, even if you don't care about Python.

Thanks. If you love ascii art, make sure to have a look at https://casual-effects.com/markdeep/

Re: From Python to Numpy

#20

Does anyone have a recommendation for something similar to this but for Python itself? I have been trying to find something that is not necessarily an intro or crash course book but a book with tips, great explanations, and neat examples (which this e-book(?)/site has). I see that the author has responded to a couple comments here. Thank you for your great work! It's always great to have a nice reference material wit…

I would recommend Julien Danjou's "The Hacker's Guide to Python". He charges $29 for the PDF, but provides updates every year or so. I think it's a great book for getting more depth out of Python. :)

Topics include: modules/libraries, documentation, distribution, virtual environments, unit testing, methods/decorators, functional programming, optimization, scaling, RDBMS, and more.

https://thehackerguidetopython.com/

Post reply on HN