Keep OSNews alive by becoming a Patreon, by donating through Ko-Fi, or by buying merch!

Monthly Archive:: October 2018

The benefits and costs of writing a POSIX kernel in Go

This paper presents an evaluation of the use of a high-level language (HLL) with garbage collection to implement a monolithic POSIX-style kernel. The goal is to explore if it is reasonable to use an HLL instead of C for such kernels, by examining performance costs, implementation challenges, and programmability and safety benefits.

The paper contributes Biscuit, a kernel written in Go that implements enough of POSIX (virtual memory, mmap, TCP/IP sockets, a logging file system, poll, etc.) to execute significant applications. Biscuit makes liberal use of Go's HLL features (closures, channels, maps, interfaces, garbage collected heap allocation), which sub- jectively made programming easier. The most challenging puzzle was handling the possibility of running out of kernel heap memory; Biscuit benefited from the analyzability of Go source to address this challenge.

On a set of kernel-intensive benchmarks (including NGINX and Redis) the fraction of kernel CPU time Biscuit spends on HLL features (primarily garbage collection and thread stack expansion checks) ranges up to 13%. The longest single GC-related pause suffered by NGINX was 115 microseconds; the longest observed sum of GC delays to a complete NGINX client request was 600 microsec- onds. In experiments comparing nearly identical system call, page fault, and context switch code paths written in Go and C, the Go version was 5% to 15% slower.

Scientific papers about operating system experiments - who doesn't love them?

Intel announces 9th Gen Core processors

Among many of Intel's announcements today, a key one for a lot of users will be the launch of Intel's 9th Generation Core desktop processors, offering up to 8-cores on Intel's mainstream consumer platform. These processors are drop-in compatible with current Coffee Lake and Z370 platforms, but are accompanied by a new Z390 chipset and associated motherboards as well. The highlights from this launch is the 8-core Core i9 parts, which include a 5.0 GHz turbo Core i9-9900K, rated at a 95W TDP.

Biggest news for me is that Intel unveiled that these new processors will switch from a cheap paste as thermal interface material between the die and the IHS to a layer of solder. This should greatly aid in cooling.

Google exposed user data, chose to not disclose it

Google exposed the private data of hundreds of thousands of users of the Google+ social network and then opted not to disclose the issue this past spring, in part because of fears that doing so would draw regulatory scrutiny and cause reputational damage, according to people briefed on the incident and documents reviewed by The Wall Street Journal.

A software glitch in the social site gave outside developers potential access to private Google+ profile data between 2015 and March 2018, when internal investigators discovered and fixed the issue, according to the documents and people briefed on the incident. A memo reviewed by the Journal prepared by Google's legal and policy staff and shared with senior executives warned that disclosing the incident would likely trigger "immediate regulatory interest" and invite comparisons to Facebook's leak of user information to data firm Cambridge Analytica.

Data leaks and breaches happen. They are a fact of life we're pretty much forced to accept. However, how one handles such a leak sets the willfully malicious apart from those who have the best interests of their users at heart. From Google's response - or lack thereof - to this incident we can clearly deduce to which group Google belongs.

This breach is the reason Google announced the sunsetting of the consumer-facing side of Google+ today.

Microsoft pulls Windows 10 October 2018 Update

Microsoft's rollout of the Windows 10 October 2018 Update has arguably been one of its most troublesome releases in recent times. While previous updates have also had issues, this one boasted particularly serious ones such as user files being deleted, bugs in the Task Manager, Intel driver incompatibility, internet connectivity issues, and more.

Following widespread reporting of these issues, Microsoft has now pulled the Windows 10 October 2018 Update from circulation.

I've seen a lot of reports of disappearing files, so Microsoft didn't have much of a choice here. My own two machines experienced no issues with the update.

AnandTech’s iPhone XS review

AnandTech's iPhone XS review and benchmarks have been published, and it looks like Apple is leaping even further ahead in performance compared to Qualcomm's offerings.

The Apple A12 is a beast of a SoC. While the A11 already bested the competition in terms of performance and power efficiency, the A12 doubles down on it in this regard, thanks to Apple's world-class design teams which were able to squeeze out even more out of their CPU microarchitectures. The Vortex CPU's memory subsystem saw an enormous boost, which grants the A12 a significant performance boost in a lot of workloads. Apple's marketing department was really underselling the improvements here by just quoting 15% - a lot of workloads will be seeing performance improvements I estimate to be around 40%, with even greater improvements in some corner-cases. Apple's CPU have gotten so performant now, that we're just margins off the best desktop CPUs; it will be interesting to see how the coming years evolve, and what this means for Apple's non-mobile products.

