×
Programming

Golang Approves Generics, While Python Accepts Pattern-Matching Proposals (thenewstack.io)

From today's "This Week in Programming" column: Rejoice, long at last, all you Gophers, for the question of whether or not the Go programming language will adopt generics has finally, after many years of debate, been answered this week with the acceptance of a proposal made last month.

In this most recent proposal, Golang team member Ian Lance Taylor writes that generics have been "one of the most commonly requested language features" since the language was first released in 2009, but even then, it's adoption doesn't come without concerns. Taylor explains the idea of generics in the intro of his proposal:

"Generics can give us powerful building blocks that let us share code and build programs more easily. Generic programming means writing functions and data structures where some types are left to be specified later. For example, you can write a function that operates on a slice of some arbitrary data type, where the actual data type is only specified when the function is called. Or, you can define a data structure that stores values of any type, where the actual type to be stored is specified when you create an instance of the data structure."

It is precisely this value proposition — being able to write reusable code — that excites some developers and has been behind the push all along...

Generics wasn't the only controversial programming language addition this week, with the Python Steering Council making the decision to accept a number of Python Enhancement Proposals (PEPs) collectively known as the Pattern Matching PEPs. "We acknowledge that Pattern Matching is an extensive change to Python and that reaching consensus across the entire community is close to impossible," the council writes, saying that, nonetheless, they "are confident that Pattern Matching as specified in PEP 634, et al, will be a great addition to the Python language."

One dissenter to the addition found their way to the pages of iProgrammer, with the snarky headline "Python Adopts Pattern Matching — Kitchen Sink Next."

In other news, Google increased its support for the Python Software Foundation with a donation of more than $350,000 to support three specific projects, and also says it will continue its donation of Google Cloud infrastructure to the foundation.
Earth

Coca-Cola Begins Testing a Paper Bottle (bbc.com) 38

"Coca-Cola is to test a paper bottle as part of a longer-term bid to eliminate plastic from its packaging entirely," reports the BBC: The prototype is made by a Danish company from an extra-strong paper shell that still contains a thin plastic liner. But the goal is to create a 100% recyclable, plastic-free bottle capable of preventing gas escaping from carbonated drinks. The barrier must also ensure no fibres flake off into the liquid...

Coca-Cola was ranked the world's number one plastic polluter by charity group Break Free From Plastic last year, closely followed by other drink-producers Pepsi and Nestle... Part of the challenge has been to create a structure capable of withstanding the forces exerted by fizzy drinks — such as cola and beer — which are bottled under pressure. On top of that, the paper needs to be mouldable, to create distinct bottle shapes and sizes for different brands, and take ink for printing their labels.

After more than seven years of lab work, the firm is now ready to host a trial in Hungary this summer of Coca-Cola's fruit drink Adez. Initially, this will involve 2,000 bottles distributed via a local retail chain. But it is also working with others. Absolut, the vodka-maker, is due to test 2,000 paper bottles of it own in the UK and Sweden of its pre-mixed, carbonated raspberry drink. And beer company Carlsberg is also building prototypes of a paper beer bottle.

The Military

Why Is America Getting a New $100 Billion Nuclear Weapon? (thebulletin.org) 120

"America is building a new weapon of mass destruction, a nuclear missile the length of a bowling lane," writes the contributing editor for the Bulletin of the Atomic Scientists (in an article shared by Slashdot reader DanDrollette): It will be able to travel some 6,000 miles, carrying a warhead more than 20 times more powerful than the atomic bomb dropped on Hiroshima. It will be able to kill hundreds of thousands of people in a single shot.

The U.S. Air Force plans to order more than 600 of them...

Based on a Pentagon report cited by the Arms Control Association Association and Bloomberg News, the government will spend roughly $100 billion to build the weapon, which will be ready to use around 2029... The missile goes by the inglorious acronym GBSD, for "ground-based strategic deterrent." The GBSD is designed to replace the existing fleet of Minuteman III missiles; both are intercontinental ballistic missiles, or ICBMs... The official purpose of American ICBMs goes beyond responding to nuclear assault. They are also intended to deter such attacks, and serve as targets in case there is one. Under the theory of deterrence, America's nuclear arsenal — currently made up of 3,800 warheads — sends a message to other nuclear-armed countries. It relays to the enemy that U.S. retaliation would be so awful, it had better not attack in the first place...

