- Distributed systems = Computers + relativity
- Different machines have different clocks, perception of time, and views of the state of the system
- Challenges: Communication failures, hardware failures, latency, bandwidth
- All computer systems today are distributed at some level (nature obeys relativity after all), the extent to which this nature is exposed depends on the loads put upon the system.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
This file contains 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
{ | |
"metadata": { | |
"name": "Untitled0" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains 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
from collections import defaultdict | |
from math import sqrt | |
import httplib2 | |
import json | |
import re | |
import threadpool | |
import threading | |
from PIL import Image,ImageDraw | |
ACCESS_TOKEN = "..." |
This file contains 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
var matrix = {} | |
matrix.new = function (n) { | |
var a = new Array(n); | |
for (var i = 0; i < n; i++) a[i] = new Float64Array(n); | |
return a; | |
} | |
matrix.T = function (a, n) { | |
var y = matrix.new(n) |
This file contains 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
#!/usr/bin/env ruby | |
# | |
# This script is a wrapper around pandoc that uses pandoc's | |
# builtin citeproc support to generate a markdown bibliography | |
# from bibtex. | |
# | |
# Inspired by Jacob Barney's [bib2mkd][] script. | |
# | |
# [bib2mkd]: http://jmbarney.dyndns.org/?/linux/bib2mkd/ | |
# |
This file contains 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
license: gpl-3.0 | |
border: no | |
scrolling: no | |
height: 500 |
This file contains 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
var vm = require('vm'), | |
Contextify = require('contextify'), | |
code = 'var square = n * n;', | |
fn = new Function('n', code), | |
script = vm.createScript(code); | |
n = 5; | |
benchmark = function(title, funk) { | |
var end, i, start, spins = 10000; |
This file contains 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
## 'Hello world!' in x86_64 AT&T gas assembly in OS X. | |
## To assemble $> as -arch x86_64 example3-helloworld.s -o example3-helloworld.o | |
## To link: $> ld -arch x86_64 example3-helloworld.o -e _main -o example3-helloworld -lSystem | |
.section __TEXT,__text | |
.macosx_version_min 10, 12 | |
.globl _main | |
_main: | |
movq $0x2000004, %rax # write (system call $4 with $0x2000000 offset) | |
movq $1, %rdi # write to stdout (fid 1) | |
leaq L_.str(%rip), %rsi # set the register address of the start of the string |
OlderNewer