Programming

'Why I Prefer Go Over Python or Java' (yourbasic.org) 230

Stefan Nilsson, a computer science professor at the KTH Royal Institute of Technology, recently explained "why I prefer Go to Java or Python," arguing that Go "makes it much easier for me to write good code." Go is a minimalist language, and that's (mostly) a blessing. The formal Go language specification is only 50 pages, has plenty of examples, and is fairly easy to read. A skilled programmer could probably learn Go from the specification alone. The core language consists of a few simple, orthogonal features that can be combined in a relatively small number of ways. This makes it easier to learn the language, and to read and write programs. When you add new features to a language, the complexity doesn't just add up, it often multiplies: language features can interact in many ways. This is a significant problem -- language complexity affects all developers (not just the ones writing the spec and implementing the compiler).

Here are some core Go features:

- The built-in frameworks for testing and profiling are small and easy to learn, but still fully functional. There are plenty of third-party add-ons, but chances are you won't need them.

- It's possible to debug and profile an optimized binary running in production through an HTTP server.

- Go has automatically generated documentation with testable examples. Once again, the interface is minimal, and there is very little to learn.

- Go is strongly and statically typed with no implicit conversions, but the syntactic overhead is still surprisingly small. This is achieved by simple type inference in assignments together with untyped numeric constants. This gives Go stronger type safety than Java (which has implicit conversions), but the code reads more like Python (which has untyped variables).

- Programs are constructed from packages that offer clear code separation and allow efficient management of dependencies. The package mechanism is perhaps the single most well-designed feature of the language, and certainly one of the most overlooked.

- Structurally typed interfaces provide runtime polymorphism through dynamic dispatch.

- Concurrency is an integral part of Go, supported by goroutines, channels and the select statement.

The professor points out that the Java® Language Specification is 750 pages, and blames much of its complexity on feature creep (for example, inner classes, generics, and enum). And he also applauds the strict compatibility guarantees of Go 1 for the core language and standard packages, as well as its open source, BSD-style license, and Go's code transparency.

"There is one standard code format, automatically generated by the fmt tool," he writes, arguing that "Your project is doomed if you can't read and understand your code."
Python

Python Creator Guido van Rossum Blames His Resignation Partly On Social Media (www.tfir.io) 137

"Swapnil Bhartiya, the founder of TFIR, sat down with Guido van Rossum, the creator of Python, to talk about the origin of the language and why he stepped down from the leadership of the very project he created," writes sfcrazy.

In the interview, van Rossum emphasizes that he still remains one of the core developers, and provides this update: "We're going to set up a new form of governance. We haven't decided yet what that will be. There is actually an interesting time ahead where we currently have about five of six different proposals for new governance systems, and in November there's going to be a vote among the core developers about that. And then there will be another vote that will actually determine specifically who is going to form the leadership. So we're starting out by choosing a constitution, and then using the rules set out in the selected constitution, we're going to vote for a leadership..."
He talks more about his resignation when asked if there's ever been an after-the-fact debate about decisions he's made: "Well, that certainly happens too. What led to my resignation was a form of that, where on social media -- and I've got a feeling that social media are sort of getting out of hand... But for me personally, social media definitely sort of caused additional stress. And I did not enjoy it when core developers were sort of sending tweets where they were questioning my authority or the wisdom of my decisions, rather than saying it to my face and having an honest debate about things...

"It might just have to do with the fact that I've had this role for 28 years... And all that time, I've been sort of the final decider, the final arbiter. I'm getting older, I'm not always available... I just want to spend less time feeling stressed about what is the community -- I have this attitude where everything that was being said on some of the mailing lists, python-ideas, python-dev, touched me. I felt involved in everything, because ultimately every idea would end on my desk for deciding. And I just thought that that should be a responsibiity that should either be shared or transferred... Given that I've been on the project for such a long time, and some of the currently active core developers are good personal friends that I've known for 20 years or more, I am completely confident that the more experienced core developers that we currently have, plus the newer core developers that we have, together will be able to weather any kind of storm that might come Python's way. Yes I resigned from the title suddenly, but there were a lot of responsibilities that I had already completely delegated. I mean, I barely touch the code base, I barely reviewed submissions.

