Feature | C++11/14 | Rust | Swift3 | Go |
---|---|---|---|---|
Memory Management | Manual (In convection, Use Smart Pointer) | Manual (But, compiler checks correctness.) | ARC(Automatic Reference Counting) | Garbage Collection |
Platform | Many | Windows, Linux, OS X | OSX, Ubuntu | Windows, Linux, OS X, FreeBSD, Plan 9 |
Implementations | GCC, Clang, MSVC, ... | www.rust-lang.org | https://swift.org | https://golang.org |
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
#include <iostream> | |
template <unsigned N> | |
struct IsPrime { | |
static_assert(N >= 2, "The number must not be less than 2."); | |
IsPrime() = delete; | |
static bool value() { return static_cast<bool>(_value); } | |
private: |
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
Strong Scalability | |
--------------------- | |
Efficiency = c. (always) | |
c : constant. | |
* n, p can't affect efficiency in strong scalability. | |
Weak Scalablility | |
------------------------ |
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
OSI Layer | |
7 nfs | |
6 xdr | |
5 rpc | |
4 udp | |
... | |
stateful | |
stateless |
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
find . -regextype posix-egrep -regex ".*\.(py|sh|proto)$" -not -path "./src/dist_system/protocol/pb/*" | xargs wc -l | awk '{s+=$1} END {print s}' |
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
idempotent REQ = self-contained REQ (Request containes the state itself.) | |
At least Once RPC Call Semantic needs idempotent REQ. |
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
transient : TCP | |
- connection | |
persistent : scalability good |
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
CUDA ILP -> by compiler? or by hardware? | |
CUDA -> in-order? or out-of-order? | |
Occupancy = # of active warps / # of max resident warps | |
Occupancy is determined from block size, register usage per a thread, shared memory usage per a thread. | |
shared memory usage per a thread = shared memory usage in a block / block size. | |
# of blocks >= # of SMs is good. | |
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
#include <iostream> | |
#include <atomic> | |
#include <cstddef> | |
#include <limits> | |
#include <cstdint> | |
using namespace std; | |
class BaseIndexD32 | |
{ |
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
: ' | |
Sogang University. | |
Embedded Computer Architecture Class. | |
2016. | |
Helpful Bash Script HOMEWORK #3 | |
Made by taeguk (http://taeguk.me). | |
' | |
##### Problem 1 |