Random Articles (Page 2)

Have a deep view into what people are curious about.

πŸ”— Five Minute Rule

πŸ”— Computing πŸ”— Computer science

In computer science, the five-minute rule is a rule of thumb for deciding whether a data item should be kept in memory, or stored on disk and read back into memory when required. It was first formulated by Jim Gray and Gianfranco Putzolu in 1985, and then subsequently revised in 1997 and 2007 to reflect changes in the relative cost and performance of memory and persistent storage.

The rule is as follows:

The 5-minute random rule: cache randomly accessed disk pages that are re-used every 5 minutes or less.

Gray also issued a counterpart one-minute rule for sequential access:

The 1-minute rule: cache sequentially accessed disk pages that are re-used every 1 minute or less.

Although the 5-minute rule was invented in the realm of databases, it has also been applied elsewhere, for example, in Network File System cache capacity planning.

The original 5-minute rule was derived from the following cost-benefit computation:

BreakEvenIntervalinSeconds = (PagesPerMBofRAM / AccessesPerSecondPerDisk) Γ— (PricePerDiskDrive / PricePerMBofRAM)

Applying it to 2007 data yields approximately a 90-minutes interval for magnetic-disk-to-DRAM caching, 15 minutes for SSD-to-DRAM caching and 2​1⁄4 hours for disk-to-SSD caching. The disk-to-DRAM interval was thus a bit short of what Gray and Putzolu anticipated in 1987 as the "five-hour rule" was going to be in 2007 for RAM and disks.

According to calculations by NetApp engineer David Dale as reported in The Register, the figures for disc-to-DRAM caching in 2008 were as follows: "The 50KB page break-even was five minutes, the 4KB one was one hour and the 1KB one was five hours. There needed to be a 50-fold increase in page size to cache for break-even at five minutes." Regarding disk-to-SSD caching in 2010, the same source reported that "A 250KB page break even with SLC was five minutes, but five hours with a 4KB page size. It was five minutes with a 625KB page size with MLC flash and 13 hours with a 4KB MLC page size."

In 2000, Gray and Shenoy applied a similar calculation for web page caching and concluded that a browser should "cache web pages if there is any chance they will be re-referenced within their lifetime."

Discussed on

πŸ”— Child Labour in Cocoa Production

πŸ”— Africa πŸ”— Africa/Ghana πŸ”— Food and drink πŸ”— Africa/Ivory Coast πŸ”— Africa/French Africa

Child labour is a recurring issue in cocoa production. Cote d’Ivoire (also known in English as Ivory Coast) and Ghana, together produce nearly 60% of the world's cocoa each year. During the 2018/19 cocoa-growing season, research commissioned by the U.S. Department of Labor was conducted by NORC at the University of Chicago in these two countries and found that 1.48Β million children are engaged in hazardous work on cocoa farms including working with sharp tools and agricultural chemicals and carrying heavy loads. That number of children is significant, representing 43 percent of all children living in agricultural households in cocoa growing areas. During the same period cocoa production in Cote d’Ivoire and Ghana increased 62 percent while the prevalence of child labour in cocoa production among all agricultural households increased 14 percentage points. Attention on this subject has focused on West Africa, which collectively supplies 69% of the world's cocoa, and CΓ΄te d'Ivoire, supplying 35%, in particular. The 2016 Global Estimates of Child Labour indicate that one-fifth of all African children are involved in child labour. Nine percent of African children are in hazardous work. It is estimated that more than 1.8Β million children in West Africa are involved in growing cocoa. A 2013–14 survey commissioned by the Department of Labor and conducted by Tulane University found that an estimated 1.4Β million children aged 5 years old to 11 years old worked in agriculture in cocoa-growing areas, while approximately 800,000 of them were engaged in hazardous work, including working with sharp tools and agricultural chemicals and carrying heavy loads. According to the NORC study, methodological differences between the 2018/9 survey and earlier ones, together with errors in the administration of the 2013/4 survey have made it challenging to document changes in the number of children engaged in child labour over theΒ past five years.

A major study of the issue, published in Fortune magazine in the U.S. in March 2016, concluded that approximately 2.1Β million children in West Africa "still do the dangerous and physically taxing work of harvesting cocoa". The report was doubtful as to whether the situation can be improved significantly.

Discussed on

πŸ”— Misra C

πŸ”— Computing πŸ”— Automobiles

MISRA C is a set of software development guidelines for the C programming language developed by The MISRA Consortium. Its aims are to facilitate code safety, security, portability and reliability in the context of embedded systems, specifically those systems programmed in ISO C / C90 / C99.

There is also a set of guidelines for MISRA C++ not covered by this article.

Discussed on

πŸ”— Project West Ford

πŸ”— United States/U.S. Government πŸ”— United States πŸ”— Spaceflight πŸ”— Military history πŸ”— Military history/North American military history πŸ”— Military history/United States military history πŸ”— United States/Military history - U.S. military history πŸ”— Cold War

Project West Ford (also known as Westford Needles and Project Needles) was a test carried out by Massachusetts Institute of Technology's Lincoln Laboratory on behalf of the United States Military in 1961 and 1963 to create an artificial ionosphere above the Earth. This was done to solve a major weakness that had been identified in US military communications.

Discussed on

πŸ”— Ousterhout's Dichotomy

πŸ”— Computing πŸ”— Computer science

Ousterhout's dichotomy is computer scientist John Ousterhout's categorization that high-level programming languages tend to fall into two groups, each with distinct properties and uses: system programming languages and scripting languages – compare programming in the large and programming in the small. This distinction underlies the design of his language Tcl.

System programming languages (or applications languages) usually have the following properties:

  • They are typed statically
  • They support creating complex data structures
  • Programs in them are compiled into machine code
  • Programs in them are meant to operate largely independently of other programs

