New Articles (Page 49)
To stay up to date you can also follow on Mastodon.
π Ousterhout's Dichotomy
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
- "Ousterhout's Dichotomy" | 2024-11-10 | 12 Upvotes 2 Comments
- "Ousterhout's Dichotomy" | 2015-07-29 | 26 Upvotes 10 Comments
π Wren
Wrens are a family, Troglodytidae, of small brown passerine birds. The family includes 96 species and is divided into 19 genera. All species are restricted to the New World except for the Eurasian wren that is widely distributed in the Old World. In Anglophone regions, the Eurasian wren is commonly known simply as the "wren", as it is the originator of the name. The name wren has been applied to other, unrelated birds, particularly the New Zealand wrens (Acanthisittidae) and the Australian wrens (Maluridae).
Most wrens are visually inconspicuous though they have loud and often complex songs. Exceptions include the relatively large members of the genus Campylorhynchus, which can be quite bold in their behaviour. Wrens have short wings that are barred in most species, and they often hold their tails upright. Wrens are primarily insectivorous, eating insects, spiders and other small invertebrates, but many species also eat vegetable matter and some eat small frogs and lizards.
Discussed on
- "Wren" | 2024-11-09 | 22 Upvotes 1 Comments
π Almost Integer
In recreational mathematics, an almost integer (or near-integer) is any number that is not an integer but is very close to one. Almost integers may be considered interesting when they arise in some context in which they are unexpected.
π War Is a Racket
War Is a Racket is a speech and a 1935 short book by Smedley D. Butler, a retired United States Marine Corps Major General and two-time Medal of Honor recipient. Based on his career military experience, Butler discusses how business interests commercially benefit from warfare. He had been appointed commanding officer of the Gendarmerie during the 1915β1934 United States occupation of Haiti.
After Butler retired from the US Marine Corps in October 1931, he made a nationwide tour in the early 1930s giving his speech "War Is a Racket". The speech was so well received that he wrote a longer version as a short book published in 1935. His work was condensed in Reader's Digest as a book supplement, which helped popularize his message. In an introduction to the Reader's Digest version, Lowell Thomas, who wrote Butlerβs oral autobiography, praised Butler's "moral as well as physical courage".
Discussed on
- "War Is a Racket" | 2024-11-06 | 24 Upvotes 1 Comments
- "War Is a Racket" | 2023-08-01 | 51 Upvotes 19 Comments
π Cyrix 6x86
The Cyrix 6x86 is a line of sixth-generation, 32-bit x86 microprocessors designed and released by Cyrix in 1995. Cyrix, being a fabless company, had the chips manufactured by IBM and SGS-Thomson. The 6x86 was made as a direct competitor to Intel's Pentium microprocessor line, and was pin compatible. During the 6x86's development, the majority of applications (office software as well as games) performed almost entirely integer operations. The designers foresaw that future applications would most likely maintain this instruction focus. So, to optimize the chip's performance for what they believed to be the most likely application of the CPU, the integer execution resources received most of the transistor budget. This would later prove to be a strategic mistake, as the popularity of the P5 Pentium caused many software developers to hand-optimize code in assembly language, to take advantage of the P5 Pentium's tightly pipelined and lower latency FPU. For example, the highly anticipated first-person shooter Quake used highly optimized assembly code designed almost entirely around the P5 Pentium's FPU. As a result, the P5 Pentium significantly outperformed other CPUs in the game.
Discussed on
- "Cyrix 6x86" | 2024-10-30 | 24 Upvotes 5 Comments
π Hessdalen Lights
The Hessdalen lights are unidentified lights which have been observed in a 12-kilometre-long (7.5Β mi) stretch of the Hessdalen valley in rural central Norway periodically since at least the 1930s.
Discussed on
- "Hessdalen Lights" | 2024-10-30 | 23 Upvotes 6 Comments
π Bus Traps (Wikipedia)
A bus trap (car trap in the UK) is a metal grate placed over a ditch or pit in the road with tines (sides) spaced far enough apart that small (shorter axle) vehicles fall between the tines but close enough that larger-diameter-wheeled vehicles, such as buses, may pass. Cycles may cross broader sided examples.
Different versions exist for restricting access. The tines cross the path of the road, not parallel with the road direction. Small-wheeled vehicles bottom out in between the tines, preventing the vehicle from continuing over the obstacle.
Discussed on
- "Bus Traps (Wikipedia)" | 2024-10-30 | 11 Upvotes 2 Comments
π βBush hid the factsβ bug
Bush hid the facts is a common name for a bug present in some versions of Microsoft Windows, which causes text encoded in ASCII to be interpreted as if it were UTF-16LE, resulting in garbled text. When the string "Bush hid the facts", without newline or quotes, was put in a new Notepad document and saved, closed, and reopened, the nonsensical sequence of Chinese characters "ηζ‘³ζ ζ©η ζ¨ζ ζ‘η΄" would appear instead.
While "Bush hid the facts" is the sentence most commonly presented on the Internet to induce the error, the bug can be triggered by many strings with letters and spaces in the same positions, for example "hhhh hhh hhh hhhhh". Other sequences trigger the bug as well, including even the text "a ".
The bug occurs when the string is passed to the Win32 charset detection function IsTextUnicode. IsTextUnicode sees that the bytes match the UTF-16LE encoding of valid (if nonsensical) Chinese Unicode characters, concludes that the text is valid UTF-16LE Chinese and returns true, and the application then incorrectly interprets the text as UTF-16LE.
The bug had existed since IsTextUnicode was introduced with Windows NT 3.5 in 1994, but was not discovered until early 2004. Many text editors and tools exhibit this behavior on Windows because they use IsTextUnicode to determine the encoding of text files. As of Windows Vista, Notepad has been modified to use a different detection algorithm that does not exhibit the bug, but IsTextUnicode remains unchanged in the operating system, so any other tools that use the function are still affected.
Discussed on
- "Bush Hid the Facts" | 2023-07-22 | 12 Upvotes 1 Comments
- "βBush Hid the Factsβ" | 2021-05-15 | 206 Upvotes 33 Comments
- "The "Bush hid the facts" bug" | 2015-12-08 | 139 Upvotes 28 Comments
π Exercise Paradox
The exercise paradox, also known as the workout paradox, refers to the finding that physical activity, while essential for maintaining overall health, does not necessarily lead to significant weight loss or increased calorie expenditure. This paradox challenges the common belief that more exercise equates to more calories burned and consequently, more weight loss.
Discussed on
- "Exercise Paradox" | 2024-10-28 | 54 Upvotes 63 Comments
π Gauge blocks, a system for producing precision lengths
Gauge blocks (also known as gage blocks, Johansson gauges, slip gauges, or Jo blocks) are a system for producing precision lengths. The individual gauge block is a metal or ceramic block that has been precision ground and lapped to a specific thickness. Gauge blocks come in sets of blocks with a range of standard lengths. In use, the blocks are stacked to make up a desired length.
An important feature of gauge blocks is that they can be joined together with very little dimensional uncertainty. The blocks are joined by a sliding process called wringing, which causes their ultra-flat surfaces to cling together. A small number of gauge blocks can be used to create accurate lengths within a wide range. By using 3 blocks at a time taken from a set of 30 blocks, one may create any of the 1000 lengths from 3.000 to 3.999Β mm in 0.001Β mm steps (or .3000 to .3999 inches in 0.0001Β inch steps). Gauge blocks were invented in 1896 by Swedish machinist Carl Edvard Johansson. They are used as a reference for the calibration of measuring equipment used in machine shops, such as micrometers, sine bars, calipers, and dial indicators (when used in an inspection role). Gauge blocks are the main means of length standardization used by industry.
Discussed on
- "Gauge Block" | 2024-10-26 | 17 Upvotes 1 Comments
- "Gauge blocks, a system for producing precision lengths" | 2018-10-24 | 12 Upvotes 3 Comments