Lisplog

Blogging in Lisp

Search

Feed Aggregator Page 364

Rendered on Wed, 12 Jun 2019 06:31:59 GMT  newer latest older 

What's a game tutorial that works with 0.19?

via Elm Discourse - Latest posts by @Viir Michael Rätzel on Wed, 12 Jun 2019 05:56:31 GMT

In this case, you might have a use for this source code of a snake clone, in ellie: https://ellie-app.com/5whL3sHPPDva1

There is also this other game using Elm 0.19 I did not see in that list: It is more about exploring an open world. Controls using mouse, rendering using SVG: https://github.com/Viir/Freemake

Nicer Debug.log console output

via Elm Discourse - Latest posts by @Sebastian Sebastian on Wed, 12 Jun 2019 00:06:49 GMT

This is great, thanks, will definitely improve my dev experience.

Elm's Slack logback is failling the community

via Elm Discourse - Latest posts by @brian Brian on Tue, 11 Jun 2019 20:37:03 GMT

“web-indexable logs” is not currently supported by Zulip but it is on their roadmap. That said, I have a similar feeling as the thing @mattpiz shared from Stripe… “read this conversation” is worse for an information-seeker than something more organized. I don’t think Zulip will change that. That said, search and retention would help someone who was trying to find previous instances of a question to make a more central answer, those are certainly something we’re keeping in mind. :slight_smile:


A reminder: the most helpful thing for making these decisions right now is people’s experiences with Zulip, good and bad. DM me if you would prefer to speak privately. Here’s more detail from before:

Nicer Debug.log console output

via Elm Discourse - Latest posts by @mywzQxMJ76 Andreas Pehnack on Tue, 11 Jun 2019 20:18:49 GMT

Thank you for sharing this! I’m sure I’ll come back to this very soon! :slight_smile:

Elm's Slack logback is failling the community

via Elm Discourse - Latest posts by @razze Kolja Lampe on Tue, 11 Jun 2019 19:23:32 GMT

How do you define working? What qualifies as working? Just cause it has 62.000 users?

Some p5js.org examples in Elm

via Elm Discourse - Latest posts by @recombinant on Tue, 11 Jun 2019 19:10:30 GMT

Another example (with some comments copied too). Click on the canvas to reset the balls.

simulate forces
https://ellie-app.com/5N6XgFp7kYZa1

this was translated from
https://p5js.org/examples/simulate-forces.html

I found it amusing when I changed the liquid to fill the center third of the canvas. The physics works well.

What's a game tutorial that works with 0.19?

via Elm Discourse - Latest posts by @Michael_Mossey Michael Mossey on Tue, 11 Jun 2019 19:00:40 GMT

@razze Oh that’s very useful. I’m an experienced programmer in other languages so I can use the source for these to teach myself.

What's a game tutorial that works with 0.19?

via Elm Discourse - Latest posts by @razze Kolja Lampe on Tue, 11 Jun 2019 18:42:51 GMT

Not tuturials, but in case you don’t know. There is a list of elm games for many versions here https://github.com/rofrol/elm-games/blob/master/README.md

Generic decoding of json to an elm record

via Elm Discourse - Latest posts by @joelq Joël Quenneville on Tue, 11 Jun 2019 14:26:22 GMT

I came to Elm from a Ruby background and like many others was confused by JSON decoders. Now that I understand them, I wish I could use something like JSON decoders in my Ruby code, particularly when dealing with data that can be in multiple shapes :sweat_smile:

Elm's Slack logback is failling the community

via Elm Discourse - Latest posts by @Laurent Laurent Payot on Tue, 11 Jun 2019 13:23:35 GMT

Vue is using Discord, and it’s working great with more than 62.000 users.

Elm's Slack logback is failling the community

via Elm Discourse - Latest posts by @mattpiz Matthieu Pizenberg on Tue, 11 Jun 2019 13:21:00 GMT

I was looking at the github trending packages, and clicked on the elm button out of curiosity. Surprise, the first trending elm project is level, a “team communication software optimized for deep work”, basically a Slack replacement. Unfortunately the author recently announced stepping back from the project. The blog post describing this decision is quite interesting.

One thing mentioned in the post felt quite relevant to this discussion (emphasis mine):

An engineer at Stripe told me about their careful balance of email, forums, and Slack. They recognize that Slack is not suitable for meaningful conversations, so they automatically delete chat messages older than a few weeks to discourage relying on it for long-term archival. In retrospectives, team members often reflect on whether they chose the right medium (email, chat, or forum) for various conversations.

So this brings the question in our case, is Slack short memory an advantage instead of a disadvantage? Should we (as a community) take more responsibility in transferring interesting Slack conversations to Discourse? In the event of Slack being replaced, should the new tool enforce short memory for chat messaging?

Generic decoding of json to an elm record

via Elm Discourse - Latest posts by @praburajan Prabu on Tue, 11 Jun 2019 09:29:16 GMT

Yes. I completely understand now that this is impossible. I am already bought into Elm, with the guarantees it provides to you with its strict static types and the compiler makes refactoring a breeze. It is very good for iterative development and you get a very high confidence with refactors

Some p5js.org examples in Elm

via Elm Discourse - Latest posts by @recombinant on Tue, 11 Jun 2019 09:23:20 GMT

@Lucas_Payr “All code posted to Ellie is public, licensed MIT.” The links are there, do as you want. Be aware that the p5js.org examples were translated quickly to demo Elm to a friend and have had no proper review.

.

Generic decoding of json to an elm record

via Elm Discourse - Latest posts by @mezuzza Prasanth Somasundar on Tue, 11 Jun 2019 09:22:55 GMT

What I’m trying to say is that completely dynamic records is just not mathematically possible, implicit or otherwise. You’d have to be able to define a function like so:

parseJson: String -> {a | ???}

At compile time, you’d have to be able to fill in ???. Unfortunately, the type of ??? is “literally anything”. You’d end up with a dynamic language like python, ruby, or javascript.

That’s the main reason some people like those languages more than statically typed languages like Elm. As much as it sucks to say, this is the cost of using Elm. Just decide whether the benefit you’re getting from defining the schema upfront is worth it when choosing Elm. Personally, I think the benefit WAY outweighs the cost.

Invalid elm.json when installing ktonon/elm-test-extra

via Elm Discourse - Latest posts by @rupert Rupert Smith on Tue, 11 Jun 2019 08:57:14 GMT

I already had elm/json 1.0.0 in the elm.json (and elm/core 1.0.0):

“elm/core”: “1.0.0 <= v < 2.0.0”,
“elm/json”: “1.0.0 <= v < 2.0.0”

I think the bug is that when elm-test generates its application style elm.json it fails to run a version solver on all the dependencies - does it even do this? or it just takes lower bounds direct or something? The solution was simply to manually edit core to 1.0.2 and json to 1.1.2 in my elm.json.

I’ll paste my failing elm.json into a github issue against elm-test.

Some p5js.org examples in Elm

via Elm Discourse - Latest posts by @Lucas_Payr Lucas Payr on Tue, 11 Jun 2019 07:50:02 GMT

That’s great to hear.

@recombinant, if that’s fine for you, I would create the PR and link it to this page.

@joakin Is there a talk/video or a good article about elm-canvas that I can link to? (For the page in the book)
If not, I might need some help to collect the basic functions of the package.

Some p5js.org examples in Elm

via Elm Discourse - Latest posts by @joakin Joaquin on Tue, 11 Jun 2019 06:22:24 GMT

I’m happy to take a PR to the readme, at the bottom in the examples header, that adds a link to the first post here (or an equivalent page) :ok_hand:

Very cool examples!

Some p5js.org examples in Elm

via Elm Discourse - Latest posts by @Lucas_Payr Lucas Payr on Tue, 11 Jun 2019 04:31:45 GMT

Yeah, this collection is definitely something that we should add. I’m just not sure in what context. For now I’ve added it to the future topics list.

Elm's Slack logback is failling the community

via Elm Discourse - Latest posts by @martin-jahn Martin Jahn on Mon, 10 Jun 2019 22:33:03 GMT

It might not solve it out of the box but it’s open source. This means it can be added there and logs from Zulip can be publicly accessible and indexable by search engines.

Servant-elm 0.6.0.0 released

via Elm Discourse - Latest posts by @system system on Mon, 10 Jun 2019 22:22:06 GMT

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.

 newer latest older