Where The Work Is Really Done – Casual Profiling

Once a program has been debugged and works properly, it might be time to start optimizing it. A common way of doing this is a method called profiling – watching a program execute and counting the amount of computing time each step in the program takes. This is all well …read more

Continue reading Where The Work Is Really Done – Casual Profiling

Benchtop Lathe Gets An Electronic Leadscrew Makeover

The king of machine tools is the lathe, and if the king has a heart, it’s probably the leadscrew. That’s the bit that allows threading operations, arguably the most important job a lathe can tackle. It’s a simple concept, really – the leadscrew is mechanically linked through gears to the …read more

Continue reading Benchtop Lathe Gets An Electronic Leadscrew Makeover

Grabbing the Thread: Spinlocks vs Mutexes

Getting into the weeds of operating systems is daunting work. Especially when the operating system involved is a fully featured modern PC operating system with millions of lines of code all working together to integrate hardware and software seamlessly. One such operating system “weed” is figuring out how to handle …read more

Continue reading Grabbing the Thread: Spinlocks vs Mutexes

Thread Carefully: An Introduction To Concurrent Python

The ability to execute code in parallel is crucial in a wide variety of scenarios. Concurrent programming is a key asset for web servers, producer/consumer models, batch number-crunching and pretty much any time an application is bottlenecked by a resource.

It’s sadly the case that writing quality concurrent code can be a real headache, but this article aims to demonstrate how easy it is to get started writing threaded programs in Python. Due to the large number of modules available in the standard library which are there to help out with this kind of thing, it’s often the case that …read more

Continue reading Thread Carefully: An Introduction To Concurrent Python

Results of 3D-Printed Cylinder Head Testing Fail to Surprise

It’s the suburbanista’s weekend nightmare: you’re almost done with the weekly chores, taking the last few passes with the lawn mower, when you hear a pop and bang. The cylinder head on your mower just blew, and you’re out of commission. Or are you? You’ve got a 3D printer – couldn’t it save the day?

If this bench test of plastic cylinder heads is any indication, it’s possible – just as long as you’ve only got 40 seconds of mowing left to do. [Project Farm] has been running all sorts of tests on different materials as field-expedient cylinder heads for …read more

Continue reading Results of 3D-Printed Cylinder Head Testing Fail to Surprise

Simple Shop-made Taps for Threading Wood

Wood can be the material of choice for many kinds of projects, but it often falls out of the running in favor of metal or plastic if it needs to take a threaded fastener. But with a little ingenuity you can make your own wood taps and cut threads that will perform great.

Making wood do things that wood isn’t supposed to do is [Matthias Wandel]’s thing. Hackers the world over know and use his wood gears designer to lay out gears for all kinds of projects from musical marble machines to a wooden Antikythera mechanism. Woodworkers have been threading …read more

Continue reading Simple Shop-made Taps for Threading Wood