Show HN: Sparser – A Multilanguage Parser

Show HN: Sparser – A Multilanguage Parser

This is my attempt at creating a universal language parser. It attempts to solve a couple of problems:

* Recursively extend support to languages embedded within other languages

This is a personal project so any feedback would be helpful. Something interesting I found after I built it is that this parser is not as fast to write output as many other JavaScript parsers, but its output is much faster to read from due to the simplicity and predictability of the format.

Source: news.ycombinator.com

How Exercise Affects Our Memory

How Exercise Affects Our Memory

A single, moderate workout may immediately change how our brains function and how well we recognize common names and similar information, according to a promising new study of exercise, memory and aging. The study adds to growing evidence that exercise can have rapid effects on brain function and also that these effects could accumulate and lead to long-term improvements in how our brains operate and we remember. Similarly, in people, studies show that regular exercise over time increases the volume of the hippocampus, a key part of the brain’s memory networks.

Source: www.nytimes.com

Legit: Git Commands as an Esoteric Programming Language

Legit: Git Commands as an Esoteric Programming Language

Presenting:

Programs written in legit are defined entirely by the graph of commits in a Git repository. You can find implementations of legit, as well as some example programs, on GitHub: The entry in the Esolang wiki is at each legit program, two data structures are available: A stack, and a brainfuck-like endless tape, with a head moving on it. For both, you’ll need Ruby, and the “rugged” Gem:

The compiler compiles a legit program to LLVM IR.

Source: morr.cc

The hiring spreadsheet and the clash at The Markup

The hiring spreadsheet and the clash at The Markup

Reading through the description of events given by Angwin and Sue Gardner, her erstwhile co-founder and CEO, there is a consistent theme: the yawning cultural chasm between the business side and the editorial side of The Markup. As I wrote a few days ago, Gardner created a spreadsheet that ranked potential employees on various criteria—including everything from their views of tech companies to their social status, as she perceived it: she guessed at candidates’ class, tallied their awards, and quantified whether they were “justice seeking.” Angwin says she believed—based in part on the spreadsheet—that Gardner and fellow co-founder Jeff Larson wanted to change The Markup into an anti-tech advocacy group instead of a fact-based reporting project.

Source: www.cjr.org

How Doom Fire Was Done

How Doom Fire Was Done

How DOOM fire was done

The Game Engine Black Book: DOOM features a whole chapter about DOOM console ports and the challenges they encountered. The fire effect is a vibrant testimony to a time when judiciously picked palette colors combined with a simple trick were the only way to get things done. The framebuffer is initialized full black (with zeros) with a single line of white pixels at the bottom (36) which will be the “source” of the fire.

Source: fabiensanglard.net

Spelunking in the Turing Tarpit: Expedition Through an Esoteric Landscape

Spelunking in the Turing Tarpit: Expedition Through an Esoteric Landscape

Along this path some parsers were written in at least 3 frameworks, a semi-working compiler or two in a few languages, some interpreters of varrying levels of finish, and a lot of bugs. But this is not all, a bunch of computer nerds deploy these machines in all manner of nooks and crannies across the computing landscape to demonstrate just how rich in computation we are nowadays. I then searched a bit less casually and asked around on the esolang IRC but the replies focused on implementing an interpreter and not programming the tag system.

Source: calabi-yau.space

Typing in Yiddish

Typing in Yiddish

Published in 1929 by Tobias Jonas, the manual was created to fill the gap for the many people for whom touch-typing in Yiddish would be an important skill. By the time Jonas’ manual appeared, Remington and Underwood Yiddish typewriters had been on the market for decades, as had machines produced by lesser-known companies like Blickensderfer and Hammond, among others. Jonas’ manual and original typescripts of Yiddish writers, as well as a working vintage Yiddish typewriter, are part of a new exhibit at the YIVO Institute in New York, Rise of the Yiddish Machines.

Source: www.tabletmag.com

The natural history of song – a human universal

The natural history of song – a human universal

A new preprint uses the Human Area Relation Files (an ethnographic database) to statistically analyze patterns in songs across many societies, A natural history of song:

What is universal about music across human societies, and what varies? The ethnographic corpus reveals that music appears in every society observed; that variation in musical behavior is well characterized by three dimensions, which capture the formality, arousal, and religiosity of song events; that musical behavior varies more within societies than across societies on these dimensions; and that music is regularly associated with behavioral contexts such as infant care, healing, dance, and love. The discography, analyzed through four representations (machine summaries, listener ratings, expert annotations, expert transcriptions), revealed that identifiable acoustic features of songs predict their primary behavioral function worldwide, and that these features fall along two dimensions, melodic and rhythmic complexity.

Source: www.gnxp.com

Unraveling the JPEG

Unraveling the JPEG

When you open a JPEG image on your computer, something (the browser, your operating system, or something else) has to decode the bytes to recover the original image as a list of colors that can then be displayed. By opening an image in a text editor, you’ve confused the computer, in the same way you confuse your brain when you rub your eyes too hard and start to see blotches of dimness and color! It’s almost a simple list of colors, where each byte changes exactly one pixel, and yet it’s already almost twice as small as the uncompressed image (which would be around 300 kb for this smaller size).

Source: parametric.press