- Scalability := linear increase in performance
- Scalability <= conflict-free memory access
- aka "accesses disjoint memory (on a disjoint-access-parallel architecture)"
- Memory is shared state
- Cache coherence
- 50 open() calls in the time it takes to read a contended cache line
- OS as bottleneck
- OS primitives (files, processes/threads/signals, sockets) used by applications
- Linux scaling process
- Scalable interfaces
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
array of pointer to int: []*int | |
pointer to array of int: *[]int | |
array of 3 pointers to int: [3]*int | |
function from int to int: int->int | |
pointer to |
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
#!/usr/bin/python | |
import math | |
MAX_N = int(10e9) | |
max_prime = int(math.sqrt(MAX_N)) + 1 | |
is_prime = [1]*(max_prime) | |
is_prime[0] = 0 | |
is_prime[1] = 0 |
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
http://www.liquidweb.com/kb/how-to-install-oracle-java-8-on-ubuntu-14-04-lts/ |
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
{ | |
"translated": "I've lost the right ever again to think of what love can be or what it means.", | |
"swrScore": 3118, | |
"original": "J'ai perdu le droit d'imaginer ce que peut être l'amour.", | |
"context": { | |
"translated": [ | |
"I found out that only swine should travel with swine.\n", | |
"You're talking to the man you love.\n", | |
"It makes me sick to even hear you say the word.\n", | |
"I've lost the right ever again to think of what love can be or what it means.\n", |
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
{ | |
"translated": "Dan, dan, wait.", | |
"swrScore": 4675, | |
"original": "Dan, Dan, attendez.", | |
"context": { | |
"translated": [ | |
"No, you don't.\n", | |
"It's my turn now.\n", | |
"Well, you got away with it that time, but i know what you look like, and it won't happen again.\n", | |
"Dan, dan, wait.\n", |
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
/tmp/hhvm/hphp/runtime/vm/debug/elfwriter.cpp: In member function ‘bool HPHP::Debug::ElfWriter::initDwarfProducer()’: | |
/tmp/hhvm/hphp/runtime/vm/debug/elfwriter.cpp:129:11: error: invalid conversion from ‘int (*)(char*, int, Dwarf_Unsigned, Dwarf_Unsigned, Dwarf_Unsigned, Dwarf_Unsigned, Dwarf_Unsigned*, Dwarf_Ptr, int*) {aka int (*)(char*, int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int*, void*, int*)}’ to ‘Dwarf_Callback_Func {aka int (*)(char*, int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, int*, int*)}’ [-fpermissive] | |
&error); | |
^ | |
/tmp/hhvm/hphp/runtime/vm/debug/elfwriter.cpp:129:11: error: invalid conversion from ‘Dwarf_Ptr {aka void*}’ to ‘Dwarf_Error_s**’ [-fpermissive] | |
/tmp/hhvm/hphp/runtime/vm/debug/elfwriter.cpp:129:11: error: too many arguments to function ‘Dwarf_P_Debug_s* dwarf_producer_init(Dwarf_Unsigned, Dwarf_Callback_Func, Dwarf_Handler, Dwarf_Ptr, Dw |
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
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react-with-addons.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.6/react-dom.js"></script> | |
</head> | |
<body> | |
<div id="container"></div> | |
<script type="text/babel"> | |
var App = React.createClass({ |
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
http://arxiv.org/pdf/1512.02595v1.pdf | |
http://lowrank.net/nikos/pubs/empirical.pdf | |
https://medium.com/rants-on-machine-learning/the-unreasonable-effectiveness-of-random-forests-f33c3ce28883#.93ly6r372 | |
http://www.aclweb.org/anthology/P13-1045 | |
http://cui.unige.ch/~hendersj/papers/henderson_iwpt00.pdf | |
https://www.youtube.com/watch?v=nDD2XLAT3DE | |
https://www.youtube.com/watch?v=HlTFfo-iDQo | |
https://www.youtube.com/watch?v=nsagQtD2jHU | |
http://cs231n.github.io/ | |
http://web.stanford.edu/class/cs224u/ |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | Cmd+C | copy current line (if no selection) |
Ctrl+X | Cmd+X | cut current line (if no selection) |
Ctrl+⇧+K | Ctrl+Shift+K | delete line |
Ctrl+↩ | Cmd+Enter | insert line after |