At one point van Rossum compares the future of Python to that of a grown-up child, in that "You're supposed to raise your child for independence..."

So what's he doing now? " I was and still am a principal engineer at Dropbox, which is actually where I spend most of my time."
Oracle

Oracle Exec Mocks Google Arguments About Java's APIs (thehill.com) 145

"Whether it is consumers' data or competitors' code, Google's view seems to be the same: What's mine is mine, and what's yours is mine," argues Oracle executive vice president Kenneth Glueck.

Google had urged America's Supreme Court to rule in their ongoing legal case about access to Java's APIs, a case which Google says hinges on "whether developers should be able to create new applications using standard ways of accessing common functions. Those functions are the building blocks of computer programming, letting developers easily assemble the range of applications and tools we all use every day. Making it harder to connect with those functions would lock developers into existing platforms, thus reducing competition and, ultimately, hurting consumers. Access to software interfaces like these is the key to interoperability, the foundation of great software development."

That editorial -- written by Google's senior vice president for global affairs, Kent Walker, notes that 175 startups, developers, academics and other tech companies (including Microsoft) are also asking the Supreme Court to hear this case. Google warns of a risk to innovation posed if companies like Oracle become "gatekeepers to interoperability," calling it "a defining battle of the digital era."

Oracle's executive responds that "There are many 'defining battles' of the digital era -- 5G, Artificial Intelligence, autonomous devices -- but Oracle v. Google is surely not among them." Only in Google's world does weaker intellectual property protection lead to more innovation. It is settled in law and in economics that the opposite is true. And at a time when the U.S. is circling the globe to enhance the protection of U.S. intellectual property -- including strong copyright protection -- Google takes the opposite view...

In a stunning what's-up-is-down and down-is-up statement, Walker attempts to wrap Google in the cloak of interoperability. Java defined the era of interoperability with its "write once, run everywhere" architecture. It was Google that copied Java, built Android around it, and altered it so it was only interoperable with itself (i.e., write once, run only on Google). Android killed Java interoperability, and now Google argues that killing interoperability is good for interoperability?

Those facts are not in dispute. The only issue in dispute is Google's assertion that its actions were all "fair." On this point, the federal circuit court clearly analyzed and methodically decided against Google's fair-use defense. This makes sense because, under no interpretation of fair use, may you copy a competitor's software code and turn around and compete against that competitor in the marketplace. Hard stop... There is no matter of law in question, nor is there a conflict among circuit courts. Google was caught killing interoperability and is now trying to concoct a new "we are too important" legal defense.

Reuters reports that this week the Supreme Court asked the White House "to offer its views on whether it should hear Google's bid to end Oracle's copyright infringement lawsuit."
Electronic Frontier Foundation

Censorship 'Can't Be The Only Answer' To Anti-Vax Misinformation, Argues EFF (eff.org) 313

Despite the spread of anti-vaccine misinformation, "censorship cannot be the only answer," argues the EFF, adding that "removing entire categories of speech from a platform does little to solve the underlying problems."

"Tech companies and online platforms have other ways to address the rapid spread of disinformation, including addressing the algorithmic 'megaphone' at the heart of the problem and giving users control over their own feeds... " Anti-vax information is able to thrive online in part because it exists in a data void in which available information about vaccines online is "limited, non-existent, or deeply problematic." Because the merit of vaccines has long been considered a decided issue, there is little recent scientific literature or educational material to take on the current mountains of disinformation. Thus, someone searching for recent literature on vaccines will likely find more anti-vax content than empirical medical research supporting vaccines. Censoring anti-vax disinformation won't address this problem.

Even attempts at the impossible task of wiping anti-vax disinformation from the Internet entirely will put it beyond the reach of researchers, public health professionals, and others who need to be able to study it and understand how it spreads. In a worst-case scenario, well-intentioned bans on anti-vax content could actually make this problem worse. Facebook, for example, has over-adjusted in the past to the detriment of legitimate educational health content...