Many of the missile's critics are former military leaders, and their criticism has to do with those immovable silos. Relative to nuclear missiles on submarines, which can slink around undetected, and nuclear bombs on airplanes — the two other legs of the nuclear triad, in defense jargon — America's land-based nuclear missiles are easy marks.

Facebook

Facebook Blames 'Technical Issues" for Its Broken Promise to the US Congress (themarkup.org) 15

Facebook is blaming "technical issues" for its broken promise to the U.S. Congress to stop recommending political groups to its users, reports The Markup: Facebook made the pledge once in October, in the run-up to the presidential election, and then falsely reiterated it had taken the step after rioters overtook the U.S. Capitol on Jan. 6, a deadly event partially coordinated by users on the platform.

The Markup first revealed that Facebook was still recommending groups...in an investigation published on Jan. 19. Examining the top 100 groups recommended to roughly 1,900 users on our Citizen Browser panel, we identified 12 as political — including groups with posts calling for violence against lawmakers, spreading election-related conspiracy theories, and coordinating logistics for attending the rally that led to the Capitol riot.

Citizen Browser is a data-driven project examining the choices Facebook makes about what content to amplify.

A week after our report, U.S. senator Ed Markey sent a letter to the company, demanding an explanation, and on Feb. 10, Facebook replied in a letter to Markey. "The issue stemmed from technical issues in the designation and filtering process that allowed some Groups to remain in the recommendation pool when they should not have been," Facebook said in its response. "Since becoming aware of this issue, we have worked quickly to update our processes, and we continue this work to improve our designation and filtering processes to make them as accurate and effective as possible...." Following publication of our story, recommendations for political groups dropped precipitously, as our Citizen Browser panelist data shows...

The "technical issues" meant that, from Election Day on Nov. 3 to the Jan. 6 Capitol Hill riots to President Biden's inauguration on Jan. 20, Facebook was still recommending political groups to its users. Our analysis found that Facebook particularly pushed political groups to more conservative users... Facebook's own internal research has consistently pointed to the danger posed by political groups on its platform. Researchers warned Facebook in a 2016 internal report that 64 percent of new members of extremist groups joined because of the social network's recommendations, according to The Wall Street Journal.

The Courts

To Block Covid-19 Charges, Amazon Sues New York's Attorney General (usnews.com) 37

The Associated Press reports: Amazon is suing the attorney general of New York in a bid to stop her from suing the company over its coronavirus safety protocols and the firing of one of its outspoken workers.

In the lawsuit filed Friday in Brooklyn federal court, Amazon said Attorney General Letitia James overstepped her authority by trying to regulate coronavirus safety protocols at its warehouse in New York's Staten Island borough. The company said James threatened to sue if Amazon didn't agree to her list of demands, including rehiring the worker, Christian Smalls, and paying him and another fired worker large sums of money.

James said Friday that she will continue to review her legal options. In a statement, she called Amazon's lawsuit "a sad attempt to distract from the facts and shirk accountability for its failures to protect hardworking employees from a deadly virus..."

The company argued in court documents that only the federal government can mandate COVID-19 safety protocols and that the attorney general's office doesn't have the legal authority "it purports to wield against Amazon." Seattle-based Amazon is asking the court to stop James from pursuing any action against the company, and to declare that she doesn't have authority on COVID-19 safety measures or to regulate claims that a worker was retaliated against.

Media

VLC Will Get a New UI This Year With 4.0 Launch (arstechnica.com) 94

An anonymous reader quotes a report from Ars Technica: News website Protocol ran an extensive piece on the history and status of the popular open source video player VLC, and the story includes new details about the next major version of the software. Among other things, VLC 4.0 will bring a complete user interface overhaul. "We modified the interface to be a bit more modern," VideoLAN foundation President Jean-Baptiste Kempf told the publication. Kempf had previously shown some version of a new interface about two years ago, but it's unclear at this point how much that one resembles the one the team plans to introduce with VLC 4.0.

While the article doesn't list every change coming, it does outline a couple other possible directions and priorities for VLC. The VideoLAN foundation has not generally sought ways to monetize VLC, but some source of funding or revenue could help ensure long-term support for the project. To that end, Kempf said VideoLAN is exploring a Plex-like business model, with ad-supported free video streams available in the player. "That is something that could work for VLC," he explained. But it was clear nothing is final on that front yet. VLC will also ultimately get support the AV1 and AV2 codecs; AV1 is gaining a great deal of traction for streaming services and other video products these days. Finally, VideoLAN is developing a new way to run VLC on the Web, using Webassembly and JavaScript. VLC 4.0 is expected "in the coming months," but we don't know any more than that at this stage.

