News for hackers. Stuff that matters.
Re:Interview with Ryan Dahl, Creator of Node.js by ngrilly on Friday September 01, 2017 @03:04AM (#15146700)
I'd suspect NGPT was abandoned because they couldn't use growing stacks while staying compatible with C calling convention (but I wasn't able to find any confirmation of this by googling). Go doesn't have this issue because it uses another calling convention.
Re:Interview with Ryan Dahl, Creator of Node.js by pcwalton on Friday September 01, 2017 @03:17AM (#15146741)
Stack growth is orthogonal to the M:N vs. 1:1 distinction. You can have large stacks with M:N or small stacks with 1:1.
Re:Interview with Ryan Dahl, Creator of Node.js by ngrilly on Friday September 01, 2017 @05:16AM (#15147115)
Are you saying we could use a 1:1 threading model with growing stacks (by growing stack I mean a stack that starts for example at 2 KB and is grown as needed)?
Re:Interview with Ryan Dahl, Creator of Node.js by pcwalton on Friday September 01, 2017 @12:31PM (#15149985)
Sure. There are syscalls that allow a great deal of customization as to stack placement.
Re:Interview with Ryan Dahl, Creator of Node.js by ngrilly on Friday September 01, 2017 @01:15PM (#15150415)
Thanks. I didn't know about that. What is the cost of context switching compared to userspace threading?