775 karma · joined September 17, 2014
sort an array of all 16777216 image positions (x,y) randomly
loop the positions array and for each position:
read the pixel color at the position as a reference
sample N random colors from the available colors list
for each sample calculate the hypotenuse from the reference color Math.hypot(R - r, G - g, B - b).
find the nearst color, use it for that position in the output image update the list of avalible colors (for practicality in chunks)
M&A transactions can get pretty complicated for exactly these reasons; frequently, they disassemble the entire set of assets for sale and divvy them up across one or more buyers, who will pick and choose what they want and then reconstitute whatever they have purchased to their desired degree.
Also, do you prefer a specific version of Fortran, or is the latest one fine?
I also found this extremely brief archived article about their setup, running LinuxONE on IBM Z mainframe(s?): https://www.businesslive.co.za/bd/companies/financial-servic...
Finally, Wikipedia links this article with mostly pictures: https://mybroadband.co.za/news/cloud-hosting/283199-bank-zer...
In our current system, every bank or bank-like institution does fractional reserve banking. The systemic risk posed by a narrow bank or a full reserve bank is that during any potential banking crisis, there is a strong prisoner's dilemma style incentive for depositors to "defect" by withdrawing all of their money from normal banks and moving it to narrow or full reserve banks all of a sudden. This is broadly why regulators won't let you run one.
Now, to answer your core question AIUI: "what stops me from running a full reserve bank [equiavalent]?"
In theory, you could offer a secure storage service like safety deposit boxes etc and not be subject to finance regulatory controls. In fact, most cities do have businesses that offer secure storage facilities that you can rent space in to store your property and retrieve it as needed. This is perfectly legal and honestly such a business doesn't usually know or even need to know the contents of such storage lockers etc.
The problem comes when you want to integrate with the larger financial system. Finance regs are far reaching in a "viral" sort of way; they don't just restrict how you do business, they also typically restrict whom you can do what business with based on how and what kind of business they do. The result of this is that you end up under the purview and subject to the approval of regulators one way or another, at which point they disallow your business.
As a simple example, if you want to make it so your customers can easily send or receive money, you'll probably want to be able to process ACH and wire transactions, at which point you fall under extensive regulation administered primarily by the Treasury and the Federal Reserve. I imagine the same will be true for things like debit cards on the standard networks since they're already subject to regulation of a viral nature and so on and so on.
AIUI regulators do not allow this due to systemic risk: https://www.bloomberg.com/opinion/articles/2019-03-08/the-fe...
This process integrates both (pretty difficult to do for various physical process reasons) which allows you to combine the CMOS for things like power control and logic alongside the BJTs for extremely high speed analog circuitry.