PyPy is ruddy fast. So is Hy.
Time of fib(9), using a simple recursive implementation.
data:text/html,<pre contenteditable><script>document.body.firstChild.focus()</script> |
// For Mike. | |
Bocoup.utils.template = (function($) { | |
// Request a template from the server. Returns a Deferred object. | |
function fn(key) { | |
return $.Deferred(function(dfd) { | |
if (key in fn.cache) { | |
dfd.resolve(fn.cache[key]); | |
} else { | |
$.getScript(fn.url + key, function() { |
// Require libraries | |
var os = require("os"); | |
var fs = require("fs"); | |
var readline = require("readline"); | |
var cluster = require("cluster"); | |
var express = require("express"); | |
var site = express(); | |
// Var up, bro | |
var i, read; |
PyPy is ruddy fast. So is Hy.
Time of fib(9), using a simple recursive implementation.
This section describes the conventions used here to describe type signatures.
A [T]
is an array-like value (only ever used read-only in this API), i.e., one with an integer length
and whose indexed properties from 0 to length - 1
are of type T
.
A type T?
should be read as T | undefined
-- that is, an optional value that may be undefined
.
Goal: excellent Mustache support in nanoc
Need alternatives for:
<%= item[:blah] %>
→ {{ item:blah }}
<%= item.path %>
→ {{ item.path }}
<%= layout[:blah] %>
→ {{ layout:blah }}
<%= config[:blah] %>
→ {{ config:blah }}
<%= some_helper(…) %>
→ ???<% some_helper(…) do %>…<% end %>
→ ???all: synchronizer | |
# | |
synchronizer: | |
synchronizer lib/index.js > dist/out.js | |
@@make test | |
# R.js includes the `baseUrl` in the module normalization which incorrectly | |
# contextualizes it to the wrong location. | |
# |