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
// const voidFn = (...args: unknown[]) => void args | |
const log = console.log /* voidFn */; | |
export async function expensive() { | |
const kv = await Deno.openKv(); | |
const now = `[${performance.now()}]`; | |
const key = ["namespace", "expensive"]; | |
const cache = await kv.get(key); | |
log(`${now} kv.get(${key}) = ${cache.value}`); | |
if (cache.value) { |
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
Crafting Interpreters | |
https://craftinginterpreters.com | |
978-0990582939 | |
Writing An Interpreter In Go | |
https://interpreterbook.com | |
978-3982016115 | |
Engineering: A Compiler (2nd Edition) | |
978-0120884780 |
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
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ | |
/* Document | |
========================================================================== */ | |
/** | |
* 1. Correct the line height in all browsers. | |
* 2. Prevent adjustments of font size after orientation changes in iOS. | |
*/ |
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
JSON | |
= _ v:Value _ { return v } | |
Value | |
= Object | |
/ Number | |
/ StringLiteral | |
/ Array | |
/ Boolean | |
/ Null |