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
Make Ubuntu packages 90% faster by rebuilding them
Make Ubuntu packages 90% faster by rebuilding them
TL;DR
You can take the same source code package that Ubuntu uses to build jq, compile it again, and realize 90% better performance.
Setting
I use jq for processing GeoJSON files and other open data offered in JSON format. Today I am working with a 500MB GeoJSON file that contains the Alameda County Assessor's parcel map. I want to run a query that prints the city for every parcel worth more than a threshold amount. The program is
A small tutorial on regex using the DOI format as example.
Simple Regex Tutorial - DOI Edition
The DOI, or Digital Object Identifier, is a unique string created according to a standardised scheme, which can be assigned to any object and subsequently used to identify or track it. The adjective 'digital' here qualifies 'identifier', not 'object' - one could theoretically pin a DOI on absolutely anything: digital, physical or ephemeral - but in practice the ambiguity resolves itself, as DOIs depend on digital search for much of their usefulness. Most people are likely to encounter DOIs as references to academic journal articles, but over the years they have been assigned to quite a few interesting entities; for example, the NASA Planetary Systems Table, a regularly-updated collection containing the parameters of known exoplanets and their stars, bears the DOI of 10.26133/NEA12.
Given their ubiquity, it's useful to be able to validate DOIs using regular expressions, which in turn makes them a useful starting point for a basic regex tutorial.
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
Optimizing matrix multiple example, side trial: use a flat byte vector to represent the matrix
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
Optimizing matrix multiple example, step 2: remove unnecessary set!
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
^G (F1) Display this help text
^X (F2) Close the current file buffer / Exit from nano
^O (F3) Write the current file to disk
^J (F4) Justify the current paragraph
^R (F5) Insert another file into the current one
CoffeeScript Javascript Fast Inverse Square with Typed Arrays
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