Medicine

Lancet Study Finds 40% of US COVID-19 Deaths Could Have Been Avoided (slate.com) 207

phalse phace shares a report from Slate: The British medical journal the Lancet, on Wednesday, published a damning assessment of Donald Trump's presidency and its impact on Americans' health, concluding that 40 percent of the nearly 500,000 COVID-19 deaths in the U.S. over the past year were avoidable. The journal came to the conclusion by comparing the U.S. health outcomes on the coronavirus -- the country leads the world in COVID deaths and confirmed cases with more than 27 million -- with the weighted average of other G-7 nations. So it's not a wildly abstract conclusion to draw: the U.S. could have saved hundreds of thousands of lives if it had just performed similarly to its economic peers.

The report assailed Trump for his response to the pandemic, but emphasized that the disastrous response to the virus's spread was the result of years of destructive public policy decisions on health that extended well beyond the Trump years. From the Lancet: "Many of the cases and deaths were avoidable. Instead of galvanizing the U.S. populace to fight the pandemic, President Trump publicly dismissed its threat (despite privately acknowledging it), discouraged action as infection spread, and eschewed international cooperation. His refusal to develop a national strategy worsened shortages of personal protective equipment and diagnostic tests. President Trump politicized mask-wearing and school reopenings and convened indoor events attended by thousands, where masks were discouraged and physical distancing was impossible."

ISS

HPE, Microsoft To Launch AI Capabilities To Space Station With Spaceborne Computer-2 (space.com) 18

Microsoft will connect its cloud computing Azure Space platform to the Spaceborne Computer-2, a Hewlett-Packard Enterprise product promising to "deliver edge computing and [artificial intelligence] capabilities to the International Space Station (ISS)." Space.com reports: Spaceborne Computer-2 will launch to space Feb. 20 aboard a Northrop Grumman Cygnus cargo craft that will also deliver tons of other supplies, experiments and food for the station's Expedition 64 astronauts. An Antares rocket will launch the Cygnus NG-15 cargo mission from NASA's Wallops Flight Facility on Wallops Island, Virginia. Spaceborne Computer-2's mission could last two or three years. Once the computer is up and running in orbit, researchers will be able to use the Azure cloud system to do intensive processing or to transmit results back to the device. The computer is based on HPE's Edgeline Converged Edge system designed to operate in harsh environments.

Growing plants in space, modeling dust storms on Earth to assist with Mars mission planning, and doing ultrasound medical imaging for astronaut health care are some of the many fields that the collaboration will address, the companies said in a press release. "The combined advancements of Spaceborne Computer-2 will enable astronauts to eliminate longer latency and wait times associated with sending data to-and-from Earth, to tackle research, and gain insights immediately for a range of projects," the release added.

The new project builds on the lessons learned from a predecessor proof-of-concept device, called Spaceborne Computer. This flew to the space station for a one-year mission in 2017 to investigate computer reliability in space, amid a harsh environment that includes high radiation and zero gravity. "The goal was to test if affordable, commercial off-the-shelf servers used on earth, but equipped with purposefully-designed software-based hardening features, can withstand the shake, rattle and roll of a rocket launch to space, and once there, seamlessly operate on the ISS," the press release said, adding the predecessor mission was a success. "Additionally, gaining more reliable computing on the ISS is just the first step in NASA's goals for supporting human space travel to the moon, Mars and beyond where reliable communications is a mission critical need," the release noted.

Privacy

Yandex Said It Caught an Employee Selling Access To Users' Inboxes (zdnet.com) 31

An anonymous reader quotes a report from ZDNet: Russian search engine and email provider Yandex said today that it caught one of its employees selling access to user email accounts for personal gains. The company, which did not disclose the employee's name, said the person was "one of three system administrators with the necessary access rights to provide technical support" for its Yandex.Mail service. The Russian company said it's now in the process of notifying the owners of the 4,887 mailboxes that were compromised and to which the employee sold access to third-parties. Yandex officials also said they re-secured the compromised accounts and blocked what appeared to be unauthorized logins. They are now asking impacted account owners to change their passwords. It also said that there was no evidence to suggest that user payment data was accessed during the recent incident.
Movies

The Cinemas Now Hiring Out Their Screens To Gamers (bbc.com) 19

