workspace
stringclasses 4
values | channel
stringclasses 4
values | text
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
|
---|---|---|---|---|
elmlang | general | <@Emilee> maybe this talk could be useful: <https://www.youtube.com/watch?v=28OdemxhfbU> | 2019-02-25T07:51:53.223500 | Maida |
elmlang | general | yep, i know the talk, but it has more to do with relations, not composable types i think. of course those compositions could be modeled as relations, but that's basically what i would do for an ecs^^ | 2019-02-25T07:53:01.224600 | Emilee |
elmlang | general | i feel like we have a backend that's radically opposed to strong typing^^' (everything's rdf) | 2019-02-25T08:41:12.225700 | Emilee |
elmlang | general | How’s your Norwegian skills? Not directly elm related but this talk discusses using a flat “triple” format over the wire and how to work with it. Might provide some inspiration. <https://vimeo.com/289851906> (if you don’t understand anything you might be able to get some meaning from the slides around 15 mins until 22 mins) | 2019-02-25T09:04:27.229400 | Iva |
elmlang | general | ummm.... not^^ but i'll look into it, thanks :slightly_smiling_face: | 2019-02-25T09:05:02.230000 | Emilee |
elmlang | general | our wire format is rdf, and our frontend so far has been a mashup of jsonld and pseudodefined data, so i guess the topic applies^^ | 2019-02-25T09:06:03.230200 | Emilee |
elmlang | general | Nothing to add but its cool to hear sem-web things being used in the “real world” | 2019-02-25T10:42:10.231100 | Danika |
elmlang | general | well... "real world", we're an industry-oriented research studio | 2019-02-25T11:34:48.231700 | Emilee |
elmlang | general | <http://matchat.org|matchat.org> << our current proof of concept application, written in angular 1.x and redux.
I'm working on bringing it to elm, which is proving to be quite difficult because of the interplay with angular, and the untyped nature^^ | 2019-02-25T11:35:55.233000 | Emilee |
elmlang | general | awesome, thanks for the link :slightly_smiling_face: | 2019-02-25T11:36:33.233300 | Danika |
elmlang | general | are you doing any sparql things? | 2019-02-25T11:36:39.233700 | Danika |
elmlang | general | our backend is. we have some small parts in the frontend, but the js implementations seem quite slow, so our current app state is jsonld which is treated as json, and some other javascript derived data | 2019-02-25T11:37:29.234700 | Emilee |
elmlang | general | but for our application to run entirely in elm i *will* have to create at least an rdf library, maybe with querying capabilities | 2019-02-25T11:38:10.235400 | Emilee |
elmlang | general | I TA a semantic web class for my supervisor, I always struggle when students ask my why they should really care | 2019-02-25T11:39:28.236000 | Danika |
elmlang | general | it's a hard question to answer, because most of the benefits can feel kind of esoteric | 2019-02-25T11:40:18.236400 | Emilee |
elmlang | general | (maybe we should move that conversation to <#C0CJ671HU|random> ^^) | 2019-02-25T11:40:33.236900 | Emilee |
elmlang | general | #semanticweb the people demand it! | 2019-02-25T11:41:04.237300 | Danika |
elmlang | general | Looking at `elm-spa-example` I see a lot of type variables being used (compared to what I'm used to in Haskell). Is there a convention or rationale behind this? | 2019-02-25T11:52:33.239100 | Karan |
elmlang | general | I think a lot of haskell code goes out of its way to be incredibly terse or “clever” | 2019-02-25T11:53:33.239500 | Danika |
elmlang | general | Maybe, but why would I not constrain types as much as possible? | 2019-02-25T11:59:28.240300 | Karan |
elmlang | general | can you give an example on elmspa? | 2019-02-25T12:00:59.240700 | Danika |
elmlang | general | Ah you’re right, I didn’t expect it to behave like that. If you don’t mind getting each element individually you could Cmd.batch a list of them <https://ellie-app.com/4PTCnfvTMRda1> | 2019-02-25T12:13:52.240900 | Lea |
elmlang | general | <@Danika> For example here: <https://github.com/rtfeldman/elm-spa-example/blob/c8c3201ec0488f17c1245e1fd2293ba5bc0748d5/src/Api.elm#L138> | 2019-02-25T12:15:32.241800 | Karan |
elmlang | general | I can see why it is like that, but I don’t know enough about Elm to explain to you why that makes sense | 2019-02-25T12:18:04.242300 | Danika |
elmlang | general | I think giving `Model` and `Msg` as concrete types would create a circular dependency between Api and Main | 2019-02-25T12:18:27.242800 | Nana |
elmlang | general | if you look where that is actually used:
```main : Program Value Model Msg
main =
Api.application Viewer.decoder
{ init = init
, onUrlChange = ChangedUrl
, onUrlRequest = ClickedLink
, subscriptions = subscriptions
, update = update
, view = view
}```
You can see the unbound `model` and `msg` types become concrete | 2019-02-25T12:18:45.243300 | Danika |
elmlang | general | it could ofc. be solved by moving them from Main to their own files, but I guess he didn't want to do that | 2019-02-25T12:19:11.243400 | Nana |
elmlang | general | I saw that. I was just wondering, because `Api.application` is only called once (i.e. the concrete types are known). | 2019-02-25T12:22:01.245000 | Karan |
elmlang | general | is it possible to expose a type alias without exposing the type it's an alias of? | 2019-02-25T13:41:52.245700 | Saran |
elmlang | general | yes | 2019-02-25T13:45:21.246100 | Virgie |
elmlang | general | often happens when a module exposes an alias for a type defined in an `*.Internal` module | 2019-02-25T13:45:52.246500 | Virgie |
elmlang | general | Hi, I'm getting this exception when running tests ```The dependencies in your elm.json are not compatible.
Did you change them by hand? Try to change it back! It is much better to add
dependencies with elm install or the dependency management tool in elm reactor.```
It happened after I installed some new packages (though not by hand). | 2019-02-25T14:10:05.247400 | Jae |
elmlang | general | I sort of remember having this error before. Someone was nice and solved it for me but I've since forgotten the solution and the answer is probably past the 10k message limit | 2019-02-25T14:10:41.247500 | Jae |
elmlang | general | Try removing your `elm-stuff` folder to start with | 2019-02-25T14:14:31.247700 | Lynne |
elmlang | general | You don't have separate `elm.json` in your `tests/` directory, do you? | 2019-02-25T14:14:54.247900 | Lynne |
elmlang | general | Sure. The point is to improve fullscreen, so you don’t have to work around the nice new API to get a working real world application <@Huong> | 2019-02-25T14:20:33.248100 | Kathlyn |
elmlang | general | Oh, not disagreeing, merely pointing out options to unblock yourself, and sharing my experience with a workaround | 2019-02-25T14:22:21.248400 | Huong |
elmlang | general | No, just one elm.json | 2019-02-25T14:24:54.248600 | Jae |
elmlang | general | Deleting elm-stuff didn't change the error | 2019-02-25T14:25:45.248900 | Jae |
elmlang | general | Both good and bad | 2019-02-25T14:26:08.249100 | Lynne |
elmlang | general | Try this tool: <https://www.markuslaire.com/github/elm-dependencies-analyzer/> | 2019-02-25T14:26:22.249300 | Lynne |
elmlang | general | It will show if there are conflicting dependencies | 2019-02-25T14:26:34.249500 | Lynne |
elmlang | general | worst case scenario is a new elm.json and install each package with elm install | 2019-02-25T14:27:17.249700 | Lindsey |
elmlang | general | If it does not help, then the only (tedious but bullet-proof way) is to remove all deps from `elm.json` and start adding them one-by-one with `elm install` | 2019-02-25T14:27:20.249900 | Lynne |
elmlang | general | Yep | 2019-02-25T14:27:34.250100 | Lynne |
elmlang | general | `Selected versions have no conflicts.` | 2019-02-25T14:28:46.250400 | Jae |
elmlang | general | Well... | 2019-02-25T14:29:02.250600 | Lynne |
elmlang | general | I guess it's the tedious way then! | 2019-02-25T14:29:04.250800 | Jae |
elmlang | general | I hope you don't have that many deps :slightly_smiling_face: | 2019-02-25T14:29:09.251000 | Lynne |
elmlang | general | I have a few but I know which commit caused the issue so I only need to look at the packages I installed there | 2019-02-25T14:29:46.251200 | Jae |
elmlang | general | Seems like it would be possible to cook up a shell script to do it semi automatically... maybe one rainy afternoon. | 2019-02-25T14:29:47.251400 | Lindsey |
elmlang | general | Don't forget to clear indirect deps also | 2019-02-25T14:29:50.251600 | Lynne |
elmlang | general | Alright, thanks. I'm going to put it off for now but I'll need to sort that out eventually | 2019-02-25T14:31:30.251800 | Jae |
elmlang | general | Once I've figured out which package causes the tests to no longer work, do I just have to never use that package? | 2019-02-25T14:47:54.252100 | Jae |
elmlang | general | Hopefully, that's just a version conflict | 2019-02-25T14:49:10.252300 | Lynne |
elmlang | general | How do I figure out what the version conflict is if the dependency analyzer says there are no conflicts? | 2019-02-25T14:49:45.252500 | Jae |
elmlang | general | If not there are few options: upgrade/degrade other packages or skip using that one, at least until it is upgraded (not necessarily never) | 2019-02-25T14:49:53.252700 | Lynne |
elmlang | general | Well, I am curious why dependency analyzer says there are no conflicts, but honestly it is not the first time it says this but in fact there is a conflict | 2019-02-25T14:51:02.252900 | Lynne |
elmlang | general | So hopefully `elm install` will just resolve it for you | 2019-02-25T14:51:26.253100 | Lynne |
elmlang | general | I can't say that dependency analyzer is 100% reliable unfortunately and it is not official tool | 2019-02-25T14:52:11.253300 | Lynne |
elmlang | general | How do I tell `elm install` which version of a package to use? | 2019-02-25T14:53:13.253500 | Jae |
elmlang | general | There is no way to do it, it always installs latest version which is compatible with your other dependencies | 2019-02-25T14:58:25.253800 | Lynne |
elmlang | general | Well, I tried to two possible versions of the test incompatible package and neither worked so I guess I can't use that package anymore. At least it's not really important | 2019-02-25T14:59:17.254100 | Jae |
elmlang | general | You can however try upgrading or degrading a package by manually changing version in `elm.json` | 2019-02-25T14:59:20.254300 | Lynne |
elmlang | general | Yeah, that may be true | 2019-02-25T14:59:34.254500 | Lynne |
elmlang | general | What was the package if I may ask? | 2019-02-25T14:59:40.254700 | Lynne |
elmlang | general | `noahzgordon/elm-color-extra` | 2019-02-25T14:59:54.254900 | Jae |
elmlang | general | I don't see anything criminal with it but if removing it helps you resolve your issue, that's great | 2019-02-25T15:01:25.255100 | Lynne |
elmlang | general | What version of `elm-explorations/test` are you using? | 2019-02-25T15:01:59.255300 | Lynne |
elmlang | general | 1.2.0 | 2019-02-25T15:02:21.255500 | Jae |
elmlang | general | It must be something not related to versions, may be some module names are clashing? | 2019-02-25T15:05:53.255700 | Lynne |
elmlang | general | Could not find proof for it though | 2019-02-25T15:06:02.255900 | Lynne |
elmlang | general | Installing `elm-color-extra` installs `elm/regex` and `fredcy/elm-parseint` so it might be something wrong with those instead | 2019-02-25T15:07:55.256100 | Jae |
elmlang | general | Yeah | 2019-02-25T15:18:29.256300 | Lynne |
elmlang | general | I tried creating a new project with elm init and then installing elm-color-extra. I still got the same error after trying to run tests | 2019-02-25T15:27:54.256500 | Jae |
elmlang | general | So it may be an answer | 2019-02-25T16:05:48.257100 | Lynne |
elmlang | general | May or may not be relevant: <https://github.com/rtfeldman/node-test-runner/issues/277> | 2019-02-25T16:13:34.257400 | Janiece |
elmlang | general | Hi folks, I’m implementing a debounce search feature, and encounter a problem that if a previous search response is slow it may override a current search result. Any good ideas to handle this? Thanks. | 2019-02-25T21:11:30.259800 | Raymonde |
elmlang | general | There are two packages to make the debouncing. I personally haven’t used them but FYI.
<https://package.elm-lang.org/packages/Gizra/elm-debouncer/latest/>
<https://package.elm-lang.org/packages/jinjor/elm-debounce/latest/> | 2019-02-25T21:33:52.259900 | Noelle |
elmlang | general | <@Noelle> The debounce functionality is ok, the problem is the response handle logic. | 2019-02-25T21:35:57.260100 | Raymonde |
elmlang | general | Lots of ways to add ordering to the responses, you can add a timestamp of the request time and drop responses for earlier requests, or have the response include the value of the request and check it still makes sense | 2019-02-25T21:42:22.260500 | Earlean |
elmlang | general | Hello, am working with websockets (0.18). In what cases is the web socket connection with the server closed or restarted? | 2019-02-26T06:40:33.265600 | Karma |
elmlang | general | For example, when network connection is dropped. Also, server may decide to close connection for whatever reason. | 2019-02-26T06:43:13.266400 | Lynne |
elmlang | general | It just can go wrong at any point in time :slightly_smiling_face: | 2019-02-26T06:44:01.266900 | Lynne |
elmlang | general | Good to know, thanks :slightly_smiling_face: Also, does refreshing the page break the connection? | 2019-02-26T06:54:18.268000 | Karma |
elmlang | general | Definitely | 2019-02-26T07:02:56.268200 | Lynne |
elmlang | general | Has anybody found upgrading to the new http library a bit troublesome? :sweat_smile: | 2019-02-26T08:38:33.269300 | Leonore |
elmlang | general | Another web socket related question: I want to send a message from the client to the server every time the connection is started. Is this possible? | 2019-02-26T08:44:03.270300 | Karma |
elmlang | general | Yes, it was somehow harder then switching from Elm 0.18 to Elm 0.19 | 2019-02-26T08:47:55.270500 | Jin |
elmlang | general | but mostly because of dependencies | 2019-02-26T08:48:53.270700 | Jin |
elmlang | general | I already have a Cmd action that sends the message but have been having trouble figuring out how to link it to the websocket connection opening :shrug: | 2019-02-26T08:49:16.270900 | Karma |
elmlang | general | If I remember correctly Elm's Websocket module queues messages you send if there is no connection and sends them as soon as it is established | 2019-02-26T09:17:28.271100 | Lynne |
elmlang | general | Ah, you want to send on restarts also | 2019-02-26T09:18:48.271300 | Lynne |
elmlang | general | Yes. The idea is that the first message that I send it a token that the server can validate. So I need to send it every time the connection is restarted | 2019-02-26T09:19:50.271500 | Karma |
elmlang | general | You may want using `Websocket.LowLevel` then. `Websocket` does not notify you when opening or reopening happens | 2019-02-26T09:20:18.271700 | Lynne |
elmlang | general | I looked into that library a bit, but what confused me about it was how to make a subscription out of the functions there | 2019-02-26T09:21:33.271900 | Karma |
elmlang | general | Though it probably means you would need to provide your own effect module | 2019-02-26T09:21:49.272100 | Lynne |
elmlang | general | Which is hard, not documented and not supported anymore :slightly_smiling_face: | 2019-02-26T09:22:01.272300 | Lynne |
elmlang | general | Well then, I'll try and find another solution to my problem :stuck_out_tongue: | 2019-02-26T09:22:45.272500 | Karma |
elmlang | general | I would say send a "hello" message from server when the connection is opened if you own the backend | 2019-02-26T09:22:45.272700 | Lynne |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.