chapel icon indicating copy to clipboard operation
chapel copied to clipboard

Update learnChapelInYMinutes on the official site

Open lydia-duncan opened this issue 6 years ago • 15 comments

It looks like the copy of LearnChapelInYMinutes on the official site is out of date with the version we have in the primers directory. Specifically, it still uses constructors when initializers are the norm now.

A user ran into this in our Gitter channel and tried to use constructors as a result

Edit: a PR was merged to resolve this in 2022, but the code has fallen out of date again. It'd be good to investigate if there's a way for them to auto-grab our version or auto-notify when it has become out of date

lydia-duncan avatar Mar 22 '19 16:03 lydia-duncan

I would like to work on this issue...I am getting familiar with Chapel and using LearnChapelInYMinutes to get the basics.

cbadjatya avatar Feb 21 '20 20:02 cbadjatya

Sounds good to me! I think what needs to be done is figuring out how to update the LearnXInYMinutes site (which we don't control)

lydia-duncan avatar Feb 21 '20 20:02 lydia-duncan

The site LearnXInYMinutes is open source too, I'll open an issue in their github repo or make a pull request, updating the code.

cbadjatya avatar Feb 21 '20 21:02 cbadjatya

An interesting question would be whether there's any way to have them automatically refer to / pull our current (or better, currently released) version of the file so that there wouldn't be a need to continually try to keep the two files in sync. This would have the benefit of keeping whatever's on their site consistently tested.

bradcray avatar Feb 21 '20 23:02 bradcray

@Chinmay4400 It has been a while and would you mind I continue this?

yujqiao avatar Mar 08 '20 07:03 yujqiao

Because LearnXInYMinutes uses markdown while we use .chpl and .rst to build up docs, it seems hard to keep that up to date all the time. I will suggest adding a timestamp on the LearnXInYMinutes version and a link refering to our official page.

yujqiao avatar Mar 08 '20 08:03 yujqiao

Well, the hope is that there will be less backwards compatibility breaking changes going forward

lydia-duncan avatar Mar 09 '20 17:03 lydia-duncan

I'm thinking less about breaking changes, and more about making the lesson better over time. I think there's plenty of room to improve it, but if improving it requires jumping through a lot of hoops, it'll raise barriers to doing so (I've avoided improving it for that reason).

bradcray avatar Mar 09 '20 17:03 bradcray

It looks like this got resolved when https://github.com/adambard/learnxinyminutes-docs/pull/3877 got merged in 2022

lydia-duncan avatar Jul 11 '24 18:07 lydia-duncan

@lydia-duncan / @jabraham17 : It may have been updated since this issue was opened, but unfortunately it's still not in sync with the version in our release. :'(

I'm curious whether anyone has looked into whether the official site has a way of referring to code directly in a repo, like ours, or whether manual updates are required each time.

(Unrelated, but I don't have the heart to open a new issue over this, this week: I'd also be really interested in having someone who's really well-versed in Chapel take a pass over this to see whether it explains the language as we'd like it to be in this modern 2.0 age).

bradcray avatar Jul 11 '24 23:07 bradcray

Awww :(

lydia-duncan avatar Jul 12 '24 15:07 lydia-duncan

@lydia-duncan : Is the implication of your "Aww" that we should re-open this? Or we could add a new issue about updating the test again and/or creating a way to auto-update or auto-notify when an update is required?

bradcray avatar Jul 22 '24 17:07 bradcray

I'd lean towards a new issue including the desire to figure out how to auto-update or auto-notify when an update is required. I think it's reasonable to consider the work tracked in this issue as completed when the initial PR was merged, even though there is still work remaining with the test.

lydia-duncan avatar Jul 22 '24 17:07 lydia-duncan

I think it's reasonable to consider the work tracked in this issue as completed when the initial PR was merged, even though there is still work remaining with the test.

I disagree… The OP states that it's out of date and gives a specific f'r'instance of why. But it's still out of date today w.r.t. other concepts and doesn't compile if copy-pasted into ATO (say). So while the synchronization requested in the OP may have been done and the official site's version may have been working at some point in time, it isn't true today / with Chapel 2.0, so the issue doesn't feel resolved like it's resolved today / when it was closed.

bradcray avatar Jul 22 '24 18:07 bradcray

Belated thought in case it wasn't clear: I think all that would be required to close this "for real" would be to merge a PR capturing the current state of the test on the site. Now that we're past 2.0, it shouldn't require many correctness changes going forward (though I am noting that it uses unstable features). Creating a rewrite of it that doesn't use unstable features would be a good additional issue to spawn off.

bradcray avatar Jul 23 '24 16:07 bradcray