Better HN
topnewbestaskshowjobs
Log inSign up

sandrot

7 karma · joined May 29, 2010 (16y ago) · 22 submissions

5818d7
Submissions

comment 3y ago · link · parent

https://turriate.com

comment 5y ago · link · parent

Very cool!

comment 5y ago · link · parent

thank you. I had to change my idle connection timeouts. Eeep!

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Thank you, Mark! Super long time.

7.

Modern JavaScript: Everything you missed over the last 10 years(turriate.com ↗)

3 points · by sandrot · 5y ago · discuss

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

- My first Godot game, which isn‘t downloadable yet but lots of fun to work on. https://sandrot.itch.io/starboard

- Sound Bath iOS app for ambient relaxing sounds. https://apps.apple.com/us/app/id1534808677

- Bread Book iOS app for saving recipes that use baker percentages. https://apps.apple.com/us/app/bread-book/id1519534917

- capybara-chrome is a Capybara driver for headless Chrome using the remote debugging protocol. Works pretty well but could use some TLC. https://github.com/sandro/capybara-chrome

- Rewriting my website using a 2 file architecture: 1) Go (web) executable and 2) SQLite db. All html pages and assets are stored in the database. https://turriate.com/articles/my-own-static-site-generator

10.

Advanced Gmail search to help you organize your inbox(turriate.com ↗)

1 points · by sandrot · 5y ago · discuss

comment 8y ago · link · parent

Mataya, thanks for mentioning M1. I haven't heard of it before. What's your referral code?

comment 9y ago · link · parent

just going to leave this here: http://stopwritingramblingcommitmessages.com

comment 16y ago · link · parent

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.

comment 16y ago · link · parent

Great resource. Looks like I've got a lot of porting to do =). Thanks.

comment 16y ago · link · parent

Sorry about that, didn't expect any traffic...ever.

comment 16y ago · link · parent

Top of my list!

comment 16y ago · link · parent

Thanks. Comments would be cool, I'll give it a shot.

comment 16y ago · link · parent

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.

comment 16y ago · link · parent

Looks like there can be a more significant difference after 100,000 repetitions: http://rubybenchmark.com/reports/13. In general, the program is pretty dumb and my math isn't that great. Accepting patches: http://github.com/sandro/bench_press

comment 16y ago · link · parent

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.