-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new user guide page "Simplifying Code Before Compilation" #6796
Conversation
``` | ||
|
||
Since this is nothing but standard Template Haskell usage, we'll keep it concise here. | ||
There are plenty of Template Haskell resources and examples available elsewhere. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know of any template haskell resources that would be accessible to beginners (those users whose only exposure to Haskell was learning Plinth)? I often struggle to teach TH to new developers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess "plenty of" is not very accurate, but I've come across some good blog posts and tutorials. Also, AI is not terrible at writing and explaining basic TH. i'll update the wording.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, I was debugging high memory usage in the plugin recently and it is associated with Plinth code spliced in as a TH quote. It would be nice to make sure that TH is not causing much overhead before advertising its usage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, I was debugging high memory usage in the plugin recently and it is associated with Plinth code spliced in as a TH quote. It would be nice to make sure that TH is not causing much overhead before advertising its usage.
That entirely depends on the code spliced in. TH itself cannot cause overhead - it just generates code programmatically instead of writing by hand. Btw thanks for looking into the memory issue; I'm really curious what it is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have any TH resources that you think would be semi-beginner friendly that maybe we can link in this documentation? I think it would help a lot. Maybe we can even just link the haskell org TH docs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, I added a few links in 4e20ffb.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very well-written.
No description provided.