06-02-2024, 08:14 AM
I was browsing the old forums, and found this tidbit here from Galleon: https://qb64forum.alephc.xyz/index.php?t...#msg132131
Quote:Calling multiple QB64 subs/functions in parallel without a lot of changes to the compiler is not going to work.
Have a look at what ...\internal\temp\main.txt looks like after compiling this simple program...
Code: (Select All)You will see a lot of extra code and the beginning and end of a function called FUNC_ADDNUMS.
c = addnums(5, 6)
FUNCTION addnums (a, b)
addnums = a + b
END FUNCTION
That code is working with a range of global variables and if two SUBs/FUNCTIONs were called at the same time it's going to be very bad.
If you really need that extra power, may I suggest running multiple exes at once and using TCP/IP communication between them.
That said, if you do proceed down this route, I imagine you have more chance of inventing general AI than many of the researchers in that field.