NetBSD Bans AI-Generated Code From Commits

A recent change was announced to the NetBSD commit guidelines which amends these to state that code which was generated by Large Language Models (LLMs) or similar technologies, such as ChatGPT, Microsoft’s Copilot or Meta’s Code Llama is presumed to be tainted code. This amendment was to the existing section about tainted code, which originally referred to any code that was not written directly by the person committing the code, and was due to licensing concerns. The obvious reason behind this is that otherwise code may be copied into the NetBSD codebase which may have been licensed under an incompatible (or proprietary) license.

In the case of LLM-based code generators like the above-mentioned, the problem stems from the fact that they are trained on millions of lines of code from all over the internet, which are naturally released under a wide variety of licenses. Invariably, some of that code will be covered by a license that’s not acceptable for the NetBSD codebase. Although the guideline mentions that these auto-generated code commits may still be admissible, they require written permission from core developers, and presumably an in-depth audit of the code’s heritage. This should leave non-trivial commits that got churned out by ChatGPT and kin out in the cold.

The debate about the validity of works produced by current-gen “artificial intelligence” software is only just beginning, but there’s little question that NetBSD has made the right call here. From a legal and software engineering perspective this policy makes perfect sense, as LLM-generated code simply doesn’t meet the project’s standards. That said, code produced by humans brings with it a whole different set of potential problems.

GPS At Any Speed

[Mellow_Labs] was asked to create a GPS speedometer. It seems simple, but of course, the devil is in the details. You can see the process and the result in the video below.

We have to admit that he does things step-by-step. The first step was to test the GPS module’s interface. Then, he tried computing the speed from it and putting the result on a display. However, testing in the field showed that the display was not suitable for outdoor use.

That prompted another version with an OLED screen. Picking the right components is critical. It struck us that you probably need a fast update rate from the GPS, too, but that doesn’t seem to be a problem. Continue reading “GPS At Any Speed”

The 3D Printed Computer Space Takes Shape

A few weeks ago we brought you news of a project to recreate the flowing lines of the first computerised arcade game, Computer Space, as a full-size 3D printed replica. We left the project with all the parts put together to make a complete but unfinished shell that was very recognizable as a Computer Space cabinet but had neither finishing nor internals. Now we’re very pleased to bring you the conclusion of the project, as it moves from unfinished 3D print to playable cabinet.

The video below the break is a journey of print finishing to a very high standard with that lustrous blue glitter resin, but oddly it’s most interesting to find out about the manufacturing quirks of the original. How the rear door was imprecisely cut from plywood and fixed on with gate hinges, how the ventilation holes differ from cabinet to cabinet, and how the collection vessel for those quarters was an old tin. The monitor is a newer broadcast CRT in this version and the electronics are naturally  modern, but if you didn’t know, you’d be hard pressed to spot that you weren’t playing the real thing.

Finally we see the gameplay which is admittedly frustrating, and a little bit of punditry as to why this wasn’t the commercial success of the following Pong. It’s a fascinating look at the early computer game industry.

Have a look at our coverage of the first episode of this project.

Continue reading “The 3D Printed Computer Space Takes Shape”

A beehive sits on bricks with an outdoor-rated box full of electronics to monitor the hive.

Hive Monitor Is The Bee’s Knees

Beekeeping is quite the rewarding hobby. There’s delicious honey and useful wax to be had, plus you get the honor of knowing that you’re helping to keep the bee population surviving and thriving. [Ben Brooks] likes to keep tabs on the hive, but doesn’t like the idea of opening it up more often than necessary. After a couple of beekeeping rodeos, [Ben] decided to build his own tracker to get reports on the health and the activity of the hive through Home Assistant.

A white outdoor-rated box opened to reveal electronics to monitor a beehive.This hive tracker features a light sensor, a temperature sensor, and three strain gauges to measure the weight. There would be four, but a mouse decided to take a bite of the wires in the most nightmarish place to repair.

Everything runs off of an ESP32, and there’s an external antenna involved because the hive is nearly out of Wi-Fi range. The strain gauges are the affordable bathroom-scale type, and [Ben] has extras for if and when the number of hives goes up.

We like the combination of hard work and simplicity going on here — [Ben] milled and drilled the PCB himself, and used phone plugs to connect the temperature and weight sensors. Unfortunately, the plugs make the strain gauges a little finicky, so [Ben] says he would probably use screw terminals next time, or might be soldering the wires sooner rather than later. Consider this one a work in progress, and keep watching for updates as [Ben] works out the kinks.

Interested in beekeeping, but don’t want to build a traditional hive? Check out this beehive in a bottle.

2024 Home Sweet Home Automation: The Winners Are In

Home automation is huge right now in consumer electronics, but despite the wide availability of products on the market, hackers and makers are still spinning up their own solutions. It could be because their situations are unique enough that commercial offerings wouldn’t cut it, or perhaps they know how cheaply many automation tasks can be implemented with today’s microcontrollers. Still others go the DIY route because they’re worried about the privacy implications of pushing such a system into the cloud.

Seeing how many of you were out there brewing bespoke automation setups gave us the idea for this year’s Home Sweet Home Automation contest, which just wrapped up last week. We received more than 80 entries for this one, and the competition was fierce. Judging these contests is always exceptionally difficult, as nearly every entry is a standout accomplishment in its own way.

But the judges forged ahead valiantly, and we now have the top three projects which will be receiving $150 in store credit from the folks at DigiKey.

Continue reading “2024 Home Sweet Home Automation: The Winners Are In”

Tiny Arduino Drone Even Has An FPV Camera

In the turmoil of today’s world, drones are getting bigger, badder, and angrier. [Max Imagination] has gone the other way with his work, though, building a teeny Arduino drone that can fit in the palm of your hand. Even if you have a small hand!

The drone is based around an Arduino Pro Mini, and uses an MPU6050 IMU for motion sensing and flight control. Communication with the drone is via an NRF24L01. Four small coreless motors are used for propulsion, driven by tiny MOSFETs, and the whole assembly is run via a teeny 220 mAh lithium-polymer battery. Oh, and there’s an FPV camera so you can put on some goggles and see where it’s going!

Control is via MultiWii software, written specifically for building multirotor craft. [Max] flies the craft using a controller of his own creation, again using an NRF24L01 for communication.

It’s a neat build, and a titchy one too! Tiny drones have a character all their own, even if they can’t really stand up to windier outdoor environments. Video after the break.

Continue reading “Tiny Arduino Drone Even Has An FPV Camera”

Hackaday Links Column Banner

Hackaday Links: April 28, 2024

Well, it’s official — AI is ruining everything. That’s not exactly news, but learning that LLMs are apparently being used to write scientific papers is a bit alarming, and Andrew Gray, a librarian at University College London, has the receipts. He looked at a cross-section of scholarly papers from 2023 in search of certain words known to show up more often in LLM-generated text, like “commendable”, “intricate”, or “meticulous”. Most of the words seem to have a generally positive tone and feel a little fancier than everyday speech; one rarely uses “lucidly” or “noteworthy” unless you’re trying to sound smart, after all. He found increases in the frequency of appearance of these and other keywords in 2023 compared to 2022, when ChatGPT wasn’t widely available.

Continue reading “Hackaday Links: April 28, 2024”