On the GPU side, Apple's measured performance gains are also within the promised figures, and even above that when it comes to sustained performance. The new GPU looks like an iteration on last year's design, but an added fourth core as well as the important introduction of GPU memory compression are able to increase the performance to new levels. The negative thing here is I do think Apple's throttling mechanism needs to be revised - and by that I mean not that it shouldn't throttle less, but that it might be better if it throttled more or even outright capped the upper end of the performance curve, as it's extremely power hungry and does heat up the phone a lot in the initial minutes of a gaming session.

Say about Apple, the iPhone, and iOS what you will, but there's no denying that Apple is cranking out absolutely stunning SoCs that run circles around the competition - and it's been doing that every single year. We're at the point where one really has to wonder what, exactly, Qualcomm is doing - or is not doing - to be as far behind as they are.

iPhones sold in China to use specific China-made NAND

So this is an interesting underreported story from February 2018 - as it turns out, iPhones sold in China will soon use specific NAND chips made by a specific Chinese company that won't be used in iPhones sold outside of China.

Apple is in talks with state-backed Yangtze Memory Technologies to buy NAND flash chips from it, a move that will mark the U.S. giant's first purchase from a Chinese memory chipmaker and a huge boost to the local sector.

Whether Apple is under any pressure to buy from Chinese makers is unclear. Afterall, China has been known to apply pressure on foreign technology companies that want to operate within the country. One thing is for sure, Chinese deals will help Apple grow its business there, according to an industry executive.

As such, the earliest that the deal could come into fruition will be 2019 but industry sources say it is more likely to be after 2020 before Yangtze Memory can produce enough of the components at a standard that Apple requires. Apple will use these chips in new iPhone models and other products for sale in the Chinese domestic market specifically, according to two people familiar with the matter.

So, Apple has already handed over the iCloud data of its Chinese customers to the Chinese government through a government-owned datacenter company, and soon, iPhones sold in China will use China-specific NAND chips that won't be used in iPhones outside of China. With yesterday's Bloomberg story fresh in our minds, is it really that far-fetched to assume these China-specific NAND chips are unsafe, or perhaps even have a backdoor in them that weakens on-device encryption?

There is no way that the Chinese government would somehow exempt Apple from aiding in government surveillance, and these seemingly unrelated news stories all seem to suggest that Apple is, indeed, doing so.

Why do computers use so much energy?

Microsoft is currently running an interesting set of hardware experiments. The company is taking a souped-up shipping container stuffed full of computer servers and submerging it in the ocean. The most recent round is taking place near Scotland's Orkney Islands, and involves a total of 864 standard Microsoft data-center servers. Many people have impugned the rationality of the company that put Seattle on the high-tech map, but seriously - why is Microsoft doing this?

There are several reasons, but one of the most important is that it is far cheaper to keep computer servers cool when they're on the seafloor. This cooling is not a trivial expense. Precise estimates vary, but currently about 5 percent of all energy consumption in the U.S. goes just to running computers - a huge cost to the economy as whole. Moreover, all that energy used by those computers ultimately gets converted into heat. This results in a second cost: that of keeping the computers from melting.

I use a custom watercooling loop to keep my processor and videocard cool, but aside from size and scale, datacenters struggle with the exact same problem - computers generate a ton of heat, and that heat needs to go somewhere.

A minimal C64 Datasette program loader

The Commodore Datasette recording format is heavily optimized for data safety and can compensate for many typical issues of cassette tape, like incorrect speed, inconsistent speed (wow/flutter), and small as well as longer dropouts. This makes the format more complex and way less efficient than, for example, "Turbo Tape" or all other custom formats used by commercial games. Let's explore the format by writing a minimal tape loader for the C64, optimized for size, which can decode correct tapes, but does not support error correction.

I'm no expert, but sometimes I wonder if modern computer classes and schools in general are on the right track by focusing solely on modern systems like Chromebooks and iPads. Wouldn't it be better to teach kids programming in BASIC, with limited resources, on, say, C64 emulators?

How China used a tiny chip to infiltrate US companies

But that's just what U.S. investigators found: The chips had been inserted during the manufacturing process, two officials say, by operatives from a unit of the People's Liberation Army. In Supermicro, China's spies appear to have found a perfect conduit for what U.S. officials now describe as the most significant supply chain attack known to have been carried out against American companies.

One official says investigators found that it eventually affected almost 30 companies, including a major bank, government contractors, and the world's most valuable company, Apple Inc. Apple was an important Supermicro customer and had planned to order more than 30,000 of its servers in two years for a new global network of data centers. Three senior insiders at Apple say that in the summer of 2015, it, too, found malicious chips on Supermicro motherboards. Apple severed ties with Supermicro the following year, for what it described as unrelated reasons.

