Latest Tech News

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

Filtered by: turn Clear Filter

Lambdas, Nested Functions, and Blocks (2021)

I have the fortunate privilege to be part of the ISO C Standard mailing list, and recently a thread kicked off about Lambdas and what their need is in the C Community. That thread was in response to an ongoing push by Jens Gustedt’s proposal N2736, where Gustedt is building steam to put a proper function + data type into the C Standard at some point. What kicked off in that thread was a lot of talking about nested functions, blocks, statement expressions, whether we even need the ability to have

Lambdas, Nested Functions, and Blocks

I have the fortunate privilege to be part of the ISO C Standard mailing list, and recently a thread kicked off about Lambdas and what their need is in the C Community. That thread was in response to an ongoing push by Jens Gustedt’s proposal N2736, where Gustedt is building steam to put a proper function + data type into the C Standard at some point. What kicked off in that thread was a lot of talking about nested functions, blocks, statement expressions, whether we even need the ability to have

Microsoft is getting ready to return to the office

is a senior editor and author of Notepad , who has been covering all things Microsoft, PC, and tech for over 20 years. Microsoft originally encouraged its employees to work from home amid the coronavirus outbreak in 2020. This new flexible working arrangement then became an official “hybrid workplace” policy several months after the pandemic began, allowing managers to approve permanent remote work. Now that the pandemic has settled into endemicity, Microsoft wants employees to return to the of

Changing these 6 settings on my iPad improved the battery life by hours

Adam Breeden/ZDNET As an avid iPad user, I'm all too familiar with the internal struggles that course through me when the battery is about to die. I love using either the iPad 11 or iPad Air to write and work, but I also use it to stream content, play games, and browse the internet after work. This makes me appreciate the iPad's long battery life, yet my anxiety grows when I start getting 'low battery' alerts without a charger nearby. Also: How you're charging your tablet is slowly killing it

Evaluating LLMs playing text adventures

What we’ll do is set a low-ish turn limit and see how much they manage to accomplish in that time.1 Another alternative for more linear games is running them multiple times with a turn limit and seeing how often they get past a particular point within that turn limit. Given how much freedom is offered to players of text adventures, this is a difficult test. It’s normal even for a skilled human player to immerse themselves in their surrounding rather than make constant progress. I wouldn’t be su

Evaluating LLMs Playing Text Adventures

What we’ll do is set a low-ish turn limit and see how much they manage to accomplish in that time.1 Another alternative for more linear games is running them multiple times with a turn limit and seeing how often they get past a particular point within that turn limit. Given how much freedom is offered to players of text adventures, this is a difficult test. It’s normal even for a skilled human player to immerse themselves in their surrounding rather than make constant progress. I wouldn’t be su

A promising Sega Saturn emulator brings major improvements in a beefy update

TL;DR The Ymir emulator for PCs has received a major update that improves performance and compatibility. The Sega Saturn emulator also now offers screenshot functionality and support for two notable Saturn controllers. The Sega Saturn is one of the more complicated retro video game consoles to emulate, but we’ve seen several solid emulators over the years. Most recently, a developer released the nifty Ymir emulator for computers, and it’s just received a major update. Ymir is a Sega Saturn em

Why tail-recursive functions are loops

One story every computing enthusiast should hear is the lesson of how loops and tail-recursion are equivalent. We like recursive functions because they’re amenable to induction, and we can derive them in a way that is in direct correspondence with the definition of the datatype over which they recur. We like loops because they’re fast and make intuitive sense as long as variables don’t change in too tricky a way. In general, recursive functions are slower than loops because they push stack fram

Topics: int return stack sum tail

Why Tail-Recursive Functions Are Loops

One story every computing enthusiast should hear is the lesson of how loops and tail-recursion are equivalent. We like recursive functions because they’re amenable to induction, and we can derive them in a way that is in direct correspondence with the definition of the datatype over which they recur. We like loops because they’re fast and make intuitive sense as long as variables don’t change in too tricky a way. In general, recursive functions are slower than loops because they push stack fram

Topics: int return stack sum tail

Generic Containers in C: Safe Division Using Maybe

