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.

Victoria- Australia - no road maintenance

braart has added a photo to the pool:

Victoria- Australia - no road maintenance

Our road potholes are so big u can fish in them

VK: Voorpagina

Volkskrant.nl biedt het laatste nieuws, opinie en achtergronden

De werkelijk ongehoorden zien we zelden, en begrijpen we nauwelijks

‘De donorwet is mislukt. Families vinden dat ze nog altijd kunnen zeggen: het gaat niet door’

Nieuwe donorwet levert beperkt aantal extra donoren op: ‘Categorie ‘geen bezwaar’ blijft uitdagend’

Aanvragen voor asiel dalen, vooral door afname van nareizigers

Munitietekort, bases verwoest en logistieke problemen: inspectie Pentagon rukt Trumps roze bril over Iran af

De rol van ASML in de nieuwe wereldorde

De toekomst van de Europese economie hangt samen met het succes van het Nederlandse ASML. Het bedrijf is daarmee Europa's hoop in bange dagen, ziet redacteur Marc Hijink.

Wel.nl

Minder lezen, Meer weten.

Kunstenaar Peter Max op 88-jarige leeftijd overleden

NEW YORK (ANP/RTR) - Popartkunstenaar Peter Max is maandag op 88-jarige leeftijd overleden in een ziekenhuis in Manhattan. Dat heeft een woordvoerder van zijn familie woensdag bekendgemaakt. Max werd bekend door zijn dromerige, felgekleurde werken die het decor vormden voor de Amerikaanse hippiebeweging in de jaren 60.

Max zijn werken - vaak geïnspireerd door zijn liefde voor astronomie - waren in de jaren 60 en 70 overal te vinden. Ze zagen eruit als de artistieke verbeelding van een acidtrip. Rocksterren als The Beatles, Jimi Hendrix en Mick Jagger werden door Max geportretteerd en behoorden tot zijn vriendenkring.

President Ronald Reagan was een bewonderaar en Max schonk een schilderij van het Vrijheidsbeeld aan de Reagan Presidential Library.


Bloomberg: OpenAI-topman op gastenlijst staatsdiner Trump en Xi

WASHINGTON (ANP/BLOOMBERG) - Sam Altman, de topman van OpenAI, zal hoogstwaarschijnlijk aanwezig zijn bij het staatsdiner dat de Amerikaanse president Donald Trump organiseert voor zijn Chinese ambtgenoot Xi Jinping.

Volgens OpenAI, de maker van ChatGPT, staat Altman op de gastenlijst voor het evenement van volgende week. Het Witte Huis heeft nog niet direct bevestigd of Altman ook daadwerkelijk aanwezig zal zijn, meldt Bloomberg.

Naar verwachting zal de OpenAI-baas zich tijdens het diner voegen bij andere bedrijfsleiders, onder wie Nvidia-CEO Jensen Huang.


OpenAI meldt nieuwe AI-veiligheidsincidenten

SAN FRANCISCO (ANP/BLOOMBERG) - OpenAI heeft een aantal niet eerder bekendgemaakte incidenten gedeeld waarin zijn kunstmatige-intelligentiesystemen zich misdroegen. Ook onthulde het bedrijf een nieuw kader voor hoe het dergelijke voorvallen in de toekomst wil bijhouden en openbaar maken.

Sommige van de eerdere niet-gerapporteerde gevallen van misdragende modellen hielden in dat de technologieën van OpenAI informatie achterhielden en verzonnen om resultaten te genereren, zo liet het bedrijf achter ChatGPT in een blogbericht weten.

Het bedrijf ligt onder een vergrootglas sinds het in juli bekendmaakte dat sommige van zijn meest geavanceerde AI-modellen waren ingebroken op de systemen van een extern softwarebedrijf, Hugging Face.


VS weigeren Palestijns leider Abbas opnieuw visum VN-vergadering

WASHINGTON (ANP/AFP) - De Verenigde Staten hebben de Palestijnse president Mahmoud Abbas een inreisvisum geweigerd om volgende week de Algemene Vergadering van de Verenigde Naties in New York bij te wonen, zo meldde een ingewijde aan persbureau AFP.

In een aparte verklaring verweet het Amerikaanse ministerie van Buitenlandse Zaken de Palestijnse Autoriteit en andere organisaties "gebrekkige hervormingen". Het is voor het tweede achtereenvolgende jaar dat de VS Abbas een visum weigeren.

De 90-jarige president liet begin juli weten dat er dit jaar op 28 november Palestijnse verkiezingen zullen plaatsvinden. De vorige keer dat er parlementsverkiezingen waren in de Palestijnse gebieden, was in 2006.


The Guardian

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

Do whales grieve? Rare footage of humpback alongside stillborn calf suggests they might | Olaf Meynecke for the Conversation

The behaviours we observed could represent grief, but they could also reflect maternal attachment, confusion or instinctive caregiving

It was a tragic sight.

One day last July, a newborn humpback whale calf lay motionless on the seafloor, just a kilometre off Australia’s Gold Coast. The encounter was captured through underwater video.

Continue reading...

The fight to save Sweden’s soul from the far right – podcast

The Swedish journalist Martin Gelin tells Helen Pidd about the impact the far right has had on Sweden’s politics over the last four years – and what the latest general election results could mean for the Nordic country’s future

After Sweden went to the polls on Sunday, a centre-left coalition led by Magdalena Andersson looks likely to have come out on top. The result of the general election is expected to keep the far-right Sweden Democrats, a party with neo-Nazi roots, out of government – at least for now.

But the SD’s platform – anti-immigration, harsh approaches to crime and punishment, and the idea of “making Sweden Swedish again” – has now become the political norm. And the incoming government may now struggle to find its way back to the progressive, tolerant Sweden of old.

Continue reading...

Fiji declares national HIV emergency as Pacific nation grapples with surge in cases

Government estimates that one in 60 adults in Fiji now living with HIV, as escalating use of methamphetamine fuels ‘epidemic’

Fiji has declared a national HIV emergency amid a spike in infections as the Pacific nation grapples with a correlating rise in methamphetamine use.

The country’s health and medical services minister, Dr Ratu Atonio Lalabalavu, said in a statement on social media that an outbreak-level response was no longer sufficient to address what he described an “epidemic”.

Continue reading...

Ukraine war briefing: Drone kills Russian commander just decorated after fake victory claim

Maj Gen Anton Grunis was praised by Vladimir Putin for purported capture of Kostiantynivka; UK names intel officer who died in Ukraine road crash. What we know on day 1,667

Continue reading...

Trump calls EU offer to Canada of associate membership ‘laughable’, while threatening tariffs

The US president call the move a ‘hostile act’, as Canada seeks to move closer to the EU and diversify its defence ties

Donald Trump has threatened the European Union with “serious tariffs” and a cut to trade after the bloc proposed to make Canada its first ever associate member, calling the idea “laughable”.

Suggesting the move was a “hostile act”, the US president told reporters he could put “very serious tariffs or stop trading with Europe”. He added: “If it’s a good intention, that’s fine. If it’s a bad intention, we’ll put very heavy tariffs on Europe.”

Continue reading...

Fokke & Sukke

F & S

Bruce Gilden, Citizen

Thomas Hawk posted a photo:

Bruce Gilden, Citizen

Kaiser Center, Oakland, California

Thomas Hawk posted a photo:

Kaiser Center, Oakland, California