Skip to content

Instantly share code, notes, and snippets.

View jwmerrill's full-sized avatar

Jason Merrill jwmerrill

View GitHub Profile
GC(T+97773.6) Reason: TOO_MUCH_MALLOC, Total Time: 16.9ms, Zones Collected: 1, Total Zones: 30, Total Compartments: 417, Minor GCs: 2, Store Buffer Overflows: 0, MMU (20ms): 15%, MMU (50ms): 66%, SCC Sweep Total: 0.3ms, SCC Sweep Max Pause: 0.3ms, Nonincremental Reason: malloc bytes trigger, Allocated: 178MB, +Chunks: 0, -Chunks: 0
Totals:
The connection to http://jsbin.com/piyeye/1?0.44316687606709093 was interrupted while the page was loading. spike.js:232:0
GC(T+97775.4) Reason: TOO_MUCH_MALLOC, Total Time: 26.6ms, Zones Collected: 1, Total Zones: 32, Total Compartments: 420, Minor GCs: 3, Store Buffer Overflows: 0, MMU (20ms): 0%, MMU (50ms): 46%, SCC Sweep Total: 0.5ms, SCC Sweep Max Pause: 0.5ms, Nonincremental Reason: malloc bytes trigger, Allocated: 179MB, +Chunks: 0, -Chunks: 0
Totals:
GC(T+97777.0) Max Pause: 37.6ms, Total Time: 309.2ms, Zones Collected: 32, Total Zones: 32, Total Compartments: 420, Minor GCs: 25, Store Buffer Overflows: 0, MMU (20ms): 0%, MMU (50ms): 16%, SCC Sweep Total:
@jwmerrill
jwmerrill / DigitSets.jl
Created October 21, 2015 22:52
Efficient representation of a set of digits 1-9
# Represent a set of digits 1-9 as an Int16, where the binary digits of the
# integer form a mask determining whether the associated digit is present in
# the set
immutable DigitSet
d::Int16
end
function DigitSet(a::AbstractArray)
d = Int16(0)
for n in a
@jwmerrill
jwmerrill / reinterpret
Created November 9, 2015 17:19
Float int cast native code
julia> function fn(x1::Float64, x2::Float64)
x1_int = reinterpret(UInt64, x1)
x2_int = reinterpret(UInt64, x2)
reinterpret(Float64, (x1_int + x2_int) >> 1)
end
fn (generic function with 1 method)
julia> @code_native fn(3.0, 4.0)
.section __TEXT,__text,regular,pure_instructions
Filename: none
@jwmerrill
jwmerrill / resizable-yogi.elm
Last active May 6, 2016 21:46
Updated version of Elm's resizable yogi
import Html exposing (..)
import Html.App as Html
import Html.Attributes exposing (..)
import Html.Events exposing (..)
import Mouse
main =
Html.program
{ init = (Model 200, Cmd.none)
, view = view
@jwmerrill
jwmerrill / preview.md
Last active December 2, 2016 02:31
Desmos API v0.8 release preview

As part of our scheduled release cycle, version 0.8 of the Desmos API will be released as the new stable version this month. It is currently available for preview, and this is a great time to check out the new features that will become available. We'd love to hear your feedback.

In version 0.8, we are introducing three major new capabilities to the API, all designed to make the calculator more accessible to more users:

  1. The calculator is now accessible to screen readers, and has been updated to comply with the WCAG 2.0 accessibility standard. When a screen reader is active, math expressions are read aloud as you navigate and edit them, and plotted curves can be played as audio or have the coordina