Generic Containers in C: Safe Division Using Maybe. Martin Uecker, 2025-08-10 I discuss the implementation of type and bounds safe generic containers in C. Previously, I discussed a span type, bounds checking using arrays. and a a vector type. This time, I will discuss maybe inspired by Haskell. This type can used to return a value that may not exist, e.g. because an error was encountered during the computation. The following examples shows for a divide function that catches division by

I changed these 6 settings on my iPad to significantly improve its battery life

Maria Diaz/ZDNET As an avid iPad user, I'm all too familiar with the internal struggles that course through me when the battery is about to die. I love using either the iPad 11 or iPad Air to write and work, but I also use it to stream content, play games, and browse the internet after work. This makes me appreciate the iPad's long battery life, yet my anxiety grows when I start getting 'low battery' alerts without a charger nearby. Also: How you're charging your tablet is slowly killing it -

People returned to live in Pompeii's ruins, archaeologists say

People returned to live in Pompeii's ruins, archaeologists say New evidence suggests people returned to live among the ruins of Pompeii after the ancient Roman city was devastated by a volcanic eruption. Archaeologists believe some survivors who could not afford to start a new life elsewhere returned to the site and may have been joined by others looking for a place to settle. Pompeii was home to more than 20,000 people before Mount Vesuvius erupted in AD79, burying - and preserving - much of

New Line’s ‘Space Invaders’ Movie is Back in Business

Next up on the ever-expanding list of video game adaptations? A movie for Space Invaders, apparently. Per Deadline, New Line Cinema is finally making good on its hopes to bring Taito’s shoot ’em up to life. First announced back in 2019, the studio and production company Safehouse Pictures have put comedy writers Ben Zazove and Evan Turner on script duties. Individually, they’ve written or produced for movies like Sherlock Gnomes (Zazove) and Journey to the Center of the Earth (Turner), but as a

Efrit: A native elisp coding agent running in Emacs

Efrit - AI-Powered Emacs Coding Assistant A sophisticated AI coding agent that leverages Emacs' native programmability through direct Elisp evaluation. Overview Efrit is a conversational AI assistant that integrates seamlessly with Emacs, providing multiple interfaces for different types of tasks: efrit-chat - Multi-turn conversational interface for complex discussions and code development - Multi-turn conversational interface for complex discussions and code development efrit-do - Natural

Writing a storage engine for Postgres: An in-memory table access method (2023)

With Postgres 12, released in 2019, it became possible to swap out Postgres's storage engine. This is a feature MySQL has supported for a long time. There are at least 8 different built-in engines you can pick from. MyRocks, MySQL on RocksDB, is another popular third-party distribution. I assume there will be a renaissance of Postgres storage engines. To date, the efforts are nascent. OrioleDB and Citus Columnar are two promising third-party table access methods being actively developed. Why

Writing a storage engine for Postgres: an in-memory Table Access Method

With Postgres 12, released in 2019, it became possible to swap out Postgres's storage engine. This is a feature MySQL has supported for a long time. There are at least 8 different built-in engines you can pick from. MyRocks, MySQL on RocksDB, is another popular third-party distribution. I assume there will be a renaissance of Postgres storage engines. To date, the efforts are nascent. OrioleDB and Citus Columnar are two promising third-party table access methods being actively developed. Why

The ISS Crew Is Returning to Earth: Here's How to Watch Online

It's time to change crews on the International Space Station. On Friday, you can tune in to NASA's live coverage of the return of Crew-10 on NASA Plus, Amazon Prime and more streaming services. Events begin with the hatch closure and undocking on Friday, and the crew returns on the following day. The return was delayed a day due to high winds at the splashdown sites off the California coast. Weather conditions will be continually monitored, and the specific splashdown location will be determine

More shell tricks: first class lists and jq

More shell tricks: first class lists, jq, and the es shell Preamble It’s not a secret that most common shells don’t have first class lists. Sure, you can pass a list to a program by passing each element in argv (e.g. with "$@" or "${list_variable[@]}" ), but what if you want to return a list? There are a couple of options. The challenge As a more practical example of this, let’s implement split-by-double-dash , a function (or a program) that would return two lists: args that come before --

