| 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 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
| hpx::future<std::uint64_t> fibonacci(std::uint64_t n, std::string prefix) | |
| { | |
| if (n < 2) return hpx::make_ready_future(n); | |
| if (n < threshold) return hpx::make_ready_future(fibonacci_serial(n)); | |
| auto new_prefix = prefix + "->" + std::to_string(n); | |
| std::cout << "[Debug] " << new_prefix << std::endl; | |
| hpx::future<std::uint64_t> lhs_future = hpx::async(&fibonacci, n-1, new_prefix); | |
| hpx::future<std::uint64_t> rhs_future = fibonacci(n - 2, new_prefix); |
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
| Process Context : context of kernel flow through system call of user process | |
| Interrupt Context : context of kernel flow through interrupt by I/O devices. | |
| Kernel Control Flow | |
| - Process Context (by system call) | |
| - Interrupt Context (by interrupt) | |
| kmalloc GFP_KERNEL | |
| sleep | |
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
| : ' | |
| Sogang University. | |
| Embedded Computer Architecture Class. | |
| 2016. | |
| Helpful Bash Script HOMEWORK #3 | |
| Made by taeguk (http://taeguk.me). | |
| ' | |
| ##### Problem 1 |
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
| #include <iostream> | |
| #include <atomic> | |
| #include <cstddef> | |
| #include <limits> | |
| #include <cstdint> | |
| using namespace std; | |
| class BaseIndexD32 | |
| { |
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
| 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 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
| transient : TCP | |
| - connection | |
| persistent : scalability good |
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
| idempotent REQ = self-contained REQ (Request containes the state itself.) | |
| At least Once RPC Call Semantic needs idempotent REQ. |
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
| find . -regextype posix-egrep -regex ".*\.(py|sh|proto)$" -not -path "./src/dist_system/protocol/pb/*" | xargs wc -l | awk '{s+=$1} END {print s}' |