Code Monkey home page Code Monkey logo

haskell-libui's People

Contributors

yamadapc 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  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

haskell-libui's Issues

Update the monadic sugar EDSL

Just a writer EDSL is fine by me, then have it return abstract types, instead of concrete ones so the interpreter is freer to work on other backends / less strict execution

Use hpack

I currently can't use hpack because some directives aren't supported. We should find them, list them and contribute back

Some examples run at 100% CPU usage

E.g. libui-simple-counter-example, 100% CPU in htop

In strace it's busy-looping around poll (because poll() is given a 0-timeout):

[pid 31736] recvmsg(11, 0x7ffe9da1db20, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 31736] poll([{fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}], 3, 0) = 0 (Timeout)
[pid 31736] recvmsg(11, 0x7ffe9da1db20, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 31736] poll([{fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd=13, events=POLLIN}], 3, 0) = 0 (Timeout)

Not sure if it's an issue with libui or haskell-libuil, or the example code calling the functions wrong.

Separate "FFI" from the "Simple" API

The "imperative" part is:

  • Graphics.LibUI.Simple is the FFI helpers
  • Graphics.LibUI.FFI is the FFI

The "declarative" part is:

  • Graphics.LibUI.Types
  • Graphics.LibUI.ReactiveBanana
  • Graphics.LibUI.MonadUI is the ambitious bit

The high-level modules are exported by Graphics.LibUI.

Add to hackage & stackage

Hello, i searched on hackage for this package but i couldn't find it. Would you consider adding this package to hackage? Also adding it to stackage would be nice so that it can be installed with the stack tool.

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.