Viewing profile — jfmengels1
jfmengels1
HN member- Joined
- Thu, Jan 28, 2021, 1:23 PM UTC
- HN karma
- 84
- Public activity
- 28 items
- HN profile
- View on Hacker News ↗
About jfmengels1
No profile information was provided.
Recent public activity
-
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.
- story
- story
- story
- story
-
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.…
-
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…
-
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…
-
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. …
-
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…
-
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…
-
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 …
-
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…
-
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
-
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…
-
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!
-
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…
-
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/…
- comment
-
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 :)
- story
-
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.
-
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…
-
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…
-
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…