Businesses

Seamless, Grubhub Deliver Confusion With Mistaken Restaurant Listings (sfchronicle.com) 179

An anonymous reader shares a report: Pim Techamuanvivit was managing her Michelin-starred Thai restaurant in San Francisco, Kin Khao, around 8:30 p.m. on Saturday when she got an unexpected call. A customer was wondering when food from his order on the online food delivery company Seamless was coming, as he had been waiting 45 minutes. "I think you must be confused, because I don't do delivery," Techamuanvivit told him. Techamuanvivit said the man then asked, "So what are you doing on Seamless?" The restaurateur soon discovered that her restaurant had a page on both Seamless and Grubhub. Both brands are owned by Grubhub, a Chicago online food delivery company that merged with New York's Seamless in 2013. The delivery sites listed her restaurant and its address with a menu that she does not serve, including pad Thai and, of all things in a restaurant that specializes in lesser-known Thai regional cuisine, Vietnamese pho.

"It's outrageous. They can't get away with this. They can't totally fake a restaurant that doesn't do delivery and go pick up food from, I don't know, some rat-infested warehouse somewhere and deliver to my guests," said Techamuanvivit, who added that she intends to sue Seamless. Grubhub said that the company partners with more than 140,000 restaurants in over 2,700 U.S. cities, and that most orders are from restaurants with which it has an explicit partnership. The company recently started adding other restaurants to its sites without such a partnership, when it finds restaurants that are in high demand, it said. In those cases, someone from the company orders the food ahead or at the restaurant, and a driver is sent to pick it up, it added.

Earth

357 Amazon Employees Launch Mass Defiance of the Company's Communications Policy (houstonchronicle.com) 139

357 Amazon employees have now "violated the e-commerce giant's communications policy Sunday in an unprecedented public display of support for colleagues who were warned that they could be fired for speaking out to criticize the company's climate practices," reports the Washington Post: Amazon Employees for Climate Justice, a group of workers concerned about the company's business with the oil and gas industry as well as its carbon footprint, published quotes from the workers in a post on Medium. The comments, all of which are attributed to Amazon workers by name, are a mass defiance of company rules that bar workers from commenting publicly on its business without corporate justification and approval from executives... "Solidarity to the workers facing retaliation for standing up!" wrote Charlie LaBarge, a software engineer...

Amazon encourages workers to advocate for causes they believe in but wants them to pursue those convictions when related to the company's business internally, spokesman Drew Herdener said in a statement. Workers can submit questions to executives during all-hands meetings, and they can join internal interest groups, such as ones that focus on sustainability. Employees can also attend lunch sessions with Amazon leaders to discuss the issues, as long as they are willing to keep matters raised in those sessions confidential. "While all employees are welcome to engage constructively with any of the many teams inside Amazon that work on sustainability and other topics, we do enforce our external communications policy and will not allow employees to publicly disparage or misrepresent the company or the hard work of their colleagues who are developing solutions to these hard problems," Herdener said.

Ironically, the Washington Post...is owned by Amazon.
PHP

Is PHP Still a Worthwhile Language To Learn? (stitcher.io) 137

