Re:Why isn’t new technology making us more productive?
by amelius on Tuesday May 24, 2022 @07:10PM
(#31498624)
And the "async programming" that is advocated everywhere is still the same as Windows 3.1 cooperative multitasking, just with better branding.
[ Parent
| on HN ]
Re:Why isn’t new technology making us more productive?
by rowanG077 on Tuesday May 24, 2022 @07:44PM
(#31498889)
Depends on what you mean by async programming. If you literally mean async and await as available in Haskell, Rust, C#, JS, Python etc. Then no that's definitely not the same thing as windows 3.1's cooperative multitasking.
Re:Why isn’t new technology making us more productive?
by amelius on Tuesday May 24, 2022 @07:58PM
(#31498991)
The async and await is just syntactic sugar that makes you more addicted to it.
Re:Why isn’t new technology making us more productive?
by rowanG077 on Tuesday May 24, 2022 @08:09PM
(#31499077)
The syntactic sugar is the entire point. If you don't have it it just sucks as a technology.
Re:Why isn’t new technology making us more productive?
by wruza on Tuesday May 24, 2022 @08:45PM
(#31499338)
Sometimes green threads require no syntactic featutes at all, e.g. Lua coroutines. You yield() through the stack and resume() back when “done”.
local data = readfile("file1”)
writefile("file2", data)
The above example may have async/await-ed two times without any sugar. I believe that’s exactly what coop-mt code would look like (but at the lower level, because of hw stack instead of heap-based), Tbf I never did that in windows 3.x, do I miss something?
Re:Why isn’t new technology making us more productive?
by UncleMeat on Wednesday May 25, 2022 @08:29AM
(#31503564)
And structured programming is just sugar over GOTOs.
Polymorphism is just sugar over type inspection and branching.
Recursion-free function calls are just sugar over variable renaming and text movement.
Re:Why isn’t new technology making us more productive?
by amelius on Wednesday May 25, 2022 @11:58AM
(#31506386)
Correct, but that misses the point, which is that async programming is NOT sugar over the more powerful approach of preemptive multitasking (introduced in Windows sometime after version 3.1).