DeepWiki as a learning tool for Crystal

I recently tried out the much-talked-about tool, DeepWiki.

This tool generates a wiki from a public Git repository and answers questions by quoting the source code.

DeepWiki has also been a hot topic in the ruby-jp Slack channel, where two Ruby committers commented that its interpretation of the Ruby source code is generally accurate and helpful for reading the Ruby codebase.

Someone has already created an index for the Crystal language as well. It looks like it could be useful for understanding Crystal’s source code.

4 Likes

For example, I asked about Symbol and Int32 conversion:

  • How are symbols converted to Int32 in the Crystal language?
  • How are symbol tables converted to LLVM IR?
  • Can you explain the define_symbol_table method in more detail?
  • What happens when Symbol#to_s is called?

I can’t fully understand DeepWiki’s answers or judge if they’re correct. But they give me a lot of inspiration, and the compiler feels a bit more approachable.

1 Like

The answer is pretty good. :+1:

Seems like a valuable resource to dive deeper in the compiler.

1 Like

I asked some broad (how does the semantic analysis work) and specific questions (data layout of mixed union types), and the answers looked pretty good :astonished_face:

1 Like

Ideally, we could use that material and transform it into curated documents for the Crystal book.

1 Like