3 ms·
"Colorless" is probably referring to the thing in Rust where functions are "Colored" for async or sync execution I can tell you as a non-Ruby, non-web dev what
by 01HNNWZ0MV43FF 2y ago
"Colorless" is probably referring to the thing in Rust where functions are "Colored" for async or sync execution
I can tell you as a non-Ruby, non-web dev what the Ruby mindshare feels like to me:
- I hear that Ruby is slow
- The syntax looks odd
- I know Ruby on Rails was very popular at some point but I think it's been displaced almost entirely by C# and Node.js
- I have no intention of learning Ruby. If I was going to invest in learning web tools, and Rust was not an option, I'd prefer TypeScript first, Python second, and something else third
- IshKebab 2y agoIt's not a Rust thing. It's any language with a async/await. IIRC the original article was about JavaScript.
- ctz 2y agoThe underlying concept is applicable to lots of things, really. For example, the functions that are unsafe and safe to call from a POSIX signal handler can be treated as a function colouring problem.
- williamcotton 2y agoHere's three different ways to write a small shell script that turns letters into uppercase: Node: let inputData = ''; process.stdin.on('data', chunk => inputData += chunk ); process.stdin.on('end', () => console.log(inputData.toUpperCase()) ); Python: import sys sys.stdout.write( sys.stdin.read().upper() ) Ruby: puts $stdin.read.upcase
- racketprogram 2y agoconsole.log(require('fs').readFileSync(0).toString().toLowerCase())