Python Ditches The GILs And Comes Ashore

The Python world has been fractured a few times before. The infamous transition from version 2 to version 3 still affects people today, and there could be a new schism in the future. [Sam Gross] proposed a solution to drop the Global Interrupt Interpreter Lock (GIL), which would have enormous implications for many projects that leverage the CPython internals, such as Pandas and NumPy.

The fact that Python is interpreted is a double edge sword. It means there can be different runtimes, such as Pyston, Cinder, MicroPython, PyPy, and others, that might support the whole language, a specific version, or a subset. But if you’re using Python, you’re probably running CPython. And it has something known as global interpreter lock that affects threaded code. In a nutshell, only one thread can run in the interpreter at a time. There are some ways around it, such as moving performance-critical sections to C or having multiple interpreters. However, most existing solutions come with considerable downsides. Continue reading “Python Ditches The GILs And Comes Ashore”

How To Get Into Cars: Endurance Racing Builds

Many an automotive enthusiast finds themselves at a track day eventually. Typically, this involves competing against the clock to better one’s laptimes in short sessions throughout the day. Such events are fun, but it often creates a perishing thirst for a greater level of competition.

Regularity and endurance events are often the next step up for a lot of people. These events involve long runs at race pace that stress a car to (or beyond!) the breaking point. Careful preparation is required if one is to see out the race to the chequered flag. Let’s break down what you’ll need to consider.

Continue reading “How To Get Into Cars: Endurance Racing Builds”

Magnesium: Where It Comes From And Why We’re Running Out

Okay, we’re not running out. We actually have tons of the stuff. But there is a global supply chain crisis. Most of the world’s magnesium is processed in China and several months ago, they just… stopped. In an effort to hit energy consumption quotas, the government of the city of Yulin (where most of the country’s magnesium production takes place) ordered 70% of the smelters to shut down entirely, and the remainder to slash their output by 50%. So, while magnesium remains one of the most abundant elements on the planet, we’re readily running out of processed metal that we can use in manufacturing.

Nikon camera body
The magnesium-alloy body of a Nikon d850. Courtesy of Nikon

But, how do we actually use magnesium in manufacturing anyway? Well, some things are just made from it. It can be mixed with other elements to be made into strong, lightweight alloys that are readily machined and cast. These alloys make up all manner of stuff from race car wheels to camera bodies (and the chassis of the laptop I’m typing this article on). These more direct uses aside, there’s another, larger draw for magnesium that isn’t immediately apparent: aluminum production.

But wait, aluminum, like magnesium is an element. So why would we need magnesium to make it? Rest assured, there’s no alchemy involved- just alloying. Much like magnesium, aluminum is rarely used in its raw form — it’s mixed with other elements to give it desirable properties such as high strength, ductility, toughness, etc. And, as you may have already guessed, most of these alloys require magnesium. Now we’re beginning to paint a larger, scarier picture (and we just missed Halloween!) — a disruption to the world’s aluminum supply.

Continue reading “Magnesium: Where It Comes From And Why We’re Running Out”

core memory

Retro Memory Hack Chat

Join us on Wednesday, November 3 at noon Pacific for the Retro Memory Hack Chat with Andy Geppert!

With how cheap and easy-to-integrate modern memory chips have become, it’s easy to lose track of the fact that it wasn’t too long ago that memory was the limiting factor in most computer designs. Before the advent of silicon memory, engineers had to make do with all sorts of weird and wonderful technologies just to provide a few precious bytes of memory. Things like intricate webs of wires spangled with ferrite cores, strange acoustic delay lines, and even magnetic bubbles were all tried at one time or another. They worked, at least well enough to get us to the Moon, but none would prove viable in the face of advancements in silicon memory.

That doesn’t mean that retro memory technology doesn’t have a place anymore. Some hobbyists, like Andy Geppert, are keeping the retro memory flame alive. His Core 64 project puts a core memory module in the palm of your hand, and even lets you “draw” directly to memory with a magnet. Andy learned a few tricks along the way to that accomplishment, and wants us all to appreciate the anachronistic charm of retro memory technologies. Stop by the Hack Chat to talk about your memories of memory, or to just learn what it used to take to store a little bit of data.

join-hack-chatOur Hack Chats are live community events in the Hackaday.io Hack Chat group messaging. This week we’ll be sitting down on Wednesday, November 3 at 12:00 PM Pacific time. If time zones have you tied up, we have a handy time zone converter.

Hackaday Links Column Banner

Hackaday Links: October 31, 2021

Global supply chain issues are beginning to hit closer to home for the hacker community, as Raspberry Pi has announced their first-ever price increase on their flagship Pi 4. The move essentially undoes the price drop on the 2GB version of the Pi 4 that was announced in February, and sets the price back up from $35 to $45. Also rolled back is the discontinuation of the 1GB version, which will now be available at the $35 price point. The announcements come from Eben Upton himself, who insists the price increase is only temporary. We applaud his optimism, but take it with a grain of salt since he also said that 2021 production across the board will stay at the seven million-unit level, which is what they produced in 2020. That seems to speak to deeper issues within the supply chain, but more immediately, it’s likely that the supply of Pi products will be pinched enough that you’ll end up paying above sticker price just to get the boards you need. Hope everyone is stocked up.

