242 place 0

936 Neat defer macro for C++17

Habr
VEG @ Habr 2 place · 06/09/2025 03:17 EDT

Neat defer macro for C++17

Manual resource management in low level C-style C++ code might be annoying. It's not practical to create good enough RAII wrappers for every single C API you use, but approaches with goto cleanup or loads of nested if (success) hurt readability.A defer macro to the rescue! The deferred lambda will be executed on scope exit, no matter how it happens: you can return from any point, throw an exception (if allowed), or even use a goto to an outer scope. It is truly zero-cost and doesn't rely on C runtime or sta

To see detailed statistics for the news please log in »

Read the original

Add your comment
You must be logged in with Facebook to read and write comments.

A newsletter a day!

You may get 10 most important news around midday in daily newsletter. Press the button and we will send you the most important news only, no spam attached.

or register

LIKE us on Facebook so you won't miss the most important news of the day!

News from the same source
Habr Habr
🔮
16.07.2025 ♌︎ Dear Lev, Today, the stars have prepared a diverse energetic background for you, which will... Read more ›
Wired
Dhruv Mehrotra @ Wired 1 place · 07/15/2025 15:40 EDT

The FBI's Jeffrey Epstein Prison Video Had Nearly 3 Minutes Cut Out

Metadata from the “raw” Epstein prison video shows approximately 2 minutes and 53 seconds were removed from one of two stitched-together clips. The cut starts right at the “missing minute.” Read more

1,895

Mashable
Mashable 1 place · today 10:00 EDT

Stranger Things 5 teaser: Were in for a traumatic final season, arent we?

The fifth and final season of "Stranger Things" premieres Nov. 26 on Netflix. If this teaser is anything to go by, Hawkins is in trouble. Read more

1,484 fresh

Business Insider
Jenny McGrath @ Business Insider 2 place · today 11:00 EDT

What happened when the Trinity test bomb detonated, from the creation of green glass to fallout that drifted over 1,000 miles

The Manhattan Project's Trinity test bomb detonated on July 16, 1945. The light, noise, shockwave, and fallout cloud were impossible to keep secret. Read more

925 fresh

Gizmodo
James Pero @ Gizmodo 1 place · today 10:46 EDT

China’s Wild World of AR Glasses Has Me Convinced Meta Is Cooked

Some of these AR glasses, folks... I'm telling you, they make Meta's billions of dollars of annual R&D seem like bad spending. Read more

925 fresh

Business Insider
Jenna DeLaurentis @ Business Insider 3 place · today 09:53 EDT

I tried a private airport sleeping room that's $65 an hour — it had perks, but I think lounges offer a way better value

I was excited to try Minute Suites' private sleeping room on a layover, and it had pros and cons. Still, I think airport lounges are a better value. Read more

748 fresh

Gizmodo
James Whitbrook @ Gizmodo 2 place · today 07:26 EDT

Nintendo Has Found Its Live-Action Link and Zelda

The company first announced the stars of Wes Ball's 'Legend of Zelda' movie through the Nintendo Today app. Read more

714 fresh

Business Insider
Anthony St. Clair @ Business Insider · today 08:58 EDT

I travel full-time with my wife and kids. We're not rich, but we make it work with a few simple tricks.

I've been traveling full-time with my family since 2022. We're able to afford this lifestyle with a few simple tricks, like using credit card points. Read more

616 fresh

Silicon Canals
Vigneshwar Ravichandran @ Silicon Canals 1 place · today 10:07 EDT

England’s GRIDSERVE secures €115M to accelerate high-power EV charging across UK’s busiest roads

Buckinghamshire, England-based GRIDSERVE, an EV charging provider, has secured £100M (approximately €115M) in new equity investment from its institutional shareholders. The round was backed by TPG, Infracapital, and Mitsubishi, joining GRIDSERVE’s existing debt facilities. TPG is a global alternative asset management firm with $251B of assets under management. TPG invests across a broadly diversified set ... Read more Read more

565 fresh

Business Insider
Pete Syme @ Business Insider · today 07:25 EDT

The Brazilian rival to Boeing and Airbus warned that Trump's planned 50% tariffs will hit it as hard as COVID-19

