564 place 0

676 [From sandbox] Confusing extensions in Swift

Habr
Puasonych @ Habr · 11/18/2020 03:17 EDT

[From sandbox] Confusing extensions in Swift

This post is a little bit the information aggregator. If you find a mistake, you could write to me about it I really appreciate that. Have a nice read.Example with JSONDecoder
What would happen if we run the following piece of code?struct Test: Codable where T: Codable {
enum CodingKeys: String, CodingKey {
case value
}

let value: T
let info: String
}

extension Test {
init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.sel

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
Tech Wire Asia
Tech Wire Asia @ Tech Wire Asia 1 place · 11/26/2024 17:24 EDT

PayPay and Alipay+ expand partnership: Mobile payment coverage across Japan

PayPay and Alipay+ announced an extended partnership at the Singapore FinTech Festival 2024, to increasing merchant coverage across Japan. PayPay, Japan’s leading QR payment operator, and AliPay+, Ant International’s mobile payment method that helps merchants reach shoppers in Asia, will now connect over three million local merchants to the global payment ecosystem. The extended partnership... Read more » Read more

1,792 fresh

🔮
27.11.2024 ♑︎ Today, the stars promise Capricorns an active and successful day financially. Your skills in money... Read more ›
Business Insider
Kwan Wei Kevin Tan @ Business Insider 2 place · 11/26/2024 23:34 EDT

Marc Andreessen is hopping on the Musk bandwagon and slamming manned fighter jets, saying there won't be 'spam in the can' if pilots aren't in the plane

"You don't have to keep a human being alive, which means you can be a lot faster and you can move a lot more quickly," Andreessen told Joe Rogan. Read more

1,120 fresh

Business Insider
Ryan Pickrell,Mia Jankowicz @ Business Insider 3 place · 11/26/2024 04:00 EDT

Elon Musk says human-piloted fighter jets like the F-35 are obsolete. Drone tech can't yet fill the gap.

The Tesla CEO went after the F-35, calling crewed fighter jets "obsolete in the age of drones," but uncrewed technology isn't there yet. Read more

375

Business Insider
Amanda Goh @ Business Insider · 11/26/2024 23:32 EDT

Guy Fieri says that when his youngest son comes home from college, he 'sets a menu' for what he wants to eat

"He has a good meal program there at San Diego State, but he says it just doesn't taste the same as it does at home," Guy Fieri said. Read more

321 fresh

Eurogamer.net
Matt Wales @ Eurogamer.net 1 place · 11/26/2024 17:29 EDT

PS2 officially surpasses 160m sales, retaining its best-selling console crown

Nintendo's Switch might be nipping at its heels, but PlayStation 2 continues to hold the record as the best-selling console of all time - with Sony now confirming the machine has shifted a whopping 160m units since launching all the way back in March 2000. Read more Read more

295 fresh

Business Insider
Erin Snodgrass @ Business Insider · 11/26/2024 21:08 EDT

5 of the top business schools enrolled fewer minorities in the year since affirmative action was overturned

Five of the top business schools enrolled fewer underrepresented minority students in the year since the Supreme Court overturned affirmative action. Read more

219 fresh

The Verge
Umar Shakir @ The Verge 1 place · 11/26/2024 19:57 EDT

Porsche is holding on to gas cars for a bit longer

Photo by Sean O’Kane / The Verge Porsche is not ready to turn in its gas caps for charging ports just yet. The company reportedly plans to launch more internal combustion engine models due to a slowdown in EV sales, according to Automotive News Europe. The automaker’s CFO, Lutz Meschke, told the outlet, “What is clear is that we are sticking with the combustion engine for much longer.” As Car... Read more

204 fresh

The Verge
Sheena Vasani @ The Verge 2 place · 11/26/2024 19:03 EDT

Max, Hulu, and Paramount Plus are all heavily discounted for Black Friday

Illustration by Cath Virginia / The Verge If you’re looking to catch up on recent shows and movies — including Shogun, The Penguin, and Dune: Part Two — the upcoming holiday weekend is the perfect time to do so. Thankfully, multiple streaming services are slashing subscription prices ahead of Black Friday and Cyber Monday, including Max, Hulu, and others. Right now, for example, you can sign up for a year... Read more

203 fresh

Wired
Ryan Waniata @ Wired 1 place · 11/26/2024 22:54 EDT

8 Early Black Friday TV Deals to Grab Ahead of the Madness

TV brands are taking prices down a notch ahead of Black Friday for some of the best deals of the year. Read more

183 fresh

Financial Times
Financial Times 2 place · today 00:00 EDT

Elon Musk’s Twitter backers gain windfall from xAI deal

Investors hit by losses following billionaire’s takeover of social media platform reap rewards from shares in his AI start-up Read more

178 fresh

Mashable
Mashable 1 place · today 00:00 EDT

How to watch Liverpool vs. Real Madrid online for free

Watch Liverpool vs. Real Madrid in the Champions League for free from anywhere in the world. Read more

177 fresh

Business Insider
Ana Altchek @ Business Insider · 11/26/2024 12:23 EDT

Ex-Google CEO warns that 'perfect' AI girlfriends could spell trouble for young men

Eric Schmidt said the emotionally and physically "perfect" AI girlfriend may lead young male users to become obsessed with the chatbot. Read more

154

The Verge
The Verge Staff @ The Verge 3 place · 11/26/2024 15:10 EDT

The Verge’s guide to Black Friday 2024

Image: Cath Virginia / The Verge These days, Black Friday isn’t so much a single-day shopping holiday as it is an ever-expanding, monthslong event that often begins as early as October. The 24-hour deal blitz that once was the focus of newspaper headlines and mobs outside of stores is no more, which makes knowing when and where you should be spending your cash all the more confusing. Luckily, we’re here... Read more

152

Engadget
Danny Gallagher @ Engadget 1 place · 11/26/2024 19:00 EDT

X says The Onion can’t have Alex Jones’ Infowars accounts

Another legal complication may have surfaced in The Onion’s bid to buy the Infowars empire from bankrupt conspiracy media mogul Alex Jones. X filed a limited objection to the transfer of Infowars’ X accounts to the satirical media empire in a federal Bankruptcy Court on Monday. The objection claims that X Corporation’s terms of service states “the Trustee cannot sell, assign or otherwise transfer such license absent X Corp.’s consent,”... Read more

144 fresh

Mashable
Mashable 2 place · today 00:00 EDT

How to watch Red Star Belgrade vs. Stuttgart online for free

Watch Red Star Belgrade vs. Stuttgart in the Champions League for free from anywhere in the world. Read more

141 fresh

CNET
Ingrid Cruz @ CNET 1 place · 11/26/2024 17:33 EDT

The Kasa Smart Plug Outlet Is at Its Lowest Price Ever at Amazon This Black Friday

Keep your devices charged and ready with this smart plug outlet that's now only $40, and works with Alexa and Google Home. Read more

128 fresh

The most popular news from the same source for the last week
Habr Habr
Habr
kaze_no_saga (Postgres Professional) @ Habr 2 place · 11/22/2024 03:04 EDT

[Translation] PostgreSQL 18: Part 1 or CommitFest 2024-07

This article is the first in the series about the upcoming PostgreSQL 18 release. Let us take a look at the features introduced in the July CommitFest. Planner: Hash Right Semi Join support Planner: materializing an internal row set for parallel nested loop join Planner support functions for generate_series EXPLAIN (analyze): statistics for Parallel Bitmap Heap Scan node workers Functions min and max for composite types Parameter names for regexp*... Read more

0

Habr
Akshiira @ Habr 2 place · 11/22/2024 16:20 EDT

The Implicit Reparameterization Trick in Action: Python Library for Gradients Computation

The explicit reparameterization trick is often used to train various latent variable models due to the ease of calculating gradients of continuous random variables. However, due to its peculiarities, explicit reparameterization trick is not applicable to several important continuous standard distributions, such as mixture, Gamma, Beta and Dirichlet.An alternative method for calculating reparameterization gradients relies on implicit differentiation of cumulative distribution functions. The implicit reparame Read more

0

Habr
habrbah @ Habr 1 place · 11/23/2024 13:37 EDT

Lifecycle of an IT product using the example of Telepathy – a brain-computer interface (BCI) from Nueralink

1. The purpose of the IT product Telepathy – the brain-computer interface of  NueralinkThe UN General Assembly Resolution of 22.03.2024 No. A/78/L.49 “Harnessing the Potential of Safe, Secure and Trustworthy Artificial Intelligence Systems for Sustainable Development” [1] confirms (paragraph 5) that"human rights and fundamental freedoms must be respected, protected and encouraged throughout the life cycle of artificial intelligence systems"and to all Member States of the United Nations and, where appropriat Read more

0

Habr
janna_melnikova @ Habr 2 place · 11/25/2024 02:36 EDT

How can a manual tester understand an automation tester, and vice versa?

When we go abroad for vacation or meet a foreigner on the street who doesn’t speak Russian but is trying to ask, “Where is the restroom? How do I get to…”, we wonder how to explain things to them in Russian in a way they would understand. I asked myself a similar question when trying to explain something to a colleague using SQL while they were working with Java. The... Read more

0

Habr
profleaddev @ Habr 3 place · 11/25/2024 10:04 EDT

Napkin AI Tutorial: The Ultimate Guide to Visualizing Your Ideas with AI

Napkin AI is an innovative artificial intelligence tool that transforms text descriptions into visual sketches and diagrams. Launched in 2023, this tool allows users to quickly convert their ideas into visual representations, similar to drawing on a napkin – hence the name. In this tutorial, I will walk you through its top features and provide a video demonstration. Read more Read more

0

Most popular sources

  • You see 1,062 news out of 1,062.
  • Sources 63 out of 63.
Business Insider 31% 5
Wired 10% 6
The Verge 7% 0
Tech Wire Asia 6% 5
Gizmodo 6% 0
View sources »

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

27.11.2024 01:50
Last update: 01:40 EDT.
News rating updated: 08:41.

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 © 2024