Kartik Agaram 2022-07-25 02:44:12 Jason Morris 2022-07-25 02:51:17 No, nothing to do with it. I see they have linked to my blog for credit for the one image.
Jason Morris 2022-07-25 02:54:38 Thanks for pointing it out. Interesting to see what sorts of things get traction.
Vijay Chakravarthy 2022-07-27 00:26:48 I feel like this is a strange way to look at no-code platforms. They seem to have jumped to conclusions on the workings of these kinds of platform based on a few (IMHO not designed for scale and extensibility) exemplars.
Shubhadeep Roychowdhury 2022-07-25 03:27:44 A very nice (longish but enjoyable) read this morning. Performance comparison: counting words in Python, C/C++, Awk, Rust, and more - benhoyt.com/writings/count-words
Jack Rusher 2022-07-25 09:01:25 N.B. the "optimized" awk example is just the normal way to do it in awk. 🙂
I'm pleasantly surprised by the performance of the Java version. OTOH, the Common Lisp implementation looks like it was written by someone who doesn't know very much CL. 🤷♂️
Tony Worm 2022-07-25 19:38:43 that's one of the problem with contrived examples for benchmarks, the implementation quality is disputed, as is the task for comparison
Jack Rusher 2022-07-26 06:48:18 That, and very few real programs spend all their time doing <whatever microbenchmark>.
William Taysom 2022-07-26 08:55:14 For benchmarking this is not a good task. As the kind of thing I write all the time, the start of an interview for fresh grads, it's not so bad. Let's see now.
Hmm, this Ruby smells...
counts = Hash.new(0)
STDIN.each_line { |line| line.downcase.split.each { |w| counts[w] += 1 }}
counts.sort_by { |k,v| -v }.each { |k,v| puts "#{k} #{v}" }
old. A quick round of golf:
STDIN.flat_map{_1.downcase.split}.
tally.sort_by{-_2}.
each{puts _1.join(" ")}
It only goes to show that counting things is a common Rubyism.
Games like this always remind me of the The Evolution of a Haskell Programmer pages.cpsc.ucalgary.ca/~robin/class/449/Evolution.htm.
Christopher Galtenberg 2022-07-30 02:48:54 Christopher Galtenberg 2022-07-30 14:11:09 Yes – why Adjacent Possible is now a coin of the realm
Christopher Galtenberg 2022-07-31 19:44:58