mbadolato (Slashdot reader #105,588) shares this post from Belgium-based programmer Brent Roose: It's no secret among web developers and programmers in general: PHP doesn't have the best reputation. Despite still being one of the most used languages to build web applications; over the years PHP has managed to get itself a reputation of messy codebases, inexperienced developers, insecure code, an inconsistent core library, and what not. While many of the arguments against PHP still stand today, there's also a bright side: you can write clean and maintainable, fast and reliable applications in PHP.

In this post, I want to look at this bright side of PHP development. I want to show you that, despite its many shortcomings, PHP is a worthwhile language to learn. I want you to know that the PHP 5 era is coming to an end. That, if you want to, you can write modern and clean PHP code, and leave behind much of the mess it was 10 years ago.

The article notes PHP's opt-in type system and performance-enhancing rewrites (including the ability to store compiled chunks of PHP code in memory). And it argues that PHP "is still evolving today," with a package repository averaging over 25 million downloads a day. There's also PHP web application frameworks (as well as asynchronous frameworks), so "PHP isn't just WordPress anymore."

And in keeping with the core team's yearly release cycle, PHP 8 is expected at the end of 2020, which will include a JIT compiler, "allowing PHP to enter new areas besides web development..."
The Courts

EFF Defends Bruce Perens Victory Against 'Open Source Security' in Appeals Court 30

Bruce Perens (Slashdot reader #3872) co-founded the Open Source Initiative with Eric Raymond in 1998. (And then left it this January 2nd.)

But in 2017 Perens was also sued partly over comments made in a Slashdot discussion. He's just shared a video from the 9th Circuit Appeals Court hearing -- along with this update: Open Source Security Inc. and their CEO, Mr. Bradley Spengler, sued me for 3 Million dollars for defamation, because I wrote this blog post, in which I explained why I thought they were in violation of the GPL. They lost in the lower court, and had to file this $300,000 bond to pay for my defense, which will be awarded to my attorneys if the appeals court upholds the lower court's finding.

Because OSS/Spengler are in Pensylvania and I am in California, this was tried before a Magistrate in Federal court, with the laws of California and the evidentiary rules of the Federal Court. Thus, I am now in the 9th Circuit for appeal.

The first attorney to appear is for OSS/Spengler. The second works for EFF, and the third for O'Melveny. In my opinion EFF and O'Melveny did a great job.

If you are interested in the case, I have a partial archive of the case documents from PACER, and a link to PACER where the rest can be found, here.
Books

71-Year-Old William Gibson Explores 'Existing Level of Weirdness' For New Dystopian SciFi Novel (thedailybeast.com) 81

71-year-old science fiction author William Gibson coined the word "cyberspace" in his 1984 novel Neuromancer. 36 years later he's back with an even more dystopian future in his new novel Agency.

But in a surprisingly candid interview in the Daily Beast, Gibson says he prefers watching emerging new technologies first because "To use it is to be changed by it; you're not the same person."
"I'm not someone who works from assumptions about where technology might be going. My method of writing is exploratory about that."

That's certainly the case with Agency, Gibson's latest, a densely structured, complexly plotted novel that takes place in two separate time frames, which he refers to as "stubs," and has as one of its central characters an AI named Eunice, who is one part uploaded human consciousness and another part specialized military machine intelligence. In one stub it's 2017, a woman is in the White House, and Brexit never happened. But the threat of nuclear war nonetheless hovers over a conflict in the Middle East. In the other stub, it's 22nd century London after "the jackpot," a grim timeline of disasters that has reduced the Earth's population by 80 percent and left Britain to be ruled by "the klept," which Gibson describes as a "hereditary authoritarian government, [with its] roots in organized crime."

Given these scenarios, it's no surprise to discover that the 71-year-old Gibson's latest work was heavily influenced by the 2016 election and the ascendancy of Donald Trump to the presidency. "The book I had been imagining had been a kind of a romp," says the U.S.-born Gibson down the phone line from his long-time home in Vancouver, B.C. "But then the election happened, and I thought, 'Uh-oh, my whole sense of the present is 24 hours out of date, and that's enough to make the book I've been working on kind of meaningless.' It took me a long time [to re-think and re-write the book], and I thought the weirdness factor of reality, finding some balance -- what can I do with the existing level of weirdness, and that level kept going up. I wanted to write a book that current events wouldn't have left by the time it got out, and I think Agency works...."

"It's an interesting time for science fiction now," says Gibson, "because there are people writing contemporary fiction who are effectively writing science fiction, because the world they live in has become science fiction. Writing a contemporary novel today that doesn't involve concepts that wouldn't have been seen in science fiction 20 years ago is impossible. Unless it's an Amish novel."

The Washington Post calls Gibson's new novel "engaging, thought-provoking and delightful," while the senior editor at Medium's tech site One Zero says it's the first time Gibson "has taken direct aim at Silicon Valley, at the industry and culture that has reorganized the world -- with some of his ideas propelling it."

"The result is a blend of speculation and satire that any self-respecting denizen of the digital world should spend some time with."

And they're also publishing an exclusive excerpt from the novel.
Cellphones

PinePhone Linux Smartphone Shipment Finally Begins (fossbytes.com) 52

Pine64 will finally start shipping the pre-order units of PinePhone Braveheart Edition on January 17, 2020. Fossbytes reports: A year ago, PinePhone was made available only to developers and hackers. After getting better responses and suggestions, the Pine64 developers planned to bring Pinephone for everyone. In November last year, pre-orders for PinePhone Braveheart Edition commenced for everyone. But due to manufacturing issues coming in the way, the shipment date slipped for weeks, which was scheduled in December last year.

PinePhone Braveheart Edition is an affordable, open source Linux-based operating system smartphone preloaded with factory test image running on Linux OS (postmarketOS) on inbuilt storage. You can check on PinePhone Wiki to find the PinePhone compatible operating system such as Ubuntu Touch, postmarketOS, or Sailfish OS, which you can boot either from internal storage or an SD card.

Transportation

Letting Slower Passengers Board Airplane First Really Is Faster, Study Finds (arstechnica.com) 166

According to physicist Jason Steffen, letting slower passengers board airplanes first actually results in a more efficient process and less time before takeoff. An anonymous reader shares a report from Ars Technica: Back in 2011, Jason Steffen, now a physicist at the University of Nevada, Las Vegas, became intrigued by the problem and applied the same optimization routine used to solve the famous traveling salesman problem to airline boarding strategies. Steffen fully expected that boarding from the back to the front would be the most efficient strategy and was surprised when his results showed that strategy was actually the least efficient. The most efficient, aka the "Steffen method," has the passengers board in a series of waves. "Adjacent passengers in line will be seated two rows apart from each other," Steffen wrote at The Conversation in 2014. "The first wave of passengers would be, in order, 30A, 28A, 26A, 24A, and so on, starting from the back."

Field tests bore out the results, showing that Steffen's method was almost twice as fast as boarding back-to-front or rotating blocks of rows and 20-30 percent faster than random boarding. The key is parallelism, according to Steffen: the ideal scenario is having more than one person sitting down at the same time. "The more parallel you can make the boarding process, the faster it will go," he told Ars. "It's not about structuring things as much as it is about finding the best way to facilitate multiple people sitting down at the same time." Steffen used a standard agent-based model using particles to represent individual agents. This latest study takes a different approach, modeling the boarding process using Lorentzian geometry -- the mathematical foundation of Einstein's general theory of relativity. Co-author Sveinung Erland of Western Norway University and colleagues from Latvia and Israel exploited the well-known connection between microscopic dynamics of interacting particles and macroscopic properties and applied it to the boarding process. In this case, the microscopic interacting particles are the passengers waiting in line to board, and the macroscopic property is how long it takes all the passengers to settle into their assigned seats.
The paper has been published in the journal Physical Review E.
Bitcoin

Rapper Akon Created His Own Cryptocurrency City In Senegal Called 'Akon City' (cnn.com) 90

An anonymous reader quotes a report from CNN: It's official, Akon has his own city in Senegal. Known as "Akon City," the rapper and entrepreneur tweeted Monday that he had finalized the agreement for the new city. Akon, who is of Senegalese descent, originally announced plans for the futuristic "Crypto city" in 2018 saying that the city would be built on a 2,000-acre land gifted to him by the President of Senegal, Macky Sall. The new city would also trade exclusively in his own digital cash currency called AKoin, he said. The official website for the city said at the time it would be a five-minute drive from the West African state's new international airport. According to a video posted to the project's Facebook page, "all transactional activity" in Akon City will be conducted using AKoin.

"What's worrying is that, at this stage, there doesn't appear to be any white paper for Akon's cryptocurrency, so it's hard to gauge exactly what we're in for," reports The Next Web. "The associated website does however hype the release of a white paper and an 'explainer video' sometime before February this year."
NASA

After Mishap with Boeing Spacecraft, NASA Faces a Dilemma (houstonchronicle.com) 132

An anonymous reader quotes the Washington Post: As it probes why Boeing's Starliner spacecraft suffered a serious setback during a flight test last month that forced the cancellation of its planned docking with the International Space Station, NASA faces a high-stakes dilemma: Should the space agency require the company to repeat the uncrewed test flight, or allow the next flight to proceed, as originally planned, with astronauts on board?

The answer could have significant ramifications for the agency, and put astronauts' lives on the line, at a time when NASA is struggling to restore human spaceflight from the United States since the Space Shuttle fleet was retired in 2011.

Forcing Boeing to redo the test flight without anyone on board would be costly, possibly requiring the embattled company, already struggling from the consequences of two deadly crashes of its 737 Max airplane, to spend tens of millions of dollars to demonstrate that its new spacecraft is capable of meeting the space station in orbit. But if NASA moves ahead with the crewed flight, and something goes wrong that puts the astronauts in danger, the agency would come under withering criticism that could plague it for years to come...

For now, NASA is moving cautiously. It has formed an independent team with Boeing to examine what went wrong with the Starliner during last month's test flight. NASA also is reviewing data to help it determine if the capsule achieved enough objectives during its truncated flight to assure NASA that its astronauts will be safe....

If NASA does force Boeing to perform another test flight, it's not clear who would have to pay the tens of millions of dollars such a mission would cost.

Social Networks

Bizarre 'Big Tech'/Matrix Cartoon Used to Mock San Francisco's Football Team (sfgate.com) 29

The social media team for a Minnesota football team playing against San Francisco's 49ers just incorporated "big tech" into its online trash talk, reports the San Francisco Chronicle's SFGate site. They call the resulting video "incredibly weird." The video in question depicts a time-lapse of [San Francisco's] Levi's stadium with two cartoon characters in the foreground that are basically team helmets with arms and legs. The 49ers character says "Welcome... to Silicon Valley" and we're then suddenly in the Matrix (?). The 49ers character pulls out a space gun that says "Big Tech" on it and starts shooting tech company logos at the Vikings character.

After slow-motion dodging Twitter, Facebook, Apple, Google Chrome, Instagram, What's App, and Uber logos a la Neo, the Viking character jump kicks the 49ers character.

The whole thing is as odd as it sounds, and even users on Reddit struggled to understand it.

The Reddit post attracted over 2,100 upvotes and 253 comments (including "Unsportsmanlike conduct, kicking opponent in the head. 15 yards penalty.")

The video has now been viewed 117,162 times over the last 18 hours -- and attracted 27,827 likes.
Stats

2019's Fastest Growing Programming Language Was C, Says TIOBE (tiobe.com) 106

Which programming language saw the biggest jump on TIOBE's index of language popularity over the last year?

Unlike last year -- it's not Python. An anonymous reader quotes TIOBE.com: It is good old language C that wins the award this time with an yearly increase of 2.4%... The major drivers behind this trend are the Internet of Things (IoT) and the vast amount of small intelligent devices that are released nowadays...

Runners up are C# (+2.1%), Python (+1.4%) and Swift (+0.6%)...

Other interesting winners of 2019 are Swift (from #15 to #9) and Ruby (from #18 to #11). Swift is a permanent top 10 player now and Ruby seems [destined] to become one soon.

Some languages that were supposed to break through in 2019 didn't: Rust won only 3 positions (from #33 to #30), Kotlin lost 3 positions (from #31 to #35), Julia lost even 10 positions (from #37 to #47) and TypeScript won just one position (from #49 to #48).

And here's the new top 10 programming languages right now, according to TIOBE's January 2020 index.
  • Java
  • C
  • Python
  • C++
  • C# (up two positions from January 2019)
  • Visual Basic .NET (down one position from January 2019)
  • JavaScript (down one position from January 2019)
  • PHP
  • Swift (up six positions from January 2019)
  • SQL (down one position from January 2019)

NASA

17-Year-Old Discovers a New Planet On the Third Day of His NASA Internship (go.com) 30

17-year-old Wolf Cukier made a big discovery on the third day of his internship at a NASA space flight center last summer. A reader quotes ABC News: Wolf Cukier, 17...was tasked with going through data on star brightness from the facility's ongoing Transiting Exoplanet Survey Satellite mission or TESS. The Scarsdale High School senior was looking at a foreign system located 1,300 light-years from Earth. He said he then observed what appeared to be a slight darkness in one of the system's suns.

It turned out that darkness was a planet 6.9 times larger than Earth that orbited two stars, what scientists call a circumbinary planet.

"I had a lot of data in my notes that day about extremities in the binaries," Cukier said. "But when I saw this one, I put 10 asterisks next to it."

Once he flagged the discovery to his research mentors, Cukier spent weeks with them and other scientists confirming his hypothesis. NASA said the teen's discovery was rare because circumbinary planets are usually difficult to find and scientists can only detect these planets during a transit event, when one of the suns shows a decrease in brightness... Because the two suns orbit each other every 15 days, it was harder to distinguish the transit events from the planet, dubbed TOI 1338-b, which take place every 93 to 95 days, according to NASA.

Open Source

Linus Torvalds: Avoid Oracle's ZFS Kernel Code Until 'Litigious' Larry Signs Off (zdnet.com) 247

"Linux kernel head Linus Torvalds has warned engineers against adding a module for the ZFS filesystem that was designed by Sun Microsystems -- and now owned by Oracle -- due to licensing issues," reports ZDNet: As reported by Phoronix, Torvalds has warned kernel developers against using ZFS on Linux, an implementation of OpenZFS, and refuses to merge any ZFS code until Oracle changes the open-source license it uses.

ZFS has long been licensed under Sun's Common Development and Distribution License as opposed to the Linux kernel, which is licensed under GNU General Public License (GPL). Torvalds aired his opinion on the matter in response to a developer who argued that a recent kernel change "broke an important third-party module: ZFS". The Linux kernel creator says he refuses to merge the ZFS module into the kernel because he can't risk a lawsuit from "litigious" Oracle -- which is still trying to sue Google for copyright violations over its use of Java APIs in Android -- and Torvalds won't do so until Oracle founder Larry Ellison signs off on its use in the Linux kernel.

"If somebody adds a kernel module like ZFS, they are on their own. I can't maintain it and I cannot be bound by other people's kernel changes," explained Torvalds. "And honestly, there is no way I can merge any of the ZFS efforts until I get an official letter from Oracle that is signed by their main legal counsel or preferably by Larry Ellison himself that says that yes, it's OK to do so and treat the end result as GPL'd," Torvalds continued.

"Other people think it can be OK to merge ZFS code into the kernel and that the module interface makes it OK, and that's their decision. But considering Oracle's litigious nature, and the questions over licensing, there's no way I can feel safe in ever doing so."

Open Source

Terry Cavanagh Releases Source Code For VVVVVV On GitHub (gamasutra.com) 47

The source code for acclaimed 2D puzzle platformer VVVVVV has been released by creator Terry Cavanagh to celebrate the title's 10th anniversary. Gamasutra reports: Breaking to news in a blog post, Cavanagh explained the code fro both the desktop and mobile versions of the game can now be grabbed over on Github, and confessed that "even by the standard of self taught indie devs, it's kind of a mess." The desktop code is the version that was ported to C++ by Simon Roth back in 2011 and later updated and maintained by Ethan Lee, while the mobile code is written in Actionscript for Adobe AIR and is based on the original v1.0 flash version of the game.
Medicine

Company Says It's Built a Marijuana Breathalyzer That Will Hit the Market In 2020 (techdirt.com) 141

An anonymous reader quotes a report from Techdirt: There's currently no field test equipment that detects marijuana impairment. A company in California thinks it has a solution. From San Francisco Chronicle: "By mid-2020, Hound Laboratories plans to begin selling what it says is the world's first dual alcohol-marijuana breath analyzer, which founder Dr. Mike Lynn says can test whether a user has ingested THC of any kind in the past two to three hours. 'We're allowed to have this in our bodies,' Lynn said of marijuana, which became legal to use recreationally in California in 2018. 'But the tools to differentiate somebody who's impaired from somebody who's not don't exist.'"

We won't know if these claims are true until the testing equipment is deployed. And even then, we still won't know if the machines are accurate or the drivers they catch are actually impaired. Marijuana doesn't work like alcohol, so impairment levels vary from person to person. In addition, there's no baseline for impairment like there is for alcohol. That will have to be sorted out by state legislatures before officers can begin to claim someone is "impaired" just because the equipment has detected THC. At this point, the tech pitched by Hound Labs only provides a yes/no answer. There's a very good chance this new tech will go live before the important details -- the ones safeguarding people's rights and freedoms -- are worked out. The founder of Hound Labs is also a reserve deputy for the Alameda County Sheriff's Office. And it's this agency that's been test driving the weedalyzer.
"[T]his new tech should be greeted with the proper amount of skepticism," the report says. "Breathalyzers that detect alcohol have been around for decades and are still far from perfect. A new device that promises to detect recent marijuana use just because researchers say consumption can be detected for up to three hours shouldn't be treated as a solution."

"The device is stepping into a legal and legislative void with no established baseline for marijuana 'intoxication.'"
Science

Finnish Scientists Produce a Protein Made 'From Thin Air' (huffpost.com) 151

New submitter SysEngineer shares a report from HuffPost: A new protein made from air, water and renewable electricity could revolutionize our food system within the next decade. Developed by the Finnish company Solar Foods in a lab just outside Helsinki, the protein -- called Solein -- is made using living microbes that are then grown in a fermenter in a process similar to brewing beer. The microbes are fed with carbon dioxide, hydrogen, oxygen and nitrogen all taken from the air. This fermentation process, which takes place in huge vats, produces a liquid that is removed and dried to give the final product -- a yellow flour-like powder with multiple food uses.

If the electricity comes totally from renewables -- the aim is to use solar and wind -- the production process could produce virtually zero greenhouse gas emissions, the company says. It would also require far less land and far less water than traditional agriculture. Solar Foods says just 10 liters (2.1 gallons) of water is needed for every 1 kilogram (2.2 pounds) of Solein. To produce 1 kilogram of soy requires 2,500 liters (550 gallons) of water, a figure that rises to more than 15,000 liters (3,300 gallons) for 1 kilogram of beef.
The scientists say Solein has three applications: it can be used as a protein additive in existing foods; it could work as a way to help ingredients bind together; and it could also be used as an ingredient in plant-based meat alternatives.
Printer

MIT Scientists Made a Shape-Shifting Material that Morphs Into a Human Face (arstechnica.com) 24

An anonymous reader quotes Ars Technica: The next big thing in 3D printing just might be so-called "4D materials" which employ the same manufacturing techniques, but are designed to deform over time in response to changes in the environment, like humidity and temperature. They're also sometimes known as active origami or shape-morphing systems. MIT scientists successfully created flat structures that can transform into much more complicated structures than had previously been achieved, including a human face. They published their results last fall in the Proceedings of the National Academy of Sciences...

MIT mechanical engineer Wim van Rees, a co-author of the PNAS paper, devised a theoretical method to turn a thin flat sheet into more complex shapes, like spheres, domes, or a human face. "My goal was to start with a complex 3-D shape that we want to achieve, like a human face, and then ask, 'How do we program a material so it gets there?'" he said. "That's a problem of inverse design..." van Rees and his colleagues decided to use a mesh-like lattice structure instead of the continuous sheet modeled in the initial simulations. They made the lattice out of a rubbery material that expands when the temperature increases. The gaps in the lattice make it easier for the material to adapt to especially large changes in its surface area. The MIT team used an image of [19th century mathematician Carl Friedrich] Gauss to create a virtual map of how much the flat surface would have to bend to reconfigure into a face. Then they devised an algorithm to translate that into the right pattern of ribs in the lattice.

They designed the ribs to grow at different rates across the mesh sheet, each one able to bend sufficiently to take on the shape of a nose or an eye socket. The printed lattice was cured in a hot oven, and then cooled to room temperature in a saltwater bath.

And voila! It morphed into a human face.

"The team also made a lattice containing conductive liquid metal that transformed into an active antenna, with a resonance frequency that changes as it deforms."
Open Source

Linus Torvalds Calls Blogger's Linux Scheduler Tests 'Pure Garbage' (phoronix.com) 191

On Wednesday Phoronix cited a blog post by C++ game developer Malte Skarupke claiming his spinlocks experiments had discovered the Linux kernel had a scheduler issue affecting developers bringing games to Linux for Google Stadia.

Linus Torvalds has now responded: The whole post seems to be just wrong, and is measuring something completely different than what the author thinks and claims it is measuring.

First off, spinlocks can only be used if you actually know you're not being scheduled while using them. But the blog post author seems to be implementing his own spinlocks in user space with no regard for whether the lock user might be scheduled or not. And the code used for the claimed "lock not held" timing is complete garbage.

It basically reads the time before releasing the lock, and then it reads it after acquiring the lock again, and claims that the time difference is the time when no lock was held. Which is just inane and pointless and completely wrong...

[T]he code in question is pure garbage. You can't do spinlocks like that. Or rather, you very much can do them like that, and when you do that you are measuring random latencies and getting nonsensical values, because what you are measuring is "I have a lot of busywork, where all the processes are CPU-bound, and I'm measuring random points of how long the scheduler kept the process in place".

And then you write a blog-post blamings others, not understanding that it's your incorrect code that is garbage, and is giving random garbage values...

You might even see issues like "when I run this as a foreground UI process, I get different numbers than when I run it in the background as a batch process". Cool interesting numbers, aren't they?

No, they aren't cool and interesting at all, you've just created a particularly bad random number generator...

[Y]ou should never ever think that you're clever enough to write your own locking routines.. Because the likelihood is that you aren't (and by that "you" I very much include myself -- we've tweaked all the in-kernel locking over decades, and gone through the simple test-and-set to ticket locks to cacheline-efficient queuing locks, and even people who know what they are doing tend to get it wrong several times).

There's a reason why you can find decades of academic papers on locking. Really. It's hard.

"It really means a lot to me that Linus responded," the blogger wrote later, "even if the response is negative." They replied to Torvalds' 1,500-word post on the same mailing list -- and this time received a 1900-word response arguing "you did locking fundamentally wrong..." The fact is, doing your own locking is hard. You need to really understand the issues, and you need to not over-simplify your model of the world to the point where it isn't actually describing reality any more...

Dealing with reality is hard. It sometimes means that you need to make your mental model for how locking needs to work a lot more complicated...

Open Source

Linux Kernel Developers and Commits Dropped in 2019 (phoronix.com) 37

Phoronix reports that on New Year's Day, the Linux kernel's Git source tree showed 27,852,148 lines of code, divided among 66,492 files (including docs, Kconfig files, user-space utilities in-tree, etc).

Over its lifetime there's been 887,925 commits, and around 21,074 different authors: During 2019, the Linux kernel saw 74,754 commits, which is actually the lowest point since 2013. The 74k commits is compares to 80k commits seen in both 2017 and 2018, 77k commits in 2016, and 75k commits in both 2014 and 2015. Besides the commit count being lower, the author count for the year is also lower. 2019 saw around 4,189 different authors to the Linux kernel, which is lower than the 4,362 in 2018 and 4,402 in 2017.

While the commit count is lower for the year, on a line count it's about average with 3,386,347 lines of new code added and 1,696,620 lines removed...

Intel and Red Hat have remained the top companies contributing to the upstream Linux kernel.

NASA

After Two Years NASA Loses Contact With Its Briefcase-Sized, Exoplanet-Hunting Satellite (bgr.com) 30

"NASA has a lot of high-tech hardware cruising around in space right now, but one of the space agency's pint-sized exoplanet hunters appears to have gone dark," reports BGR: In a post by NASA's Jet Propulsion Laboratory, the group explains that its ASTERIA satellite has been failing to return attempts to contact it for about a month now.

ASTERIA is a tiny satellite capable of observing some very big things. The spacecraft was sent into Earth orbit in late 2017, and it spent several months studying nearby stars for changes in their brightness. These brightness dips are the telltale signs that a planet is orbiting those stars. Much of NASA's exoplanet-hunting hardware is big and beefy, but the ASTERIA mission proved that spotting hints of exoplanets is indeed possible using much smaller devices. CubeSats, which are only about the size of a briefcase, are easier to deploy than their larger counterparts, and ASTERIA showed that CubeSats can make for good planet hunters.

"The ASTERIA project achieved outstanding results during its three -month prime mission and its nearly two-year-long extended mission," Lorraine Fesq of NASA's Jet Propulsion Laboratory said in a statement. "Although we are disappointed that we lost contact with the spacecraft, we are thrilled with all that we have accomplished with this impressive CubeSat."

NASA adds that "Attempts to contact it are expected to continue into March 2020."

Slashdot Top Deals