Blog: 2025-02-16

From razwiki
Revision as of 13:45, 16 February 2025 by Razzi (talk | contribs)
Jump to navigation Jump to search

ok so there is a

luarocks install --local

Then you get the path modification with

luarocks path

Still to read: https://leafo.net/posts/itchio-and-coroutines.html

and also can look in to https://moonscript.org/ but I think fennel will work better

Actually lots of guides here https://leafo.net/guides.html

kinda like my website :)

---

Cool aerospikedb infinite loop without busy spinning

https://github.com/aerospike/aerospike-server/blob/d6aef6451375cbab0d2f4f7ea979b6b05265e9c3/as/src/base/as.c#L202

	//--------------------------------------------
	// Startup is done. This thread will now wait
	// quietly for a shutdown signal.
	//

	// Stop this thread from finishing. Intentionally deadlocking on a mutex is
	// a remarkably efficient way to do this.
	pthread_mutex_lock(&g_main_deadlock);
	g_startup_complete = true;
	pthread_mutex_lock(&g_main_deadlock);