744 karma · joined January 14, 2008
There's also a commonly noted "unnecessary use of cat" where people do this:
cat file.txt | grep foo
instead of this: <file.txt grep.foo
but that's not relevant to bat (which can be used unnecessarily in the same way).I'll note that if there are primitive arrays and the compiler optimizes arithmetic, the rest of the hash table can be implemented in Bel.
Also, maybe a Sufficiently Smart Compiler could prove that a list's cdrs will never change, store it in cdr-coded form, and treat it like an array (with the ability to zoom right to, say, element 74087 without chasing a bunch of pointers).
The “stair-steps” you see in your DAW when you zoom up on a digital waveform only exist inside the computer. [...] When digital audio is played back in the Real World, the reconstruction filter doesn’t reproduce those stair-steps – and the audio becomes truly analogue again.
I don't like them at all but I do most of my Netflixing on my iPhone, where it doesn't happen.
(When I do go to the Netflix site in a web browser I sometimes temporarily use "Mute site" which is a pretty crazy thing for a site for watching movies to make you want to do!)
https://www.rootusers.com/gzip-vs-bzip2-vs-xz-performance-co...
Nelson asked: What is the smallest number of colors that you’d need to color any such graph, even one formed by linking an infinite number of vertices?
The Wikipedia page describes the infinite-vertices version of this graph as
an infinite graph with all points of the plane as vertices and with an edge between two vertices if and only if the distance between the two points is 1.
This of course is impossible to draw but Wikipedia shows seven-vertex and ten-vertex subgraphs of it:
https://en.wikipedia.org/wiki/Hadwiger%E2%80%93Nelson_proble...
tidy -xml -indent -wrap 0
or tidy -xml -indent -wrap 0 -quietA lot of people format quotes with italics, as in this example:
https://news.ycombinator.com/item?id=7485333
HN formatting documentation:
"Arika Okrent guessed in her book In the Land of Invented Languages that there might be 20–30 fluent [Klingon] speakers."[1]
"In 2009 Lu Wunsch-Rolshoven used 2001 year census data from Hungary and Lithuania as a base for an estimate, resulting in approximately 160,000 to 300,000 to speak [Esperanto] actively or fluently throughout the world, with about 80,000 to 150,000 of these being in the European Union."[2]
In fact, Klingon has fewer total speakers than Esperanto has native speakers:
"As of 1996, there were 350 or so attested cases of families with native Esperanto speakers. Estimates from associations indicate that there are currently around 1,000 Esperanto-speaking families, involving perhaps 2,000 children. In all known cases, speakers are natively bilingual, or multilingual, raised in both Esperanto and either the local national language or the native language of their parents."[3]
(Also Esperanto is much easier than Klingon, has much more material to read, and is spoken by a wider variety of people than just science fiction fans, though there are plenty of those too.)
[1]: https://en.wikipedia.org/wiki/Klingon_language#Speakers
[2]: https://en.wikipedia.org/wiki/Esperanto#Number_of_speakers
[3]: https://en.wikipedia.org/wiki/Native_Esperanto_speakers
EDIT: The "160,000 to 300,000" quote was from an older version of the Wikipedia page (I based this comment on an old comment of mine). The current version has various estimates, including Lindstedt's ballpark figures of "10,000 speak it fluently" and "100,000 can use it actively".
Lua 5.0 made just one loop variable per loop, like Go apparently does. When I first ran into this behavior, I thought that, although it wasn't what I expected, it made at least as much sense as what I was expecting. Since then, every single time I've been in a situation where the two ways of doing it gave different results, I've wanted the "separate variable for each iteration" behavior, so I was glad when Lua's creators changed loop variables to work like this in Lua 5.1.
(Before this change I would just do the Lua equivalent of your "Creates a new `i`" line.)
(Still impressive, though, and I expect the uncanny valley to be bridged within the next five, maybe ten years.)
If only the known MP3 patents filed by December 1992 are considered, then MP3 decoding has been patent-free in the US since 22 September 2015 [...] If the longest-running patent mentioned in the aforementioned references is taken as a measure, then the MP3 technology became patent-free in the United States on 16 April 2017 [...].
https://en.wikipedia.org/wiki/MP3#Licensing.2C_ownership_and...
Wikipedia also says (unless I'm missing something) that all the MP3 patents have already expired everywhere else too. If this is true, then Fraunhofer is ending their licensing program just because they don't want to bother getting people to pay for something they can now legally have for free.
Now it does!
define appleL $00 ; screen location of apple, low byte
(Looks like the feature was added in November 2014.)https://en.wikipedia.org/wiki/Home_computer#Notable_home_com...
EDIT: I owned a Commodore 64 and a TRS-80 in the eighties, and used an Apple IIe at school. These were all programmable in Basic, and although the C64 was clearly the most powerful, they were all similar in power compared to, say, an Amiga.
For instance, look at the border between the upper left and lower left islands. In this picture, those two islands are only touching along a third of the border that they share on the sphere. If you look at the leftmost point of where they are touching in this picture, that's a vertex that would have only two hexagons.
https://en.wikipedia.org/wiki/Texas_Instruments_TI-99/4A#Fir...
http://www.pagetable.com/?p=647
http://www.pagetable.com/?p=656
From the second article:
It worked by transferring the "live" GCR-encoded data from the 1541's disk head to the C64 and simultaneously doing a fast checksum. Part of the checksumming was done on the 1541, part was done on the C64. There simply weren't enough cycles left on either side! Most of the transfer happened asynchronously by adjusting for the slightly different CPU frequencies and with only a minimum number of handshakes. This meant meticulous cycle counting and use of some odd tricks.
Quotes from the Python 3 documentation:
Bytes literals are always prefixed with 'b' or 'B'; they produce an instance of the bytes type instead of the str type.
class bytes([source[, encoding[, errors]]])
Return a new “bytes” object, which is an immutable sequence of integers in the range 0 <= x < 256. bytes is an immutable version of bytearray – it has the same non-mutating methods and the same indexing and slicing behavior.
https://docs.python.org/3/library/functions.html#bytes
https://docs.python.org/3/reference/lexical_analysis.html#st...