Platforms must address one of the root causes behind disinformation's spread online: the algorithms that decide what content users see and when. And they should start by empowering users with more individualized tools that let them understand and control the information they see.... Users shouldn't be held hostage to a platform's proprietary algorithm. Instead of serving everyone "one algorithm to rule them all" and giving users just a few opportunities to tweak it, platforms should open up their APIs to allow users to create their own filtering rules for their own algorithms. News outlets, educational institutions, community groups, and individuals should all be able to create their own feeds, allowing users to choose who they trust to curate their information and share their preferences with their communities.

GNU is Not Unix

After Seven Years, The Gnu Project Releases GNU Guix 1.0.0 (gnu.org) 86

An anonymous reader quotes LWN.net: Version 1.0.0 of the GNU Guix package manager has been released. "This 1.0 release is a major milestone for Guix. It represents 7 years of hard work with more than 40,000 commits by 260 people, 19 releases, and an equally amazing amount of work on documentation, translation, artwork, web design, mentoring, outreach, and many other activities that together have made it a thriving project." See this blog entry for more information.
From the announcement: Whether you're a software developer, a user, or a free software enthusiast, we hope GNU Guix will provide you with the tools to deploy and manage software with confidence and ease, qualities that are not usually associated with software deployment...

GNU Guix is a transactional package manager and an advanced distribution of the GNU system that respects user freedom. Guix can be used on top of any system running the kernel Linux, or it can be used as a standalone operating system distribution for i686, x86_64, ARMv7, and AArch64 machines.

Privacy

Security Lapse Exposed a Chinese Smart City Surveillance System (techcrunch.com) 44

An anonymous reader shares a report: Smart cities are designed to make life easier for their residents: better traffic management by clearing routes, making sure the public transport is running on time and having cameras keeping a watchful eye from above. But what happens when that data leaks? One such database was open for weeks for anyone to look inside. Security researcher John Wethington found a smart city database accessible from a web browser without a password. He passed details of the database to TechCrunch in an effort to get the data secured.

The database was an Elasticsearch database, storing gigabytes of data -- including facial recognition scans on hundreds of people over several months. The data was hosted by Chinese tech giant Alibaba. The customer, which Alibaba did not name, tapped into the tech giant's artificial intelligence-powered cloud platform, known as City Brain. "This is a database project created by a customer and hosted on the Alibaba Cloud platform," said an Alibaba spokesperson. "Customers are always advised to protect their data by setting a secure password." "We have already informed the customer about this incident so they can immediately address the issue. As a public cloud provider, we do not have the right to access the content in the customer database," the spokesperson added. The database was pulled offline shortly after TechCrunch reached out to Alibaba. But while Alibaba may not have visibility into the system, we did.

Microsoft

Windows Solitaire Inducted Into the World Video Game Hall of Fame (arstechnica.com) 54

The classic Windows game Solitaire has joined such landmarks as Doom, Tetris, and World of Warcraft in being inducted into the Strong Museum of Play's World Video Game Hall of Fame. The award recognizes Solitaire's role as a significant part of gaming's history. From a report: Solitaire was first bundled with Windows 3.0. Much like the other notable bundled game, Minesweeper, Solitaire was there to serve as a secret tutorial: in a time when the mouse was still regarded as a new and exotic piece of computer hardware, Solitaire honed clicking, double clicking, and drag-and-drop skills. As a computerized version of a familiar card game, it was instantly recognizable. It was bundled with every subsequent Windows version, up to Windows 7. Windows 8 replaced it with a much more varied set of card games. The combination of approachability and bundling means that the game has been installed on more than a billion PCs, and it has likely been played by many billions of people.
Facebook

Facebook's Cryptocurrency Might Work Like Loyalty Points (wired.com) 41

If Facebook's pivot from town square to private living room wasn't laden with enough irony, here's a new twist: Big business, it appears, has been invited to join us by the fireplace. From a report: On Thursday, The Wall Street Journal reported new potential details about Facebook's long-awaited cryptocurrency plans. The company is reportedly seeking dozens of business partners, including online merchants and financial firms, in an effort to extend the reach of its blockchain-based marketplace. Facebook's would-be partners are being asked to pitch into an investment fund, valued at $1 billion or more, that would serve as backing for Facebook's coin and mitigate the wild speculative swings that make cryptocurrencies like bitcoin hard to spend. The pitch, according to the Journal, involves offering merchants lower fees than credit cards.

