Slashdot

News for nerds, stuff that matters

Adafruit's New CircuitPython 'Turbo' Brings Native Code To Tiny Boards

Targeting students and beginners, Adafruit released "CircuitPython" in 2017 (as a derivative of the MicroPython microcontroller-optimized programming language).

Now Adafruit managing director Phillip Torrone (also long-time Slashdot reader ptorrone) brings this update:


Adafruit has published CircuitPython Turbo, a workflow that compiles selected Python functions into native machine code on a computer, then loads them onto compatible microcontroller boards.

It builds on MicroPython's Native and Viper emitters. In a documented Metro RP2040 fixed-point Mandelbrot test, Viper cut computation time from 8.335 seconds to 0.423 seconds, a 19.71x speedup over bytecode. The rest of the application stays in Python. The guide includes benchmarks, source code and hardware demos. The speedup is for the measured computation, not the whole application.


"Turbo support is now included in the latest official CircuitPython builds for RP2040 and RP2350 boards..." explains Torrone's announcement at Adafruit.com. "The new Turbo in CircuitPython helps when the board spends time calculating: making neopixel effects, drawing fractals, processing audio, filtering sensor readings, or preparing lots of pixels. Those projects can get smoother animation, quicker responses, or room to do more things at once."


With Turbo, it's easier, better, and now even faster to make LED light up costumes that also reacts to sound at the same time, a sensor dashboard with animated graphics, or a tiny game doing physics while drawing the screen. Turbo speeds up the busy Python parts. It won't make a slow sensor or display connection faster... Your computer turns selected functions into instructions the chip can run directly. Python still handles the rest.

We have measured speedups, real display captures, and examples you can pull apart to see what happened. None of this arrived alone. CircuitPython, MicroPython, PyMCU, compiler tools, open hardware, and people sharing their work gave us pieces to connect. The Bao experiments take that idea somewhere else, handing calculations to four helper cores. Now we get to make those paths easier to use, compare results, and find the next useful thing. Maybe that's smoother animation, a responsive instrument, or an idea we haven't tried yet.

That's what I like about open source. Someone shares a piece, someone else sees a possibility, and we get to keep building it together.


Read more of this story at Slashdot.

The Register

Biting the hand that feeds IT — Enterprise Technology News and Analysis

Swift 6.4 unifies building across Linux, macOS, Windows

Although Swift serves as Apple's primary language for macOS and iOS application development, the open-source community continues to expand its reach—driving its adoption as a multi-platform language or even a cross-platform one in fields beyond user interface design. Tuesday’s Swift 6.4 release continued that work. Along with the usual assortment of type shortcuts and async adjustments came word that Swift Build is now the default build engine for the Swift Package Manager. Synergies have already ensued! The pairing sets the stage for a faster build process. A developer can write a program in Swift and Swift Build will automatically download and install the required dependencies, testing them for compatibility. It then compiles the code into a CPU-specific binary. The merger also unifies the Swift developer experience regardless of platform. With this integration, a developer can run through the entire build process in their own environment, be it Apple’s Xcode IDE or a beloved command line, and all the steps will be exactly the same for a Linux, macOS, or Windows app. Or the developer can run their builds from VS Code, thanks to a new extension available on the Open VSX Registry. Sweetening the deal, the integrated package comes with a tool to generate an SBOM (Software Bill of Materials) for each app, listing all the dependencies in either the SPDX or CycloneDX format (SE-0509). SBOMs are da bomb when it comes to software auditing and checking for potential security bugs. Swift’s unified toolchain In a way, Swift is following the lead of Rust’s Cargo and Go’s command line, both of which run as unified toolchains, as does Bun for JavaScript. A single integrated workflow can take the place of manually calling one tool after another to schlep some code into production. The Swift Package Manager (SwiftPM), created by Apple in 2015, is a command line automation and dependency management tool. Swift Build itself is a collection of interoperable software development tools that together orchestrate the compilation (using the swiftc compiler), linking and testing of code. SwiftPM can work with any git repository as a source of Swift code, as well as with private repository services such as Bitbucket and JFrog Artifactory. Most notably, SwiftPM works well with the Swift Package Index (SPI), a search service for Swift artifacts created in 2020 and acquired by Apple in June. SPI is currently the de facto repository for many Swifties, housing over 10,400 packages. Many enjoy how the registry tests each dependency for compatibility with each platform and version of Swift. We’d be curious to see if Apple has plans for pulling SPI metadata into SwiftPM. Swift coders not using SwiftPM and Swift Build probably employ Google’s Bazel, Meta’s Buck2, or the venerable CMake to manage their Swiftian assets. Debugging from the source This release streamlines other parts of the build process as well, such as debugging. With Swift 6.4, the default Swift debugger LLDB now has a more storage-efficient way to debug modules, namely by identifying the exact path to the module being used, instead of embedding the entire module into the debugging file, which caused considerable bloat. Now the debugger can follow a pointer and inspect the original module. The release also features interoperability improvements with C++, Java, JavaScript, and even WebAssembly, which gets its own SDK. To start with Swift, go to the Install Swift page. The 6.4 toolchain can be downloaded using the Swiftly command line. ®

