Giter VIP home page Giter VIP logo

agda-system-io's Introduction

agda-system-io's People

Contributors

ice1000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

agda-system-io's Issues

Weighted sessions

Should allow singleton sessions to carry a weighting function, e.g. lists can be weighted by their length, bytestrings by their length, trees by their size, etc. This can be used in loop to allow for a more refined notion of contraction map.

Opening a file in write mode may cause a visible side-effect

Currently, opening a file for writing causes it to be opened immediately, not on commit. This may cause a visible side-effect, e.g. creating or clearing an existing file. Perhaps the semantics should enforce that files are always opened as tmp files, and are copied to their destination when closed? We could save the filename in a ref to be opened on a later commit, but this would mean that Agda handles aren't Haskell handles, which complicates the FFI layer.

Everything file

It'd be great if Everything.agda was included importing all the relevant code, allowing for easy type-checking. By proxy, it should of course work with recent (2.4.2) Agda ;)

Validate categorical structure

Currently I'm claiming all kinds of categorical structure for processes, without proof. Proofs are good. We like proofs.

Parser combinator support

Currently the only primitive for reading from a handle reads all the data on commit. We should also provide support for parser combinators to parse from a handle, and leave the rest of the handle untouched.

Type for file paths?

Should we have a separate type for file paths, rather than just String? Can we give some static guarantees about file usage?

Inclusions via subtyping?

Currently there's an ad-hoc collection of inclusions such as (optional S) is included in (many S). Can we handle this via subtyping?

Support coinductive IO

Currently the inf postulate has no COMPILED pragma associated with it, as this requires Agda 2.2.8. When we decide not to support 2.2.6 any more we can add the pragma.

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.