Giter Site home page Giter Site logo

Comments (3)

joakin avatar joakin commented on July 21, 2024

from elm-canvas.

HappMacDonald avatar HappMacDonald commented on July 21, 2024

Yay, that seems to work great.

1: Thank you!

2: thanks for being so polite despite my completely borking that being described right in the front page of the docs. 😅

3: I wonder how Ellie makes it work then? Did you make a deal with the Ellie folks to get your component script into the output or something? :B

4: Since you mention "Elm’s choices regarding interoperability", does using this strategy with the web component lead to Elm functions having side effects? EG: do the canvas commands in your module communicate with the outside world (including the canvas) only through a watershed of return values that terminate at TEA (and maybe web component takes over during TEA's watch which would be ideal), and do we maintain the guarantee that every call to a function in your module with input set X always produces an identical output set Y?

from elm-canvas.

joakin avatar joakin commented on July 21, 2024

3: I wonder how Ellie makes it work then? Did you make a deal with the Ellie folks to get your component script into the output or something? :B

Ellie has a pane for the HTML of the page, in which I set up the web component script in the example from the docs.

4: Since you mention "Elm’s choices regarding interoperability", does using this strategy with the web component lead to Elm functions having side effects? EG: do the canvas commands in your module communicate with the outside world (including the canvas) only through a watershed of return values that terminate at TEA (and maybe web component takes over during TEA's watch which would be ideal), and do we maintain the guarantee that every call to a function in your module with input set X always produces an identical output set Y?

This library behaves exactly like the HTML one, so when running the functions there is no implicit side effects, until the HTML gets handled by the Elm runtime 👍

from elm-canvas.

Related Issues (20)

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.