Code Monkey home page Code Monkey logo

clipboardcalculator's Introduction

Clipboard Calculator

Evaluate Lambda Calculus expressions on the clipboard.

Run the WPF app. Copy a lambda expression to the clipboard from Notepad. Press Ctrl+Shift+L. This is a global hot key, so you don't need to leave Notepad. The equation on the clipboard will be replaced with one reduction step. Then paste it into Notepad on the next line. Keep going until the clipboard is emptied, indicating that no further reductions are possible.

Can't type a lambda? Here's one: λ

Try this expression:

(λn.λf.λx.f (n f x)) (λf.λx.f (f x))

That means "The successor of 2", or 2+1. It will evaluate to 3 after three steps.

Roadmap

I created this app for "The Lambda Calculus in Notepad", a talk that I will debut at the Dallas Functional Programmers user group. I'll start with copy-paste, search-replace operations to demonstrate the mechanics of The Lambda Calculus. But once we get into the more complex expressions, I'll pull out this handy tool.

The next step will be to animate a visualization of the β-reduction or η-reduction taken at each step. This will aide in the understanding of The Lambda Calculus.

Finally, I intend to create a Lambda Touch app in the spirit of Sean Berry's Algebra Touch. I've already floated the idea past Sean, and he's cool with it. If you would like to help, please let me know.

@michaellperry.

Inspiration for this project

clipboardcalculator's People

Contributors

michaellperry avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.