- Von Neumann Model (Stored program + Sequential instruction) as opposed to dataflow
- Algorithm
- ISA
- Moore's law
- What is comp arch
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
const Go = (function(){ | |
let Go = function(...fns){ | |
//secure this | |
let instance = this; | |
// constructor | |
let task = new Promise(resolve => resolve()); |
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
const acceptable_type = function(variable) :boolean { | |
const type = typeof variable; | |
return (type === "string" || type === "symbol" || type === "number"); | |
}; | |
export default class Noty { | |
private _note = {}; | |
note (name : string|symbol|number, content : any = true, ...more_contents) : Noty { |
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
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.youtube.com/* | |
// @icon https://www.google.com/s2/favicons?domain=youtube.com | |
// @grant none | |
// ==/UserScript== |
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
// Pedagogical Impl of std::sync::mpsc::channel | |
// Crust of Rust: Channels, Gjenset 2020 | |
// https://www.youtube.com/watch?v=b4mS5UPHh20 | |
use std::sync::{Arc, Condvar, Mutex}; | |
use std::collections::VecDeque; | |
// Channel flavours: | |
// - Synchronous channels (Bounded channels): send() can block. Bounded capacity. | |
// - Mutex + Condvar + VecDeque |