Wel.nl

Minder lezen, Meer weten.

WMO waarschuwt voor grillig watersysteem met opdrogende reserves

GENÈVE (ANP) - Het wereldwijde watersysteem wordt steeds grilliger en onvoorspelbaarder. Daarvoor waarschuwt de World Meteorological Organization (WMO) in een nieuw rapport. Volgens de VN-organisatie schommelt het systeem tussen uitersten van te veel en te weinig water en heeft dat grote gevolgen voor de wereldbevolking en de economie.

Rivieren hadden vorig jaar te maken met een van de droogste jaren van de afgelopen decennia, staat in het rapport. Ook de hoeveelheid opgeslagen water op het land, zoals in grondwater, meren en ijs en sneeuw, neemt al jaren af. Tussen 2023 en 2025 verloren gletsjers wereldwijd zo'n 1400 gigaton water, aldus de WMO. Dat staat gelijk aan de hoeveelheid water die nodig is om 560 miljoen olympische zwembaden te vullen.

Gletsjers vormen, net als bijvoorbeeld grondwater, de "spaarrekening van de planeet", zegt secretaris-generaal Celeste Saulo van de WMO. "Een buffer die slechte jaren opvangt, zodat één droge periode of één droog seizoen niet meteen leidt tot een watercrisis." Maar volgens Saulo wordt die spaarrekening momenteel uitgeput.

'Geen grenzen'

"Tegelijkertijd zien we een toename van watergerelateerde rampen", zegt ze. De WMO ziet dat vooral Azië en Afrika worden getroffen door bijvoorbeeld overstromingen. Door het natuurlijke weerfenomeen El Niño, dat zich momenteel sterk doet gelden, neemt het risico op droogte in sommige gebieden toe, terwijl op andere plekken juist het risico op overstromingen groter wordt.

"Water kent geen grenzen", zegt Saulo. "De terugtrekking van gletsjers in het ene land heeft gevolgen voor de beschikbaarheid van water voor mensen die honderden kilometers stroomafwaarts wonen." De WMO-chef pleit voor gedeelde data en een gedeeld vroegtijdig waarschuwingssysteem.


Amerikaans Congres keurt wet goed voor hardere sancties Rusland

WASHINGTON (ANP/RTR) - Het Amerikaanse Huis van Afgevaardigden heeft een omvangrijk sanctie- en tarievenpakket aangenomen om de economische druk op Rusland op te voeren en zo de geldstromen voor de oorlog in Oekraïne af te knijpen. Het wetsvoorstel wordt nu naar president Donald Trump gestuurd om te worden ondertekend.

Het wetsvoorstel draagt de naam van de onlangs overleden Republikeinse senator Lindsey Graham, een bondgenoot van Trump en uitgesproken medestander van Oekraïne. Graham werkte meer dan een jaar aan het sanctiepakket en bezocht kort voor zijn overlijden nog Kyiv voor gesprekken met president Zelensky. Die woonde in juli zijn uitvaart in de VS bij.

Het Huis stemde met 262 tegen 159 voor het voorstel. Maar liefst 58 Democraten braken met hun partijleiders en stemden, samen met op zeven na alle Republikeinen, voor de wet.

Als Trump de sancties ondertekent, betekent dat de grootste Amerikaanse steunbetuiging aan Oekraïne sinds zijn terugkeer in het Witte Huis.


The Guardian

Latest news, sport, business, comment, analysis and reviews from the Guardian, the world's leading liberal voice

2025 was among driest years on record for world’s rivers, study finds

Analysis of global resources reveals depletion in world’s water savings bank to 42% below normal levels last year

Rivers across the world experienced one of their driest years in more than three decades in 2025, a comprehensive study of global water resources has found.

