dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Calculator made from bind echo and alias and nothing else

Hybrid View

  1. #1
    Join Date
    Jun 2019
    Posts
    2

    Calculator made from bind echo and alias and nothing else

    I created a calculator only using the scripting commands in the video game Counter-Strike, bind (for input) echo (for output) and alias (for the logic). Alias is a command that allows you to create a new command out of a string of specified commands. Basically, I can do math without using math. This is pure connectionism, where there are no values, no logic operators and no measurements in the logic. It is purely making, breaking and using connections and nothing else.

    The first few paragraphs from my paper that I am working on:

    How To Compute Without Variables, Logic Operators or Measurements

    Work in progress

    I have come up with what I believe is a new type of logic, it is mechanical in nature, but because I could maybe see it done on the quantum level it could be far more complex than any mechanical machine has ever been, in ways not seen in physical mechanical devices.

    This logic is pure connectionism, only using connections and nothing else. I look at it as a geometry of logic. My system performs the logic only using one command without numeric variables, without logic operators, and without measurements. This is neither digital nor analog logic.

    This is not theory, I have built a working model using this logic that demonstrates if-then, do-while, a randomizer, a relational database and other logic, including a rudimentary calculator that adds/subtracts/multiplies/divides. In the working model I only use one command for hooking in the input, a few commands for output, but all the logic in between is one command that does nothing but link commands together.

    The logic demonstrated in this model uses the command “alias”, which is used in a FPS video game called Counter-Strike, which is a modification for a video game made by Valve called Half-Life, which is based on id Software's QuakeWorld engine. This command is used to link various commands together creating a new command that executes a command string, to provide a way for customizing the interface of the game. This logic requires input and output provided in the game - which, no doubt, uses Boolean logic to perform, but the logic itself is contained to using the one command “alias” and does not use Boolean logic.

    A readable-online version of the paper (no download, unless you want a Word copy) https://app.box.com/s/4plplfbrhwr9qflosp8tir00r0pf1467

    You can also find the paper here, but you have to download it to read it: https://github.com/johnvlilley/Stateless-Computer

    I suggest you start with the simple version of the calculator that does just add and subtract: https://github.com/johnvlilley/State...tor_simple.cfg

    And the complex calculator has much better inline commenting: https://github.com/johnvlilley/State...or_complex.cfg

    I am interested in taking some of the logic, perhaps the most complicated part - the grenade throwing script, and visually re-creating it in Minecraft. I also desperately need help writing the paper, it is obvious I never have written one before.

  2. #2
    Join Date
    Feb 2017
    Posts
    474

    Re: Calculator made from bind echo and alias and nothing else

    Quote Originally Posted by JohnPhantom View Post
    This logic is pure connectionism, only using connections and nothing else. I look at it as a geometry of logic. My system performs the logic only using one command without numeric variables, without logic operators, and without measurements. This is neither digital nor analog logic.
    This sounds a lot like lambda calculus to me,

    https://en.wikipedia.org/wiki/Lambda_calculus

    Even though lambda calculus has been around for some time I think it's a great accomplishment of you to have come up with it independently.

    Here's a tutorial discussing lambda calculus in relation to functional programming,

    https://www.youtube.com/watch?v=v1IlyzxP6Sg
    Last edited by wolle; July 3rd, 2019 at 08:11 AM.

  3. #3
    Join Date
    Jul 2019
    Posts
    1

    Re: Calculator made from bind echo and alias and nothing else

    Quote Originally Posted by wolle View Post
    This sounds a lot like lambda calculus to me,

    https://en.wikipedia.org/wiki/Lambda_calculus

    Even though lambda calculus has been around for some time I think it's a great accomplishment of you to have come up with it independently.

    Here's a tutorial discussing lambda calculus in relation to functional programming,

    https://www.youtube.com/watch?v=v1IlyzxP6Sg
    That uses math. My logic does not use math.

  4. #4
    Join Date
    Feb 2017
    Posts
    474

    Re: Calculator made from bind echo and alias and nothing else

    Quote Originally Posted by JohnPhantom2 View Post
    That uses math.
    No, lambda calculus is not based on math. The only thing it ever does is substituting strings (sequences of symbols) for other strings. This can then be used to define all sorts of math with numbers, functions and logic & arithmetic operators. One such math is the so called Church encoding which can be though of as half-way toward the math you find in programming languages,

    https://en.wikipedia.org/wiki/Church_encoding

    -----

    In your own words:

    "Alias is a command that allows you to create a new command out of a string of specified commands. Basically, I can do math without using math. This is pure connectionism, where there are no values, no logic operators and no measurements in the logic. It is purely making, breaking and using connections and nothing else."

    To me it definitely looks like you've used the alias command as a lambda calculus system to implement a calculator. I'm not trying to belittle your accomplishment. I'm just pointing out that what you consider a novel approach in fact is good old lambda calculus.
    Last edited by wolle; July 7th, 2019 at 04:11 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)