[elm-discuss] Re: Sending a message from spawned process

2016-09-20 Thread Brian Cardiff
On Wednesday, September 21, 2016 at 2:09:30 AM UTC-3, Brian Cardiff wrote: > > Hi, > > In elm 0.17.1, is it possible to send a message to the app from a spawned > process? If so, How? :-) > > Some days ago I failed to do that. I wanted to implement a debounce > module. The rough idea was that

[elm-discuss] Sending a message from spawned process

2016-09-20 Thread Brian J. Cardiff
Hi, In elm 0.17.1, is it possible to send a message to the app from a spawned process? If so, How? :-) Some days ago I failed to do that. I wanted to implement a debounce module. The rough idea was that from a message I want to debounce a spawned process would start. First it will do a sleep and

[elm-discuss] Re: Suggestion: Add Names and possibly Mascot for Elm-Repl and Elm Online Editor

2016-09-20 Thread Kk Kruups
Hi folks, I see Peter Damoc, brought up a similar idea July of last year (2015). On Wednesday, September 21, 2016 at 11:40:27 AM UTC+9, Kk Kruups wrote: >

[elm-discuss] Suggestion: Add Names and possibly Mascot for Elm-Repl and Elm Online Editor

2016-09-20 Thread Kk Kruups
HI folks, It would be nice to change add user friendly names to both elm-repl and elm online editor with possible additional Mascots. For example elm-repl could be called elmR elm online editor could be calledelmo So we would have elmR and elmO sitting under an Elm Tree

[elm-discuss] Looking for Advice on Teaching Web Apps

2016-09-20 Thread Robert Muller
Greetings. I've been writing functional programs since about 1978, first in LISP 1.5, then Scheme, and finally ML for the last 25 years or so. I've volunteered to teach a Web Apps course at Boston College this spring. I've never taught it before. In the absence of job-hunting constraints that

Re: [elm-discuss] PSA for beginners

2016-09-20 Thread John Orford
Thanks, this was really good. Really good. Really really good! On Tue, 20 Sep 2016 at 11:52, Peter Damoc wrote: > Watch Richard's talk from the elm-conf. > https://www.youtube.com/watch?v=IcgmSRJHu_8 > > Understanding the ideas presented there will improve your code in way that

Re: [elm-discuss] Re: Post mortem for my first attempt at using Elm in a real app.

2016-09-20 Thread joseph ni
> - *Elm is an amazing language.* I've had countless moments of sheer pleasure programming in Elm for this app. Actually, this is *my* take away from the very nicely written, down to earth post-mortem. I've been hammering away at web-frameworks for 4 yrs (angular, blaze, react) and windows

Re: [elm-discuss] Re: Post mortem for my first attempt at using Elm in a real app.

2016-09-20 Thread Brian Marick
> On Sep 20, 2016, at 3:46 PM, Peter Damoc wrote: > > As Richard pointed out, Elm is a great choice when the team is already > comfortable with web-dev. > I am a beginner in this field. I’m a front-end beginner too. I wonder how many of us there are, and how we might help

Re: [elm-discuss] Elm, Objects and Components

2016-09-20 Thread Richard Feldman
No problem! Hope it works well. :) On Tue, Sep 20, 2016 at 2:22 PM Peter Damoc wrote: > Hmm... I tried integrating the icon-toggle-demo and, to my surprise, I got > it working even if it's past midnight here and I'm dead tired. > > I need to explore this some more tomorrow. >

Re: [elm-discuss] Elm, Objects and Components

2016-09-20 Thread Peter Damoc
Hmm... I tried integrating the icon-toggle-demo and, to my surprise, I got it working even if it's past midnight here and I'm dead tired. I need to explore this some more tomorrow. Thanks Richard! On Tue, Sep 20, 2016 at 7:24 PM, Richard Feldman < richard.t.feld...@gmail.com> wrote: > If

Re: [elm-discuss] Elm, Objects and Components

2016-09-20 Thread Richard Feldman
Yeah, I think this is a great thing for people to be playing around with. :) Underexplored territory! On Tue, Sep 20, 2016, 2:16 PM James Wilson wrote: > I haze thought about using web components like this too. You could even go > a step further and have web components that

Re: [elm-discuss] Elm, Objects and Components

2016-09-20 Thread James Wilson
I haze thought about using web components like this too. You could even go a step further and have web components that embed Elm inside themselves the same way you can whack Elm into any other element. So perhaps a collection of Elmish web components points one path forward! The other nice

Re: [elm-discuss] Elm, Objects and Components

2016-09-20 Thread Nick H
> > So the question is -- if you treat a TEA program as just a piece of data, > a four-piece record which does nothing (until you run it with > Html.program), can you define any standard operations which can take two > TEA programs and be guaranteed to give you another TEA program? If there >

[elm-discuss] Re: Elm, Objects and Components

2016-09-20 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, September 20, 2016 at 12:30:03 PM UTC+1, Gusztáv Szikszai wrote: > > Also maybe you don't know but I've created Elm-UI > just for the same reason: to quickly build stuff from the same components > just like Bootstrap. And it solves many of the problems that seems