On the topic of supply chain issues and their threat to Christmas gift-giving, here’s one product we hope is stranded in a container off Long Beach or better still, bobbing along in the Strait of Juan De Fuca: a toddler’s toy telephone that actually makes and receives calls. Anyone born in the last 60 years probably had one of the Fisher-Price Chatter telephone, a toy that in its original form looked like a desk telephone on wheels that was dragged behind the child, popping along and providing endless hours of clicky amusement as kids twisted the dial and lifted the receiver. Come to think of it, the Chatter telephone may be as close to a dial phone as anyone born since 1990 may have come. Anyway, some genius stuck a Bluetooth module into the classic phone to let it hook up to an app on an actual phone, allowing kids (or more likely their nostalgia-soaked parents) to make and receive calls. It’s actually priced at a reasonable $60, so there might be some hacking potential here.

Also tangential to supply chains, we stumbled across a video guide to buying steel that might interest readers. Anyone who has seen the displays of steel and other metals at the usual big-box retailers might wonder what the fuss is, but buying steel that way or ordering online is a great way to bust a project’s budget. Fabricator and artist Doug Boyd insists that finding a local steel supplier is the best bang for your buck, and has a bunch of helpful tips for not sounding like a casual when you’re ordering. It’s all good advice, and would have helped us from looking foolish a time or two at the metal yard; just knowing that pipe is measured by inside diameter while tubing is measured by outside dimensions is worth the price of admission alone.

With all the money you save on steel and by not buying Raspberry Pis, perhaps you’ll have a couple of hundred thousand Euros lying around to bid on this authentic 1957 Sputnik I satellite. The full-scale model of Earth’s first artificial satellite — manhole covers excluded — was a non-flown test article, but externally faithful to the flown hardware that kicked off the first Space Race. The prospectus says that it has a transmitter and a “modern power supply”; it’s not clear if the transmitter was originally part of the test article or added later. The opening bid is €85,000 and is expected to climb considerably.

And finally, there’s something fascinating about “spy radios,” especially those from the Cold War era and before, when being caught with one in your possession was probably going to turn out to be a very bad day. One such radio is the Radio Orange “Acorn” receiver, which is in the collection of the Crypto Museum. The radio was used by the Dutch government to transmit news and information into the occupied Netherlands from their exile in London. Built to pass for a jewelry box, the case for the radio was made from an old cigar box and is a marvel of 1940s miniaturization. The radio used three acorn-style vacuum tubes and was powered by mains current; another version of the Radio Orange receiver was powered by a bike dynamo or even a water-powered turbine, which could be run from a tap or garden hose. The video below shows the water-powered version in action, but the racket it made must have been problematic for its users, especially given the stakes.

Continue reading “Hackaday Links: October 31, 2021”

Dream Bigger, Predict The Future

I’d love to tell you that I’m never wrong, but I’ve been wrong a lot. Remember the Arduino? When it was brand new, I thought it was some silly collection of libraries and a drop-down menu for people who are too lazy to just type out their own #include statements. Needless to say, it launched about a million hacks and brought microcontroller programming into the mainstream. Oops.

Similarly, about fifteen years ago, I saw an educational project out of MIT’s Media Lab. It consisted of a bunch of blocks that had LCD screens on them and would interact with each other when put together. The real hook, though, was that each block had an accelerometer inside, so you could “pour water” out of one block into another, for instance.

At that time, accelerometers were expensive, even in quantities. Even one of these cubes must have cost $100 at the time, much less a whole set. Accelerometers were so expensive that I wouldn’t have thought about incorporating one into a project, much less a dozen, so I ignored them for hacker purposes. Then came the cellphone and economies of scale. Today, even in chip shortage times, they’re readily available for around $2 each, making them useful for exactly this kind of “frivolous” use.

From the Arduino experience, I learned to never underestimate the impact of what seem to me to be “small” conveniences. (And maybe more so, the value of the tremendous common effort from the community.) From the MIT accelerometer story, the moral is that some parts will get drastically cheaper in the future, so you shouldn’t necessarily exclude the cool new sensor from your design repertoire. After all, ten years ago, nobody would have thought that we’d have laser time-of-flight rangefinders for less than a hamburger.

What new components are fantastically useful, or full of potential, that might be cheap enough in the future to make them also worth looking into? Swing by Hackaday tomorrow morning and join in the conversation!

Hackaday Podcast 142: 65 Days Of Airtime, Racecars Staring At The Ceiling, A Pushy White Cane, And Soapy Water Rockets

Hackaday editors Elliot Williams and Mike Szczys flap their gums about all the great hacks of the week. Something as simple as a wheel can be totally revolutionary, as we saw with a white cane mod for the visually impaired which adds an omniwheel that knows where it’s going. We enjoyed the collection of great hacks from all over the community that went into a multi-two-liter water rocket build. You’ll hear Elliot and Mike’s great debate about the origin of comments in computer code. And we spend plenty of time joking around about the worlds longest airplane flight (it was in a tiny Cessna and lasted over two months!)

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (55 MB)

Continue reading “Hackaday Podcast 142: 65 Days Of Airtime, Racecars Staring At The Ceiling, A Pushy White Cane, And Soapy Water Rockets”