System programming languages tend to be used for components and applications with large amounts of internal functionality such as operating systems, database servers, and Web browsers. These applications typically employ complex algorithms and data structures and require high performance. Prototypical examples of system programming languages include C and Modula-2.

By contrast, scripting languages (or glue languages) tend to have the following properties:

  • They are typed dynamically
  • They have little or no provision for complex data structures
  • Programs in them (scripts) are interpreted

Scripting languages tend to be used for applications where most of the functionality comes from other programs (often implemented in system programming languages); the scripts are used to glue together other programs or add additional layers of functionality on top of existing programs. Ousterhout claims that scripts tend to be short and are often written by less sophisticated programmers, so execution efficiency is less important than simplicity and ease of interaction with other programs. Common applications for scripting include Web page generation, report generation, graphical user interfaces, and system administration. Prototypical examples of scripting languages include AppleScript, C shell, DOS batch files, and Tcl.

Discussed on

πŸ”— Dihydrogen monoxide hoax

πŸ”— Internet culture πŸ”— Environment πŸ”— Skepticism πŸ”— Chemicals πŸ”— Sociology

The dihydrogen monoxide parody involves calling water by an unfamiliar chemical name, most often "dihydrogen monoxide" (DHMO), and listing some of water's well-known effects in a particularly alarming manner, such as accelerating corrosion and causing suffocation. The parody often calls for dihydrogen monoxide to be banned, regulated, or labeled as dangerous. It demonstrates how a lack of scientific literacy and an exaggerated analysis can lead to misplaced fears.

The parody has been used with other chemical names, including "dihydrogen oxide", "hydroxyl acid", and "hydroxylic acid".

Discussed on

πŸ”— Hashlife

πŸ”— Computer science

Hashlife is a memoized algorithm for computing the long-term fate of a given starting configuration in Conway's Game of Life and related cellular automata, much more quickly than would be possible using alternative algorithms that simulate each time step of each cell of the automaton. The algorithm was first described by Bill Gosper in the early 1980s while he was engaged in research at the Xerox Palo Alto Research Center. Hashlife was originally implemented on Symbolics Lisp machines with the aid of the Flavors extension.

Discussed on

πŸ”— Product Red

πŸ”— Brands πŸ”— Health and fitness πŸ”— AIDS πŸ”— U2

Product Red, stylized as (PRODUCT)RED or (PRODUCT)RED, is a licensed brand by the company Red, stylized as (RED), that seeks to engage the private sector in raising awareness and funds to help eliminate HIV/AIDS in eight African countries, namely Eswatini (formerly Swaziland), Ghana, Kenya, Lesotho, Rwanda, South Africa, Tanzania, and Zambia. It is licensed to partner companies including Apple Inc., Nike, American Express (UK), The Coca-Cola Company, Starbucks, Converse, Electronic Arts, Primark, Head, Buckaroo, Penguin Classics (UK & International), Gap, Armani, FIAT, Hallmark (US), SAP, Beats Electronics, and Supercell. The concept was founded in 2006 by U2 frontman and activist Bono, together with Bobby Shriver of the One Campaign and DATA. The Global Fund to Fight AIDS, Tuberculosis and Malaria is the recipient of Product Red's money.

As part of a new business model, each partner company creates a product with the Product Red logo. In return for the opportunity to increase revenue through the Product Red license, up to 50% of profits gained by each partner is donated to the Global Fund. As Product Red is owned by Red, a portion of the contributions received from the partner brands is assigned as profit. Such an amalgamation of humanitarian aid and for-profit businesses is one example of "ethical consumerism".

In 2012, One Campaign acquired Red as a division of One. Both organizations were co-founded by Bono and Shriver.

Since 2020, Product Red has been used in the global fund to combat the COVID-19 pandemic.

Discussed on

πŸ”— Hyperion (Tree)

πŸ”— California πŸ”— Plants

Hyperion is a coast redwood (Sequoia sempervirens) in California that is the world's tallest known living tree, measured at 116.07 metres (380.8Β ft) tall in 2019.

Hyperion was discovered on AugustΒ 25, 2006, by naturalists Chris Atkins and Michael Taylor. The tree height of 115.55Β m (379.1Β ft) was verified by Stephen Sillett in 2006 using both a laser range finder and a fiberglass tape to measure the tree from the base to the crown. The tree has grown since then to reach 116.07 metres (380.8Β ft) recorded in 2019. Hyperion was found in a remote area of Redwood National Park, inside of the originally designated park boundaries of 1968. The park also houses the second-, fourth- and fifth-tallest known trees, coast redwoods named Helios, Icarus, and Daedalus, which respectively measured 377, 371 and 363 feet in 2022.

The tree was named after the titan Hyperion from Greek mythology.

Hyperion is estimated to be between 600 and 800 years old and contain 530Β m3 (18,600Β cuΒ ft) of wood.

The exact location of Hyperion is nominally secret but is available via internet search. However, in JulyΒ 2022, the Redwood Park superintendent closed the entire area around the tree, citing "devastation of the habitat surrounding Hyperion" caused by visitors. Its base was trampled by the overuse and as a result ferns no longer grow around the tree. Anyone who gets too close could face up to six months in jail and a $5,000 maximum fine.

Discussed on

πŸ”— Michigan Terminal System

πŸ”— Computing πŸ”— Michigan

The Michigan Terminal System (MTS) is one of the first time-sharing computer operating systems. Developed in 1967 at the University of Michigan for use on IBM S/360-67, S/370 and compatible mainframe computers, it was developed and used by a consortium of eight universities in the United States, Canada, and the United Kingdom over a period of 33 years (1967 to 1999).

Discussed on