Re: [elm-discuss] Re: Elm "faster than JavaScript" (version 0.18) - NOT - Parts I and II...

2017-01-11 Thread GordonBGood
On Wednesday, 11 January 2017 23:20:24 UTC+7, Bob Zhang wrote: > > Hi Gordon, thanks for your summary. > Just want to add that BuckleScript compiler is only developed for one > year, now I almost work full time on it (thanks to my employer), so you > would expect more performance boost

Re: [elm-discuss] Monorepo in Elm?

2017-01-11 Thread John Mayer
I've had success using git submodules for this pattern. On Wed, Jan 11, 2017 at 8:26 PM, Jeff Schomay wrote: > Has anyone tried this? > > I would like to do something similar to babel.js > (they use lerna ). > I have

[elm-discuss] Monorepo in Elm?

2017-01-11 Thread Jeff Schomay
Has anyone tried this? I would like to do something similar to babel.js (they use lerna ). I have tried (https://github.com/jschomay/elm-monorepo-test), but it doesn't work, because my "sub-package"' elm-package.json's repository field is

[elm-discuss] Re: My Argument for "Why Elm" please review before I present to my company

2017-01-11 Thread Jeff Schomay
I've successfully made this pitch. Here were the key points for me: - no run-time exceptions - much quicker with much smaller file size - demo debugger - simple to add a little elm to existing code wo/ changing workflow/ci process That got a trial run which sold all our developers, who in turn

[elm-discuss] elm-mode-goto-tag-at-point (Emacs)

2017-01-11 Thread Marshall handheld Flax
For me, the above command (C-c .) works great when the symbol under my cursor is a function or type I've defined. But it doesn't work for library functions from packages my program depends upon. Should it, or is there something else I should be doing? Thanks! Marshall -- You received this

Re: [elm-discuss] Re: pattern match sum type inside a record inside a Maybe

2017-01-11 Thread Brian Marick
> On Jan 11, 2017, at 1:48 PM, Max Goldstein wrote: > > What about: > > case Dict.get id model.displayables |> Maybe.map .view of You are awesome. For the record, here’s the expanded code: > case Dict.get id model.displayables |> Maybe.map .view of >

[elm-discuss] Re: My Argument for "Why Elm" please review before I present to my company

2017-01-11 Thread Charlie Koster
I'll recommend a different approach based on my personal experience with trying to sell Elm. Rather than showing a laundry list of technical points, start off with something that really grabs their attention and gives them a "holy crap" moment. Two examples: I gave a meetup talk early last

[elm-discuss] Re: My Argument for "Why Elm" please review before I present to my company

2017-01-11 Thread Matthew Griffith
Nice! A few notes if you want them:) Tests are VASTLY easier to write in elm because we have a guarantee of same-arguments-same-result, which means each piece can be tested independently. And, like you said, you'll need fewer tests because of the type system. You can have higher confidence

[elm-discuss] Re: My Argument for "Why Elm" please review before I present to my company

2017-01-11 Thread 'Rupert Smith' via Elm Discuss
On Wednesday, January 11, 2017 at 8:28:01 PM UTC, Ossi Hanhinen wrote: > > Nice write-up! As it happens, I recently wrote a collection of thoughts in > the same vein, and just published it as a blog post: > http://ohanhi.github.io/why-and-when-of-choosing-elm.html "What is Elm a poor fit for

[elm-discuss] Re: My Argument for "Why Elm" please review before I present to my company

2017-01-11 Thread 'Rupert Smith' via Elm Discuss
On Wednesday, January 11, 2017 at 5:56:16 PM UTC, Gage Peterson wrote: > > I've been wanting to pitch (again) Elm as an alternative to Angular / > React + Redux. These are my arguments, please leave some comments: > > > https://gist.github.com/justgage/7de5a2f9e639aec9436aad882fc90446 > "a lot

[elm-discuss] Re: Elm's compiler is trying to import a module that doesn't exist...?

2017-01-11 Thread Frederick Yankowski
I've seen that error when `elm-lang/core` is missing from the dependencies in elm-package.json. Try `elm package install elm-lang/core`. -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails

[elm-discuss] Re: My Argument for "Why Elm" please review before I present to my company

