#elixir-lang

/

      • bratsche joined the channel
      • sMatrix joined the channel
      • Codefriar joined the channel
      • hassox has quit
      • eletuchy joined the channel
      • eletuchy_ joined the channel
      • kronicdeth joined the channel
      • CoderPuppy joined the channel
      • manfrin joined the channel
      • drewolson has quit
      • mlankenau joined the channel
      • eletuch__ joined the channel
      • eletuchy has quit
      • thinkt4nk joined the channel
      • semaperepelitsa has quit
      • jeffweiss joined the channel
      • manfrin has quit
      • eletuchy_ has quit
      • manfrin joined the channel
      • eletuchy joined the channel
      • datanoise joined the channel
      • chrismccord joined the channel
      • eletuchy_ joined the channel
      • mlankenau has quit
      • eletuch__ has quit
      • sunaku has quit
      • erzar_ joined the channel
      • Sorella has quit
      • semaperepelitsa joined the channel
      • datanoise has quit
      • eletuchy has quit
      • eletuchy joined the channel
      • eletuch__ joined the channel
      • Sorella joined the channel
      • eletuchy_ has quit
      • triangles joined the channel
      • sMatrix has quit
      • desophos joined the channel
      • eletuchy has quit
      • mitchellhenke joined the channel
      • eletuchy joined the channel
      • eletuch__ has quit
      • eletuchy_ joined the channel
      • cpup joined the channel
      • eletuch__ joined the channel
      • eletuchy has quit
      • refriedchicken joined the channel
      • eletuchy joined the channel
      • eletuchy_ has quit
      • sduquej has quit
      • eletuchy_ joined the channel
      • eletuch__ has quit
      • lyuha joined the channel
      • eletuchy has quit
      • roger333 has quit
      • eletuchy joined the channel
      • johnstorey joined the channel
      • manfrin has quit
      • gokr has quit
      • eletuchy_ has quit
      • __charly__ joined the channel
      • jschneck joined the channel
      • qurve joined the channel
      • qurve
        Hey, I'm following this document for upgrading to phoenix 1.2: https://gist.github.com/chrismccord/29100e16d39...
      • I got to the gettext section, but those functions are not in my web/gettext.ex, they are in web/views/error_helpers.
      • Where did I get lost along the way?
      • chrismccord
        qurve : typo
      • qurve
        My web/gettext.ex is just a module with lots of comments and use Gettext, otp_app: :terra
      • chrismccord
        qurve : error_helpers is the correct module to edit
      • qurve
        OK :D
      • I thought I missed a previous upgrade or something.
      • Thanks for taking the time to write such a good upgrade guide!
      • rcyr joined the channel
      • PaReeOhNos joined the channel
      • chrismccord
        fixed, thanks
      • CoderPuppy joined the channel
      • qurve
        I also noticed a small typo in there where MyApp was instead MyAPp
      • In case you care about that.
      • manfrin joined the channel
      • pipework
        bryanjos: Hey, I have some stupid questions regarding elixirscript. Is there a better place to learn a lot other than https://github.com/bryanjos/elixirscript/blob/m...
      • semaperepelitsa has quit
      • qurve
        Is there any way to get mix to acknowledge aliases in child apps?
      • I notice for 1.2 there is a new "test" alias, but I usually run my tests from the umbrella root, will that still work?
      • jeramyRR has quit
      • chrismccord
        yes
      • manfrin has quit
      • qurve
        Yay :)
      • KallDrexx has quit
      • Now to look into failing tests.
      • Oh sweet, changeset errors are always tuples now.
      • PaReeOhNos has quit
      • bryanjos
        pipework: docs definitely need work. You can try this http://bryaninspired.com/ways-to-use-elixirscri...
      • But yeah I should work on a tutorial or something
      • pipework
        bryanjos: Oh cool. Sorry for not being quite informed just yet, but one question. How does elixirscript map processes into JS? web workers?
      • qurve
        Well, that appears to have been painless, just needed to update some tests around validation messages.
      • manfrin joined the channel
      • Last Q: When working in an umbrella app, where should I be issuing my mix deps.get/update/etc commands from?
      • bryanjos
        pipework: it doesn't just yet. Still a work in progress
      • qurve
        Because no matter where I do it, something weird always happens.
      • Codefriar
        any recommendations for a rest client lib?
      • pipework
        bryanjos: Gotcha. I was planning on implementing a number of the things from erlang to use in JS for myself unless I could find a way to build on elixirscript.
      • iamlacroix joined the channel
      • rcyr is now known as systemfault
      • montanonic joined the channel
      • I might end up having to anyways. I'm building my system on top of a cryptographic capability and event source data store system. I might just have to build on top of there instead of starting again with elixirscript. I guess I could use elixirscript and call web workers in that for manual concurrency stuff in js, right?
      • marr has quit
      • icecreamcohen has quit
      • PaReeOhNos joined the channel
      • lodin- joined the channel
      • amclain has quit
      • greg_n has quit
      • farian has quit
      • johnstorey has quit
      • cpup joined the channel
      • e_dub joined the channel
      • bryanjos
        pipework: you should be able to call js stuff with it. The concurrency in js in general is a bit all over the place right now
      • qurve has quit
      • chrismccord
        ericmj around?
      • ericmj
        chrismccord: yeah
      • bryanjos
        The implementation I have for processes right now that uses generators but requires some work
      • BombStrike joined the channel
      • chrismccord
        ericmj : do you know if there's a workaround for the new 1.3 compiler warnings for cases like this? https://github.com/phoenixframework/phoenix/blo...
      • "warning: function Ecto.Type.primitive?/1 is undefined (module Ecto.Type is not available)"
      • in this case are are guarding against it but the compiler doesn't know. I can use `apply`, but kinda a pita
      • ericmj
        chrismccord: two solutions: you can move Code.ensure_loaded? to the module body to run it at compile time or you can add `xref: [exclude: Ecto.Type]` to your mix.exs project config
      • PaReeOhNos has quit
      • chrismccord
        ericmj : ah fantastic. <3
      • kronicdeth has quit
      • CharlesO joined the channel
      • pipework
        bryanjos: I like generators, but was hoping for it using a pool of web workers, you know?
      • Like for message passing, it'd be cool if it passed a message into a web worker.
      • gen_server asabil #a web worker
      • Sorry, a degu crawled across my keyboard.
      • gen_server as a web_worker, maybe.
      • asonge
        pipework: once you have generators, working with web workers is an implementation detail
      • mrkhlms joined the channel
      • pipework
        asonge: I'm hoping for a nice way to not have to care after setting it or having it be the default for all message passing though.
      • CoderPuppy joined the channel
      • CharlesO
        Some unsafe warnings in Elixir v1.3 seem incorrect. Please look at this: https://gist.github.com/CharlesOkwuagwu/53995c5...
      • asonge
        pipework: and for browsers that do not support it? the important bit is preserving the semantics...adding web worker support should be an optional compile flag or something
      • pipework
        asonge: There are libraries if you want to support older things. I don't know what bryanjos chooses to target.
      • douglasc_ joined the channel
      • I don't mind pluggability, and I'd gladly write the plugin, but I'd like to be able to configure it to be used as the default without any extra artifacts besides configuration once, if any.
      • asonge
        CharlesO: that warning is correct
      • CharlesO
        using a variable defined in outer scope inside case/cond/receive without changing it's value
      • asonge
        CharlesO: do not bind s in the if expression
      • CharlesO
        line 7, and 10, there is not binding
      • simply passing s to a function
      • asonge
        CharlesO: line 2