Code Monkey home page Code Monkey logo

widip's Introduction

Widip

Widip is an interactive environment for computing in modern systems. Many long-standing systems have thrived thanks to a uniform metaphor, which in our case is wiring diagrams.

System Metaphor
Widip Wiring Diagram
UNIX File
Lisp List
Smalltalk Object

Installation

widip can be installed via pip and run from the command line as follows:

pip install widip
python -m widip

This will automatically install dependencies: discopy (computing, drawing), pyyaml (parser library), and watchdog (filesystem watcher).

Local install

If you're working with a local copy of this repository, run pip install -e ..

Using widip

The widip program starts a chatbot or command-line interface. It integrates with the filesystem for rendering diagram files. We give more information for a few use cases below.

For documentation

Widis are meant for humans before computers and we find it valuable to give immediate visual feedback. Changes in a .yaml file trigger rendering a .jpg file next to it. This guides the user exploration while they can bring their own tools. As an example, VS Code will automatically reload markdown previews when .jpg files change.

Widis are great for communication and this is a very convenient workflow for git- and text-based documentation.

For UNIX programming

The lightweight widish UNIX shell works everywhere from developer workstations to cloud environments to production servers. Processes that read and write YAML document streams are first-class citizens. With this practical approach users can write programs in the same language of widis.

Start with widish/examples.

For graphical programming

Programming is hard, but it shouldn't be that hard.

So far widis have mainly shaped the user interface. Widis are also graphical programming tools and one can work with them in purely mathematical terms. Start with examples/mascarpone then take a look at current work in a functional library at src.

widip's People

Contributors

colltoaction avatar stevenclontz avatar

Stargazers

Gus Hurovich avatar  avatar Julián Sackmann avatar Juan Pablo Rey avatar Martín Mongi Badía avatar  avatar Shane Crowley avatar Franco Castellacci avatar  avatar Nicolas De Carli avatar Ezequiel Maraschio avatar Martin Milan avatar Diego López León avatar Vegard Fjellbo avatar Zaki Mughal [sivoais] avatar

Watchers

 avatar  avatar Jareer avatar

Forkers

stevenclontz

widip's Issues

Assembly state propagation reasoning

Diagrams naturally model instruction sets with multi-input to multi-output boxes for each instruction.

Each instruction such as mul or jump can be decorated as seen here:

The goal is to aid the user reasoning about state propagation between instructions. There should be wires for registers, labels, constants, flags. Connections should be inferred from the definition in the chosen ISA.

REPL diagrams

As a Lisp, Widip is designed with an interactive interpreter in mind. This is implemented in Python but not modelled using the three available Python instructions

widip/bin/py/rep.py

Lines 3 to 5 in c8297e4

* !!python/input
* !!python/eval
* !!python/print

One should not confuse those three Python functions with the rep functions to be implemented using diagrams.

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.