4 ms·
I already have a language like that, but instead of just text it takes in text and money and turns it into code. It's also pretty slow for a language, taking u
by bkrausz 19y ago
I already have a language like that, but instead of just text it takes in text and money and turns it into code. It's also pretty slow for a language, taking up to several months depending on the complexity of the problem.
- technoguyrob 19y agoHere's my algorithm: 1. Parse the program input with a lexical analyzer that: i. Loops through each character. ii. Appends it to a buffer. 2. Submit the lexed program to eLance with a 7-week bid. i. If someone with at least one project completed bids on it, continue. ii. If no one responds by the 7th day, return an error: "Syntax error in program. Please recode." 3. Accept the bid. 4. while(!checkIfIndianSentCompletedProjectFiles() && isTakingLessThanTwoMonths()) Sleep(1); 5. if (!isTakingLessThanTwoMonths()) return a run-time error: "Temporal stack overflow." 6. else print resultant code. It takes a long time to compile some projects, but it's reasonable, since it is after all a very, very high level programming language.
- jcl 19y agoNice. I notice that unlike most algorithms I've read, this one requires a credit card number as an input. :)