[elm-discuss] Re: Linear algebra for 2d geometry?

2017-05-04 Thread Zinggi
There is also my little library <http://package.elm-lang.org/packages/Zinggi/elm-webgl-math/latest>, you might find it useful. On Thursday, 4 May 2017 15:56:05 UTC+2, Rupert Smith wrote: > > I need to implement some 2d geometry transformations, and would like to > u

[elm-discuss] Re: Unsafe mechanism

2017-03-13 Thread Zinggi
Sorry, but there were many wrong / half truths in here, so I had to respond ;) Elm does not allow user code to do side effects > This is wrong, that's what Task and ultimately Cmd are for. It's true that there is no way to do *uncontrolled* side effects, e.g. a function that sends an https

[elm-discuss] Re: Dealing with invalid state transitions

2017-01-17 Thread Zinggi
You could use this trick: case (state, msg) of (Displaying stuff, UpdateThis) -> ... (Displaying stuff, UpdateThat) -> ... (Loading, _) -> ... _ -> ... {- only if needed -} On Tuesday, 17 January 2017 15:03:05 UTC+1, Tomáš Znamenáček wrote: > > Hello! > > I have an app that

Re: [elm-discuss] Re: YAML lib for Elm?

2017-01-17 Thread Zinggi
Probably not the answer you'd like, but there doesn't exist one. Please do us all a favor and create one yourself ;) (probably with the help of this .) If that's too much effort, you can use some JS lib

Re: [elm-discuss] What do you think Elm's biggest shortcomings are when it comes to natively supported API's?

2016-12-12 Thread Zinggi
> assume support for typed-arrays and ArrayBuffer... anything else? > > On Sunday, December 11, 2016 at 3:59:08 PM UTC-6, Zinggi wrote: >> >> (Elm discuss is fine for this. There are almost no open discussions on >> elm dev, as these are usually a waste of everyone's tim

Re: [elm-discuss] What do you think Elm's biggest shortcomings are when it comes to natively supported API's?

2016-12-11 Thread Zinggi
(Elm discuss is fine for this. There are almost no open discussions on elm dev, as these are usually a waste of everyone's time.) For me, these things would be nice to have: * WebAudio API * File upload * Working with binary files, e.g. parsing * Persistent cache, offering access to

Re: [elm-discuss] Rename Just to Something, as the counterpart to Nothing?

2016-11-25 Thread Zinggi
I love this! I've read through the whole thread, but for every suggestion so far I thought: "meh, 'Just a' sounds better". But this looks even better! On Friday, 25 November 2016 10:03:54 UTC+1, Witold Szczerba wrote: > > I have it, I have it, look at this: > > type Maybe a = Nothing | Maybe a >

[elm-discuss] Re: The Style Elements Library: a different approach to styling

2016-10-27 Thread Zinggi
Wow, this looks awesome! I'm definitely gonna try that on my next project. This might actually make css great again ;) On Thursday, 27 October 2016 15:20:14 UTC+2, Matthew Griffith wrote: > > > It's easy to write valid CSS that is still broken and frustrating. What if > we could make frustrating

[elm-discuss] Re: Getting functions out of the model

2016-10-13 Thread Zinggi
Why write all that code if a library handles it out of the box? > > > > > > > > > > > > > > > On Thursday, October 13, 2016 at 3:25:17 PM UTC-4, Zinggi wrote: >> >> @Frederick >> Yes, that's where I got my inspiration from ;) >> &

[elm-discuss] Re: Getting functions out of the model

2016-10-13 Thread Zinggi
ur library currently deals with interruptions. I once created an animation library for react <https://github.com/Zinggi/RAnimation>, it kinda works like I described above and it does have interruptable animations. But of course react doesn't map nicely to elm. On Thursday, 13 October 201

[elm-discuss] Re: Getting functions out of the model

2016-10-13 Thread Zinggi
I also thought about this problem for a bit. I came up with a slightly different solution. I was not only not happy with storing functions in my model, but also with storing static values in the model (e.g. stuff that wont change often). I think it would be nice to separate the *descriptions* of

[elm-discuss] Re: Function equality again

2016-10-12 Thread Zinggi
I also think that comparing functions should just compare them by reference, this should cover the most common cases. Another possible solution: What about a compile time error? Is this possible? On Wednesday, 12 October 2016 18:48:12 UTC+2, Mark Hamburg wrote: > > As discussed elsewhere, the

[elm-discuss] Re: Functional programming, or why should I use Elm instead of vanilla javaScript?

2016-10-06 Thread Zinggi
> And all this stuff about immutability, can be easily achieved in plain javaScript. You claim that you can achieve all the the things that elm does by being disciplined enough, but that's not true. Here are a few things that only elm can provide that JavaScript can't. These things are only

Re: [elm-discuss] Re: keeping functions out of the model

2016-10-05 Thread Zinggi
This also has the added benefit that you can then use the same animation with different easing functions without having to duplicate the whole Animation record. On Wednesday, 5 October 2016 10:01:25 UTC+2, Zinggi wrote: > > I think you could create an animation library that doesn't sto

Re: [elm-discuss] Re: keeping functions out of the model

2016-10-05 Thread Zinggi
I think you could create an animation library that doesn't store any functions in its model and still be able to let a user provide whatever easing function they want. E.g. remove the ease key from your AnimRecord and let all functions that currently take an Animation have an additional

Re: [elm-discuss] Re: Any tricks for debugging?

2016-09-15 Thread Zinggi
Well elm-conf <http://www.elm-conf.us/> is happening right now, so we'll get more info very soon. On Thursday, 15 September 2016 21:50:42 UTC+2, John Orford wrote: > > any ballpark guesses on when 0.18 will happen? before the end of the year > perhaps? > > On Thu, 15 Sep

[elm-discuss] Re: Any tricks for debugging?

2016-09-15 Thread Zinggi
You could wait some time on the 0.18 release which will most likely bring back the time traveling debugger, with object introspection. This is much more comfortable than Debug.log. For now, you could use this library which

Re: [elm-discuss] Try out the 0.17.1 beta

2016-06-29 Thread Zinggi
If you need time travel right now, you can use this library: http://package.elm-lang.org/packages/jinjor/elm-time-travel/1.0.8/ On Tuesday, 28 June 2016 21:34:33 UTC+2, Douglas Correa wrote: > > Evan, thanks for the new version, > > And I really like this part of README.md ( >

[elm-discuss] Re: Dynamically load SVG files

2016-05-30 Thread Zinggi
Couldn't you just use an img tag with the path/to.svg in the src attribute? On Monday, 30 May 2016 15:34:07 UTC+2, Håkon Rossebø wrote: > > I'm trying out some SVG maps from here: > > https://www.amcharts.com/svg-maps/?map=usa > > Seems to be too much to embed inline. What would be the best way