Topics: jq list lists return sh

New Ghost Calls tactic abuses Zoom and Microsoft Teams for C2 operations

A new post-exploitation command-and-control (C2) evasion method called 'Ghost Calls' abuses TURN servers used by conferencing apps like Zoom and Microsoft Teams to tunnel traffic through trusted infrastructure. Ghost Calls uses legitimate credentials, WebRTC, and custom tooling to bypass most existing defenses and anti-abuse measures, without relying on an exploit. This new tactic was presented by Praetorian's security researcher Adam Crosser at BlackHat USA, where it was highlighted that the

See 6 Planets Align in the Night Sky This August

On August 10, six planets—Mercury, Venus, Jupiter, Saturn, Uranus, and Neptune—will line up in an arc in the night sky. Four of these planets—Mercury, Venus, Jupiter, and Saturn—can be seen with the naked eye, while Uranus and Neptune will be visible through a very strong pair of skywatching binoculars or a backyard telescope. While August 10 marks the beginning of this planetary parade, these six planets will be visible until the final days of August, when Mercury sinks lower on the horizon an

I ditched my Bluetooth speaker for this Victrola turntable system - and didn't miss a beat

Victrola Harmony ZDNET's key takeaways The Victrola Harmony turntable system is available for $299 in the colors Natural, Walnut, and Black. This system includes a full-size turntable, two bookshelf speakers, and an A-T ATN3600L cartridge, all great components for beginners. At its $300 price point ($100 up from its debut in Jan.), people willing to spend this kind of money may be ready for a more advanced system. View now at Victrola If you've ever considered "getting into audio," prepare to

Should you buy an electronic turntable? I ditched my Bluetooth speaker for one and didn't regret it

Victrola Harmony ZDNET's key takeaways The Victrola Harmony turntable system is available for $299 in the colors Natural, Walnut, and Black. This system includes a full-size turntable, two bookshelf speakers, and an A-T ATN3600L cartridge, all great components for beginners. At its $300 price point ($100 up from its debut in Jan.), people willing to spend this kind of money may be ready for a more advanced system. View now at Victrola If you've ever considered "getting into audio," prepare to

Snapchat could soon offer free Snapchat Plus if you invite your friends (APK teardown)

Edgar Cervantes / Android Authority TL;DR Snapchat is working on a referral program that grants users a free month of Snapchat Plus if they get three friends to sign up for the service. Snapchat is also looking to integrate the recently acquired Saturn app, allowing students to link calendars and communicate more easily. Snapchat is credited for popularizing the trend of disappearing photos and videos, aka Snaps, as well as temporary broadcasts in the form of Stories. The app remains popular

I ditched my Bluetooth speakers for this slick turntable - and it's more practical than I thought

ZDNET's key takeaways The Victrola Harmony turntable system is available for $299 in the colors Natural, Walnut, and Black. This system includes a full-size turntable, two bookshelf speakers, and an A-T ATN3600L cartridge, all great components for beginners. At its $300 price point ($100 up from its debut in Jan.), people willing to spend this kind of money may be ready for a more advanced system. View now at Victrola If you've ever considered "getting into audio," prepare to spend a couple h

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

Apple dodges iOS 13-era suit over background data usage (for now)

A years-old lawsuit accusing Apple of burning through users’ mobile data won’t be moving forward as a class action, but it might still be pursued individually. Here’s what happened. The case involves unauthorized cellular data usage, even when Wi-Fi was available The case, originally filed by user Alasdair Turner in 2020, claims that iOS 13 sent data over cellular networks even after users had specifically disabled mobile access for certain apps. That background activity was allegedly mislabe

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

Here's How to Turn Off Some Annoying iPhone Texting Features

Texting is one of the easiest ways to stay in touch with friends and family, and if you can't find the right words to use in a text, you can always use an emoji. But you might find some texting features on iPhone to be downright annoying. Some of the biggest culprits include autocorrect and predictive texting. Autocorrect can cut down on the number of typos when you're typing, and predictive texting can make it easy to write a full message in a few quick taps. But when I use these features, mor

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