time.Posix Int 32 or 64 bit ?
I noticed that time.Posix is defined as Int, while storing milliseconds. The doc from int states
Not sure how to interpret that ... what other compilation targets are other than JavaScript ? Is it Int 32 or 64 bit ?
Thank you
https://redd.it/18iafam
@reddit_elm
I noticed that time.Posix is defined as Int, while storing milliseconds. The doc from int states
Int math is well-defined in the range -2\^31 to 2\^31 - 1\.. When
generating JavaScript, the safe range expands to 2^53 - 1
. Not sure how to interpret that ... what other compilation targets are other than JavaScript ? Is it Int 32 or 64 bit ?
Thank you
https://redd.it/18iafam
@reddit_elm
Reddit
From the elm community on Reddit
Explore this post and more from the elm community
How to create and use a custom web component with events?
Does anybody have a resource showing how to create a minimal web component in a way I can use it from Elm and register messages, like
customEl onChange CustomElChanged
It's not so much rendering the element that gives me problems, but receiving and processing messages.
https://redd.it/18j3iao
@reddit_elm
Does anybody have a resource showing how to create a minimal web component in a way I can use it from Elm and register messages, like
customEl onChange CustomElChanged
It's not so much rendering the element that gives me problems, but receiving and processing messages.
https://redd.it/18j3iao
@reddit_elm
Reddit
From the elm community on Reddit
Explore this post and more from the elm community
How does == and toString work for built-in types like Set and Dict?
I'm trying to understand what's happening behind the scenes when I use "built-in" data types like Dict or Set. When I construct a set like
> import Set exposing (Set)
> set = Set.fromList 4,1,6,3
it displays the set like this:
Set.fromList 1,3,4,6 : Set number
Now I get that
> Bst.fromList 4,1,6,3
Node 4 (Node 1 Empty (Node 3 Empty Empty)) (Node 6 Empty Empty) : Bst number
So although the constructors
> Set.fromList 1,4,3,5 == Set.fromList 5,3,1,4
True : Bool
but if you implement Set as a red-black tree, there is no guarantee that the trees are really
So:
How do that work? Is there something like a "build-in" data type that gets to override `==` and `toString` (to use yet another Java metaphor) ?
Can civilians like I override those functions for our own data types?
Are things like `Dict` and `Set` implemented with Elm code or natively in Javascript?
How does that compare to other internals like
If an in-depth answer is too difficult/long/complex to give, I'll gladly take something along the lines of "look at https://blabla, there is a whole blog post about this issue".
https://redd.it/18hfv5e
@reddit_elm
I'm trying to understand what's happening behind the scenes when I use "built-in" data types like Dict or Set. When I construct a set like
> import Set exposing (Set)
> set = Set.fromList 4,1,6,3
it displays the set like this:
Set.fromList 1,3,4,6 : Set number
Now I get that
Set
is an opaque data type (in particular if it is implemented as a red-black tree and we don't want illegal red-black trees to ever come to existence), but if I'm writing my own opaque binary search tree Bst
, the constructors are still shown when the object is printed on the console:> Bst.fromList 4,1,6,3
Node 4 (Node 1 Empty (Node 3 Empty Empty)) (Node 6 Empty Empty) : Bst number
So although the constructors
Node
and Empty
are unexposed, they are still visible from the outside. So the data type Set
seems to have its own individual non-standard toString
function (to use a Java metaphor). Furthermore, it also seems to have its own ==
operator since > Set.fromList 1,4,3,5 == Set.fromList 5,3,1,4
True : Bool
but if you implement Set as a red-black tree, there is no guarantee that the trees are really
==
as trees.So:
How do that work? Is there something like a "build-in" data type that gets to override `==` and `toString` (to use yet another Java metaphor) ?
Can civilians like I override those functions for our own data types?
Are things like `Dict` and `Set` implemented with Elm code or natively in Javascript?
How does that compare to other internals like
Html
? For example, Html.text "hello"
me <internals> : Html msg,
which basically means it's none of your business what this looks from the inside. What Dict
does is even more cryptic. If an in-depth answer is too difficult/long/complex to give, I'll gladly take something along the lines of "look at https://blabla, there is a whole blog post about this issue".
https://redd.it/18hfv5e
@reddit_elm
Reddit
From the elm community on Reddit
Explore this post and more from the elm community
Why can't we create a stateful component
Elm seems to have some great ideas (notably finally a robust typing system!), but after a quick 2h look, it seems like it is missing an important thing: the notion of "stateful component", and, more generally, a nice modular way of composing elements. What I mean here is that I cannot find an elegant way to create a component that has a "local" state, similar to the `useState` of react for instance. As a consequence, it seems close to impossible to write a component library like AntDesign in Elm.
​
Am I missing something? If yes, what is the solution, and do you have some Elm-based component libraries that I could use? Everything I saw is kind of dead new. (hopefully not Elm itself?)
https://redd.it/18hd87s
@reddit_elm
Elm seems to have some great ideas (notably finally a robust typing system!), but after a quick 2h look, it seems like it is missing an important thing: the notion of "stateful component", and, more generally, a nice modular way of composing elements. What I mean here is that I cannot find an elegant way to create a component that has a "local" state, similar to the `useState` of react for instance. As a consequence, it seems close to impossible to write a component library like AntDesign in Elm.
​
Am I missing something? If yes, what is the solution, and do you have some Elm-based component libraries that I could use? Everything I saw is kind of dead new. (hopefully not Elm itself?)
https://redd.it/18hd87s
@reddit_elm
Reddit
From the elm community on Reddit
Explore this post and more from the elm community
🏆 Top Elm open source projects and contributors
Hello everyone,
I'd like to introduce you some interesting lists and rankings related to the Elm open source ecosystem:
\- Top Contributors (global or by country): https://opensource-heroes.com/contributors?language=elm
\- Awesome projects: https://opensource-heroes.com/awesome/elm (with extra info like stars, last update and License)
\- Country stats + Top projects: https://opensource-heroes.com/elm
You can also find "stars" history in the detail page of some repos (it will be available soon for all Elm repos, we're still processing some data!) and embed this chart in your project's README or docs.
Hope you find this content useful! Any feedback is really appreciated. Please note that be are still in beta 🙏 We want to build a platform that allows everybody to easily explore the open source world! And if you are interested in other languages too, you should check out this page: https://opensource-heroes.com/languages
https://redd.it/18n4g22
@reddit_elm
Hello everyone,
I'd like to introduce you some interesting lists and rankings related to the Elm open source ecosystem:
\- Top Contributors (global or by country): https://opensource-heroes.com/contributors?language=elm
\- Awesome projects: https://opensource-heroes.com/awesome/elm (with extra info like stars, last update and License)
\- Country stats + Top projects: https://opensource-heroes.com/elm
You can also find "stars" history in the detail page of some repos (it will be available soon for all Elm repos, we're still processing some data!) and embed this chart in your project's README or docs.
Hope you find this content useful! Any feedback is really appreciated. Please note that be are still in beta 🙏 We want to build a platform that allows everybody to easily explore the open source world! And if you are interested in other languages too, you should check out this page: https://opensource-heroes.com/languages
https://redd.it/18n4g22
@reddit_elm
Open Source Heroes
Top Elm Contributors
Top Elm Contributors creating and contributing to Open Source Software
Should I use Elm for a website with interactive demonstrations in 2023?
I've been researching through some stacks and many use Elm for their interactive diagrams. I was wondering if Elm is the go-to language for this? Some say using Elm nowadays is redundant, not sure.
I'm looking to create a website for some interactive diagrams like a pulley or an electric generator where the user can change some variables with the pulley's behaviour
https://redd.it/18qnyny
@reddit_elm
I've been researching through some stacks and many use Elm for their interactive diagrams. I was wondering if Elm is the go-to language for this? Some say using Elm nowadays is redundant, not sure.
I'm looking to create a website for some interactive diagrams like a pulley or an electric generator where the user can change some variables with the pulley's behaviour
https://redd.it/18qnyny
@reddit_elm
Reddit
From the elm community on Reddit
Explore this post and more from the elm community
Status of elm/parser package
Hello all,
I'm using Elm for a web tool that parses student's code using the
Is this package no longer maintained? Is there any way I can do this on my own?
Thanks!
https://redd.it/18v5fja
@reddit_elm
Hello all,
I'm using Elm for a web tool that parses student's code using the
elm/parser
package and I stumbled across a bug that has been reported in this issue and causes incorrect line numbers in error reports. The fix appears to be simple and the pull request has been submitted for over a year now but not yet accepted. Is this package no longer maintained? Is there any way I can do this on my own?
Thanks!
https://redd.it/18v5fja
@reddit_elm
GitHub
Inconsistent internal parser state · Issue #53 · elm/parser
This issue describes a bug in Elm.Kernel.Parser.findSubString. Note: the following issues describe symptoms of this bug: #2 #20 #46 In the same way, the following pull request tries to fix the symp...
Elm got removed from Swift Wiki's under influenced by languages
As the title says, Elm was one of the influenced language under swift wiki however it got removed.
Any thoughts?
https://redd.it/18s3md1
@reddit_elm
As the title says, Elm was one of the influenced language under swift wiki however it got removed.
Any thoughts?
https://redd.it/18s3md1
@reddit_elm
Reddit
From the elm community on Reddit
Explore this post and more from the elm community
Should I use Elm for a website with interactive demonstrations in 2023?
I've been researching through some stacks and many use Elm for their interactive diagrams. I was wondering if Elm is the go-to language for this? Some say using Elm nowadays is redundant, not sure.
I'm looking to create a website for some interactive diagrams like a pulley or an electric generator where the user can change some variables with the pulley's behaviour
https://redd.it/18qnyny
@reddit_elm
I've been researching through some stacks and many use Elm for their interactive diagrams. I was wondering if Elm is the go-to language for this? Some say using Elm nowadays is redundant, not sure.
I'm looking to create a website for some interactive diagrams like a pulley or an electric generator where the user can change some variables with the pulley's behaviour
https://redd.it/18qnyny
@reddit_elm
Reddit
From the elm community on Reddit
Explore this post and more from the elm community
🏆 Top Elm open source projects and contributors
Hello everyone,
I'd like to introduce you some interesting lists and rankings related to the Elm open source ecosystem:
\- Top Contributors (global or by country): https://opensource-heroes.com/contributors?language=elm
\- Awesome projects: https://opensource-heroes.com/awesome/elm (with extra info like stars, last update and License)
\- Country stats + Top projects: https://opensource-heroes.com/elm
You can also find "stars" history in the detail page of some repos (it will be available soon for all Elm repos, we're still processing some data!) and embed this chart in your project's README or docs.
Hope you find this content useful! Any feedback is really appreciated. Please note that be are still in beta 🙏 We want to build a platform that allows everybody to easily explore the open source world! And if you are interested in other languages too, you should check out this page: https://opensource-heroes.com/languages
https://redd.it/18n4g22
@reddit_elm
Hello everyone,
I'd like to introduce you some interesting lists and rankings related to the Elm open source ecosystem:
\- Top Contributors (global or by country): https://opensource-heroes.com/contributors?language=elm
\- Awesome projects: https://opensource-heroes.com/awesome/elm (with extra info like stars, last update and License)
\- Country stats + Top projects: https://opensource-heroes.com/elm
You can also find "stars" history in the detail page of some repos (it will be available soon for all Elm repos, we're still processing some data!) and embed this chart in your project's README or docs.
Hope you find this content useful! Any feedback is really appreciated. Please note that be are still in beta 🙏 We want to build a platform that allows everybody to easily explore the open source world! And if you are interested in other languages too, you should check out this page: https://opensource-heroes.com/languages
https://redd.it/18n4g22
@reddit_elm
Open Source Heroes
Top Elm Contributors
Top Elm Contributors creating and contributing to Open Source Software
Efforts to popularize Elm
I'm big fan and casual Elm user, sporadically following what's going on. I'm familiar with limitations both on budgeting and limitation on capabilities, and I understand while Elm might not be for everyone, but when it hits, it hits.
I wonder is there any coordinated discussions/effort to showcase wonderful world of Elm to other people? While I don't feel I'm person to initiate something like that, I'd be more then willing to contribute to such an effort, either with time or money. I always wanted to support elm somehow.
I think with what's going on with React ecosystem looks like grate opportunity to show alternative to confusing, complicated and gated React ecosystem.
## If you out of loop:
Many prominent React members started to get louder and louder about frustration with React, recent blog post by u/cassidoo touched on some of those. She's too nice though, frustration run deeper.
## Main highlights are:
Most React team is now Next.js team
React is now too complicated (Ryan Florence jabs this point very so often)
Core team is parroting "use the framework" mantra
There are 2 reacts? I would argue there are 3 because Next.js uses canary.
## Links
[https://twitter.com/cassidoo/status/1746645813281845251](https://twitter.com/cassidoo/status/1746645813281845251)
https://blog.cassidoo.co/post/annoyed-at-react
https://redd.it/197vtnc
@reddit_elm
I'm big fan and casual Elm user, sporadically following what's going on. I'm familiar with limitations both on budgeting and limitation on capabilities, and I understand while Elm might not be for everyone, but when it hits, it hits.
I wonder is there any coordinated discussions/effort to showcase wonderful world of Elm to other people? While I don't feel I'm person to initiate something like that, I'd be more then willing to contribute to such an effort, either with time or money. I always wanted to support elm somehow.
I think with what's going on with React ecosystem looks like grate opportunity to show alternative to confusing, complicated and gated React ecosystem.
## If you out of loop:
Many prominent React members started to get louder and louder about frustration with React, recent blog post by u/cassidoo touched on some of those. She's too nice though, frustration run deeper.
## Main highlights are:
Most React team is now Next.js team
React is now too complicated (Ryan Florence jabs this point very so often)
Core team is parroting "use the framework" mantra
There are 2 reacts? I would argue there are 3 because Next.js uses canary.
## Links
[https://twitter.com/cassidoo/status/1746645813281845251](https://twitter.com/cassidoo/status/1746645813281845251)
https://blog.cassidoo.co/post/annoyed-at-react
https://redd.it/197vtnc
@reddit_elm
overreacted.io
The Two Reacts — overreacted
UI = f(data)(state)
Learning Elm
what are the best free resources to learn elm from scratch? Im completely new to this and need to learn for an uni course
https://redd.it/198ggas
@reddit_elm
what are the best free resources to learn elm from scratch? Im completely new to this and need to learn for an uni course
https://redd.it/198ggas
@reddit_elm
Reddit
From the elm community on Reddit
Explore this post and more from the elm community
Why no preceding commas?
I get the whole comma at the start of each line thing, and I think its kinda neat. However, one thing driving me crazy on my Elm-learning journey is the lack of preceding commas (the lesser spotted sibling of the trailing comma).
For example, using an example taken from Elm In Action, why is it:
And not:
One reason I like trailing commas in other languages is it means all values/lines/parameters are formatted in the same way, following exactly the same rules. This also means it's easier to add and remove lines without needing to touch other lines of code (for example, in the first code block, if I wanted to add a new first rule, I would need to change and reformat two lines instead of one).
In Elm, it seems all lines are equal, but some are more equal than others.
https://redd.it/19bok1i
@reddit_elm
I get the whole comma at the start of each line thing, and I think its kinda neat. However, one thing driving me crazy on my Elm-learning journey is the lack of preceding commas (the lesser spotted sibling of the trailing comma).
For example, using an example taken from Elm In Action, why is it:
rules =
[ rule "Do not talk about Sandwich Club."
, rule "Do NOT talk about Sandwich Club."
, rule "No eating in the common area."
]
And not:
rules =
[
, rule "Do not talk about Sandwich Club."
, rule "Do NOT talk about Sandwich Club."
, rule "No eating in the common area."
]
One reason I like trailing commas in other languages is it means all values/lines/parameters are formatted in the same way, following exactly the same rules. This also means it's easier to add and remove lines without needing to touch other lines of code (for example, in the first code block, if I wanted to add a new first rule, I would need to change and reformat two lines instead of one).
In Elm, it seems all lines are equal, but some are more equal than others.
https://redd.it/19bok1i
@reddit_elm
Reddit
From the elm community on Reddit
Explore this post and more from the elm community
Elm Town 72 – 435 million reasons to love Elm + Elixir with Erik Person
Erik Person shares how he joined Corvus Insurance as the first engineer building the system from scratch with Elm and Elixir. We talk about onboarding, culture, and growing the team. He exclaims his excitement for the next phase of acquisition by Travelers.
Elm Town 72 – 435 million reasons to love Elm + Elixir with Erik Person:
https://elm.town/episodes/elm-town-72-435-million-reasons-to-love-elm-elixir-with-erik-person
https://youtu.be/5qwgSsPX4Qg
https://redd.it/19e0o4e
@reddit_elm
Erik Person shares how he joined Corvus Insurance as the first engineer building the system from scratch with Elm and Elixir. We talk about onboarding, culture, and growing the team. He exclaims his excitement for the next phase of acquisition by Travelers.
Elm Town 72 – 435 million reasons to love Elm + Elixir with Erik Person:
https://elm.town/episodes/elm-town-72-435-million-reasons-to-love-elm-elixir-with-erik-person
https://youtu.be/5qwgSsPX4Qg
https://redd.it/19e0o4e
@reddit_elm
Elm Town
Erik Person shares how he joined Corvus Insurance as the first engineer building the system from scratch with Elm and Elixir. We talk about onboarding, culture, and growing the team. He exclaims his excitement for the next phase of acquisition by Travelers.
News about evan’s talk at meetup last week?
Was there skmething announced? It was called future of elm, so weird that’s it not public.
https://redd.it/1andqsj
@reddit_elm
Was there skmething announced? It was called future of elm, so weird that’s it not public.
https://redd.it/1andqsj
@reddit_elm
Reddit
From the elm community on Reddit
Explore this post and more from the elm community
An Argument for Elm/Html
https://functional-fieldnotes.hashnode.dev/an-argument-for-elmhtml
https://redd.it/1aqedsi
@reddit_elm
https://functional-fieldnotes.hashnode.dev/an-argument-for-elmhtml
https://redd.it/1aqedsi
@reddit_elm
Functional Fieldnotes
An Argument for Elm/Html
What's the best HTML/CSS library in Elm? mdgriffith/elm-ui? rtfeldman/elm-css? Both improve upon elm/html. In this article I will show why elm/html is not only a good choice but maybe even the best of the three. TLDR; elm/html is simpler and more fle...
Dive Into "Programming Without Headaches" - A Fresh Elm Tutorial Series 🌟
Hey r/elm enthusiasts!
I'm thrilled to announce the launch of my new YouTube series, "Programming Without Headaches," aimed at unraveling the serene and structured world of Elm programming. Elm isn't just another language in the crowded space of web development; it's a beacon of simplicity, offering a refreshing take on building web applications without the usual chaos.
Episode 1: "Hello, Elm" is now live! We kick things off with a gentle introduction to Elm, walking you through the creation of a "Hello, World!" program using the Elm Online Editor. It's designed for beginners and seasoned developers curious about functional programming and looking for a smoother coding experience.
Why Elm, you ask? Imagine a world where runtime errors are a tale of the past, and your codebase is a well-orchestrated symphony. That's the promise of Elm, and I'm here to guide you through every note.
Join me on this adventure:
Watch Episode 1 here: Programming Without Headaches 1: "Hello, Elm" - YouTube
Whether you're new to programming or a veteran developer, "Programming Without Headaches" offers insights, tips, and a community for those seeking to enhance their coding practices with Elm's elegance and efficiency.
Don't forget to like, share, and subscribe if you find the content helpful. Your support means the world to me and fuels the journey ahead. Let's demystify functional programming together, one headache-free episode at a time!
Looking forward to your thoughts, feedback, and perhaps even your first Elm project. See you in the comments and happy coding!
Cheers,
Aaron Zimmerman
https://redd.it/1athsnz
@reddit_elm
Hey r/elm enthusiasts!
I'm thrilled to announce the launch of my new YouTube series, "Programming Without Headaches," aimed at unraveling the serene and structured world of Elm programming. Elm isn't just another language in the crowded space of web development; it's a beacon of simplicity, offering a refreshing take on building web applications without the usual chaos.
Episode 1: "Hello, Elm" is now live! We kick things off with a gentle introduction to Elm, walking you through the creation of a "Hello, World!" program using the Elm Online Editor. It's designed for beginners and seasoned developers curious about functional programming and looking for a smoother coding experience.
Why Elm, you ask? Imagine a world where runtime errors are a tale of the past, and your codebase is a well-orchestrated symphony. That's the promise of Elm, and I'm here to guide you through every note.
Join me on this adventure:
Watch Episode 1 here: Programming Without Headaches 1: "Hello, Elm" - YouTube
Whether you're new to programming or a veteran developer, "Programming Without Headaches" offers insights, tips, and a community for those seeking to enhance their coding practices with Elm's elegance and efficiency.
Don't forget to like, share, and subscribe if you find the content helpful. Your support means the world to me and fuels the journey ahead. Let's demystify functional programming together, one headache-free episode at a time!
Looking forward to your thoughts, feedback, and perhaps even your first Elm project. See you in the comments and happy coding!
Cheers,
Aaron Zimmerman
https://redd.it/1athsnz
@reddit_elm
YouTube
Programming Without Headaches 1: "Hello, Elm"
Welcome to the first episode of our Elm tutorial series! 🌟 In this episode, we dive into the world of Elm, a purely functional language that's transforming the way we think about front-end development. Say goodbye to runtime errors and immerse yourself in…
How to setup Tailwind CSS intellisense on Webstorm for Elm projects
I was wrestling against this for a while, and today I finally figured that out so I guessed it was worth sharing.
Basically, you just need to update Tailwind CSS configuration under
https://redd.it/1asfxor
@reddit_elm
I was wrestling against this for a while, and today I finally figured that out so I guessed it was worth sharing.
Basically, you just need to update Tailwind CSS configuration under
Settings > Languages & Frameworks > Style Sheet > Tailwind CSS
and add the following lines:{
"includeLanguages": {
..., // Already existing languages
"elm": "html"
},
"experimental": {
..., // Other experimental stuff
"classRegex": [
"\\bclass\\s+\"([^\"]*)\""
]
}
}
https://redd.it/1asfxor
@reddit_elm
Reddit
From the elm community on Reddit
Explore this post and more from the elm community
I created an Online Guitar Tab Editor with Elm!
Hey everyone,
I'm excited to share a project I've been working on since a while now: It’s an online guitar tablature editor built (almost) entirely with Elm! While working on this I became a big fan of the language and after some failed attempts with React and different state management libraries I‘m convinced that Elm is an extremely powerful tool. 🌳
It‘s called tabinator and allows you to easily notate guitar tabs online, making it convenient for musicians to jot down their musical ideas or share tabs with others. 🎸
With this is hope to somehow contribute to the Elm community to show a use case and hopefully inspire others to explore its capabilities. Feel free to check it out at tabinator.com and let me know what you think! It is aimed to be used on desktop devices. From the menu at the top right you can load some examples.
A big thanks to Evan and everyone involved for creating this amazing language which got me into purely functional programming!
I hope that the development of Elm will continue. 🤟
Looking forward to your feedback and discussions!
Cheers!
https://redd.it/1b919wk
@reddit_elm
Hey everyone,
I'm excited to share a project I've been working on since a while now: It’s an online guitar tablature editor built (almost) entirely with Elm! While working on this I became a big fan of the language and after some failed attempts with React and different state management libraries I‘m convinced that Elm is an extremely powerful tool. 🌳
It‘s called tabinator and allows you to easily notate guitar tabs online, making it convenient for musicians to jot down their musical ideas or share tabs with others. 🎸
With this is hope to somehow contribute to the Elm community to show a use case and hopefully inspire others to explore its capabilities. Feel free to check it out at tabinator.com and let me know what you think! It is aimed to be used on desktop devices. From the menu at the top right you can load some examples.
A big thanks to Evan and everyone involved for creating this amazing language which got me into purely functional programming!
I hope that the development of Elm will continue. 🤟
Looking forward to your feedback and discussions!
Cheers!
https://redd.it/1b919wk
@reddit_elm
Free Online Guitar Tabs Editor
Free Online Guitar Tabs Editor | tabinator.com
Free guitar, bass and drum tabs online editor and player software. Like Guitar Pro 5, but online, free and mobile friendly