Some were quick to note that this would reduce Facebook's ability to make money from payments in the short term. But that may not matter much -- if, in the end, Facebook's crypto effort is really all about getting you to spend more time glued to Facebook. Facebook appears to be already building out the plumbing to make its marketplace a reality. At its F8 developer conference this week, the word "blockchain" was notably absent.

Firefox

A Glitch Is Breaking All Firefox Extensions (techcrunch.com) 311

Did you just open Firefox only to find all of your extensions disabled and/or otherwise not working? You're not alone, and it's nothing you did. From a report: Reports are pouring in of a glitch that has spontaneously disabled effectively all Firefox extensions. Each extension is now being listed as a "legacy" extension, alongside a warning that it "could not be verified for use in Firefox and has been disabled." A ticket submitted to Mozilla's Bugzilla bug tracker first hit at around 5:40 PM Pacific, and suggests the sudden failure is due to a code signing certificate built into the browser that expired just after 5 PM (or midnight on May 4th in UTC time). Because the glitch stems from an underlying certificate, re-installing extensions won't work -- if you try, you'll likely just be met with a different error message. Getting extensions back for everyone is going to require Mozilla to issue a patch.
UPDATE (5/5/2019): On Sunday Firefox released the second of two weekend updates to address the problem, tweeting that "There are some issues we're still working on, but we wanted to get this release out and get your add-ons back up & running before Monday."
Businesses

Why Epic Games Called an Open Platform Truce With Microsoft (venturebeat.com) 24

An anonymous reader writes: A couple of years ago, Microsoft and Epic Games executives were mad at each other. Epic Games CEO Tim Sweeney called out Microsoft because he saw it making moves to close off the Windows 10 store and hurt the openness of the PC. Sweeney spoke up because he foresaw the arrival of new computing platforms like augmented reality and virtual reality, and he wanted those platforms to remain open. And now Sweeney has changed his tune, throwing Epic Games' support behind Microsoft's HoloLens 2 Development Edition, which will begin selling for $3,500 later this year.

He did that because Microsoft did a turnabout and approached HoloLens 2 as an open platform. And Epic Games will launch Unreal Engine 4 support for the hardware by the end of May. In an interview this week with GamesBeat, Sweeney said the companies had largely solved their differences with it comes to making choices in support of openness. "Epic loves Microsoft," he said. "Epic hearts Microsoft."

Google

Google Launches CallJoy, a Virtual Customer Service Phone Agent For Small Businesses (techcrunch.com) 34

Google is combining several technologies, including virtual phone numbers, audio transcriptions, automated reporting and analytics, in a new effort to help small business owners better manage their inbound phone calls. From a report: The company's latest project from its in-house incubator is CallJoy, launching today. Aimed at the U.S.'s 30.2 million small business owners, the system offers a low-cost customer service agent that helps block spam calls, provide callers with basic business information and redirect customers to complete their requests -- like appointment booking or placing a to-go order -- over SMS. Any other calls or questions would be directed to the main business phone number. Typically, customer service phone agents like this are out of reach for small business owners, but CallJoy is priced at a flat monthly fee of $39 to make the technology affordable.
AI

Amazing AI Generates Entire Bodies of People Who Don't Exist (futurism.com) 87

A new deep learning algorithm can generate high-resolution, photorealistic images of people -- faces, hair, outfits, and all -- from scratch. From a report: The AI-generated models are the most realistic we've encountered, and the tech will soon be licensed out to clothing companies and advertising agencies interested in whipping up photogenic models without paying for lights or a catering budget. At the same time, similar algorithms could be misused to undermine public trust in digital media.

The algorithm was developed by DataGrid, a tech company housed on the campus of Japan's Kyoto University, according to a press release. In a video showing off the tech, the AI morphs and poses model after model as their outfits transform, bomber jackets turning into winter coats and dresses melting into graphic tees. Specifically, the new algorithm is a Generative Adversarial Network (GAN).

Google

Ex-YouTube Developer Reveals How He 'Conspired To Kill IE6' (zdnet.com) 91