Re: [elm-discuss] Re: Some questions about types.

2016-09-20 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, September 20, 2016 at 4:53:42 PM UTC+1, Janis Voigtländer wrote: > > So the definition of List might look like: > > type List a > = Nil > | Cons a (List a) > > That’s exactly how the definition of List would look like if it didn’t > have a native implementation. > > So it seems you

Re: [elm-discuss] Re: Elm, Objects and Components

2016-09-20 Thread Duane Johnson
On Tue, Sep 20, 2016 at 8:34 AM, Max Goldstein wrote: > Respectfully, the discussions around components keep happening because > people start them. Asking "how do I have stateful components with > closure/nesting" falls prey to the XY problem, and also misses a lot of

Re: [elm-discuss] Re: Some questions about types.

2016-09-20 Thread Janis Voigtländer
So the definition of List might look like: type List a = Nil | Cons a (List a) That’s exactly how the definition of List would look like if it didn’t have a native implementation. So it seems you already know everything. ​ 2016-09-20 17:25 GMT+02:00 'Rupert Smith' via Elm Discuss <

Re: [elm-discuss] Elm, Objects and Components

2016-09-20 Thread Brian Marick
> On Sep 20, 2016, at 3:21 AM, Richard Feldman > wrote: > > > If nothing is wrong with Web Components, why not use them? > > There are a ton of them > you > could use right now, for MDL in

[elm-discuss] Re: Post mortem for my first attempt at using Elm in a real app.

2016-09-20 Thread 'Rupert Smith' via Elm Discuss
On Monday, September 19, 2016 at 2:08:43 PM UTC+1, Peter Damoc wrote: > > I keep postponing this for a few weeks but today my partner decided to > stop the collaboration and I'll take advantage of this moment to write this > post mortem. > Di your 'collaboration' end because Elm turned out to

[elm-discuss] Re: Some questions about types.

2016-09-20 Thread 'Rupert Smith' via Elm Discuss
Some more questions about types. I just ran into the recursive 'type alias' issue: https://github.com/elm-lang/elm-compiler/blob/0.17.1/hints/recursive-alias.md which is clear enough. It seems a bit of a shame that some of this documentation is a bit buried away - it really feels like this

Re: [elm-discuss] Re: Post mortem for my first attempt at using Elm in a real app.

2016-09-20 Thread Peter Damoc
On Tue, Sep 20, 2016 at 5:18 PM, Lars Jacobsson wrote: > Peter - just out of curiosity: How did you split those 8000 LOC up? Did > you go for a structured component/react type splitup, or did you split > "organically" when the need occurred? > It was more of an

Re: [elm-discuss] Re: Elm, Objects and Components

2016-09-20 Thread Max Goldstein
> > If Elm provides an official way to use TEA in order to implement Custom > Elements *the discussions around Components will go away.* > For example, if elm-html library would be supplemented by an elm-ui > library that is just as easy to use as elm-html but it is as extensive as >

[elm-discuss] Re: Post mortem for my first attempt at using Elm in a real app.

2016-09-20 Thread OvermindDL1
SCSS helps 'some' of the CSS woes at least. I keep my CSS outside of elm and in SCSS and it works decently(ish). On Tuesday, September 20, 2016 at 7:20:32 AM UTC-6, Rupert Smith wrote: > > On Monday, September 19, 2016 at 6:18:33 PM UTC+1, Rex van der Spuy wrote: >> >> CSS is hell-on-wheels:

[elm-discuss] Re: Post mortem for my first attempt at using Elm in a real app.

2016-09-20 Thread Lars Jacobsson
Peter - just out of curiosity: How did you split those 8000 LOC up? Did you go for a structured component/react type splitup, or did you split "organically" when the need occurred? > > > Another large amount of time was spent trying to integrate a carousel. I > ended up reimplementing a bare

[elm-discuss] Re: Post mortem for my first attempt at using Elm in a real app.

2016-09-20 Thread Lars Jacobsson
Peter - just out of curiosity: How did you split those 8000 LOC up? Did you go for a structured component/react type splitup, or did you split "organically" when the need occurred? On Monday, September 19, 2016 at 3:08:43 PM UTC+2, Peter Damoc wrote: > > I keep postponing this for a few weeks

Re: [elm-discuss] Some questions about types.

2016-09-20 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, September 20, 2016 at 2:37:29 PM UTC+1, Rupert Smith wrote: > > On Tuesday, September 20, 2016 at 2:08:31 PM UTC+1, Joey Eremondi wrote: >> >> Both int and float end up as a JS number at the end of the day, so >> definitely bounded. Defer to the JS spec? >> > >

Re: [elm-discuss] Some questions about types.

2016-09-20 Thread 'Rupert Smith' via Elm Discuss
On Tuesday, September 20, 2016 at 2:08:31 PM UTC+1, Joey Eremondi wrote: > > Both int and float end up as a JS number at the end of the day, so > definitely bounded. Defer to the JS spec? > http://www.w3schools.com/js/js_numbers.asp Says "Javascript numbers are always 64-bit floating point".

