Stream: contributing

Topic: roc json


view this post on Zulip Luke Boswell (Jan 28 2026 at 07:56):

Is anyone interested in helping me port over https://github.com/lukewilliamboswell/roc-json?

It would be really useful for a number of different things that are in progress and enables a lot of workarounds as an interim until we really mature out various parts of the ecosystem (i.e. roc glue and platform docs).

I'm kind of maxxed out with all my concurrent things, and not sure when I'll get to it. But it would be really nice to have sooner than later. It would be one of the first package releases, so I expect we will probably have a number of bugs to find and report -- so this isn't a quick task I think. But we do have the encode and decode impl's on our Builtin types so we should in theory have everything we need to implement this.

Let me know if your interested in working on this. Feel free to open a draft PR anytime

view this post on Zulip Eli Dowling (Feb 01 2026 at 01:04):

I was having a little look at this last night and I don't think the compiler supports and code decode for records yet right? We don't have any kind of auto-generated record field walker like we did in the old compiler, yet.

I'm happy to implement that of course. Was there any discussion about doing and code decode differently at all or were we planning to just copy the design in the old compiler as far as field iteration and such?

view this post on Zulip Richard Feldman (Feb 02 2026 at 19:59):

yeah the API changed - https://github.com/roc-lang/roc/pull/8869 - so there's no longer a Decode module or Ability (or type alias or anything like that)

view this post on Zulip Richard Feldman (Feb 02 2026 at 20:01):

but in general, if you'd like to implement that inference, that would be great - although ideally hold off until https://github.com/roc-lang/roc/pull/9068 is merged, because otherwise there will be a ton of merge conflicts :sweat_smile:

view this post on Zulip Richard Feldman (Feb 02 2026 at 20:01):

it's close, but not quite there yet

view this post on Zulip nandi (Feb 02 2026 at 20:02):

250 commits, yolo

view this post on Zulip Richard Feldman (Feb 02 2026 at 20:03):

it's been through a _slight_ amount of revision :laughing:


Last updated: Feb 20 2026 at 12:27 UTC