The assessment of the global water cycle by the World Meteorological Organisation (WMO) reveals a depletion in the world’s water savings bank: the amount of freshwater held on or under the ground, including groundwater, lakes, rivers, snow, ice moisture in the soil and inside plants and trees, was 42% below normal across the world last year.

Continue reading...

‘I thank God for killing me and bringing me back’: Nicolas Winding Refn on the emergency op that inspired his new sci-fi horror

Notorious for ultra-violent movies like Drive and The Neon Demon, the Dane had lost the will to direct until ‘the Tom Cruise of surgeons’ saved his life – and triggered an astonishing creative rebirth

Nicolas Winding Refn has his phone out, showing me one of the goriest scenes he’s ever been involved in. Given that the Danish director’s movies have involved hands getting sliced off, eyeballs being gouged out and a son reaching deep inside his mother’s womb, that’s certainly saying something. In this video, the camera is fixed upon a beating heart when suddenly – slash! – it gets sliced open with a knife. We travel into the open chamber, as needles arrive to pierce through the muscle. Unsettling and compelling, could this be a future Palme d’Or winner?

Unlikely. You see, Refn isn’t the director of this footage; he’s actually the guy lying conked out in the operating room while a surgeon attends to him. Requesting that someone films your own heart surgery is a very Nicolas Winding Refn thing to do. “At first they said no,” says the film-maker known for Drive, Bronson and The Neon Demon. “But then they said, ‘As it’s you, we’ll record it.’”

Continue reading...

English Heritage trains new generation of scythers to maintain meadows and craft

Initiative aims to keep alive age-old skill, and at Muchelney Abbey in Somerset improve habitat for rare shrill carder bee

It sounds like something out of a Thomas Hardy novel: a merry band of men and women roaming the West Country cutting meadows by hand in exchange for hunks of bread and cheese.

But the conservation charity English Heritage is recruiting a team of volunteer scythers to maintain 21st-century meadowland in the old-fashioned way.

Continue reading...

‘Like a Disney movie’: Three wild dog brothers make Africa’s longest journey

As three siblings came of age and had to leave their pack, scientists tracked the dogs’ perilous 2,500-mile odyssey to find their own territory

It sounds like a Disney movie: three wild dogs, all brothers, on an epic journey to find a home of their own after their family tells them to leave. They dodge cars and hunters in search of a new life, navigating bushmeat snares and the hostility of a human-dominated landscape until they find a new haven on the African savannah.

But this is exactly what happened in Zambia last year, when three endangered African wild dogs made the longest-ever recorded single journey of any mammal from the continent. The brothers travelled more than 2,500 miles (4,100km) over eight months in their “dispersal” – when a young dog comes of age and must establish new territory to find a mate and start a family of their own.

Continue reading...

Faster! Louder! Brighter! How the attention economy overwhelmed children’s TV

Does your child’s favourite show give them a chance to reflect, or does it move too quickly for its lessons to sink in?

I am at the airport gate waiting to depart, watching passengers hurry past with rolling suitcases and paper cups of coffee. A small boy sits very still beside his mother. He holds an iPad close to his chest, almost in a cramp, clutching the screen as if it might otherwise run away. I hear loud clapping hands and squeaking children’s voices. I lean over and see a cartoon character in green snatch a toy from another character in pink. The pink character begins to cry, tears splashing like sprinkles from its enormous eyes. The green character shouts sorry. Instantly, the tears stop and a wide smile replaces them before I have blinked. And, before I have even worked out whether the characters are speaking English or Arabic (as the mother does to the boy), the scene has changed and the two characters are rowing a boat with a random song in the background. The boy’s eyes dart on the screen from right to left, centre, down. His body is still but his attention is being hurried from cue to cue.

This is the problem I have come to think of as the pace of children’s media.

Continue reading...

Turkey detains dozens in crackdown on LGBTQ+ activists and journalists

Protesters teargassed as minister claims widespread raids and arrests under obscenity laws were to ‘protect families’

Turkish authorities have used accusations of obscenity to justify a wave of raids and arrests targeting the LGBTQ+ community, which has grown to include journalists as well as more than 150 arrested during protests against the raids.

Starting in the early hours of Sunday, Turkish police carried out simultaneous raids on the offices of LGBTQ+ rights organisations and HIV-advocacy groups in the cities of Istanbul, the capital, Ankara, and the coastal city of İzmir, as well as the cities of Aydın and Mersin.

Continue reading...