News for hackers. Stuff that matters.
Re:A week with Hy by maest on Thursday August 08, 2019 @01:24PM (#20646486)
Is there a guide/overview/doc/tutorial/whatever of how Hy is implemented?

I'm curious how hy modules can be imported in python directly.

Re:A week with Hy by dfox on Thursday August 08, 2019 @01:51PM (#20646780)
Python has API that allows you to replace parts of import system with arbitrary Python code.
Re:A week with Hy by maest on Thursday August 08, 2019 @05:27PM (#20648984)
If you are talking about the import hooks, I think those require the imported file to have valid python syntax. The import hooks work on the python AST (I think)
Re:A week with Hy by greenshackle2 on Thursday August 08, 2019 @05:48PM (#20649171)
I think you are correct, they monkey-patched importlib

https://github.com/hylang/hy/blob/master/hy/importer.py#L132

Re:A week with Hy by btwillard on Thursday August 08, 2019 @08:56PM (#20650425)
As I recall, patching was simply the most expedient approach. Otherwise, for the changes we needed to make, we would've had to copy a lot of source from the standard loader implementation in CPython for only a few simple changes.

https://github.com/hylang/hy/pull/1672