Heh, I'm going to write expression evaluator, but different way: it will parse string and generate machine code, so you can launch this later.
Awesome project, good luck with it.
Everything regarding parsing and such is now done, finished about an hour ago, although the code isn't very neat at all and can probably be improved in many areas, but the mechanics for it is done as far as goes for a beta at least (it doesn't handle errors very well yet etc).When do you figure it will be released?[/b]
I've just started looking at how to integrate it with the game (currently doing it myself as I like to fiddle around with everything and learn), so once that is done you should see a beta for download here. I'll report progress here later.
Although I still wonder what it should be called.
Heh, I'm going to write expression evaluator, but different way: it will parse string and generate machine code, so you can launch this later.
Awesome project, good luck with it.
This and the CPU are quite different, the CPU is a model of a CPU, whereas this is more like a model of a programmable logic device like an FPGA. The two should be usefull together, as the CPU could be used to control the expression evaluator and get it to do complex exations leaving the CPU free to do other stuff.That's correct, basically this adds nothing more than what is already possible. So this is NOT the circuit board discussed in other topics, although it is rougly the same idea (I think) this one is all mathematical. So, all this can do is calculate expressions, such as "OA = B + C" and handle simple conditionals.
So it does NOT add any new possibilities as everything this can do could previously be done by a pletora of gates (with a small difference, but that's the main idea), with two main ideas, reduce lag and simplify wiring of gates (as instead of wiring different operators to form expressions, you can now just type the expression instead). And then I extended it a little, introduced "if-statements" and allowed multiple out-ports and arbitrary variables (internally), so you can write many expressions for one component (ANG = A / C ... OB = ANG * 2 ... OD = rad2deg(ANG)).
And yes, the CPU can do exactly what this can do and much more, but this offers much more simplicity when there is only need for calculations (and many will likely never learn to use the CPU).
TAD2020, I'm not sure if this is what you thought of or if you though of something else, but please explain what your idea/thought was if possible.[/b]
-----------------------------------------------
gmod addon reviews:
http://gmodreviews.googlepages.com/
Agree, CPU is for tasks you need to have some exact order of operations, and for complex tasks.
This is great, it can be used to change all those hard math stuffs into 1 chip, no need to write any more programs
It seems like it would be possible to parse a wired circuit into this programmable chip.
"Our death ray doesn't seem to be working. I'm standing right in it, and I'm not dead yet." - Jamie Hyneman
"Yes, managing the anonymous activity of the entire Internet is a challenge. Shoving the entire universe into a mason jar for use as a personal flashlight would also be a pesky bother." - Karl, BBR
WIREMOD WILL NOT WORK ON YOUR FACE! BUT IT DOES ON YOUR MOM :shifty:
That should very much be possible I presume, as it provides identical functionality (except no memories and such), only thing that would be problematic is circular wiring... but that gives bogus results either way I think?It seems like it would be possible to parse a wired circuit into this programmable chip.[/b]
Anyway, I've made some progress and it now properly parses the strings from within the game, although the chip itself does not currently work. But it's a step in the right direction![]()
I love you![]()
"As far as I can remember, Garry has always had this pissy, elitist attitude towards others. "I'm better than you all." That's his philosophy. And that's why he's hated. If he had been nice and respectful in the first place, he wouldn't have a bunch of pissed-off enemies biting at his ass every chance they get."
Marry me pretty please, plzplzplzplzplzI love you[/b]
Just got my first breakthrough and the first calculation has been made using the component. Although it just barely works at the moment.
And I have got this rather strange problem, where the ghost model is the "AMD64" but when placed becomed "mini-chip" as specified...
(I "borrowed" most of the STOOL code from the CPU so that's probably why, but still can't find why it won't change, but that's a later problem)
I will try to make the component automatically figure out which inports and outports there should be instead of having fixed, or allowing them to specified instead. But I added right-click to load the expressions from the component too, although it is extremely slow for some reason, must be some faster way to get vars from the server.
EDIT: a peculiar feature worth knowing is that "a" == "A" (false) ... but "a" >= "A" && "a" <= "A" (true) ... which caused a lot of confusion in my code for a short while since Lua doesn't work that way out of the box.
I simply cannot wait. I hope you can get it hammered out by this weekend when I will run my server with the new spacebuild map, new advanced dupe, and hopefully this. It's going to be a good weekend![]()
"As far as I can remember, Garry has always had this pissy, elitist attitude towards others. "I'm better than you all." That's his philosophy. And that's why he's hated. If he had been nice and respectful in the first place, he wouldn't have a bunch of pissed-off enemies biting at his ass every chance they get."
A beta is now available for download and I've given a brief introduction of how to use it.
Bookmarks