![]() |
| More speed by having two rails. Not always true. |
Tuesday, February 23, 2016
Concurrency in Python
Friday, February 19, 2016
My Python IDE Journey
|
| Pick one. |
First Stop
Everything starts with gedit, nano and vim, right? Not quite full IDEs but it's a start. You can at least write code and have some syntax highlighting available. Until today, a colleague of mine uses vim with tons of plugins featuring "go to definition", "find usages", "code completion", "project nav tree", etc. So, it's quite possible to work with simple editors and enhance them indefinitely.
As you can imagine, I was looking for something else which goes beyond the venerable terminal. So, I started looking for an alternative with the following properties (in its order of priority):
Labels:
education,
IDE,
IPython Notebook,
productivity,
PyCharm,
Python,
Spyder,
vim
Thursday, February 18, 2016
Let's go down the rabbit hole!
![]() |
| Things can be topsy-turvy when considered upside down. |
Imagine you want to count the number of items being set in a list. So, instead of providing a native list object, you write your own class like this:
Tuesday, February 16, 2016
The xheap Benchmark
![]() |
| These are the inlets of a steam engine. That means, it's time to perform some serious measurements! |
We are going to compare xheap and heapq. The benchmark suite can be found right by the source.
The Competitors
- heapq - collections of heap functions of Python stdlib written in C
- xheap - object-oriented wrappers for heapq
Saturday, January 30, 2016
Fast Object-Oriented Heap Implementation
![]() |
| There comes light to the darkness of your heaps. |
This is the third post of a series of heap-related ones. See here and here for the back story.
In the last post, we found the heapq module lacking important features. Average Joe Dev doesn't want to clutter up his source code and and re-implement the same features all over the place to rectify the shortcomings of heapq. Understandably, Python core devs don't want to compromise on the performance of heapq either—being fast is the mission of a heap.
Thursday, January 28, 2016
Another Pleasant Announcement!
Oracle deprecates the Java browser plugin, prepares for its demise says it all. Thanks, Ars, for bringing this to my attention.
Tuesday, January 26, 2016
heapq and Missing Features
![]() |
| You sometimes need a bit more convenience than a barrel to store your water. |
Recently, I wrote about heaps in Python and promised a sequel. Here, you are. This time, we ponder over the shortcomings of Python's heap module, heapq.
So, what's wrong with it? Nothing at all if you have the basic needs: fast push and pop onto a heap. However, as usual, at a certain point, you want more features in your program which in turn set the requirements higher for the heap implementation you use. If that happens, you usually
Subscribe to:
Posts (Atom)





