You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example script to install ASDF along with some common plugins & their latest versions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Haskell's QuickCheck to property-test C's qsort
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fgrep: a style/expressiveness test for stream libraries
How Would You Write fgrep?
This is a little style and expressiveness test for various stream libraries. It is certainly not a proof of anything, so much as an ability to showcase how some basic features of streams fit together with different libraries.
Problem statement: given a library of streams, implement an API analogous to fgrep, i.e., a literal string grepper.
Specifically, implement a function fgrep(test, filenames[, limit=10]), which takes a source string, a list of filenames, and an optional concurrency limit, and produces a stream of Match records { filename: string, lineNumber: number, line: string }, representing all lines of all files that contain the string test. For each matching record, filename is the name of the file where the match was found, lineNumber is the one-indexed line number where the match was found, and line is the contents of the line where the match was found.
The limit argument indicates the maximum number of concurrent filehandles that should b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The basic problem of maintaining a civilization, according to Tainter, is maintaining a positive energy balance; spending less energy than it consumes. With a negative energy balance, gradually the entire population starves to death. For this reason, all historical human populations have lived on the surface of the Earth, not inside it, because on the surface there is lots of readily available sun energy, and even inefficient ways of harvesting it (such as plants) suffice to support humans. Also, the conditions are relatively mild. The worst problem is that parts of the surface do not have salt water covering them, which is a problem we learned to cope with some hundreds of millions of years ago, with means duch as lungs, eggs, and amniotic sacs. Inside the Earth, all of our necessities must be provided by clever contrivances; not just food, but light, oxygen, low pressure, cool, dry (we have become accustomed to it in the last few hundred million years) , and sanitation.