RSSAmplifier

Blog

Ash's Blog

Articles from Ash's Blog

ash.failRSS feed ↗7 posts

Latest posts

My favorite way to safely handle C structs in Zig

# What’s FFI and/or C interoperability Before the real blogpost starts, we should get to know what FFI is and why it is important, and what better example to use than (bear with me for a second) machine learning Python libraries. Have you ever wondered why majority AI applications are written in Python? It is definitely easy to use, but the world’s slowest mainstream language might…

How lazy loading works in Neovim

# What’s lazy loading? Lazy loading is postponing the loading/initialization of modules until they are required. If we have a plugin for a specific programming language, we don’t need to use it until we edit a file in said language, so we don’t run it immediately at startup, but wait until we encounter a specific filetype. If you are someone who only recently started using Neovim…

Caching promises in JavaScript

# Reasoning Let’s assume we have an async function that is somewhat expensive and takes a considerable amount of time to execute. We probably want to cache its result. If we used Redis for example, it might look something like this: 1 2 3 4 5 6 7 8 9 10 11 async function getContent ( key ) { return await redis . get ( key ). then ( async ( v ) => { if ( v ) { return v ; } else { const…

Actually good distro recommendations for beginners

# Why write this in the first place? The Linux ecosystem is confusing and to an outsider the number of choices is overwhelming. Thankfully there is Google and hundreds of “Top 10 Linux Distros” articles that were probably created by an LLM or someone who underwent lobotomy. I have yet to see an article that actually contains useful information instead of throwing buzzwords around. This…

Using Vim with the Colemak Mod-DH layout

If you are here just for the destination without the journey, I created a plugin, that you can find here ↗ . If you are like me, you like efficiency, and when it comes to text editors Vim is one of the most efficient there is. Why? Vim motions. Vim makes it stupidly easy to move around once you get used to it. You move left, down, right and up via hjkl, you can jump a word forward using w,…

Daily driving a smartphone without screen

Last year my phone’s screen broke in a way, that made it register inputs even if nothing was touching it. Any reasonable person would simply get a new phone, but I am not reasonable and also didn’t have any spare cash back then. So here is a short post about how I used my phone without a screen for around a month. 0. the phone during boot # Making it somewhat usable The screen…

Linux user's review of iOS

As someone who mostly uses their phone for texting, calls and other necessities, I do not need the latest and greatest from the world of smartphones. Besides, in my opinion spending more than 200 euros on a phone is a waste of money. Since I also like my privacy and am fond of open source software, it is safe to say, I would have never bought any Apple product myself, but after my Redmi Note 7 had…