Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: return Clear Filter

Making a StringBuffer in C, and questioning my sanity

I've been writing a lot of C. Whilst doing so I have been questioning my sanity. Am I an awful programmer? You know what, I think I might be. Kudos to all those devs that created monumental feats with C. Because it is not an easy tool to use. That said, I do enjoy writing C, just as long as I don't have a deadline or any business critical software to deliver. But when I say enjoy, I mean enjoyment in the sense of using a sycthe to cut a lawn, whilst my lawnmower watches on. It's lovely using th

BBC Insists Its Disney Partnership Remains Strong in Wake of ‘Doctor Who’ Doubts

Ever since the latest season of Doctor Who came to a messy end a few months ago, the biggest question on audiences’ minds (among the many questions raised by that finale) is when, or if, we might expect to see the show return to our screens. The further we’ve moved from the season without news other than that there is no news about the BBC renewing its funding and distribution deal with Disney for the series, the more doubts have grown. But the BBC continues to stress that it is focused on worki

A Mental Model for C++ Coroutine

C++ coroutine is not a library that is ready to go (e.g. std::vector ). It is not even a trait (think of Rust’s Future trait) that library writers or users can implement (or the compiler generates for you in the case of Rust). C++ coroutine is a specification that defines a set of customization points that library writers implement in order to get a functional coroutine. A function supports two operations - call and return . A coroutine (in any language) is a generalization of a function. It su

eBPF: Connecting with Container Runtimes

eBPF: Connecting with Container Runtimes Objective to understand how connection with Container Runtime (CR) is being made using Container Runtime Interface (CRI) in different open-source eBPF-based projects. to query pod or container info for context enrichment. is being made using in different open-source eBPF-based projects. Reasoning Note Code snippets are take from open-source tetragon, tracee and crictl projects. Connection with CR is important for making the tool/product kubernetes-a

Topics: err info nil res return

Breaking Git with a carriage return and cloning RCE

tl;dr: On Unix-like platforms, if you use git clone --recursive on an untrusted repo, it could achieve remote code execution. Update to a fixed version of git and other software that embeds Git (including GitHub Desktop). If you've ever used an old mechanical typewriter, you know that when you get to the end of the line there's a physical action to to get back to the start of the line. Sometimes this was done through an actual lever on the typewriter, later models had a button. Because this act

CVE-2025-48384: Breaking Git with a carriage return and cloning RCE

tl;dr: On Unix-like platforms, if you use git clone --recursive on an untrusted repo, it could achieve remote code execution. Update to a fixed version of git and other software that embeds Git (including GitHub Desktop). If you've ever used an old mechanical typewriter, you know that when you get to the end of the line there's a physical action to to get back to the start of the line. Sometimes this was done through an actual lever on the typewriter, later models had a button. Because this act

Asynchronous Error Handling Is Hard

(Ed. note: This article was originally published on The CUDA Handbook blog on November 2, 2023.) Every API designer has struggled with the question of how best to propagate errors to their callers, since before the term “API” was invented. Even decades ago (say 30+ years), interface designers knew to separate the error return from the payload, in functions that return other results to their caller. Since it is sometimes useful to know what not to do: My favorite example of an antipattern in th

I Let AI Agents Plan My Vacation—and It Wasn't Terrible

The worst part of travel is the planning: the faff of finding and booking transport, accommodation, restaurant reservations—the list can feel endless. To help, the latest wave of AI agents, such as OpenAI’s Operator and Anthropic’s Computer Use claim they can take these dreary, cumbersome tasks from befuddled travelers and do it all for you. But exactly how good are they are digging out the good stuff? What better way to find out than deciding on a last-minute weekend away. I tasked Operator, w

Show HN: AGL a toy language that compiles to Go

AGL (AnotherGoLang) Description AGL is a language that compiles to Go. It uses Go's syntax, in fact its lexer/parser is a fork of the original Go implementation, with a few modifications The main differences are: Functions return only a single value. This makes it possible to use types like Option[T] and Result[T] , and to support automatic error propagation via an operator. and , and to support automatic error propagation via an operator. To make returning multiple values easy, a Tuple ty

Topics: fmt func int main return

Weird Expressions in Rust

Rust has a very powerful type system, but as a result it has some quirks, some would say cursed expressions. There’s a test file, weird-expr.rs , in the rust repository that tests for some of these and makes sure there consistent between updates. So I wanted to go over each of these and explain how it’s valid rust. Note that these are not bugs, but rather extreme cases of rust features like loops, expressions, coercion and so on. Strange fn strange () -> bool { let _x : bool = return true ;}

Topics: fn let match return u8

Easy returns cause big trouble for Amazon sellers, but return rates show signs of slowing

In this article WMT AMZN Follow your favorite stocks CREATE FREE ACCOUNT Returns on Amazon are free and easy for shoppers, but they're risky and expensive for the small businesses that sell a majority of the goods on the world's biggest e-commerce site. Returns have driven some sellers to exit the popular Fulfillment by Amazon program, while others told CNBC they'd like to leave the platform altogether. At the heart of the problem is a big rise in returns fraud, which has led to customers mist

I Wrote a Compiler

I have a Computer Science degree. I attended a whole course of lectures on compilers (and have a certain fondness for “the red dragon book” as a result). However, I had never actually written a compiler from start to finish until a rainy day last weekend. Yes, this is what I do for fun. I wanted to make a compiler for a real language, but a simple one so I could complete the project in a few hours. I’ve always had a bit of a soft spot for BASIC - it’s the first progamming language I learned as

The fastest way to detect a vowel in a string

Austin Z. Henley Associate Teaching Professor Carnegie Mellon University [email protected] @austinzhenley github/AZHenley The fastest way to detect a vowel in a string 6/13/2025 I was nerdsniped recently: What is the best way to detect if a string has a vowel in it? This is trivial, right? But as I started getting into it, I realized there is much more to this. I challenged myself to come up with as many ways to detect a vowel as possible. I even asked a few friends to give it a go. Whi

TinyCompiler: A compiler in a week-end

TinyCompiler: a compiler in a week-end Introduction Have you ever wondered how a compiler works, but you never found courage to find out? Then this series of articles is for you. I have never had the chance to look under the hood either, but one week-end I have decided to to write a translator from the esoteric programming language wend (short for week-end), which I just invented myself, into regular GNU assembly. The goal is to keep the code as tiny as possible, 500-ish lines of python sounds