lambdatoast / ui-share-elm Goto Github PK
View Code? Open in Web Editor NEWNOT the frontend logic for share-elm.com
NOT the frontend logic for share-elm.com
The version of Elm is not saved with the source.
In the readme it says that will be published in 2015, but it's 2017 and can't find it.
The 2.0.0 version of the standard lib had a crucial bug in merge
concerning the initial value. Was fixed in https://github.com/elm-lang/core/pull/228, which led to release of version 2.0.1. It seems that http://share-elm.com still uses version 2.0.0. That makes it unsuitable for nontrivial code involving merge
. The maybe simplest way to manifest the bug is:
import String
import Graphics.Element
main =
Signal.map (Graphics.Element.show << String.length) <|
Signal.merge (Signal.constant "a")
(Signal.constant "b")
Running this locally gives the expected output (namely printing 1
). Running it at http://elm-lang.org/try gives the same, since http://elm-lang.org/try was already upgraded to core-2.0.1
. But running it at http://share-elm.com leads to a runtime error.
... it seems. At least when one follows a link to some piece of code. That makes it unconvenient to use with recent code examples from/on the mailing list.
(I had a look at the source, trying to figure out where the default version is set, so that I could possibly write a pull request. But the source in the repo does not seem to be up to date with respect to what actually runs at http://share-elm.com/. For example, this line does contradict what link is actually shown in the live instance of the site.)
Open: http://share-elm.com/sprout/55c8a72be4b06aacf0e8bead
Now press a few buttons. See how after a second the value of actualKey
becomes Nothing
. In Try-Elm and actual Elm it becomes Nothing
only after you lift the key.
If you import a gist which contains multiple files only the first one, in alphabetical order, will be loaded and executed. So if the first is not an .elm file, for example an image, the compiler will try to run an image and crash. Can you add a condition to load only files with .elm extension or add an option to choose the file?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.