[elm-discuss] Re: Http 401 Interceptor? My 3rd Elm Project - authentication

2016-09-20 Thread 'Rupert Smith' via Elm Discuss
On Sunday, September 18, 2016 at 9:33:14 PM UTC+1, Erik Lott wrote: > > I'm not sure what the outmessage package is that you linked to, but you > don't need a package to manage this. An outmsg is just a messge that is > returned from the update function, to notify the function caller of >

[elm-discuss] Re: Post mortem for my first attempt at using Elm in a real app.

2016-09-20 Thread 'Rupert Smith' via Elm Discuss
On Monday, September 19, 2016 at 6:18:33 PM UTC+1, Rex van der Spuy wrote: > > CSS is hell-on-wheels: the most time I've spent debugging my Elm apps have > not been with my Elm code, but with the CSS. > > Hey, Elm Community, we've solved JavaScript now we need a real solution to > CSS! :) > I

Re: [elm-discuss] Some questions about types.

2016-09-20 Thread Janis Voigtländer
http://package.elm-lang.org/packages/javcasas/elm-integer/latest ​ 2016-09-20 15:08 GMT+02:00 Joey Eremondi : > Both int and float end up as a JS number at the end of the day, so > definitely bounded. Defer to the JS spec? > > Not sure about bignum, there's definitely

Re: [elm-discuss] Some questions about types.

2016-09-20 Thread Joey Eremondi
Both int and float end up as a JS number at the end of the day, so definitely bounded. Defer to the JS spec? Not sure about bignum, there's definitely not language support, but there might be a library doing it somewhere, and if not, someone should write one! On Sep 20, 2016 10:03 PM, "'Rupert

[elm-discuss] Some questions about types.

2016-09-20 Thread 'Rupert Smith' via Elm Discuss
Is Int unbounded? I mean is it a 'big integer' implementation as per ML, or is it 64-bit or soe other limit? What is the precision of a Float? Is it the same as 64-bit IEEE 754? Is there a 'big decimal' representation? The docs around the basics of syntax don't really cover this:

Re: [elm-discuss] Re: Elm, Objects and Components

2016-09-20 Thread Peter Damoc
On Tue, Sep 20, 2016 at 2:30 PM, Gusztáv Szikszai wrote: > Also maybe you don't know but I've created Elm-UI > just for the same reason: to quickly build stuff from the same components > just like Bootstrap. And it solves many of the problems that

Re: [elm-discuss] Elm, Objects and Components

2016-09-20 Thread Peter Damoc
On Tue, Sep 20, 2016 at 2:36 PM, Ambrose Laing wrote: > So the question is -- if you treat a TEA program as just a piece of data, > a four-piece record which does nothing (until you run it with > Html.program), can you define any standard operations which can take two > TEA

Re: [elm-discuss] Elm, Objects and Components

2016-09-20 Thread John Mayer
Here are my questions How do you define a web component in Elm. What's the boilerplate? Can it be auto-generated from any Elm app? (my gut here says that ports become similar to on-change events) How do you consume web components with Elm's virtual-dom. Are there issues? There used to be

Re: [elm-discuss] Elm, Objects and Components

2016-09-20 Thread John Mayer
You shouldn't need Polymer. Just web components, which are a standard and implemented in most browsers (probably all browsers on which Elm runs). It will be a few dozen lines of JS and HTML, and there might be quirks. If it works, it still won't be super elegant, but it could build the case for

[elm-discuss] PSA for beginners

2016-09-20 Thread Peter Damoc
Watch Richard's talk from the elm-conf. https://www.youtube.com/watch?v=IcgmSRJHu_8 Understanding the ideas presented there will improve your code in way that will make you want to cry with joy. What I think Richard is doing there is a demonstration of how to take a piece of brittle Carbon and

Re: [elm-discuss] Elm, Objects and Components

2016-09-20 Thread Peter Damoc
On Tue, Sep 20, 2016 at 11:21 AM, Richard Feldman < richard.t.feld...@gmail.com> wrote: > >>> If nothing is wrong with Web Components, why not use them? > > There are a ton of them > you > could use right now, for MDL in

Re: [elm-discuss] Elm, Objects and Components

2016-09-20 Thread John Orford
(I found MDL web components to be pretty hit and miss when used with Elm - perhaps that's changed since 0.16 - would love to hear more on this topic) On Tue, 20 Sep 2016 at 10:21 Richard Feldman wrote: > Or you can define a Web Component >>>

Re: [elm-discuss] Elm, Objects and Components

2016-09-20 Thread Peter Damoc
On Tue, Sep 20, 2016 at 4:29 AM, Ian Mackenzie wrote: > Peter, you may be interested in (and I'd appreciate your feedback on) a > little library I've been working on for composable input widgets: > https://github.com/kintail/input-widget > I took a superficial look at