Donald Trump has proposed huge levies on Brazil, prompting an outspoken response from the CEO of Embraer, which builds vital regional airliners. Read more

557 fresh

Gizmodo
Luc Olinga @ Gizmodo 3 place · 07/15/2025 23:44 EDT

Joe Rogan Accuses Trump’s Team of Hiding Epstein Files to Protect Powerful Figures

The popular podcaster is expressing outrage and disappointment with Donald Trump, whom he supported in the 2024 presidential election, alleging a cover-up of the Jeffrey Epstein case and amplifying conspiracy theories to his millions of followers. Read more

517

Business Insider
Alexi Jones @ Business Insider · today 10:22 EDT

I spent 3 days in Paris with my grandparents. The trip became less about seeing the city and more about seeing them.

During my semester abroad, I met up with my grandparents and their friends in Paris. I had so much fun slowing down and learning more about my family. Read more

505 fresh

Vox
Zack Beauchamp @ Vox 1 place · today 07:00 EDT

Why Trump betrayed his base on Jeffrey Epstein

Since last Monday, when the Justice Department announced it would not be releasing documents relating to Jeffrey Epstein and his 2019 death in a New York prison, the MAGA movement has been up in arms.  Prominent voices like Megyn Kelly are calling on President Donald Trump to fire Attorney General Pam Bondi. FBI Deputy Director […] Read more

456 fresh

Droid Life
Kellen @ Droid Life 1 place · today 10:30 EDT

Pixel Phones Can Turn Off That Silly AI Mode Search Shortcut

If you couldn’t already tell, Google is a big fan of its new “AI Mode” in Google Search. Since first introducing it back in March, it has received several updates that add functionality, bring improvements to both desktop and mobile, and expand it to new places. It’s pretty obvious that Google has seen some early … Continued Read the original post: Pixel Phones Can Turn Off That Silly AI Mode... Read more

384 fresh

Vox
Eric Levitz @ Vox 2 place · today 06:30 EDT

The lie at the heart of Trump’s entire economic agenda

With his tax agenda finally passed, Donald Trump has turned back to his true passion: making America poorer and more geopolitically isolated for no good reason. Last week, the president threatened 25 of America’s trading partners with punishing tariffs, unless they present him with an agreeable trade deal by August 1. These represent a modified […] Read more

355 fresh

The most popular news from the same source for the last week
Habr Habr
Habr
Kaspersky_Lab («Лаборатория Касперского») @ Habr 1 place · 07/14/2025 23:24 EDT

Security Week 2529: атака Rowhammer реализована на видеокартах

Исследователи из канадского Университета Торонто опубликовали научную работу, в которой показали успешное применение атаки класса Rowhammer на профессиональные видеокарты Nvidia. Атака Rowhammer впервые была показана в 2014 году, она эксплуатирует физические особенности современных микросхем оперативной памяти. Из-за высокой плотности ячеек памяти есть возможность изменять значения в определенных ячейках путем отправления множества запросов по соседним адресам. Такое «простукивание» (отсюда hammer в названи Read more

3

Habr
melanny20 (Postgres Professional) @ Habr 2 place · 07/14/2025 07:30 EDT

[Translation] The performance engineer: a detective licensed to kill… bottlenecks

Picture this: a mission-critical SQL query is crawling along. Not for an hour. Not for two. Fifteen hours. A full workday of the system slowly grinding through data while the business bleeds money and users teeter on the edge of a nervous breakdown. And then — cue the dramatic music — in walks the performance engineer.After a few hours of intense analysis and a couple of pinpoint code tweaks, the... Read more

0

Most popular sources

  • You see 786 news out of 786.
  • Sources 61 out of 61.
Wired 41% 34
Gizmodo 16% 5
Business Insider 12% 24
The Verge 4% 3
MacRumors 3% 4
View sources »

LIKE us on Facebook so you won't miss the most important news of the day!

16.07.2025 12:05
Last update: 12:00 EDT.
News rating updated: 19:03.

What is Times42?

Times42 brings you the most popular news from tech news portals in real-time chart.
Read about us in FAQ section.


Times42 © 2025