アンドレイさんが来日する予定なので、東京滞在に合わせてイベントを開催する。
Elmでのグラフィック表現をテーマとして扱う。
アンドレイさんの東京滞在最終日に合わせて開催する。(8日朝に東京を離れるとのこと)
Elm以外のコミュニティの人にも来てもらえるようにしたい。
"use strict"; | |
// -- stdlib -- | |
var pure = a=>_=>a // pure :: a -> IO a | |
var bind = m=>f=>_=>f(m())() // bind :: IO a -> (a -> IO b) -> IO b | |
var exec = m=>m() // exec :: IO a -> a | |
var wrap = f=>a=>_=>f(a) // wrap :: (a -> b) -> (a -> IO b) | |
var put = wrap(console.log.bind(console)) // put :: a -> IO () | |
var get = wrap(url=>{ // get :: string -> IO string | |
var xhr = new XMLHttpRequest() |
defmodule TypeSpecs do | |
def for_module(module) do | |
{:ok, {^module, [{:abstract_code, {:raw_abstract_v1, attributes}}]}} = | |
module |> :code.which |> :beam_lib.chunks([:abstract_code]) | |
attributes | |
|> Enum.filter_map(fn | |
{:attribute, _, :spec, _function_and_types} -> true | |
_attribute -> false | |
end, fn {:attribute, _, :spec, function_and_types} -> | |
function_and_types |
2023-10-04
@voluntas
2023.2
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.
I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real