- CPU・レジスタ・キャッシュ・メモリ
- メモリレイアウト
- スタックポインタとプログラムカウンタ
- スタックとヒープ
- 実メモリと仮想メモリ
- 値型と参照型
- コンテキストスイッチ
- スレッド
番外
(define fizzbuzz | |
(lambda (i n) | |
(cond | |
((> i n) ()) | |
((and (eq? 0 (modulo i 3)) (eq? 0 (modulo i 5))) (cons 'FizzBuzz (fizzbuzz (+ 1 i) n))) | |
((eq? 0 (modulo i 3)) (cons 'Fizz (fizzbuzz (+ 1 i) n))) | |
((eq? 0 (modulo i 5)) (cons 'Buzz (fizzbuzz (+ 1 i) n))) | |
(else (cons i (fizzbuzz (+ 1 i) n)))))) | |
(fizzbuzz 1 100) |
(define range | |
(lambda (start count) | |
(cond | |
((<= count 0) '()) | |
(else (cons start (range (+ start 1) (- count 1))))))) | |
(define map | |
(lambda (f l) | |
(cond | |
((null? l) '()) |
(define (range s c) | |
(cond | |
((<= c 0) '()) | |
(else (cons s (range (+ s 1) (- c 1)))))) | |
(define (map f l) | |
(cond | |
((null? l) '()) | |
(else (cons (f (car l)) (map f (cdr l)))))) |
(use srfi-1) | |
(define (fz n) | |
(cond | |
((= 0 (mod n 15)) 'FizzBuzz) | |
((= 0 (mod n 3)) 'Fizz) | |
((= 0 (mod n 5)) 'Buzz) | |
(else n))) | |
(define (fizzbuzz n) |
番外
digraph graph_name { | |
graph [ | |
charset = "UTF-8"; | |
label = "sample graph", | |
labelloc = "t", | |
labeljust = "c", | |
bgcolor = "#343434", | |
fontcolor = white, | |
fontsize = 18, | |
style = "filled", |
/// <summary> | |
/// Conversion routines for Google, TMS, and Microsoft Quadtree tile representations, derived from | |
/// http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/ | |
/// </summary> | |
public class WebMercator | |
{ | |
private const int TileSize = 256; | |
private const int EarthRadius = 6378137; | |
private const double InitialResolution = 2 * Math.PI * EarthRadius / TileSize; | |
private const double OriginShift = 2 * Math.PI * EarthRadius / 2; |