All pastes #1611918 Raw Edit

bblum

public text v1 · immutable
#1611918 ·published 2009-10-11 08:20 UTC
rendered paste body
04:14:00 < bblum> Zhivago: i'm curious - not trying to belittle you, but genuinely curious - have you ever written kernel code?04:14:46 < Zhivago> bblum: Sure. What does it have to do with C?04:14:56 < Zhivago> carlh is one seriously confused fellow.04:15:05 < bblum> uh, that's the language it's traditionally done in?04:15:10 -!- lacroix [n=lacroix@about/linux/staff/lacroix] has joined ##c04:15:28 < Zhivago> bblum: You seem to be a fellow much inclined to confuse things.04:15:38 < bblum> what am i confusing, please?04:15:53 < Zhivago> bblum: Kernel programming is almost never done in C -- it is usually done in a particular C implementation.04:16:04 < Zhivago> bblum: Don't confuse your implementation with C.04:16:14 < bblum> ah, okay04:16:37 -!- Arimoto [n=Arimoto@unaffiliated/arimoto] has quit [Read error: 104 (Connection reset by peer)]04:16:44 < Zhivago> If you want to talk about a particular implementation then you need to talk about a particular implementation.04:16:55 < bblum> then, may i ask, what good is it to think only in terms of this abstract thing that you have...04:17:11 < Zhivago> bblum: It gets the right answers.04:17:14 < bblum> ...when it is necessary to think about the system-level implementation details in any case in which C is the most appropriate language to be used?04:17:43 < bblum> example challenge: implement malloc-free condition-variables without thinking about the "stack", which in your world doesn't exist04:17:48 < Zhivago> bblum: Which part of "you have to talk about a particular implementation" did not get through your skull?04:17:53 -!- vigith [n=Vigith@122.167.159.243] has joined ##c04:18:00 < Peaker> bblum, standard C is still useful enough to do useful things that are pretty generic and implementation-independent04:18:09 < Zhivago> bblum: What the hell does malloc-free have to do with a stack?04:18:37 < Zhivago> bblum: What are the kinds of storage that C provides?04:18:54 -!- mheld [n=mheld@c-76-119-142-112.hsd1.ma.comcast.net] has quit []04:19:17 < bblum> do you want to just tell me the answer, because i have the hunch that syaing "heap space" and "stack space" are going to be dreadfully wrong04:19:32 < Zhivago> bblum: You're right -- they're dreadfully wrong.04:19:46 < Zhivago> bblum: I'll give you one to start you off -- "register".04:20:00 < Zhivago> bblum: What are the semantics of register storage?