| Disch (8615) | |
|
What's this? People are actually reading this thread? </wiseguy> | |
|
Last edited on
|
|
| Imadatobanisa (647) | |||
Hey guys, in my opinion "formatting variable structure" is a good idea. And you? :)
:D | |||
|
Last edited on
|
|||
| L B (3806) | |
| We have |olutely| no idea what that means. | |
|
|
|
| Imadatobanisa (647) | |||||
L B Imagine it looks like variable sorting - filtering (better than switch-case).
Continue? :) Second, generally I was shocked, because two trivial expressions I measured are wildly different... :C Take a look at two examples :
As you can see, both two solutions are certainly correct... But unfortunately, the code speed & performance, it's so terrible! And here's actually my function speed : - Operators per second : Power operator : 1.500.000 operators per second (It took about 14 seconds to complete...) Function : Below 200.000... D: (It took about 69 seconds to complete...) And about you, do you agree? How to fix and improve the function speed efficiently? | |||||
|
Last edited on
|
|||||
| L B (3806) | |
| You can improve performance by not running your tests on one of the original vacuum tube computers. Have you considered upgrading to DOS? | |
|
|
|
| Imadatobanisa (647) | |||||||||
|
Structure : Prepairing.... NB : Redundant post
Interpreter (short, instantly) :
EDIT : New multiple dimensional array concept has been found!!!
Function : Over 100 functions have been added!!!!!!!!!!! :O | |||||||||
|
Last edited on
|
|||||||||
| Imadatobanisa (647) | |||
What do you mean by that? ~~ - What does that mean? EDIT : Hey guys, I don't really understand cin, cout... Is it a structure? Or something else? | |||
|
Last edited on
|
|||
| L B (3806) | |||
|
std::cout, std::wcout, std::cerr, std::wcerr, std::clog, std::wclog, std::cin, and std::wcin are global objects that are istreams and ostreams. http://en.cppreference.com/w/cpp/io Scroll down to "Predefined standard stream objects:"
| |||
|
Last edited on
|
|||
| hamsterman (4435) | |
| @Jackson Marie, what is your native language? Clearly, you're not friends with English. Maybe we could use that information to somehow to improve our communication... | |
|
|
|
| EssGeEich (1007) | |||
Are you even manually adding them? Isn't that a bit dumbish idea? What if an user wants to provide his own functions, say from a DLL? | |||
|
|
|||
| joneele (27) | |
|
Agree with hamsterman (@Jackson Marie, what is your native language? Clearly, you're not friends with English. Maybe we could use that information to somehow to improve our communication... ) | |
|
|
|
| Imadatobanisa (647) | |
|
Yes. Weird. But secretly I won't say anything until the end of this project. :) Edit : EssGeEich : How to import and get function address of a Dll function? | |
|
Last edited on
|
|
| Imadatobanisa (647) | |
|
Thanks and with thousands of functions, I consider maybe I'll need to upgrade the function library to level 3 to improve speed function browsing and achieve "the fastest function indirect access". :) Edit : Also I'm going to make some additional functions which control manage the function library on demand. In my point of view it's so interesting because if this feature is added, because users can freely import, view and add their own functions... :D SECOND EDIT : Function type-cast is about to be upgraded to level 2, when a function item can carry a large amount of information. But if you specify a function with special parameters (e.g pointer), probably basic function type-cast will not be able to help you. | |
|
Last edited on
|
|
| Disch (8615) | ||
What does that mean? | ||
|
|
||
| Coder7777 (4) | ||
Oh not much, just about another 15 update posts about functions, and then we will hit level 4. By the way Jackson Marie you never answered my question about the directX capabilities for you interpreter. You just seem to ignore questions that ask for specifics... | ||
|
|
||
| Imadatobanisa (647) | |||||||||||||
??? Please, look again, the idea I mentioned on the top. Switching from level 2 to level 3 is too easy, so my next 15 posts only just are :
This is called "ultra-fast search method" You only specify several necessary parameters, and immediately it will give the instant result!!! (Instead of scanning the library million times) As you can see, the parameter "first_character", "last_character" are regular char values. So the size of those arrays must be sizeof(char) = [256]. Simply for example : "My_function" (First character is "M" and last character is "n") Checking :
So, is it much better than switch-case filter and linear-search with ultra-slow strcmp?? :) Now the range is expanded, I want to add "number_of_parameters" suppose its size is 64 (may vary if needed). So, accessing a function certainly is safer. Consider the example :
About range : Function level 0 : 8000 kb Function level 1 : 2000 kb + switch case Function level 2 : 256 x 256 = 65536 (cases) + simple filter Function level 3 : 256 x 256 x 64 = 4194304 (cases) + ultra lighting speed !!!!!!!!!!!!!!!!!!!!!! How do you feel about this idea? Do you understand it? Any opinion or suggestion guys? :) | |||||||||||||
|
Last edited on
|
|||||||||||||
| Imadatobanisa (647) | ||||
|
Oh, I defined <vararray> and... had no idea about the crazy compiling errors. Still no idea "why", because I don't know what's wrong with the standard code :
Then the compiler throws up to 100 errors... :(
Why this caused? And how to fix those compiling errors? Many thanks. :) | ||||
|
Last edited on
|
||||
| Imadatobanisa (647) | |||||||
|
...Although many of this are uncompleted, but I really want to hear some first suggestions and opinions about my interpreter. Would you like to test my first program? (You'll need to read these information below carefully) Some notes : 0. Function type-cast pow([#dd]true,2.0); 1. Code warning : http://www.cplusplus.com/forum/lounge/85713/14/#msg483215 2. Structure-Handmade Function "Structure-Handmade Function" - unsupported features. So please use void* definition (temporarily) instead and if necessary, pick a proper pointer to access structure data. (See the example at the previous page.) 3. Conditional expression IF_WHILE-FOR : Sorry, In progress :) 4. Special Libraries (std::cin - std::cout...) - Currently completely unsupported. 5. Format signs (/**/) (//) - in progress How to test : Create a text file, write your own code, run the program, pick a source file, enjoy your program! //Example :
Another examples :
//See the main page for more details. Do you want to test my program right now? If so, certainly I'll update & post my test program and any of your help would be greatly appreciated. If not, probably you'll need to wait at least one week, that's enough to complete "Conditional expression"... :) | |||||||
|
Last edited on
|
|||||||
| EssGeEich (1007) | |
|
Before including vararray you should #undefine min and max Anyways I find it tedious to write a file to use an interpreter - sadly that's how most interpreters act like, but I prefer a realtime code interpreter. Obviously in case of a while you should keep inputting lines, provided you are going to do it real-time. | |
|
Last edited on
|
|