The Social Web (old posts, page 238)

Apple Migrates Its Password Monitoring Service to Swift from Java, Gains 40% Performance Uplift

Meta and AWS have used Rust, and Netflix uses Go,reports the programming news site InfoQ. But using another language, Apple recently "migrated its global Password Monitoring service from Java to Swift, achieving a 40% increase in throughput, and significantly reducing memory usage." This freed up nearly 50% of their previously allocated Kubernetes capacity, according to the article, and even "improved startup time, and simplified concurrency." In a recent post, Apple engineers detailed how the rewrite helped the service scale to billions of requests per day while improving responsiveness and maintainability... "Swift allowed us to write smaller, less verbose, and more expressive codebases (close to 85% reduction in lines of code) that are highly readable while prioritizing safety and efficiency." Apple's Password Monitoring service, part of the broader Password app's ecosystem, is responsible for securely checking whether a user's saved credentials have appeared in known data breaches, without revealing any private information to Apple. It handles billions of requests daily, performing cryptographic comparisons using privacy-preserving protocols. This workload demands high computational throughput, tight latency bounds, and elastic scaling across regions... Apple's previous Java implementation struggled to meet the service's growing performance and scalability needs. Garbage collection caused unpredictable pause times under load, degrading latency consistency. Startup overhead — from JVM initialization, class loading, and just-in-time compilation, slowed the system's ability to scale in real time. Additionally, the service's memory footprint, often reaching tens of gigabytes per instance, reduced infrastructure efficiency and raised operational costs. Originally developed as a client-side language for Apple platforms, Swift has since expanded into server-side use cases.... Swift's deterministic memory management, based on reference counting rather than garbage collection (GC), eliminated latency spikes caused by GC pauses. This consistency proved critical for a low-latency system at scale. After tuning, Apple reported sub-millisecond 99.9th percentile latencies and a dramatic drop in memory usage: Swift instances consumed hundreds of megabytes, compared to tens of gigabytes with Java. "While this isn't a sign that Java and similar languages are in decline," concludes InfoQ's article, "there is growing evidence that at the uppermost end of performance requirements, some are finding that general-purpose runtimes no longer suffice."

Read more of this story at Slashdot.

Could This City Be the Model for How to Tackle the Both the Climate and Housing Crisis?

NPR looks at the "high-quality, climate-friendly apartments" in Vienna, asking if it's a model for addressing both climate change and the housing crisis. About half the city's 2 million people live in the widespread (and government-supported) apartments, with solar panels on top and very thick, insulated walls that reduce the need for heating and cooling. (One resident tells NPR they don't even need an air conditioner because "It's not cold in winter times. It's not hot in summer times.") Vienna council member Nina Abrahamczik, who heads the climate and environment committee, says as the city transitions all of its buildings off planet-heating fossil fuels, they're starting with the roughly 420,000 housing units they already own or subsidize.... As Vienna makes an aggressive push to completely move away from climate-polluting natural gas by 2040, it's starting with much of this social housing, says Jürgen Czernohorszky, executive city councilor responsible for climate and environment. City-owned buildings are now switching from gas to massive electric heat pumps, and to geothermal, which involves probing into the ground to heat homes. Another massive geothermal project that drills even deeper into the earth to heat homes is also underway. The city is also powering housing with solar energy. As of a year and a half ago, Vienna mandates all new buildings and building extensions to have rooftop solar. And Vienna's older apartment buildings are getting climate retrofits, says Veronika Iwanowski, spokesperson for Vienna's municipal housing company, Wiener Wohnen. That includes new insulation, doors and windows to prevent the city's wind from getting in the cracks. The increase in energy efficiency and switching from gas to renewables doesn't just have climate benefits from cutting fossil fuel use. It also means housing residents are paying less on electric bills... With city-subsidized housing, housing developers can compete to get land and low-interest loans from the city. Officials say those competitions are a critical lever for climate action. "As we can control the contents of the competitions, we try to make them fit to the main goals of the city," says Kurt Hofstetter, city planner for Vienna, "which is of course also ecological...." Now the housing judges give out points for things like increased energy efficiency, green roofs and sustainable building materials... Now the climate innovations in subsidized housing are inspiring the private market as well, Hofstetter says... The article notes that most of the city's funding is provided in the form of low-interest loans, according to a researcher at the Austrian Federation of Limited-Profit Housing Associations. (And the average social housing rents are about $700 for a large one-bedroom apartment, says Gerald Kössl, researcher at the Austrian Federation of Limited-Profit Housing Associations.)

Read more of this story at Slashdot.

Facial Recognition Error Sees Woman Wrongly Accused of Theft

A chain of stores called Home Bargains installed facial recognition software to spot returning shoplifters. Unfortunately, "Facewatch" made a mistake. "We acknowledge and understand how distressing this experience must have been," an anonymous Facewatch spokesperson tells the BBC, adding that the store using their technology "has since undertaken additional staff training." A woman was accused by a store manager of stealing about £10 (about $13) worth of items ("Everyone was looking at me"). And then it happened again at another store when she was shopping with her 81-year-old mother on June 4th: "As soon as I stepped my foot over the threshold of the door, they were radioing each other and they all surrounded me and were like 'you need to leave the store'," she said. "My heart sunk and I was anxious and bothered for my mum as well because she was stressed...." It was only after repeated emails to both Facewatch and Home Bargains that she eventually found there had been an allegation of theft of about £10 worth of toilet rolls on 8 May. Her picture had somehow been circulated to local stores alerting them that they should not allow her entry. Ms. Horan said she checked her bank account to confirm she had indeed paid for the items before Facewatch eventually responded to say a review of the incident showed she had not stolen anything. "Because I was persistent I finally got somewhere but it wasn't easy, it was really stressful," she said. "My anxiety was really bad — it really played with my mind, questioning what I've done for days. I felt anxious and sick. My stomach was turning for a week." In one email from Facewatch seen by the BBC, the firm told Ms Horan it "relies on information submitted by stores" and the Home Bargains branches involved had since been "suspended from using the Facewatch system". Madeleine Stone, senior advocacy officer at the civil liberties campaign group Big Brother Watch, said they had been contacted by more than 35 people who have complained of being wrongly placed on facial recognition watchlists. "They're being wrongly flagged as criminals," Ms Stone said. "They've given no due process, kicked out of stores," adds the senior advocacy officer. "This is having a really serious impact." The group is now calling for the technology to be banned. "Historically in Britain, we have a history that you are innocent until proven guilty but when an algorithm, a camera and a facial recognition system gets involved, you are guilty. The Department for Science, Innovation and Technology said: "While commercial facial recognition technology is legal in the UK, its use must comply with strict data protection laws. Organisations must process biometric data fairly, lawfully and transparently, ensuring usage is necessary and proportionate. "No one should find themselves in this situation." Thanks to alanw (Slashdot reader #1,822) for sharing the article.

Read more of this story at Slashdot.

New York State Begins Asking Employers to Offically Identify Layoffs Caused by AI

The state of New York is "asking companies to disclose whether AI is the reason for their layoffs," reports Entrepreneur: The move applies to New York State's existing Worker Adjustment and Retraining Notification (WARN) system and took effect in March, Bloomberg reported. New York is the first state in the U.S. to add the disclosure, which could help regulators understand AI's effects on the labor market. The change takes the form of a checkbox added to a form employers fill out at least 90 days before a mass layoff or plant closure through the WARN system. Companies have to select whether "technological innovation or automation" is a reason for job cuts. If they choose that option, they are directed to a second menu where they are asked to name the specific technology responsible for layoffs, like AI or robots.

Read more of this story at Slashdot.