Both Apple and Amazon aggressively deny the reports, but such was to be expected - these companies aren't going to openly admit their products and data could be vulnerable to sophisticated Chinese hacking attempts. In addition, especially Apple is beholden to remaining in the Chinese government's good graces, and won't openly admit they're being targeted by them - like no other company in the world, Apple is dependent on China, because no other country has the manpower, labour laws, and welcoming totalitarian government required to build the massive amount of devices Apple orders from China.

None of this should surprise anyone, and further illustrates that any company - especially major ones - claiming their products are secure and privacy-focused have really no way of guaranteeing as such. Whether it be domestic carriers snooping in on internet traffic or the Chinese government adding small microchips to hardware, nothing is secure or private.

Microsoft is embracing Android as the mobile version of Windows

The Android app mirroring will be part of Microsoft's new Your Phone app for Windows 10. This app debuts this week as part of the Windows 10 October 2018 Update, but the app mirroring part won't likely appear until next year. Microsoft briefly demonstrated how it will work, though; you'll be able to simply mirror your phone screen straight onto Windows 10 through the Your Phone app, which will have a list of your Android apps. You can tap to access them and have them appear in the remote session of your phone.

We've seen a variety of ways of bringing Android apps to Windows in recent years, including Bluestacks and even Dell's Mobile Connect software. This app mirroring is certainly easier to do with Android, as it's less restricted than iOS. Still, Microsoft's welcoming embrace of Android in Windows 10 with this app mirroring is just the latest in a number of steps the company has taken recently to really help align Android as the mobile equivalent of Windows.

Microsoft has its own Android application launcher, e-mail client (Outlook on both Android and iOS is actually quite good), browser (Edge is available on Android), Cortana, this application mirroring, and other things.

At this point, one has to wonder why Microsoft simply doesn't just release an Android phone altogether. Imagine a Surface phone, with a similar industrial design, but running Android with Microsoft's applications on top. I have no idea if such a product would be popular with consumers, and I personally would still really actually want Windows Phone to come back from the dead and magically become successful, but I'd definitely be intrigued by such a Microsoft Android phone.

Windows 10 October 2018 Update released

The Windows 10 October 2018 Update is version 1809, and while it's the latest feature update, a major focus of this update was fixes and refinements. Some features, like Sets and Alt-Tab bringing up browser tabs, have been delayed, and despite Sets not having returned yet in Skip Ahead builds, Microsoft has assured Neowin that the feature is still going to return.

Not a major update, but after installing it on my desktop I found some nice improvements and fixes here and there, such as a more polished user interface for Edge (which also seems faster now, and handles Google properties more smoothly) and the new, much better screenshot application which replaces the snipping tool. Curiously, while the update was available on my desktop, Windows Update on my laptops remains silent.

Announcing flickerfree boot for Fedora 29

A big project I've been working on recently for Fedora Workstation is what we call flickerfree boot. The idea here is that the firmware lights up the display in its native mode and no further modesets are done after that. Likewise there are also no unnecessary jarring graphical transitions.

Basically the machine boots up in UEFI mode, shows its vendor logo and then the screen keeps showing the vendor logo all the way to a smooth fade into the gdm screen.

People were complaining about this way back when I first actually got into Linux, somewhere in the early 2000s. I guess Fedora finally managed to get it working.

Broadband industry sues California over net neutrality bill

Four lobbying groups representing some of the largest telecom companies in the country filed a lawsuit Wednesday opposing California's net neutrality law in an attempt to stop it from going into effect next year.

The four industry groups filing the lawsuit were USTelecom, CTIA, NCTA, and the ACA - groups which represent telecom corporations like AT&T; Verizon Wireless; Charter Communications; and Comcast, and mobile companies like T-Mobile. This is the second lawsuit filed following the passage of California's net neutrality law on Sunday. The first was fired off by the Department of Justice only hours after the bill received its final signature from Governor Jerry Brown.

States' rights totally matter, but only when it comes to oppressing women and buying pointless guns - not when it comes to protecting consumers from the predatory, anti-consumer corporations that line politicians' pockets.

Visopsys 0.8.3 released

It's been a long time since we last covered Visopys - one of the few remaining hobby operating systems still in development - so how about an update? The last version we covered was 0.8 way back in September 2016, but the most recent release is 0.8.3 from August of this year.

This maintenance version features user experience enhancements and reliability improvements, and a more capable Archive Manager program. Bug fixes cover a number of GUI flaws and memory leaks, and some of the low-level network infrastructure code has been refined.

And just in case you forgot all about this operating system:

Visopsys is an alternative operating system for PC compatible computers. In development since 1997, this system is small, fast, and open source. It features a simple but functional graphical interface, pre-emptive multitasking, and virtual memory. Though it attempts to be compatible in a number of ways, Visopsys is not a clone of any other operating system.

