TS transpiles to JS, and then when that JS is executed in Deno, Node.js, a Blink browser like Chrome, etc., it gets just in time compiled to native machine code instead of getting interpreted. Hope that helps.
- 0 Posts
- 9 Comments
The JavaScript code is compiled to native and is heavily optimized, as opposed to being interpreted.
melfie@lemy.lolto Selfhosted@lemmy.world•Using rsync for backups, because it's not shiny and newEnglish52·1 day agoHaving a synced copy elsewhere is not an adequate backup and snapshots are pretty important. I recently had RAM go bad and my most recent backups had corrupt data, but having previous snapshots saved the day.
I had to deal with large JavaScript codebases targeting IE8 back in the day and probably would’ve slapped anyone back then who suggested using JavaScript for everything. I have to say, though, that faster runtimes like v8 and TypeScript have done wonders, and TypeScript nowadays is actually one of my favorite languages.
melfie@lemy.lolto Selfhosted@lemmy.world•Those who are hosting on bare metal: What is stopping you from using Containers or VM's? What are you self hosting?English5·10 days agoI use k3s and enjoy benefits like the following over bare metal:
- Configuration as code where my whole setup is version controlled in git
- Containers and avoiding dependency hell
- Built-in reverse proxy with the Traefik ingress controller. Combined with DNS in my OpenWRT router, all of my self hosted apps can be accessed via appname.lan (e.g., jellyfin.lan, forgejo.lan)
- Declarative network policies with Calico, mainly to make sure nothing phones home
- Managing secrets securely in git with Bitnami Sealed Secrets
- Liveness probes that automatically “turn it off and on again” when something goes wrong
These are just some of the benefits just for one server. Add more and the benefits increase.
Edit:
Sorry, I realize this post is asking why go bare metal, not why k3s and containers are great. 😬
melfie@lemy.lolto Programmer Humor@programming.dev•ThePrimeTime reviews Zuck's AI glasses demo8·13 days agoShow your support for surveillance capitalism and get yourself a face-mounted camera and microphone.
I currently use rclone to do encrypted backups to iDrive e2 currently, but I’m concerned about the concept of “syncing isn’t a backup”, since as others have already said here, you can sync corrupted files, accidental deletions, etc. without more than a single snapshot. I’m considering something like Backrest with e2 because I like the idea of something that is opinionated and that “just works” when it comes to backups.
Edit:
Fair point that it may stop being maintained, though that could also be the case with rclone; less likely though still possible with rsync.
melfie@lemy.lolto Selfhosted@lemmy.world•Someone finally made a "Sonarr for YouTube"English3·21 days agoIt’s based on yt-dlp, which I can’t seem to get working reliably with my VPN, even with manual intervention like using cookies from a browser, switching servers, etc. Guess VPN IPs hit the rate limits pretty regularly, though I don’t want to risk my real IP getting banned. I’ve seen some people suggest using a VPS, but sounds like a lot of effort. Running something like this on a server and expecting it to reliably download videos in the background isn’t going to work that well from my experience.
Don’t understand the downvotes. This is the type of lesson people have learned from losing data and no sense in learning it the hard way yourself.