Live data from Hacker News

Viewing profile — jfmengels1

jfmengels1

HN member
Joined
Thu, Jan 28, 2021, 1:23 PM UTC
HN karma
84
Public activity
28 items

About jfmengels1

No profile information was provided.

Recent public activity

  1. comment
    Comment #48814679

    Custom kernel never was a feature the language had. It was an implementation detail that people discovered they could hack, but it was never meant as a feature.

  2. story
  3. story
  4. story
  5. story
  6. comment
    Comment #30513465

    Oh ok. I didn't mean to "reject" the solution, since that's what I see done most of the time in practice, because of the current limitations of the language regarding stack safety.…

  7. comment
    Comment #30512321

    The mapHelper version that was rejected changed the order. The one that did `List.reverse` had the correct order, and this one is equivalent to the List.foldr solution. The only di…

  8. comment
    Comment #30512183

    I think it could yes if you had a keyword for adding the guarantee. If you didn't have a keyword, then all functions would have to be made stack-safe, which is I think a lot to ask…

  9. comment
    Comment #30511900

    Factorial was taken as an example (in this post) exactly because it is such a common textbook example, which also happens to be bad example in the sense that it is not stack-safe. …

  10. comment
    Comment #30511815

    Potentially yes. The question then arise: does it ever make sense not to add that keyword, and should you get linter/compiler warnings when it's not used? In which case, there will…

  11. comment
    Comment #30511782

    Indeed, though from a conversation with the author, it's only implemented for a subset of what was described in the post, specifically only for data construction. (Conversation: ht…

  12. comment
    Comment #27747899

    This advice was for custom rules for a team, so it's about enforcing what the team has already agreed upon and understood the trade-offs, not anything the tool decided upon on its …

  13. comment
    Comment #27747834

    Just to clarify: Since elm-review is a static analysis tool separate from the compiler, you can run and compile your program just fine without having to handle all the dead code wa…

  14. comment
    Comment #26864083

    He is not, but he's still actively working on Elm. You can find his latest interview here: https://elm-radio.com/episode/open-source-funding

  15. comment
    Comment #26863591

    I couldn't say the same thing for even well-architected TS apps. There are important escape hatches that TS gives that make it unreliable, as summarized in this article: https://in…

  16. comment
    Comment #26862865

    The issues you mention sound like bad usages of Msg. I recommend asking questions on the Elm Slack to try and figure out what the problems are!

  17. comment
    Comment #26862062

    With regards to Elm being battle-tested, I'd argue that we've had that battle, and we won it. Elm may not be a good fit for every project out there, like when you need tight integr…

  18. comment
    Comment #26861705

    We have, and that's where we reach out to JS/TS through ports or webcomponents. We try to use Elm as much as possible since that's the simplest and the most reliable, but using JS/…

  19. comment
  20. comment
    Comment #26861485

    The blog website isn't written in Elm. We're using Elm for the product application, not for the blog or for https://www.humio.com/ . I'll transfer the remarks though :)

  21. story
  22. comment
    Comment #25958302

    Ah alright. That's an interesting technique! You can't do that in Elm, you'd have to rely on the technique I mentioned above and regular tests.

  23. comment
    Comment #25954945

    And that is exactly the reason why the tool from the article asks you for confirmation at every step. So that you can actually go and say "oh, no, I want to keep and use that". But…

  24. comment
    Comment #25954937

    Elm doesn't have asserts. Instead, what you'd do is to have the function return a potential error (what in Elm we'd call a Result). so instead of function a(b) { assert(b > 0); ret…

  25. comment
    Comment #25949363

    The article author wrote this ESLint plugin to do just that https://github.com/jfmengels/eslint-plugin-fp then he (I) happily switched to Elm, because even with a lot of static ana…