nbb

Chris McCormick 2023-10-17T13:29:38.296419Z

PSA you can run nbb on your Android phone/tablet via termux (can't remember if I've posted this before, sorry if I have!).

🆒 2
🎉 1
borkdude 2023-10-17T13:31:58.106489Z

nice :) how long does it take to run time nbb -e nil?

borkdude 2023-10-17T13:32:10.863779Z

I think bb might also work via the linux-aarch64 binary

borkdude 2023-10-17T13:38:49.405039Z

to cut out npx startup time, try time ./node_modules/.bin/nbb -e nil

👍 1
Chris McCormick 2023-10-17T13:40:15.107659Z

getting a strange error i can't quite make sense of

Chris McCormick 2023-10-17T13:40:22.298639Z

will take me a minute to get this from my phone

Chris McCormick 2023-10-17T13:41:09.941309Z

never mind i was running the time command from inside an nbb repl i started earlier facepalm

borkdude 2023-10-17T13:41:37.217569Z

no worries

borkdude 2023-10-17T13:41:46.362679Z

just wanted to know if this is slower or faster than on my machine ;)

borkdude 2023-10-17T13:41:51.831219Z

probably slower, but still curious

Chris McCormick 2023-10-17T13:42:04.048779Z

0.769s

borkdude 2023-10-17T13:42:07.076039Z

on my m1 it takes about 100ms

borkdude 2023-10-17T13:42:09.371939Z

gotcha

Chris McCormick 2023-10-17T13:42:17.139629Z

let me get a screenshot

Chris McCormick 2023-10-17T13:42:31.241549Z

this is a fairly old samsung phone (s10e)

Chris McCormick 2023-10-17T13:44:06.587569Z

Chris McCormick 2023-10-17T13:45:10.777749Z

what is cool about this is you can set up scripts to run at boot with termux, and also widgets that trigger scripts when you tap on their icon on the homescreen. you can do stuff like check sms, send sms, take a photo, etc. if you have the package termux-api installed. very nice to be able to script this stuff using nbb.

borkdude 2023-10-17T13:45:45.991149Z

nice :)

Chris McCormick 2023-10-17T13:45:56.349679Z

i might set up a little phone termux "server" that i can send sms'es to. a fun one is termux-tts-speak which i was showing my son earlier to much hilarity. 😁

borkdude 2023-10-17T13:46:08.950239Z

yeah, you can run the nrepl server maybe ;)

👀 1
Chris McCormick 2023-10-17T13:46:25.563739Z

oh cool yes i'll try that tomorrow