Skip to content
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

do block considered harmless | Nicolau Leal Werneck | JuliaCon 2022 #207

Closed
digital-carver opened this issue Aug 1, 2022 · 6 comments
Closed

Comments

@digital-carver
Copy link

digital-carver commented Aug 1, 2022

Link to the talk: https://www.youtube.com/watch?v=2VccdiX-9Tg


Pull Requests/Proposals mentioned in the talk:

do-block section in the Julia manual: https://docs.julialang.org/en/v1/manual/functions/#Do-Block-Syntax-for-Function-Arguments

00:06 Introduction
00:25 Why is do-syntax so cool?
02:24 Why avoid writing for-loops?
04:13 Can it really be done? (Limitations)
05:16 Illustrative example: simple for loop
05:59 Illustrative example: nested for loop
06:41 Proposals
07:26 Conclusion

@digital-carver
Copy link
Author

digital-carver commented Aug 1, 2022

Github auto-converted the plain URLs I posted (as links to the PRs/proposals) into the fancy output above. In case that makes it harder to copy, here's the same list with githubcom instead of github.com (the dot removed) so Github doesn't mess with them:

Pull Requests/Proposals mentioned in the talk:

@nlw0
Copy link

nlw0 commented Oct 17, 2022

Hey, thanks for the work!

@digital-carver
Copy link
Author

Thanks for the talk! The flexibility and variety of syntax options is one of my favourite things about Julia. It's great to see them explored to their full power.

@KZiemian
Copy link
Collaborator

I tweaked materials in this thread a bit.

Contents
00:00 Opening and introduction
00:25 Why is do-syntax so cool?
02:24 Why avoid writing for-loops?
04:13 Can it really be done? Limitations of the approach
05:16 Illustrative example: simple for loop
05:59 Illustrative example: nested for loop
06:41 Proposals
07:26 Conclusion

Resources
Julia manual section on do-block, link.
Pull request Implements flatmap.
Pull request mapreduce: use simpler reduction order in some cases.
Pull request Unfold() is an iterable based on a transition function.

@KZiemian
Copy link
Collaborator

Thank you. Timestamps were added to the video, we will close this issue, when we get access rights to this GitHub repository.

@KZiemian
Copy link
Collaborator

It looks to me, that we can close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants