workspace
stringclasses 4
values | channel
stringclasses 4
values | text
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
|
---|---|---|---|---|
elmlang | general | But if you do it on the UI thread it will be noticeable | 2019-03-05T06:59:14.461300 | Lynne |
elmlang | general | It won't take 16 ms, I can guarantee that :slightly_smiling_face: | 2019-03-05T06:59:36.461500 | Lynne |
elmlang | general | And you'll start skipping frames at least | 2019-03-05T06:59:59.461700 | Lynne |
elmlang | general | Yeah, so a webworker seems like the way to go then | 2019-03-05T07:00:57.461900 | Nana |
elmlang | general | I think so | 2019-03-05T07:01:05.462100 | Lynne |
elmlang | general | there's no way to send Lists of Records between Elm apps without using a JSON decoder, right? | 2019-03-05T07:05:26.462300 | Nana |
elmlang | general | If these records does not contain custom types you could probably rely on default serialization/deserialization | 2019-03-05T07:07:23.462500 | Lynne |
elmlang | general | although actually I can probably just use the same decoder as for the http | 2019-03-05T07:07:48.462700 | Nana |
elmlang | general | Probably, and at some point you'll want to have more control over deserialization so I would probably use some shared model even | 2019-03-05T07:08:34.462900 | Lynne |
elmlang | general | Hi there, just a :wave: to say thanks for the feature of assets loading in elm-reactor relative to root path of the project detailed here : <https://blog.ilias.xyz/elm-reactor-and-custom-html-9e7143553807> Idk how I missed the info in the docs, but it's a really cool feature, can load images and stuff, good job | 2019-03-05T07:29:47.464700 | Toni |
elmlang | general | I should probably update that article, though. The "magic compiled Elm code" hack isn't a thing anymore. | 2019-03-05T07:44:16.465000 | Huong |
elmlang | general | Hi folks, I encountered runtime error when I test the ‘travel planner’ example in billstclair/elm-sortable-table. The runtime “TypeError: Argument 1 (‘node’) to Node.appendChild must be an instance of Node” occurred, when clicking on ‘Rating’ column after clicking on ‘Price’ column. The gif is attached.
Is this a known elm bug? | 2019-03-05T08:08:06.466500 | Genia |
elmlang | general | Do you have any browser extensions installed that might modify the DOM? | 2019-03-05T08:10:40.467300 | Jin |
elmlang | general | Oh yeah, <@Jin> you are right, that could be the reason. I will test again, thank you for the pointer. | 2019-03-05T08:12:44.468800 | Genia |
elmlang | general | <@Jin> oh no, still the same error when I tried in google chrome and firefox safe mode. | 2019-03-05T08:17:54.470300 | Genia |
elmlang | general | Ah maybe, I didn't try that part. Just the "everything in the directory is exposed through elm-reactor" | 2019-03-05T08:21:52.470500 | Toni |
elmlang | general | Hm, I can reproduce the error. | 2019-03-05T08:26:08.472200 | Jin |
elmlang | general | does the elm architecture still fit under the "functional reactive programming" vibe. I know pre 0.17(?) elm was all-in on FRP and that TEA emerged from that, is it safe to say that the elm architecture is a type or implementation of FRP? | 2019-03-05T08:27:07.473200 | Danika |
elmlang | general | > So is Elm about FRP anymore? No. Those days are over now. Elm is just a functional language that takes concurrency very seriously. And from a user's perspective, Elm is just a friendly functional language! | 2019-03-05T08:32:16.473300 | Nana |
elmlang | general | <https://elm-lang.org/blog/farewell-to-frp> | 2019-03-05T08:32:27.473500 | Nana |
elmlang | general | Although I've also heard React and Vue being called "FRP" :man-shrugging: | 2019-03-05T08:33:04.473700 | Nana |
elmlang | general | They are, which is why I'm trying to place TEA. | 2019-03-05T08:35:57.473900 | Danika |
elmlang | general | So FRP is now about as a well-defined word as OOP? | 2019-03-05T08:36:37.474100 | Niesha |
elmlang | general | > Somebody really needs to write a "Functional Reactive Programming For Dummies" for all us autodidacts out here. Every resource I've found, even Elm, seems to assume you've gotten a Master's in CS in the last five years. Those knowledgable about FRP seem to have completely lost the ability to see the matter from the naive viewpoint, something critical to teaching, training and evangelizing. – TechZen May 4 '14 at 13:48
Basically this. | 2019-03-05T08:37:08.474300 | Danika |
elmlang | general | Ah, the Monad curse | 2019-03-05T08:38:24.474500 | Niesha |
elmlang | general | My guess is that if you're not mapping/folding over time, then it's not "real" FRP in the academic sense | 2019-03-05T08:38:32.474700 | Nana |
elmlang | general | The gist of it is I'm working on my own programming language, focused on music programming. I'd like to apply TEA to this context but it's hard to talk about it without just referring to the elm docs. | 2019-03-05T08:39:02.474900 | Danika |
elmlang | general | Wikipedia:
> Functional reactive programming (FRP) is a programming paradigm for reactive programming (asynchronous dataflow programming) using the building blocks of functional programming (e.g. map, reduce, filter). | 2019-03-05T08:43:34.475200 | Nana |
elmlang | general | by that definition TEA, React and Vue are not FRP | 2019-03-05T08:43:59.475400 | Nana |
elmlang | general | react and vue aren't the _functional_ part | 2019-03-05T08:44:56.475600 | Danika |
elmlang | general | But they're both built on Rxjs (at least I think react is) which definitely is frp | 2019-03-05T08:45:41.475800 | Danika |
elmlang | general | neither uses Rxjs, Vue uses it's own Observables, and I think React just uses simple callbacks or something | 2019-03-05T08:49:37.476000 | Nana |
elmlang | general | >.> | 2019-03-05T08:52:38.476200 | Danika |
elmlang | general | regardless the concept of observables is pretty central to frp | 2019-03-05T08:52:51.476400 | Danika |
elmlang | general | Have anybody heard any news regarding the elm-format not working on save problem? | 2019-03-05T08:55:44.477800 | Leonore |
elmlang | general | <https://github.com/Krzysztof-Cieslak/vscode-elm/issues/275> | 2019-03-05T08:56:22.478000 | Leonore |
elmlang | general | Or any solutions other than running elm-format with every build | 2019-03-05T08:58:47.478400 | Leonore |
elmlang | general | You can run it in a git hook | 2019-03-05T09:13:25.478800 | Agustin |
elmlang | general | I specifically want it for development, it was very convenient to save and format the code while still coding | 2019-03-05T09:15:51.480000 | Leonore |
elmlang | general | Use a file system watcher that runs in on save? | 2019-03-05T09:22:18.480300 | Agustin |
elmlang | general | Wont’ show back up in vscode unless that supports automatically picking up the changes tho | 2019-03-05T09:22:34.480700 | Agustin |
elmlang | general | Or you can set your path so that elm-format is picked up in vscode | 2019-03-05T09:22:48.481100 | Agustin |
elmlang | general | vscode will reflect changes in the file | 2019-03-05T09:23:32.481400 | Danika |
elmlang | general | shouldn't it? | 2019-03-05T09:23:39.481600 | Danika |
elmlang | general | ¯\_(ツ)_/¯ | 2019-03-05T09:23:47.481700 | Agustin |
elmlang | general | Not all editors pick up file changes automatically | 2019-03-05T09:23:59.482300 | Agustin |
elmlang | general | yep I've often used VSCode to view log files | 2019-03-05T09:24:03.482400 | Nana |
elmlang | general | Install `entr` | 2019-03-05T09:30:46.482600 | Agustin |
elmlang | general | And run: `find src/ -name '*.elm' | entr npx elm-format --yes /_` | 2019-03-05T09:30:49.482800 | Agustin |
elmlang | general | On OS X `brew install entr` is available | 2019-03-05T09:31:07.483200 | Agustin |
elmlang | general | Does anybody here use Haskell Persistent models with elm-export? | 2019-03-05T09:31:38.483700 | Marlys |
elmlang | general | Interesting, I will have a look | 2019-03-05T09:31:48.484100 | Leonore |
elmlang | general | Thanks | 2019-03-05T09:31:49.484300 | Leonore |
elmlang | general | I don't think the elm-format problem is there for OS X anyways | 2019-03-05T09:32:13.485000 | Leonore |
elmlang | general | The path is set just fine, that's not the problem btw | 2019-03-05T09:33:40.487000 | Leonore |
elmlang | general | I think `entr` is available on linux | 2019-03-05T09:35:13.487500 | Agustin |
elmlang | general | According to the issue you linked it is, vscode can’t find the command so can’t run it. | 2019-03-05T09:35:27.487900 | Agustin |
elmlang | general | So thanks to <@Maida> who helped in the beginners channel I have decided to use elm’s interop as a means to solve an issue on a project I am building for a client that requires PDF creation.
I think I narrowed it down to either jspdf, pdfkit or pdfmake. Wondering if anyone has had experience working with any of these and would be willing to share their opinion or recommendations | 2019-03-05T09:36:16.489400 | Lanita |
elmlang | general | Observables are definitely "reactive programming", but not necessarily FRP I think | 2019-03-05T09:36:20.489600 | Nana |
elmlang | general | Yeah, that's what it says but it doesn't make sense | 2019-03-05T09:36:38.490100 | Leonore |
elmlang | general | I can run elm-format from the terminal in vscode just fine | 2019-03-05T09:37:00.490600 | Leonore |
elmlang | general | What os are you on? | 2019-03-05T09:40:10.491300 | Agustin |
elmlang | general | Windows 7 | 2019-03-05T09:40:15.491600 | Leonore |
elmlang | general | Yeah, then thats not guarentee | 2019-03-05T09:40:24.491900 | Agustin |
elmlang | general | You need your system wide path to have elm-format available | 2019-03-05T09:40:37.492200 | Agustin |
elmlang | general | It is available | 2019-03-05T09:40:44.492500 | Leonore |
elmlang | general | Its not or it would work | 2019-03-05T09:40:53.492800 | Agustin |
elmlang | general | Just because thing b can access it doesnt mean your path is right | 2019-03-05T09:41:08.493200 | Agustin |
elmlang | general | Windows has multiple path environments | 2019-03-05T09:41:36.493800 | Agustin |
elmlang | general | and maybe Elm/TEA can be said to be "Functional and Reactive" but not "Functional Reactive" :smile: | 2019-03-05T09:41:56.494000 | Nana |
elmlang | general | hello everyone!
is there a setTimeout equivalent in Elm? | 2019-03-05T10:23:05.496600 | Karrie |
elmlang | general | Yes! <https://package.elm-lang.org/packages/elm/core/latest/Process#sleep> | 2019-03-05T10:25:42.496800 | Rosalee |
elmlang | general | oh… | 2019-03-05T10:25:54.497000 | Karrie |
elmlang | general | I remember Elm 0.18 had a Time module but couldn’t find it in Elm 0.19 | 2019-03-05T10:26:19.497600 | Karrie |
elmlang | general | I guess this is the new implementation | 2019-03-05T10:26:29.497900 | Karrie |
elmlang | general | thanks <@Rosalee> | 2019-03-05T10:26:34.498100 | Karrie |
elmlang | general | the Time module is still around but it's in its own package now: `elm/time` | 2019-03-05T10:30:14.499200 | Shenita |
elmlang | general | but for getting update msgs it only has `Time.every` (<https://package.elm-lang.org/packages/elm/time/latest/Time#every>) which gives you a subscription rather than a one-off cmd | 2019-03-05T10:31:08.500100 | Shenita |
elmlang | general | I just have some html that I need remove after X seconds | 2019-03-05T10:35:10.501000 | Karrie |
elmlang | general | so Process.sleep will work | 2019-03-05T10:35:35.501300 | Karrie |
elmlang | general | I actually played around with the extension to see what was the reason. Anyways adding `.cmd` after `elm-format` fixed the issue | 2019-03-05T10:39:35.502700 | Leonore |
elmlang | general | i've just noticed that a majority of our integration test build time comes down to installing the elm compiler from npm. is there a way to speed this up? (i'm not sure if I can get npm caching to work^^') | 2019-03-05T11:09:06.504600 | Emilee |
elmlang | general | specifically the `binwrap-install` part | 2019-03-05T11:09:36.504800 | Emilee |
elmlang | general | Checkin the binaries | 2019-03-05T12:07:58.505600 | Marlys |
elmlang | general | and reference the local binary for your integration tests | 2019-03-05T12:09:14.506800 | Marlys |
elmlang | general | Write more tests :shrug: | 2019-03-05T12:20:56.507100 | Huong |
elmlang | general | <@Huong>
I tried running your code with the following
`insertAt (-1) 'b' (Array.fromList [ 'a', 'c' ])`
and I can't understand why it returns
`[ 'a', 'b', 'c' ]`
instead of
`[ 'b', 'a', 'c' ]`.
I tried it with other negative values and they all return `[ 'b', 'a', 'c' ]`. | 2019-03-05T12:22:12.507300 | Jae |
elmlang | general | I am not Ilias but dare to answer :slightly_smiling_face: This is due to `Array.slice` which treats negative indices as offset from the end of array. | 2019-03-05T12:26:49.507500 | Lynne |
elmlang | general | So `before` becomes `['a']`, `after` becomes `['c']` and after pushing `'b'` it becomes `['a', 'b', 'c']` | 2019-03-05T12:28:32.507700 | Lynne |
elmlang | general | If you want `[ 'b', 'a', 'c' ]`, you'd have to `max 0 idx` or something. The main reason it behaves this way is because `slice` allows (both) indexes to be negative. so say you give it `-1`, you get `before = Array.slice 0 -1 [ 'a', 'c' ] = [ 'a' ]` and `after = Array.slice -1 2 [ 'a', 'c' ] = [ 'c' ]` | 2019-03-05T12:28:32.507900 | Huong |
elmlang | general | yeah, exactly that | 2019-03-05T12:28:42.508100 | Huong |
elmlang | general | I am sorry for jumping in :slightly_smiling_face: | 2019-03-05T12:29:28.508300 | Lynne |
elmlang | general | to put it another way, the `insertAt` I "proposed" should (I think) also work with negative indexes, just wrapping around the end. | 2019-03-05T12:29:41.508500 | Huong |
elmlang | general | I haven't tested it, tho | 2019-03-05T12:29:51.508700 | Huong |
elmlang | general | Nah, I liked your explanation better :shrug: | 2019-03-05T12:30:04.508900 | Huong |
elmlang | general | ```> insertAt -2 "item" (Array.fromList ["a", "b", "c", "d" ])
Array.fromList ["a","b","item","c","d"]
: Array.Array String
> insertAt -3 "item" (Array.fromList ["a", "b", "c", "d" ])
Array.fromList ["a","item","b","c","d"]
: Array.Array String``` | 2019-03-05T12:32:11.509100 | Huong |
elmlang | general | yeah, seems to work roughly the way I think it should :smile: | 2019-03-05T12:32:26.509300 | Huong |
elmlang | general | (I'm _almost_ sad it doesn't `push` with `-0`) | 2019-03-05T12:33:35.509500 | Huong |
elmlang | general | It does push but from the LEFT side of the beginning (chuckle) | 2019-03-05T12:35:21.509700 | Lynne |
elmlang | general | Yeah, pretty much, I suppose ¯\_(ツ)_/¯ | 2019-03-05T12:36:11.509900 | Huong |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.