It's available from the project's download page.

AmigaOS 3.1.4 for classic Amigas released

The new, cleaned-up, polished Amiga operating system for your 68K machine fixes all the small annoyances that have piled up over the years. Originally intended as a bug-fix release, it also modernizes many system components previously upgraded in OS 3.9.

Contrary to its modest revision number, AmigaOS 3.1.4 is arguably as large an upgrade as OS 3.9 was, and surpasses it in stability and robustness. Over 320K of release notes cover almost every aspect of your favourite classic AmigaOS - from bootmenu to datatypes.

This is not AmigaOS 4 - just making that clear here - but an updated version of AmigaOS 3 for classic 68K-based Amigas.

The engineering miracle of the Sinclair ZX Spectrum

The Spectrum was not the first Sinclair computer to make it big. It was, however, the first to go massive. In the months prior to launching, 'The Computer Programme' had aired on the BBC, legitimising the home micro computer as the must have educational item of the 1980's. For Sinclair and the ZX Spectrum the time was right, parents were keen, and the kids were excited. Games would soon be were everywhere thanks to all the kids programming their brand new Spectrums.

A major success factor, the one that gave the Spectrum its name, is the computer's capacity to generate a spectrum of colours. The micro is capable of generating 16 colours; 8 low intensity colours and 8 matching bright variants. It's hard to imagine now, but in 1982 these 16 colours were enough to start a home computer revolution. Richard Altwasser, the engineer employed by Sinclair to develop the Spectrum's graphic systems, was setting a new benchmark with some very innovative ideas.

I've missed the entire 8 bit home micro revolution - I simply was too young or not even born yet. It must've been such an exciting time.

The effect of ad blocking on user engagement with the web

Web users are increasingly turning to ad blockers to avoid ads, which are often perceived as annoying or an invasion of privacy. While there has been significant research into the factors driving ad blocker adoption and the detrimental effect to ad publishers on the Web, the resulting effects of ad blocker usage on Web users’ browsing experience is not well understood. To approach this problem, we conduct a retrospective natural field experiment using Firefox browser usage data, with the goal of estimating the effect of adblocking on user engagement with the Web. We focus on new users who installed an ad blocker after a baseline observation period, to avoid comparing different populations. Their subsequent browser activity is compared against that of a control group, whose members do not use ad blockers, over a corresponding observation period, controlling for prior baseline usage. In order to estimate causal effects, we employ propensity score matching on a number of other features recorded during the baseline period. In the group that installed an ad blocker, we find significant increases in both active time spent in the browser (+28% over control) and the number of pages viewed (+15% over control), while seeing no change in the number of searches. Additionally, by reapplying the same methodology to other popular Firefox browser extensions, we show that these effects are specific to ad blockers. We conclude that ad blocking has a positive impact on user engagement with the Web, suggesting that any costs of using ad blockers to users' browsing experience are largely drowned out by the utility that they offer.

I, too, use ad blockers on all my browsers and devices - and I can safely say that if ad blockers didn't exist, I'd be spending a lot less time reading websites online. Note that this study was performed by Mozilla employees.

Google launches test for its game streaming service

Streaming media has transformed the way we consume music and video, making it easy to instantly access your favorite content. It's a technically complex process that has come a long way in a few short years, but the next technical frontier for streaming will be much more demanding than video.

We've been working on Project Stream, a technical test to solve some of the biggest challenges of streaming. For this test, we're going to push the limits with one of the most demanding applications for streaming - a blockbuster video game.

Google's trying their hands at game streaming - in the case of this test, Assassin's Creed Odyssey (which I happen to have just started on my PS4 Pro). If one company has the hardware to actually pull this off properly and consistently, it's Google.

Arcan 0.5.5, Durden 0.5 released

More than three quarters of a year has gone by since last time, but the Arcan project has squeezed out a new release of the 'multimedia server' or 'desktop engine' Arcan and its related subproject, the Durden desktop environment.

For those unaware of the project as such, it might be worthwhile to skim through a recent summary that can be found in the article "Revisiting the Arcan Project" - but suffice to say that it is an ambitious attempt at replacing large swaths (terminal emulators, display server, audio server, and so on) of the normal user-facing parts of the BSD and Linux userspace, with a single compact and coherently scriptable component.

CirnOS: new Lua-based OS

CirnOS is an operating system for the Raspberry Pi built for the purpose of usability and simplicity. It provides a simple environment for running Lua scripts on Raspberry Pi. It has no kernel or time management - it is single threaded. You run your code on the device, and that is it.

CirnOS has only been tested on the Raspberry Pi Zero, but should work on the original Raspberry Pi and the Zero W.