[elm-discuss] Can the thickness of a line be specified in elm-style-animation, in the Style.Properties module ?

2016-07-25 Thread Staffan
Hello I wonder if it is possible to specify the thickness of a line when using elm-style-animation, in the Style.Properties module ? I have tried to use the Property "D (List (PathCommand

[elm-discuss] Re: port module for JS interop.. without main/view ?

2016-07-25 Thread Luke Westby
In the event that you want to use Elm.MyModule.worker() in the future, this module will let you set things up without worrying about the view part http://package.elm-lang.org/packages/lukewestby/worker/latest On Sunday, July 24, 2016 at 4:19:30 PM UTC-5, Jörg Winter wrote: > > Hey thanks for tha

[elm-discuss] Re: Looking for an Elm example I once saw but can no longer find

2016-07-25 Thread Ray Toal
Oh I think it's this http://ravichugh.github.io/sketch-n-sketch/releases/v0.3/ On Monday, July 25, 2016 at 3:53:36 PM UTC-7, Ray Toal wrote: > > Seems to me I one saw a nice example in Elm, on github perhaps, of a > project in which one there was code on the left, canvas on the right (a la > Br

[elm-discuss] Looking for an Elm example I once saw but can no longer find

2016-07-25 Thread Ray Toal
Seems to me I one saw a nice example in Elm, on github perhaps, of a project in which one there was code on the left, canvas on the right (a la Bret Victor's Inventing on Principle talk), and you could manipulate the canvas objects on the right, and the code on the left would change in real tim

[elm-discuss] Re: Elm for audio-reactive visuals

2016-07-25 Thread John Watson
I've been experimenting with audio quite a bit during the past few months. Not sure if this is any use for you, but https://github.com/newlandsvalley/elm-soundfont-ports is an elm 0.17 pseudo-library (i.e. it uses ports) which allows you to play sounds by means of soundfont buffers via web-aud

[elm-discuss] Re: Elm for audio-reactive visuals

2016-07-25 Thread Frederick Yankowski
For examples I'd look at https://github.com/lukewestby/elm-synth and https://github.com/knewter/elm_theremin -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-

Re: [elm-discuss] Result.mapX should be Result.foldlX?

2016-07-25 Thread Brad Grzesiak
I'll echo Duane twice here: 1) Coming mostly from Ruby, map definitely has a "only for looping constructs" feel to it, and 2) Joey's explanation was very helpful. Thanks everyone! I'll go back to unlearning bad habits now. :P On Monday, July 25, 2016 at 2:19:29 PM UTC-5, Duane Johnson wrote: >

Re: [elm-discuss] Result.mapX should be Result.foldlX?

2016-07-25 Thread Duane Johnson
On Mon, Jul 25, 2016 at 1:14 PM, Joey Eremondi wrote: > They let us re-use operations that we already have. You have a Maybe Int, > and you want to double the int stored, if it's not null? Use "Maybe.map (\x > -> x * 2)". This will double the Int, unless it's Nothing, in which case it > gives you

Re: [elm-discuss] Result.mapX should be Result.foldlX?

2016-07-25 Thread Nick H
Try thinking about it this way. "List a" is a container for some type "a". The map function takes a function on type "a" and turns it into a function on type "List a". Likewise, List.map2, List.map3, etc. do the same thing for functions with multiple arguments. The same is true for Result. "Result

Re: [elm-discuss] Result.mapX should be Result.foldlX?

2016-07-25 Thread Nick H
Ah, Joey beat me to it again :-) On Mon, Jul 25, 2016 at 12:14 PM, Joey Eremondi wrote: > Being fully parallelizable is a nice side-effect for the List version (and > functional programming in general), bit that's not what actually makes a > map a map. > > First, realise that List, (Result a), M

Re: [elm-discuss] Result.mapX should be Result.foldlX?

2016-07-25 Thread Joey Eremondi
Being fully parallelizable is a nice side-effect for the List version (and functional programming in general), bit that's not what actually makes a map a map. First, realise that List, (Result a), Maybe, etc. are all "type constructors". You give them a type argument, then they are a type. List is

Re: [elm-discuss] Result.mapX should be Result.foldlX?

2016-07-25 Thread Duane Johnson
FWIW, also as a new Elm user, I find the Maybe.map and Result.map functions to be confusing names. It may just be my use of lodash and Ruby arrays that are sending my brain off track, but I find myself resisting this naming a lot (and still don't naturally reach for it on these modules). On Mon, J

[elm-discuss] Result.mapX should be Result.foldlX?

2016-07-25 Thread Brad Grzesiak
OK. For those of you following along, I hope the third time's a charm! (I already inadvisedly submitted this to the Issue tracker and elm-dev) It seems to me that Result.map2, Result.map3, etc should actually be called Result.foldl2, Result.foldl3, etc. As I understand it, map should be ful

Re: [elm-discuss] Elm for audio-reactive visuals

2016-07-25 Thread Joey Eremondi
There won't be a lot of specific audio libraries, but Port's provide a pretty ideal way to interface with various audio libraries and tools: http://guide.elm-lang.org/interop/javascript.html On Mon, Jul 25, 2016 at 11:01 AM, Nick H wrote: > I have been curious about doing audio programming in E

Re: [elm-discuss] Elm for audio-reactive visuals

2016-07-25 Thread Nick H
I have been curious about doing audio programming in Elm, but have been too scared to jump in and figure it out :-& The only sound-related example I have come across is http://irh.github.io/circles, which uses audiosprite. On Mon, Jul 25, 2016 at 10:52

[elm-discuss] Elm for audio-reactive visuals

2016-07-25 Thread Mike Belanger
Hi guys, Recently stumbled over Elm, and I'm really digging it so far! I especially like the debugger error messages - they're really helpful! I'm looking at making graphics-related stuff (2d and 3d), and I'd like to have that be coordinated with audio. Perhaps using OSC, or maybe just WebAu

[elm-discuss] Re: older elm site query

2016-07-25 Thread Frederick Yankowski
[posted that one too soon] That site is unofficial (not endorsed by Evan) and so is not authoritative for anything. I reserve the right to shut it down at any time without notice. On Monday, July 25, 2016 at 9:16:56 AM UTC-5, Frederick Yankowski wrote: > > I happen to have a snapshot of the e

[elm-discuss] Re: older elm site query

2016-07-25 Thread Frederick Yankowski
I happen to have a snapshot of the elm-lang.org site running as it looked during the Elm 0.16 days: http://elm-lang.fantods.com/try On Monday, July 25, 2016 at 1:11:53 AM UTC-5, rogera wrote: > > to the forum: > > This evening (Sunday, July 24), > I can not reach the site: > > http://elm-lang.o

[elm-discuss] Re: Type port compat

2016-07-25 Thread OvermindDL1
What I am trying to do is integrate with Phoenix websockets via its JS interface due to some legacy JS code using it and Elm's websocket interface is missing certain required features. What I am needing is is for my JSPhoenix.Presence* types to have a user extendable object record *and* a user

Re: [elm-discuss] Re: Elm install issues

2016-07-25 Thread OvermindDL1
`elm-brunch` is working perfectly for me with Phoenix and brunch. What is the log output? On Sunday, July 24, 2016 at 12:49:26 PM UTC-6, Aaron VonderHaar wrote: > > Is it possible elm-brunch is trying to add boilerplate to the js so it can > be required by other JavaScript files? If so, that m