2017-01-11 Thread Ossi Hanhinen
Nice write-up! As it happens, I recently wrote a collection of thoughts in the same vein, and just published it as a blog post: http://ohanhi.github.io/why-and-when-of-choosing-elm.html -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To

[elm-discuss] Re: Isomorphic web apps with Elm?

2017-01-11 Thread 'Rupert Smith' via Elm Discuss
On Wednesday, January 11, 2017 at 6:39:12 PM UTC, Jen-Mei Wu wrote: > > > On Wednesday, January 11, 2017 at 1:54:38 AM UTC-8, Rupert Smith wrote: >> >> So I guess it inserts a data-reactid atrtibute on the node, and the >> vitual dom rendering code uses that to know how to treat it differently.

[elm-discuss] Re: pattern match sum type inside a record inside a Maybe

2017-01-11 Thread Max Goldstein
What about: case Dict.get id model.displayables |> Maybe.map .view of -- 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-discuss+unsubscr...@googlegroups.com.

[elm-discuss] Elm's compiler is trying to import a module that doesn't exist...?

2017-01-11 Thread Ossi Hanhinen
I can tell you that `Basics` is the module that contains all the "top level" Elm functions like arithmetic operators, ++, == and so forth. I have actually come across this some time, and I think the reason was either corrupted elm-stuff or the wrong compiler. So maybe double check that the Elm

[elm-discuss] pattern match sum type inside a record inside a Maybe

2017-01-11 Thread Brian Marick
I have these types: > type Affordance > = Writable Form > | Viewable Animal > > type alias Displayed = > { view : Affordance > , animalFlash : AnimalFlash > } … stored inside a Dict. So when I try to get what is the only possible case (a Writable form), I have a nested structure.

[elm-discuss] Re: My Argument for "Why Elm" please review before I present to my company

2017-01-11 Thread Gage Peterson
Good questions. The target audience would basically be some lead developers (although I would like to write one for product people too). I think the last time they figured that adding a whole new language was too extreme and you could "get the same thing" or at least get close with React +

[elm-discuss] Re: My Argument for "Why Elm" please review before I present to my company

2017-01-11 Thread Charlie Koster
Who is your target audience? Are you pitching to a CTO? A Scrum Master? A Project Manager? A handful of Developers? Why did the last pitch get turned down. Those are two important pieces of information to have if you want this one to be successful. -- You received this message because you

[elm-discuss] Re: Isomorphic web apps with Elm?

2017-01-11 Thread Jen-Mei Wu
On Wednesday, January 11, 2017 at 1:54:38 AM UTC-8, Rupert Smith wrote: > > So I guess it inserts a data-reactid atrtibute on the node, and the vitual > dom rendering code uses that to know how to treat it differently. > Yep. It also adds checksums that the client verifies. -- You received

[elm-discuss] My Argument for "Why Elm" please review before I present to my company

2017-01-11 Thread Gage Peterson
I've been wanting to pitch (again) Elm as an alternative to Angular / React + Redux. These are my arguments, please leave some comments: https://gist.github.com/justgage/7de5a2f9e639aec9436aad882fc90446 -- You received this message because you are subscribed to the Google Groups "Elm

[elm-discuss] Re: Isomorphic web apps with Elm?

2017-01-11 Thread 'Rupert Smith' via Elm Discuss
On Wednesday, January 11, 2017 at 9:43:03 AM UTC, Rupert Smith wrote: > > How does React know that a node has been server rendered? Is there some > special attribute set on it to indicate this? > Actually, there is a clue in the following docs for renderToStaticMarkup(): "Similar to

[elm-discuss] Re: Isomorphic web apps with Elm?

2017-01-11 Thread 'Rupert Smith' via Elm Discuss
On Wednesday, January 11, 2017 at 4:36:47 AM UTC, Jen-Mei Wu wrote: > > On Monday, January 9, 2017 at 7:32:56 AM UTC-8, Rupert Smith wrote: >> >> A wee problem with this. I don't see how a page can be partially rendered >> server side then passed to the client to complete, when using a virtual

[elm-discuss] Re: Collecting use cases for File, ArrayBuffer and TypedArrays/DataViews

2017-01-11 Thread Simon
Hi all, thought it might be worth updating this thread on my progress with S3, which I have now solved by adding one small hack to the Filereader library (github only because of the native code). I have documented this at