I fixed the error we were facing though, but the caption code we got from ChatGPT gave us a 429 error (rate-limited, ouch).
Concerning the server, one of the biggest issues was in the `handleSummary` function. I forgot to end the incoming request from Telegram. After sending a message to the Telegram API using Axios, I didn’t call `res.end("ok")`. That caused Telegram to keep hitting our webhook repeatedly, flooding the local server. 💀
Another problem was with parse_mode. I had it set to "text", but that’s not valid. Setting it to "Markdown" works though.
Was reading a book on compilers & interpreters and asked Copilot how Node.js works on the server since it uses JIT.
Turns out, Node relies entirely on the V8 engine, which first interprets your JS, then JIT-compiles the parts that run often (like your request handler). So even though it’s not ahead-of-time compiled, you still get crazy speed where it matters. This is probably also why it's faster than CPython.
Example: your handleRequest() function gets hit thousands of times? V8 spots that and compiles it to native code. Boom, optimized.
Also found out you can see what’s being JIT’d with: node --trace-opt --trace-deopt yourApp.js
Might make a quick vid breaking this down. It’s pretty sick how V8 does live tuning mid-server run.
Check Out this Video, I use the AI for my thumbnails! First people to click the creator's affiliate link, get the premium version of the tool for a dollar. It costs $40! (I got the offer btw :)
Watch Jalla Code
Hello everyone. Thank you all for 50 Subs! Crazy! Next up, the big 100!
4 months ago | [YT] | 3
View 0 replies
Watch Jalla Code
Last night I decided to shake off some Rust—literally.
I built Cliano, a minimal command-line piano app in Rust. It maps WAV files to keypresses and plays them live in the terminal using only code, no GUI.
This was a fun challenge to stay sharp with Rust and remind myself why I started programming in the first place.
I even played “Mary Had a Little Lamb” using only terminal keypresses. Here’s a short demo I recorded of it:
https://youtu.be/Fppt16VJ108
A full YT video recap on how I built it is coming soon. Stay tuned.
Code is up on GitHub: github.com/Parado-xy/cliano
#WatchJallaCode #RustLang #BuildInPublic
6 months ago | [YT] | 1
View 0 replies
Watch Jalla Code
Ok, so… we didn’t finish everything today 😅
I fixed the error we were facing though, but the caption code we got from ChatGPT gave us a 429 error (rate-limited, ouch).
Concerning the server, one of the biggest issues was in the `handleSummary` function. I forgot to end the incoming request from Telegram. After sending a message to the Telegram API using Axios, I didn’t call `res.end("ok")`. That caused Telegram to keep hitting our webhook repeatedly, flooding the local server. 💀
Another problem was with parse_mode. I had it set to "text", but that’s not valid. Setting it to "Markdown" works though.
Anyway, I’ve pushed the updated code to GitHub if you want to check it out or follow along:
🔗 github.com/Parado-xy/buildingATelegramBotLive
Till next time!
If you’re enjoying the series, drop a like and subscribe to grow along with me.
6 months ago | [YT] | 0
View 0 replies
Watch Jalla Code
You all should definitely watch this.
6 months ago | [YT] | 1
View 0 replies
Watch Jalla Code
Was reading a book on compilers & interpreters and asked Copilot how Node.js works on the server since it uses JIT.
Turns out, Node relies entirely on the V8 engine, which first interprets your JS, then JIT-compiles the parts that run often (like your request handler). So even though it’s not ahead-of-time compiled, you still get crazy speed where it matters. This is probably also why it's faster than CPython.
Example: your handleRequest() function gets hit thousands of times? V8 spots that and compiles it to native code. Boom, optimized.
Also found out you can see what’s being JIT’d with:
node --trace-opt --trace-deopt yourApp.js
Might make a quick vid breaking this down. It’s pretty sick how V8 does live tuning mid-server run.
#nodejs #javascript #v8 #jit #devlogs #codingthoughts
6 months ago (edited) | [YT] | 4
View 1 reply
Watch Jalla Code
Day 4 of the go series is out!
https://youtu.be/7FytX0Vf6Zk
6 months ago | [YT] | 5
View 0 replies
Watch Jalla Code
Day 3 of the go series is out!
https://youtu.be/8xjWf8UZ2Nk
6 months ago | [YT] | 8
View 0 replies
Watch Jalla Code
Check Out this Video, I use the AI for my thumbnails! First people to click the creator's affiliate link, get the premium version of the tool for a dollar. It costs $40!
(I got the offer btw :)
#ai #thumbnail #free @Dankieft
6 months ago (edited) | [YT] | 2
View 0 replies