Understanding PHP Tuples and Ruby Tuple Space
Hello, it's me, the incompetent one.
Actually, I've already managed to set up Gitea on GCP, but it's become a terrible, incomprehensible situation where I'm charged for access from Russia and China, so I'm thinking of a workaround: connecting to a domestic VPS via VPN with WireGuard and performing a reverse proxy with Nginx. This way, only the IP address of the domestic VPS would be visible from GCP.
However, even creating the WireGuard conf file every time has become a hassle, so I'm in a situation where I want to automate this with a bash shell script.
What exactly is a tuple in the first place?
I didn't understand it either, so I asked a friend from the math department.
ruby 3.3 Reference Manual Library List rinda/rinda library library rinda/rinda
A 3-tuple from 1 to 10 is like (1,1,1) to (1,1,2) to (1,1,10) to (1,2,1)~~(10,10,9) to (10,10,10). The concept is simple, only the terminology is difficult.
And what appears later, a tuple space, seems to refer to a collection of tuples.
PHP Tuples
This Qiita article is very easy to understand.
PHP's list() is a feature for tuple unpacking
After that, browsing the official PHP manual makes it easier to grasp.
list - Manual
What is distributed processing using Ruby tuples?
Introducing Rinda, the God-tier Ruby library for distributed processing
Honestly, everything is written above, so I don't want to write anything extra, but I understand that Rinda is an incredibly powerful library whose usability extends to other programs, allowing easy implementation of general-purpose inter-process communication.
In fact, there are several ways to execute shell scripts in Ruby, and the ability to write them very simply is a significant advantage. I feel it's superior and easier to understand than Python in this regard.
I'll try something with it soon.