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

Overhaul introductory documentation #1811

Merged
merged 3 commits into from
Aug 19, 2019

Conversation

Kodiologist
Copy link
Member

This is long overdue, and the rest of the documentation remains in less-than-great shape, and we still don't test the documentation code or automatically mirror docstrings, but it's progress.

See the commit message of the big commit for more.

* [Python `sh` Fun](https://twitter.com/paultag/status/314925996442796032)
* [Hy IRC Bot](https://github.com/hylang/hygdrop)
* [miniKanren in Hy](https://github.com/algernon/adderall)
To install the latest stable release of Hy, just use the command `pip3 install
Copy link
Contributor

Choose a reason for hiding this comment

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

Side note: do we really want to be recommending pip3 without --user these days? It has a tendency to break...a lot. (Unless you're in a venv I guess, but if you are using venvs for apps, you might as well use pipx, right?)

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh dang, does it? I haven't noticed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Is pip3 --user more reliable, or is it just easier to clean up a mess in your home directory?

Copy link
Contributor

Choose a reason for hiding this comment

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

More reliable; since sudo pip3 installs to the same directory as distro package managers, it has a tendency to either overwrite the distro packages with wrong versions (broke apt for me back when I was on Ubuntu, not very fun to fix), or cause issues when you then try to install the distro version of a package that pip3 already installed. At this point Debian defaults to --user (though that patch also has its own issues).

Copy link
Member Author

Choose a reason for hiding this comment

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

Okay, good to know. I'll add in the --users and merge.

docs/whyhy.rst Outdated

Overall, Hy, like Common Lisp, is intended to be an unopinionated big-tent
language that lets you do what you want. If you're interested in a more
small-and-beautiful approach to Lisp, in the style of Scheme or Clojure, check
Copy link
Contributor

Choose a reason for hiding this comment

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

Also minor side note: not that familiar with Clojure, but does it actually count for this? (I mean, it has a for loop macro, syntax for creating Java objects and implementing interfaces via reify...)

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good question. I think the answer is that that was the goal, but any language that sees real use (e.g., not R5RS Scheme, but Racket) inevitably accumulates lots of features over its lifetime. Python itself is probably the best example.

Copy link
Contributor

Choose a reason for hiding this comment

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

True, I mean I understand the Scheme comparison, I just feel like Clojure's is a bit more of a stretch.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair enough. I'll change it.

- Removed links to non-updated code and badges.
- Compressed `quickstart.rst` into a few sentences at the very start of the docs.
- Added a "Why Hy?" chapter discussing Hy's features and comparing Hy to Python and other Lisps.
- Rewrote the tutorial to be more accessible to non-Python programmers and to be greater in breadth but lesser in depth.
- Cut down on the self-congratulatory manic tone and exclamation points, while keeping the jokes I liked best.
@Kodiologist Kodiologist merged commit 645d2e0 into hylang:master Aug 19, 2019
@Kodiologist Kodiologist deleted the intro-docs-improvements branch January 5, 2020 14:40
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.

2 participants