workspace
stringclasses
4 values
channel
stringclasses
4 values
text
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
elmlang
general
If you write a DOT -> gp2 and a gp2 -> DOT converter. This would make it for you possible to use Kite as well as other graph drawing software.
2019-02-20T11:33:23.003700
Reuben
elmlang
general
I have put “DOT file import/export” to the top of my to do list for Kite: <https://github.com/erkal/kite/projects/1#card-17893413> But if you want to write parsers in elm, than you could do it, too. Because I will probably not have time for doing this for a while.
2019-02-20T11:36:41.003900
Reuben
elmlang
general
<@Krista> Thank you, that's great to hear.
2019-02-20T14:25:59.004700
Sari
elmlang
general
For anyone curious, the post in question is <https://korban.net/posts/elm/2019-02-15-combining-http-requests-with-task-in-elm/> and it is indeed very good!
2019-02-20T14:36:10.005400
Janiece
elmlang
general
And <@Sari> I'm glad to see from your future post about `elm-ui` in November 2019 that we will still be able to "Forget CSS and enjoy creating UIs in pure Elm" several months from now :stuck_out_tongue:
2019-02-20T14:38:27.006700
Janiece
elmlang
general
Whats is the quote of evancz related to docs ?
2019-02-20T14:58:18.007800
Alyce
elmlang
general
"It's not done until the docs are great"? <https://twitter.com/czaplic/status/928359227541798912?s=19>
2019-02-20T15:22:54.008500
Janiece
elmlang
general
With the help of <@Lizabeth> and <@Dede> I see the way to make inbound JS ports that have no payload (nullary functions or functions without arguments) is `port signedOut : (() -&gt; msg) -&gt; Sub msg` along with a subscription of `signedOut (always SignedOut)`. What is the expected way we should use outbound nullary functions? Is it `port signOut : () -&gt; Cmd msg` and in the `update` function: `( model, signOut () )`?
2019-02-20T20:08:05.012700
Jacquelyn
elmlang
general
<@Jacquelyn> yep, but it's generally an anti-pattern to not send a value on your port
2019-02-20T20:20:31.013400
Earlean
elmlang
general
It's recommended to have 1 outgoing and 1 incoming port for each 'process' (aka. actor) you're communicating with. You shouldn't try to have one port for each JS function you want to call
2019-02-20T20:22:36.014900
Earlean
elmlang
general
I see, thank you for the recommendation
2019-02-20T20:29:42.015900
Jacquelyn
elmlang
general
<https://youtu.be/P3pL85n9_5s> is a great talk about ports
2019-02-20T20:31:00.016100
Earlean
elmlang
general
Hey y’all, is there a good “get help” channel? In the last day or so we’ve started seeing some crashes in compiled elm code, in recursive calls to `eqHelp`. I know we do some funny stuff so it’s probably mostly an us problem but some guidance on how to track it down would be super helpful!
2019-02-20T23:06:40.017600
Tonda
elmlang
general
i'd start with debug.log statements around suspected recursions, this channel's got the most eyes
2019-02-20T23:12:46.018500
Ruthann
elmlang
general
There's <#C0K8VHA6B|help>, though with less :eyes: than here
2019-02-20T23:43:02.019400
Lizabeth
elmlang
general
Anyone else getting the following error in the console when hitting and it not progressing past the loading screen? <https://ellie-app.com/new> ``` Unchecked runtime.lastError: The message port closed before a response was received. ```
2019-02-21T03:00:47.021800
Lizabeth
elmlang
general
I believe that error message is caused by a browser extension <https://github.com/mozilla/webextension-polyfill/issues/130>
2019-02-21T03:05:23.022300
Augustus
elmlang
general
Thanks it was uBlock Origin in my case, which happened to be the only extension that I had running incognito &amp; firefox as well.
2019-02-21T03:07:14.023200
Lizabeth
elmlang
general
do you know it was blocking by chance? I have ublock as well but it loads for me
2019-02-21T03:07:52.023800
Augustus
elmlang
general
hi everyone, where should json decoders go when creating custom types that you don't want to expose outside the module? I end up always creating cycles with this...
2019-02-21T09:25:38.026400
Nancy
elmlang
general
Just keep them in the module where you define the custom type. You can’t keep the type opaque otherwise. It’s in general a good idea to keep types and functions using those types close together.
2019-02-21T09:29:18.028000
Jin
elmlang
general
and I guess other methods like view functions should go on the same module, right?
2019-02-21T09:31:28.028700
Nancy
elmlang
general
Yes. But you can of course factor out general view helpers. A relevant talk is <https://www.youtube.com/watch?v=XpDsk374LDE>
2019-02-21T09:33:01.029500
Jin
elmlang
general
but to write the view function you need to be able to case on the custom type internals
2019-02-21T09:34:05.030000
Nancy
elmlang
general
Sure, functions using the custom type should live there. With general view helpers I meant something like layout wrapper, views that take some Html and wrap it in some other Html.
2019-02-21T09:38:14.031800
Jin
elmlang
general
right
2019-02-21T09:38:35.032000
Nancy
elmlang
general
As it's been mentioned below there is a <#C0K8VHA6B|help> channel. Also, this is probably what you are after: <https://github.com/elm/core/blob/5dcec7f6cd46599f9de95ca5f1cef386f0dc767d/src/Elm/Kernel/Utils.js#L27>
2019-02-21T09:42:24.032100
Lynne
elmlang
general
The first videos from elm oslo day are online: Ossi Hanhinen – Being human in the Elm community <https://www.youtube.com/watch?v=l-brxQKJnfw> Luca Mugnaini – Elm at large (companies) <https://www.youtube.com/watch?v=yH6o322S8XQ> Richard Feldman – Exploring elm-spa-example <https://www.youtube.com/watch?v=RN2_NchjrJQ> Teodor Lunaas Heggelund – Lessons learned teaching Elm to kids <https://www.youtube.com/watch?v=FSec8QmgEWo> Einar W. Høst – Picture combinators and recursive fish <https://www.youtube.com/watch?v=jOu2hISeO5M> Tessa Kelly – Color Coding with Elm <https://www.youtube.com/watch?v=UzvCX-8bTDs> Ju Liu - Do Parsers dream of Electric Guitars? <https://www.youtube.com/watch?v=suSAfow2rmM> Jonas Berdal - On the Elm Track with NSB <https://www.youtube.com/watch?v=yE9PKFI19RM> Dan Abrams - Audio, Video, and Elm – Best Practices for Multimedia <https://www.youtube.com/watch?v=8jW58fXuuOk> Manuel Fuchs - Emulating the Nintendo Game Boy CPU with Elm <https://www.youtube.com/watch?v=vI30OvU3QW0> Matthew Griffith -A Markup for the Statically Typed <https://www.youtube.com/watch?v=8Zd3ocr9Di8> Kris Jenkins - Slaying a UI Antipattern <https://www.youtube.com/watch?v=NLcRzOyrH08> Brian Hicks - Joyful Particles in Elm <https://www.youtube.com/watch?v=goL7LeDHFi4> Emma Tsujimoto Cunningham - Parsing lexical ambiguity with Elm and expressive types <https://www.youtube.com/watch?v=sLh-7E-iOto> Robin Heggelund Hansen - The Extensibility Problem <https://www.youtube.com/watch?v=4QwI_QWoUK0> If you are old school and prefer RSS feeds over subscriptions, here is the one for elm oslo day: <https://www.youtube.com/feeds/videos.xml?channel_id=UCe8Jqmf-R82Zm0nPOxFLqkg>
2019-02-21T09:54:52.032600
Jillian
elmlang
general
They seem to come in one-by-one now. :slightly_smiling_face: :tada:
2019-02-21T10:13:48.033100
Timika
elmlang
general
There are advantages to this: 1) you can release as their finished instead of holding the up until done. 2) as long as you don’t spread it out too much, you can keep people’s attention for a longer period of time.
2019-02-21T10:41:03.035200
Cammy
elmlang
general
thanks! Yes we’re seeing a crash in this code
2019-02-21T10:53:39.035600
Tonda
elmlang
general
We're publishing as fast as we can :slightly_smiling_face: <@Ashleigh> and <@Moon> is hard at work uploading.
2019-02-21T11:28:43.036200
Waylon
elmlang
general
:tada: Can’t wait to watch robin’s talk
2019-02-21T11:29:55.036500
Timika
elmlang
general
Agreed. Glad Luca’s is up already too.
2019-02-21T11:34:43.037100
Cammy
elmlang
general
Hey folks. I'm staring at a problem in Elm where there seems to exist no great way to integrate gRPC. There are indeed no libraries that solve the problem, although there are two protocol buffer libraries that could be leveraged to help. My problem is that grpc-web (the protocol that we'd need to implement) is obviously low level javascript-y http/2 type stuff. The definition of kernel code. Is there some process by which I can begin developing a module that's intended to fit into the kernel of Elm? And would it ever be accepted? Is there any process for this?
2019-02-21T13:36:06.043100
Rosaria
elmlang
general
almost done now!
2019-02-21T13:39:50.043800
Moon
elmlang
general
<@Rosaria> I think Evan mentioned somewhere that he prefers seeing posts at discourse/Reddit where the needs are stated and some feedback is gathered. It could be a good place to start and see if there are people who are interested in having Elm gRPC implementation as well.
2019-02-21T14:21:07.045600
Lynne
elmlang
general
Have you considered a port that wraps anything you can’t do in Elm due to browser apis?
2019-02-21T14:22:05.046600
Agustin
elmlang
general
You have access to some http request stuff, but maybe make a http 2 equivalent?
2019-02-21T14:22:33.047400
Agustin
elmlang
general
The comment about browser APIs is a limiting factor to implement gRPC in pure javascript and doesn't really concern elm fwiw. Port or no port you still can't do it.
2019-02-21T14:22:38.047600
Rosaria
elmlang
general
Hence grpc-web protocol is a stop-gap to enable clients to talk "a form" of grpc
2019-02-21T14:22:55.048000
Rosaria
elmlang
general
If you can do it in JS you can do it in ports.
2019-02-21T14:23:16.048700
Agustin
elmlang
general
Being that it's not possible to implement grpc in pure javascript, the proposal would target grpc-web instead.
2019-02-21T14:23:19.048800
Rosaria
elmlang
general
Yes, you're getting confused with what that statement meant. I'm trying to clarify.
2019-02-21T14:23:42.049100
Rosaria
elmlang
general
:slightly_smiling_face:
2019-02-21T14:23:43.049300
Rosaria
elmlang
general
It's an important distinction that there are two protocols, and one is impossible in pure JS and hence impossible with a port.
2019-02-21T14:24:12.049900
Rosaria
elmlang
general
And that we'd be targetting the one that IS possible in pure JS &amp; ports. :slightly_smiling_face:
2019-02-21T14:24:21.050200
Rosaria
elmlang
general
<@Agustin> Also fwiw the purpose of grpc is to have low latency and performant serialization. Using a port forces me to serialize to json, which then gets converted into an object in JS land, which then is serialized to binary. Not very efficient :confused:
2019-02-21T14:26:10.051800
Rosaria
elmlang
general
If its impossible in pure js without a port it’s impossible in elm
2019-02-21T14:27:56.052500
Agustin
elmlang
general
I literally said that.
2019-02-21T14:28:04.052800
Rosaria
elmlang
general
I'm not arguing.
2019-02-21T14:28:06.053000
Rosaria
elmlang
general
lol.
2019-02-21T14:28:07.053200
Rosaria
elmlang
general
Ok cool, going back to your original statement I think Elm isn’t the right choice for you.
2019-02-21T14:28:47.053700
Agustin
elmlang
general
There is no way to do what you want.
2019-02-21T14:28:53.054000
Agustin
elmlang
general
Short of Evan blessing you with an exploration repo. You can’t do it.
2019-02-21T14:29:15.054400
Agustin
elmlang
general
And there are very little active exploration repos
2019-02-21T14:29:36.054800
Agustin
elmlang
general
Not even WebGl has made it to core, and websockets got left behind in 0.18
2019-02-21T14:29:56.055300
Agustin
elmlang
general
Websockets being left behind is a little concerning.
2019-02-21T14:30:40.055900
Rosaria
elmlang
general
But it sounds like this is simply a people problem. Perhaps it can be solved with discussion like Sergey mentions.
2019-02-21T14:31:02.056400
Rosaria
elmlang
general
Also - I'm already fairly invested in Elm.
2019-02-21T14:31:17.056600
Rosaria
elmlang
general
This is a change we want to make on the backend.
2019-02-21T14:31:25.056900
Rosaria
elmlang
general
So Elm either comes along for the ride or we'll have to abandon the idea and try something strictly worse. Like REST/JSONAPI/Swagger.
2019-02-21T14:31:45.057400
Rosaria
elmlang
general
GraphQL
2019-02-21T14:32:00.057800
Agustin
elmlang
general
There are beautiful GraphQL libraries in Elm, run on standard protocols
2019-02-21T14:32:14.058400
Agustin
elmlang
general
Standard protocols are the strictly worse part.
2019-02-21T14:32:21.058700
Rosaria
elmlang
general
The beauty of GraphQL is its not wedded to them
2019-02-21T14:32:36.059100
Agustin
elmlang
general
It runs on them but when HTTP/2 HTTP/3 is ready it’ll run on them too
2019-02-21T14:32:53.059500
Agustin
elmlang
general
HTTP/2 is ready and I'd be concerned if it didn't run on them :confused:
2019-02-21T14:33:06.059800
Rosaria
elmlang
general
Not all webservers etc…
2019-02-21T14:33:33.060500
Agustin
elmlang
general
etc.
2019-02-21T14:33:37.060600
Rosaria
elmlang
general
Does GraphQL solve the problem of describing an APIs methods/serialization?
2019-02-21T14:34:09.061300
Rosaria
elmlang
general
I know precious little about it.
2019-02-21T14:34:22.061600
Rosaria
elmlang
general
But that's the root of the problem we're trying to solve.
2019-02-21T14:34:28.061900
Rosaria
elmlang
general
You describe a schema of what is available
2019-02-21T14:34:30.062200
Agustin
elmlang
general
You write queries / mutations / subscriptions to pull / change / stream that data
2019-02-21T14:34:50.062700
Agustin
elmlang
general
You specify what the api supports, and what your client needs
2019-02-21T14:35:02.063100
Agustin
elmlang
general
Serialisation is standardised based on the schema
2019-02-21T14:35:19.063500
Agustin
elmlang
general
docs for fields / objects are returned via introspection
2019-02-21T14:35:37.064000
Agustin
elmlang
general
I'll look into it. Maybe it's another solution to the problem.
2019-02-21T14:36:15.064800
Rosaria
elmlang
general
Though it still seems like it'll have the same old performance as a random rest API. One of the reasons for choosing gRPC was specifically that.
2019-02-21T14:37:20.066200
Rosaria
elmlang
general
Will have to evaluate. Thanks for your input.
2019-02-21T14:37:26.066700
Rosaria
elmlang
general
It runs over any protocol
2019-02-21T14:37:40.067100
Agustin
elmlang
general
So its common to use websockets etc to improve the push -&gt; pull time
2019-02-21T14:37:57.067700
Agustin
elmlang
general
But those were abandoned in Elm 0.18 :disappointed:
2019-02-21T14:38:07.068000
Rosaria
elmlang
general
No because its trivial to use ports for them
2019-02-21T14:38:27.068400
Agustin
elmlang
general
(Theres no deserialisation overhead, as its sent straight to the websocket)
2019-02-21T14:38:47.069300
Agustin
elmlang
general
but yes websockets use json, and not some binary format
2019-02-21T14:39:19.070200
Agustin
elmlang
general
How is that possible? If it goes through the port it must be serialized somehow no?
2019-02-21T14:39:22.070300
Rosaria
elmlang
general
sure
2019-02-21T14:39:28.070500
Agustin
elmlang
general
it just does it before the port
2019-02-21T14:39:37.071100
Agustin
elmlang
general
rather than after
2019-02-21T14:39:40.071400
Agustin
elmlang
general
its going to be serialised if you send it over a websocket
2019-02-21T14:39:50.071900
Agustin
elmlang
general
:slightly_smiling_face:
2019-02-21T14:39:51.072100
Agustin
elmlang
general
So the json object the port is carrying is just a string then?
2019-02-21T14:39:51.072200
Rosaria
elmlang
general
And de/serialiaztion happens on the elm side?
2019-02-21T14:40:21.072700
Rosaria
elmlang
general
Totally
2019-02-21T14:40:31.072900
Agustin
elmlang
general
I send some pretty hefty data that way
2019-02-21T14:40:42.073200
Agustin
elmlang
general
(basicall graphql’d equivalent of 100mb csvs)
2019-02-21T14:40:58.073900
Agustin
elmlang
general
The bottleneck is not my ports I can assure you
2019-02-21T14:41:07.074200
Agustin
elmlang
general
(it may help my data is streamed)
2019-02-21T14:41:33.074900
Agustin