A former web developer at YouTube has revealed a tale about a clandestine operation to kill Internet Explorer 6 with a banner that went live in July 2009 warning IE6 users that YouTube would be phasing out support for Microsoft's browser -- even though no one at Google had endorsed such a plan. From a report: IE6 of course shipped as the default browser with Windows XP in 2001, six years before Chrome's first release in 2008. Google wouldn't officially drop support for IE6 until March 2010, but a group of renegade web developers at YouTube had already pulled off a campaign that coincided with a serious fall in IE6 usage worldwide, from about 25 percent in mid-2009 to less than 10 percent within a year. The campaign consisted of a web banner displayed to IE6 users on YouTube beginning in July 2009. The banner hadn't been officially endorsed by Google, which had acquired YouTube in 2006 for $1.65bn and by 2009 had begun integrating it into the Google infrastructure.

As former YouTube web developer Chris Zacharias details in a blog, the desire to kill off IE6 was that it had become "the bane of our web development team's existence". "At least one to two weeks every major sprint cycle had to be dedicated to fixing new UI that was breaking in IE6. Despite this pain, we were told we had to continue supporting IE6 because our users might be unable to upgrade or might be working at companies that were locked in," he explains.

Privacy

UK's Tax Authority To Delete Five Million Biometric Voice Records Because it Did Not Have Clear Consent From Its Customers (zdnet.com) 47

The UK's tax authority is to delete the biometric voice records of five million people because it did not have clear consent from its customers to have those files. From a report: HM Revenue and Customs (HMRC) uses the Voice ID biometric voice security system to make it easier for callers to pass its security processes when discussing their account. It says using the system will reduce the time it takes to speak to an advisor and will help prevent anyone else accessing accounts. But the UK's data privacy watchdog the Information Commissioners Office (ICO) said that HMRC failed to give customers sufficient information about how their biometric data would be processed and failed to give them the chance to give or withhold consent. "This is a breach of the General Data Protection Regulation," the ICO said.

Steve Wood, Deputy Commissioner at the ICO, said: "We welcome HMRC's prompt action to begin deleting personal data that it obtained unlawfully. Our investigation exposed a significant breach of data protection law -- HMRC appears to have given little or no consideration to it with regard to its Voice ID service." Under the GDPR, biometric data is considered special category information and is subject to stricter conditions.

Communications

Western Allies Agree 5G Security Guidelines, Warn of Outside Influence (reuters.com) 87

Global security officials agreed a set of proposals on Friday for future 5G networks, highlighting concerns about equipment supplied by vendors that might be subject to state influence. From a report: No suppliers were named, but the United States has been pressing allies to limit the role of Chinese telecom equipment makers such as Huawei over concerns their gear could be used by Beijing for spying. Huawei denies this. "The overall risk of influence on a supplier by a third country should be taken into account," participants at the conference in the Czech capital said in a non-binding statement released on the last day of the two-day gathering. Representatives from 30 European Union, NATO and countries such as the United States, Germany, Japan and Australia attended the meeting to hash out an outline of practices that could form a coordinated approach to shared security and policy measures.
Intel

Apple's Tim Cook and Luca Maestri on Intel (daringfireball.net) 174

Tim Cook and Luca Maestri's remarks on Apple's quarterly analyst call earlier this week: CEO Tim Cook: "For our Mac business overall, we faced some processor constraints in the March quarter, leading to a 5 percent revenue decline compared to last year. But we believe that our Mac revenue would have been up compared to last year without those constraints, and don't believe this challenge will have a significant impact on our Q3 results."

CFO Luca Maestri: "Next I'd like to talk about the Mac. Revenue was 5.5 billion compared to 5.8 billion a year ago, with the decline driven primarily by processor constraints on certain popular models."
Apple commentator John Gruber adds, "I asked an Apple source last fall why it took so long for Apple to release the new MacBook Air. Their one-word answer: "Intel." One of the big questions for next month's WWDC is whether this is the year Apple announces Macs with Apple's own ARM processors (and graphics?)."
Businesses

Rogue Coder Turned a Parking Spot into a Coworking Space (vice.com) 432

