Skip to content

Conversation

@tolgacangoz
Copy link
Contributor

@tolgacangoz tolgacangoz commented Jan 16, 2026

Thanks a lot for this implementation-based learning environment!

Hi @dunnoconnor! FYI: Puzzle 2's video isn't included in the playlist: https://www.youtube.com/playlist?list=PLh0S94-sJw_5yv_s--TW0Asi6liIy0NGz

This pull request makes minor improvements to documentation and code clarity by fixing a broken link and removing unused imports from two files.

  • Documentation update:

    • Fixed a broken link in book/src/puzzle_02/puzzle_02.md to correctly point to the introduction_layout_tensor.md file.
  • Code cleanup:

    • Removed unused imports (UnsafePointer, block_dim, block_idx) from problems/p02/p02.mojo to clean up the code.
    • Removed unused imports (UnsafePointer, block_dim, block_idx) from solutions/p02/p02.mojo for consistency and clarity.

@@ -1,5 +1,3 @@
from memory import UnsafePointer
Copy link
Contributor Author

@tolgacangoz tolgacangoz Jan 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We didn't need to import memory.UnsafePointer at the first puzzle, thus isn't it built-in?

@tolgacangoz tolgacangoz marked this pull request as draft January 16, 2026 14:34
@tolgacangoz tolgacangoz marked this pull request as ready for review January 16, 2026 14:34
Copilot AI review requested due to automatic review settings January 16, 2026 14:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to clean up unused imports in puzzle 2 files and fix a documentation link. The changes remove imports that are not directly used in the respective files and update a reference link to be more specific.

Changes:

  • Removed unused imports (UnsafePointer, block_dim, block_idx) from solution and problem files
  • Removed starter code hint in the problem file and adjusted the comment
  • Fixed documentation link to point specifically to introduction_layout_tensor.md

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
solutions/p02/p02.mojo Removes unused imports while keeping thread_idx which is used in the solution
problems/p02/p02.mojo Removes all imports and starter hint, making the problem harder
book/src/puzzle_02/puzzle_02.md Fixes documentation link to be more specific

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Successfully merging this pull request may close these issues.

1 participant