How I debug failing Python tests.
I was pointed to Steve Losh’s blog post about helping improve touch typing. Steve used Karabiner Elements (then KeyRemap4MacBook) to disable the incorrect shift key combinations (i.e. for capital “P” the left shift must be used). His example code is now out of date, and the equivalent code must be used.
Elegance is a tough concept to define. Each person may think different things are elegant.
How does Kafka distribute its messages to consumers?
📘 💻 ℹ️ Tips designed to help new Linux users work out what is going on
Wow what a year for Rust. 2019 has flown by (in real life as well), with so many developments since the beginning of 2019. The 2018 edition has brought so many quality of life improvements to day to day Rust development, particularly the more intuitive module system, NLL, and proc-macros.
Rust 2020 has a lot to live up to!
My thoughts for Rust 2020 are perhaps a little less aimed at new features I want to see than some other roadmaps, but more towards continuing the quality of life improvements, and expanding the ecosystem.
TL;DR I have been thinking about alternative frontends to the Jupyter notebook. The first step is to abstract communications with Jupyter kernels. I have started writing one of these.
Project repository docs.rs crates.io I am a huge fan of the Jupyter notebook environment. It is a fantastic way to explore a new data analysis approach, and keep results together with the implementation and explanation.
I wanted to understand how the Jupyter notebook/lab frontend interacts with the Kernel backends, and as such have started writing a client library.
I haven’t posted for a while, and this is not going to be a very useful post, you have been warned…
At work we use Windows. I vowed when I left my last job that I’d never go to work somewhere that uses Windows.
I am very much still not a fan, especially since I have not got admin rights and we are using Windows 8 - one of the most hated versions of Windows since ME.
I’ve been re-implementing the Python emcee library in Rust.
I thought it would be a good project to tackle for a few reasons:
I actively use it in my own work, and am reasonably familiar with the API and how it works it has few external dependencies and is mostly pure Python it performs cpu-limited computations which suit a compiled high performance language the Python version has parallelism to increase speed, which should be easily achievable with rust (We’ll see that for the time being the last point has been put on hold.
This blog post is the second in a series I am writing, covering methods of simple parallelism. The following posts cover more convenient methods, as well as some things that should be considered.
Parallelism methods Basics and introduction Function objects If I’ve skipped your favourite method of parallelism, feel free to tweet me or add a comment on the tracking issue informing me.
This method was brought to my attention by Tom Marsh, and is a nice alternative to using functools.