OS for programming
1
Name:
Anonymous
2011-01-20 14:04
I'm not professional, high skilled programmer with ten years of experience. I used to code in pascal (fuck year, baby) when i was young boy, now i'm focused on cpp - for me it's a tool to learn algorithms. On M$ Windows i had to do 4 things-
1. Find a nice IDE
2. Install
3. Code
4. Push F9 to compile
I don't play any games, security is very important for me so I decided to change my OS to Debian. Which IDE should I use?
37
Name:
Anonymous
2011-03-28 15:20
╭─────────────────────────────────────────╮
│ (define fibs │
│ (lambda (n) │
│ (let loop ((i 0) (a 0) (b 1) │
│ (r (quote ()))) ├─┐
│ (if (> i n) (reverse r) │ │
│ (loop (+ i 1) b │ │
│ (+ a b) (cons a r)))))) │ │
╰─────────────────────────────────────────╯ │
┌────────────────────────────────────────┘
▼
╔══════╗ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓
║ read ╟──► ┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂──►┃ ● ┃ ╱ ┃
╚══════╝ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛
│ │ │
▼ ▼ │
┏━━━━━━━━┓ ┏━━━━━━┓ │
┃ define ┃ ┃ fibs ┃ │
┗━━━━━━━━┛ ┗━━━━━━┛ │
┌─────────────────────────────┘
▼
┏━━━┳━━━┓ ┏━━━┳━━━┓
┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂──┐
┗━┿━┻━━━┛ ┗━┿━┻━━━┛ │
│ ┌────┼────────┘
▼ │ ▼
┏━━━━━━━━┓ │ ┏━━━┳━━━┓
┃ lambda ┃ │ ┃ ● ┃ ╱ ┃
┗━━━━━━━━┛ │ ┗━┿━┻━━━┛
┌───────────┘ │
▼ ▼
┏━━━┳━━━┓ ┏━━━┓
┃ ● ┃ ●─╂┐ ┃ n ┃
┗━┿━┻━━━┛│ ┗━━━┛
│ │ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓
▼ └►┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂─┐
┏━━━━━┓ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ │
┃ let ┃ │ │ │ │ │
┗━━━━━┛ ▼ │ ▼ ▼ │
┏━━━━━━┓ ┌─────┘ ┏━━━━┓ ┏━━━┳━━━┓ │ ┏━━━┳━━━┓ ┏━━━┳━━━┓
┃ loop ┃ │ ┏━━━┓ ┃ if ┃ ┃ ● ┃ ●─╂─┼►┃ ● ┃ ●─╂──►┃ ● ┃ ╱ ┃
┗━━━━━━┛ │ ┃ > ┃◄┐ ┗━━━━┛ ┗━┿━┻━━━┛ │ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛
┌─────────────────┘ ┗━━━┛ └──────────────────┘ │ └───────┐ └─────┐
▼ ┌───────────────────────────────────────────────┘ │ ▼
┏━━━┳━━━┓ │ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ │ ┏━━━┓ ┏━━━┓
┃ ● ┃ ●─╂─┼►┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂──►┃ ● ┃ ╱ ┃ ┌►┃ ● ┃ ●─╂──►┃ ● ┃ ╱ ┃ └►┃ i ┃ ┃ n ┃
┗━┿━┻━━━┛ │ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ │ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━━━┛ ┗━━━┛
│ │ │ │ │ │ │ ┌─────┘
▼ │ └───────┐ └───────┐ └───────┘ ▼ ▼
┏━━━┳━━━┓ │ ┏━━━┳━━━┓ │ ┏━━━┳━━━┓ │ ┏━━━┳━━━┓ ┏━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓
┃ ● ┃ ●─╂─┼►┃ ● ┃ ╱ ┃ └►┃ ● ┃ ●─╂─┼►┃ ● ┃ ╱ ┃ ┃ r ┃ ┃ ● ┃ ●─╂──►┃ ● ┃ ╱ ┃
┗━┿━┻━━━┛ │ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ │ ┗━┿━┻━━━┛ ┗━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛
│ ┌─┼───┼───────────┼───────┘ │ │ │
38
Name:
Anonymous
2011-03-28 15:20
▼ │ │ ▼ ▼ ▼ ▼ ▼
┏━━━┓ │ │ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏━━━━━━━┓ ┏━━━┓
┃ i ┃ │ │ ┃ 0 ┃ ┃ a ┃ ┃ 0 ┃ ┃ quote ┃ ┃ ╱ ┃
┗━━━┛ │ │ ┗━━━┛ ┗━━━┛ ┗━━━┛ ┗━━━━━━━┛ ┗━━━┛
┌─────┘ └────────────────┐
▼ ▼
┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓
┃ ● ┃ ●─╂──►┃ ● ┃ ╱ ┃ ┃ ● ┃ ●─╂───►┃ ● ┃ ╱ ┃
┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛
│ │ ┌──────┘ │
▼ ▼ ▼ │
┏━━━┓ ┏━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ │
┃ b ┃ ┃ 1 ┃ ┃ ● ┃ ●─╂──►┃ ● ┃ ╱ ┃ │
┗━━━┛ ┗━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ │
┌───────────────┼───────────┼───────┘
▼ ▼ ▼
┏━━━┳━━━┓ ┏━━━━━━━━━┓ ┏━━━┓
┃ ● ┃ ●─╂┐ ┃ reverse ┃ ┃ r ┃
┗━┿━┻━━━┛│ ┗━━━━━━━━━┛ ┗━━━┛
│ │
▼ ▼
┏━━━━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓
┃ loop ┃ ┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂─────────┐
┗━━━━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┏━━━┓ │
┌────────┘ └────────►┃ b ┃ │
▼ ┗━━━┛ │
┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┌────┘
┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂──►┃ ● ┃ ╱ ┃ │
┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ │
│ ┌─────┼───────────┼───────┘
▼ │ ▼ ▼
┏━━━┓ │ ┏━━━┓ ┏━━━┓
┃ + ┃ │ ┃ i ┃ ┃ 1 ┃
┗━━━┛ │ ┗━━━┛ ┗━━━┛
┌─────┘
▼
┏━━━┳━━━┓ ┏━━━┳━━━┓
┃ ● ┃ ●─╂──►┃ ● ┃ ╱ ┠─────┐
┗━┿━┻━━━┛ ┗━┿━┻━━━┛ │
│ ┏━━━┳━━━┓ │ ┏━━━┳━━━┓ │ ┏━━━┳━━━┓
└►┃ ● ┃ ●─╂─┼►┃ ● ┃ ●─╂─┼►┃ ● ┃ ╱ ┃
┗━┿━┻━━━┛ │ ┗━┿━┻━━━┛ │ ┗━┿━┻━━━┛
│ │ │ │ │
▼ │ ▼ │ ▼
┏━━━┓ │ ┏━━━┓ │ ┏━━━┓
┃ + ┃ │ ┃ a ┃ │ ┃ b ┃
┗━━━┛ │ ┗━━━┛ │ ┗━━━┛
┌───────────┘ ┌───┘
▼ │
┏━━━┳━━━┓ ┏━━━┳━━━┓ │ ┏━━━┳━━━┓
┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂─┼►┃ ● ┃ ╱ ┃
┗━┿━┻━━━┛ ┗━┿━┻━━━┛ │ ┗━┿━┻━━━┛
│ │ │ │
▼ ▼ │ ▼
┏━━━━━━┓ ┏━━━┓ │ ┏━━━┓
┃ cons ┃ ┃ a ┃ │ ┃ r ┃
┗━━━━━━┛ ┗━━━┛ ┌───┘ ┗━━━┛
┌────────────┘
▼
╔══════╗
║ eval ║
╚═════╤╝
▲ ┃
┃ ▼
╔╧══════╗
║ apply ║
╚═══╤═══╝
┌─────┘
│ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓
└─►┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂──►┃ ● ┃ ●─╂─┐
┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ │
┌───┼───────────┼───────────┼───────────┼───────────┼───────────┼───────┘
│ ▼ ▼ ▼ ▼ ▼ ▼
│ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏━━━┓ ┏━━━┓
│ ┃ 0 ┃ ┃ 1 ┃ ┃ 1 ┃ ┃ 2 ┃ ┃ 3 ┃ ┃ 5 ┃
│ ┗━━━┛ ┗━━━┛ ┗━━━┛ ┗━━━┛ ┗━━━┛ ┗━━━┛
│ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓ ┏━━━┳━━━┓
└►┃ ● ┃ ●─╂───►┃ ● ┃ ●─╂───►┃ ● ┃ ●─╂───►┃ ● ┃ ●─╂───►┃ ● ┃ ●─╂───►┃ ● ┃ ╱ ┃
┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛ ┗━┿━┻━━━┛
│ │ │ │ │ │
▼ ▼ ▼ ▼ ▼ ▼
┏━━━┓ ┏━━━━┓ ┏━━━━┓ ┏━━━━┓ ┏━━━━┓ ┏━━━━┓
┃ 8 ┃ ┃ 13 ┃ ┃ 21 ┃ ┃ 34 ┃ ┃ 55 ┃ ┃ 89 ┃
┗━━━┛ ┗━━━━┛ ┗━━━━┛ ┗━━━━┛ ┗━━━━┛ ┗━━━━┛
Newer Posts