An anonymous reader shares a report: It looked like yet another weird symptom of San Francisco tech culture: a cluster of people sitting on the side of a road, working at desks placed within the boundaries of a parking space. But WePark -- a project led by San Francisco-based web developer Victor Pontis -- was actually a manifestation of an idea that has become more popular in the last few years: Cities use space inefficiently and prioritize cars over people. The people at the desks were attempting to reclaim a sliver of space for human use. "Car parking squanders space that can be used for the public good -- bike lanes, larger sidewalks, retail, cafes, more housing," Pontis said. "Let's use city streets for people, not cars."

(There are also WePark franchises in France as well as Santa Monica.) Pontis said he got the idea from a Twitter exchange in which Github's Devon Zuegel pointed out that eight bicycles could fit in one park spot instead of a car. Urbanist Annie Fryman, responded, suggesting that the metered parking spot be used as a coworking space instead. Pontis turned that hypothetical into a reality, choosing popular real estate like Santa Monica's Ocean Avenue. The set-up was simple: he paid for a day's worth of parking meter, then charged users people per hour. He said 30 people showed up on the first day in the three cities, paying the $2.25 per hour fee that WePark charged for a spot at a parking lot desk. (Paying for a desk at a regular coworking space, like WeWork is approximately $50 per day plus a monthly membership fee.)

Google

Google Says It's Reviewed Over 1M Suspected Terrorist Videos on YouTube This Year (cnet.com) 63

Google has reviewed more than 1 million suspected terrorist videos on YouTube in the first three months of 2019, according to a letter the tech giant sent to US lawmakers. From a report: In the April 24 letter, made public Thursday as part of a press release from the House Committee on Homeland Security, Google said 90,000 of those videos violated its terrorism policy. Google, which owns YouTube, said it spends "hundreds of millions of dollars annually" on content review. The House committee urged Facebook, Twitter, YouTube and Microsoft to do a better job of removing violent content, following posts about the deadly New Zealand mosque shooting in March. In April, Rep. Max Rose and other Democrats asked for the websites' budgets, to see how the platforms were fighting terrorism.
United States

US Seeks To Challenge China's Electric-Vehicle Supply Chain Dominance (reuters.com) 137

A U.S. senator plans to introduce legislation on Thursday to streamline regulation and permitting requirements for the development of mines for lithium, graphite and other electric-vehicle supply chain minerals, part of a plan to offset China's dominance in the space. From a report: While Tesla, Volkswagen and other electric-focused automakers and battery manufacturers are expanding in the United States, they are reliant on mineral imports without a major push to develop more domestic mines and processing facilities.

U.S. Senator Lisa Murkowski, the Alaska Republican who is chair of the Senate's Energy and Natural Resources Committee, told Reuters she will introduce the Minerals Security Act alongside Senator Joe Manchin, a West Virginia Democrat. "Our challenge is still a failure to understand the vulnerability we are in as a nation when it comes to reliance on others for our minerals," Murkowski said.

United States

Apple Is Telling Lawmakers People Will Hurt Themselves if They Try To Fix iPhones (vice.com) 273

In recent weeks, an Apple representative and a lobbyist for CompTIA, a trade organization that represents big tech companies, have been privately meeting with legislators in California to encourage them to kill legislation that would make it easier for consumers to repair their electronics Motherboard has learned. From a report: According to two sources in the California State Assembly, the lobbyists have met with members of the Privacy and Consumer Protection Committee, which is set to hold a hearing on the bill Tuesday afternoon. The lobbyists brought an iPhone to the meetings and showed lawmakers and their legislative aides the internal components of the phone. The lobbyists said that if improperly disassembled, consumers who are trying to fix their own iPhone could hurt themselves by puncturing the lithium-ion battery, the sources, who Motherboard is not naming because they were not authorized to speak to the media, said. The argument is similar to one made publicly by Apple executive Lisa Jackson in 2017 at TechCrunch Disrupt, when she said the iPhone is "too complex" for normal people to repair them. The bill has been pulled by its sponsor, Susan Talamantes-Eggman: "It became clear that the bill would not have the support it needed today, and manufacturers had sown enough doubt with vague and unbacked claims of privacy and security concerns," she said.

Slashdot Top Deals