Stream: beginners

Topic: does roc have a way to create Ranges like in Rust


view this post on Zulip Jonas (Dec 06 2024 at 14:01):

does roc have a way to create Ranges like in Rust? I mean something 1..10 and pattern match on it then

view this post on Zulip Anthony Bullard (Dec 06 2024 at 14:11):

Check out the docs :wink:

view this post on Zulip Jonas (Dec 06 2024 at 14:30):

thanks

view this post on Zulip Brendan Hansknecht (Dec 06 2024 at 17:48):

Warning: ranges create a list

view this post on Zulip Brendan Hansknecht (Dec 06 2024 at 17:48):

So perf can be really bad depending on the use.

view this post on Zulip Jafar Husain (Jan 19 2025 at 10:43):

@Brendan Hansknecht

Am I mistaken, or is the plan to improve perf w/ fusion eventually? It seems like with all of the (appreciated) syntax changes, fusion has probably been bumped down in priority correct? I don't think I saw this in the list of features planned for 0.1.

view this post on Zulip Sam Mohr (Jan 19 2025 at 11:00):

Yes, that's definitely a post-0.1.0 thing. We're trying to focus on having a stable core that looks like Roc will look like in the future, and one that has a stable, friendly experience for newcomers

view this post on Zulip Sam Mohr (Jan 19 2025 at 11:00):

We don't need perf-oriented features to make that happen, so they're lower priority

view this post on Zulip Richard Feldman (Jan 19 2025 at 12:27):

also a new paper came out about a new approach to it, and we need to revisit the planned approach for how to do it accordingly (might stick with the previous plan, but also might want to change it)

view this post on Zulip Sam Mohr (Jan 19 2025 at 12:51):

Got a link to that paper? :eyes:

view this post on Zulip Richard Feldman (Jan 19 2025 at 13:23):

we talked about it on here somewhere briefly a few months ago, but I don't remember where exactly :sweat_smile:

view this post on Zulip Sam Mohr (Jan 19 2025 at 13:24):

Oh, I know that one. I thought there was an even newer one!


Last updated: Jul 06 2025 at 12:14 UTC