sandrot
sandrot on Hacker News
thank you. I had to change my idle connection timeouts. Eeep!
You're right, thank you for the explanation.
My REPL runs the code in the textarea in an anonymous Async function, which is why top level async works in my examples.
Try using Array.from(arrayish).forEach() to convert the thing that looks like an array to an actual array. For instance, you can't use map() on a NodeList (document.querySelectorAll returns a NodeList), so you have to use Array.from(NodeList) to first convert it to an array.
Thank you, Mark! Super long time.
Posted by
sandrot on Friday May 14, 2021 @03:55AM
from the turriate.com dept.
Hi all, I’m working on an app to help find and delete duplicate or near duplicate photos. I’m building it for my dad to help him consolidate all of the redundant family photos he collects, and I’m trying to do it quickly before he completely runs out of space on iCloud. I hope it’s useful.
It’s been a lot of fun to develop, and finally gave me a chance to try out Mithril.js which is a pretty sweet piece of minimalist software.
Posted by
sandrot on Thursday January 07, 2021 @08:15PM
from the turriate.com dept.
Mataya, thanks for mentioning M1. I haven't heard of it before. What's your referral code?
I wouldn't be surprised if the code was making mistakes - it hasn't had much peer review. I think the percentage calculation may be wrong? We can always fix it if it's broken and resubmit the benchmarks.
Great resource. Looks like I've got a lot of porting to do =). Thanks.
Sorry about that, didn't expect any traffic...ever.
Thanks. Comments would be cool, I'll give it a shot.
Cool, I'll keep that in mind. The site is intended to have user-generated content so if you find the exact thing you'd like to benchmark, use the bench_press gem to test locally, then publish it to share your findings.
Totally agree that benchmarks should be taken with a grain of salt. I was scanning the ruby docs for Array and saw shift(n) so I thought it'd be fun to try it.
I'm pretty ignorant about how the GC affects these benchmarks - I'd like to investigate that further in the future.