Skip to content

Instantly share code, notes, and snippets.

究極のガベージコレクション

https://groups.google.com/forum/message/raw?msg=comp.lang.ada/E9bNCvDQ12k/1tezW24ZxdAJ

この人が、あるミサイル制御装置の組み込みプログラムをコンサルティングしていたときのこと。 明らかにメモリリークしそうな箇所が多数あるのを見て、統括責任者に問い合わせたところ 「そりゃもちろんリークするさ」との返事。この制御プログラムはある一定時間までしか 走らないことが保証されているので、彼らはそこから逆算してリークしても大丈夫なだけのメモリを確保しておき、 あとはプログラマが手を下す必要のない「究極のガベージコレクション」にまかせた、という話。

@euske
euske / death-of-optimizing-compiler.md
Last active June 3, 2020 04:19
「最適化コンパイラの死・抄訳」 (Death of Optimizing Compiler) Daniel J. Bernstein
@euske
euske / there-are-no-small-changes.md
Created June 3, 2020 04:16
「ささいな仕様変更なんてものはない」 "There are no small changes" by Des Traynor

ささいな仕様変更なんてものはない (There are no small changes)

Des Traynor

https://blog.intercom.com/there-are-no-small-changes/

「...この製品レビューを書き込む欄の文字列を140字に制限したいんだ。 なぜならある時点で通信手段としてSMSを使わせるかもしれないから。 こんな仕様変更は簡単だよね?」

@euske
euske / bashrc_minimum.sh
Last active June 11, 2020 04:15
Bare minimum bashrc (no external dependency)
# -*- shell-script -*-
##
## Minimum .bashrc for euske
##
# Do nothing if not interactive.
[[ -z "$PS1" ]] && return
# Shell options.
IGNOREEOF=10
@euske
euske / c_pointer_exercises.c
Created June 19, 2020 03:27
C Pointer Exercises for Beginners
/*
C Pointer Exercises for Beginners
by Yusuke Shinyama
*/
#include <stdio.h>
int main(int argc, char **argv)
{
struct foo {
@euske
euske / dategen.html
Last active May 19, 2022 01:07
Date Generator
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>日程表生成君</title>
<script>
function split(v) {
return v.split(",").map(x => x.trim());
}
@euske
euske / fiverules.md
Last active April 28, 2023 04:29
Rob Pikeのプログラミング五原則

Rob Pike のプログラミング五原則:

http://users.ece.utexas.edu/~adnan/pike.html

原則1. プログラムのボトルネックはしばしば思いもかけない場所に現れ、あらかじめ予測することはできない。なので証拠もなしに高速化しようとしないこと。

原則2. 計測せよ。計測せずに高速化してはならない。

原則3. 複雑なアルゴリズムは普通定数部が大きく、nが小さいときには役に立たない。nが十分に大きいと確信できるまで複雑なアルゴリズムは使わないこと。(その場合も、原則2を適用すること)

原則4. 複雑なアルゴリズムは単純なものよりも実装しにくくバグも入りやすい。単純なアルゴリズムとデータ構造を使うこと。

@euske
euske / are-you-an-expert.md
Last active January 27, 2022 10:14
Japanese Translation of "Are You An Expert?" by Jeff Atwood

あなたは専門家か? (Are You An Expert?)

(Original article: https://blog.codinghorror.com/are-you-an-expert/ )

ぼくは権威というものが嫌いらしい。 まず自分自身の過去から始めよう。

ぼくは、人々からアマチュア仲間としてではなく、 何らかの専門家や権威だとみなされることがひどく嫌いである。

@euske
euske / how-to-write-static-source-code-analyzer.md
Created August 20, 2020 02:14
How to Write Static Source Code Analyzer (WIP)

How to Write Static Source Code Analyzer

(WIP)

0. Introduction

We're trying to provide a general framework for constructing a static source code analyzer.

Pros of Source Code Analysis

@euske
euske / goals.md
Last active September 4, 2020 11:14
Notes: My Research Goals

My Research Goals (Loooong time)

Yusuke Shinyama

Code is Law (Lawrence Lessig). Code is not just machinery that governs our modern life, but it also represents our value system. Making the code accountable its behavior is crucial to a functioning democracy.

  • Help ordinary people understand complex software systems.
  • To reduce software-related accidents.