Some movie theaters around the world are renting out their screens to gamers to bring in a new revenue stream amid the coronavirus pandemic. The BBC reports: With many cinemas across the country closed due to coronavirus restrictions meaning that they can only open with 50% capacity, and far fewer movies being released to tempt cinemagoers, CGV [South Korea's largest cinema chain] came up with the idea of renting out its auditoriums to gamers to bring in a new revenue stream. Before 6pm up to four people can hire a screen for two hours for around $90. This then rises to $135 in the evening. Users have to bring their consoles, games and controllers with them. The auditoriums being hired out have between 100 and 200 seats, and by comparison CGV movie tickets cost around $12 each. So a 100-seat screen half filled for a film would bring in revenues of $600, rising to $1,200 for a 200-seat one at 50% capacity. And that is before the filmgoers buy their drinks and popcorn.

Yet while CGV isn't making anywhere as much money from the gamers, it is bringing in some additional income. The scheme is called Azit-X after "azit," the Korean word for hideout. Since the new service launched at the start of this year, auditoriums have been booked more than 130 times so far. While the majority of customers are said to be men in their 30s or 40s, couples and families have also taken part.

Korea's CGV is not the only cinema chain now letting gamers book cinema screens, as U.S. group Malco Theatres has been doing the same since November. Memphis-based Malco allows up to 20 people to hire a screen at its 36 cinemas across Arkansas, Kentucky, Louisiana, Mississippi, Missouri and Tennessee. The prices for service, which is called Malco Select, are $100 for two hours or $150 for three. Other U.S. chains, such as AMC and Cinemark, have been allowing customers in small groups to book auditoriums for private screenings.

Australia

Microsoft Urges US and EU To Follow Australian Digital News Code (theguardian.com) 80

Microsoft is calling for the US and the EU to follow Australia in introducing rules that require technology companies to share revenue with news organizations and support journalism. The Guardian reports: The company, which stood against Facebook and Google in supporting the proposal, argues that it is necessary to impose such a levy to create a level playing field between large tech firms and independent media organizations. Australia's proposal requires large technology companies to not only pay a fee for news content they use or link to, but to agree to partake in arbitration to determine that fee. In response, Facebook and Google threatened to pull services from the country, while Microsoft took the opposite tack: eagerly stepping up to promote Bing, which currently has fewer than one in 20 searches in Australia, as an alternative.

In a blog post, Brad Smith, Microsoft's president, said that he felt the Australian rule "deserves serious consideration, including in the United States." "Democracy has always started at the local level. Today, far too many local communities must nurture democracy without a fourth estate," Smith wrote. "As we know from our own experience with Microsoft's Bing search service, access to fresh, broad and deep news coverage is critical to retaining strong user engagement." "Our endorsement of Australia's approach has had immediate impact," Smith argued. "Within 24 hours, Google was on the phone with the prime minister, saying they didn't really want to leave the country after all. And the link on Google's search page with its threat to leave? It disappeared overnight. Apparently, competition does make a difference."

Smith says the change in U.S. government could be a chance for Washington to switch its position. "Facebook and Google persuaded the Trump administration to object to Australia's proposal. However, as the United States takes stock of the events on January 6 [the attack on the Capitol in Washington], it's time to widen the aperture. The ultimate question is what values we want the tech sector and independent journalism to serve. Yes, Australia's proposal will reduce the bargaining imbalance that currently favors tech gatekeepers and will help increase opportunities for independent journalism. But this a defining issue of our time that goes to the heart of our democratic freedoms."

Education

Nevada Department of Education Has No Direct Say In Who Gets Tesla's $37.5 Million K-12 Donation (nevadacurrent.com) 67

theodp writes: The Nevada Legislature in 2014 approved a $1.3 billion tax break -- the largest tax break in the history of the state -- to woo Tesla into locating its battery factory in Northern NV. In return, Tesla made a $37.5 million pledge to support K-12 education ($7.5M annually, for 5 years, beginning in 2018). Lawmakers are now expressing surprise after learning that the NV Dept. of Education has no direct role in deciding which organizations receive the $37.5 million in donations pledged by Tesla.

Last month, the state's deputy superintendent for business and support services, informed lawmakers that Tesla "identifies the entities and the amounts those entities will receive." She described the NV Dept. of Education and its Education Gift Fund as merely an intermediary, raising eyebrows among some lawmakers who questioned the process used to determine what organizations received money. "To me it's symptomatic of how the state exists -- as an appendage to corporate affairs," said Bob Fulkerson, who heads the Progressive Leadership Alliance of Nevada. "That's the reason for Nevada to exist. For corporations to make as much money as they can and pay as little as they can in taxes."

In 2019, Governor Steve Sisolak announced that Tesla would invest $1 million to support Nevada's computer science education initiatives as part of the company's statewide education investment. Sisolak made the announcement at The Mirage in Las Vegas during CSEdCon, a CS education conference hosted by the tech-bankrolled nonprofit Code.org. According to a spreadsheet provided to the Nevada Current by the NV Dept. of Education, Code.org received $761,540 from the initial two years of Tesla donations, while another $200,000 went to Girls Who Code.

AI

Minneapolis Bans Its Police Department From Using Facial Recognition Software (techcrunch.com) 22

An anonymous reader quotes a report from TechCrunch: Minneapolis voted Friday to ban the use of facial recognition software for its police department, growing the list of major cities that have implemented local restrictions on the controversial technology. After an ordinance on the ban was approved earlier this week, 13 members of the city council voted in favor of the ban, with no opposition. The new ban will block the Minneapolis Police Department from using any facial recognition technology, including software by Clearview AI. That company sells access to a large database of facial images, many scraped from major social networks, to federal law enforcement agencies, private companies and a number of U.S. police departments. The Minneapolis Police Department is known to have a relationship with Clearview AI, as is the Hennepin County Sheriff's Office, which will not be restricted by the new ban.
Businesses

Amazon Uses An App Called Mentor To Track and Discipline Delivery Drivers (cnbc.com) 72

Amazon has for years been using an app called "Mentor" to monitor and track delivery drivers' behavior on the road. "The app, which Amazon bills as a tool to improve driver safety, generates a score each day that measures employees' driving performance," reports CNBC. From the report: Just like the AI-equipped cameras rolling out to contracted delivery companies, Mentor is framed as a "digital driver safety app" to help employees avoid accidents and other unsafe driving habits while they're en route to their destination. But multiple delivery drivers who spoke to CNBC described the app as invasive and raised concerns that bugs within the app can, at times, lead to unfair disciplinary action from their manager.

The scores generated by the Mentor app are used in more ways than just evaluating an individual's job performance, drivers say. Amazon also looks at the scores, in part, when ranking a delivery partner's status, according to the drivers, who asked to remain anonymous out of fear of retaliation from Amazon. The ranking system for DSPs ranges from "Poor" to "Good" to "Fantastic" to the top tier, referred to as "Fantastic+." A surplus of poor Mentor scores among a delivery partner's workforce can drag down the DSP's ranking, which can potentially jeopardize their access to benefits provided by Amazon, such as optimal delivery routes, the drivers said. The app also features a dashboard for drivers to "see how they stack up against the rest of their team." Mentor's score-based system raises concerns that the app intensifies the pressure of the job, pitting drivers and competing DSPs against each other to an unhealthy degree.
Amazon spokesperson Deborah Bass told CNBC in a statement: "Safety is Amazon's top priority. Whether it's state-of-the art telemetrics and advanced safety technology in last-mile vans, driver-safety training programs, or continuous improvements within our mapping and routing technology, we have invested tens of millions of dollars in safety mechanisms across our network, and regularly communicate safety best practices to drivers."
Bitcoin

Canadian Regulator Clears Launch of World's First Bitcoin ETF (reuters.com) 26

Canada's main securities regulator has cleared the launch of the world's first bitcoin exchange traded fund, an investment manager said on Friday, providing investors greater access to the cryptocurrency that has sparked an explosion in trading interest. Reuters reports: The Ontario Securities Commission has approved the launch of Purpose Bitcoin ETF, Toronto-based asset management company Purpose Investments Inc. said in a statement. The OSC confirmed the approval in a separate statement to Reuters. "The ETF will be the first in the world to invest directly in physically settled Bitcoin, not derivatives, allowing investors easy and efficient access to the emerging asset class of cryptocurrency," Purpose Investments said.

Investors have been able to trade bitcoin using futures contracts on the CME derivatives exchange. They can also buy closed-end investment funds, such as the Bitcoin Fund on the Toronto Stock Exchange. [...] In the United States, eight firms have tried without success since 2013 to create a bitcoin ETF, according to Todd Rosenbluth, director of ETF and mutual fund research at New York based CFRA. Among issues the Securities and Exchange Commission appears to be focused on are the potential for market manipulation and the process of custody audits that verify that a fund holds its purported assets.

Slashdot Top Deals