https://github.com/hylang/hy/discussions/2608 Skip to content Navigation Menu Toggle navigation Sign in * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + GitHub Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code Explore + All features + Documentation + GitHub Skills + Blog * Solutions By size + Enterprise + Teams + Startups By industry + Healthcare + Financial services + Manufacturing By use case + CI/CD & Automation + DevOps + DevSecOps * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} hylang / hy Public * Notifications You must be signed in to change notification settings * Fork 372 * Star 5k * Code * Issues 13 * Pull requests 0 * Discussions * Actions * Projects 0 * Wiki * Security * Insights Additional navigation options * Code * Issues * Pull requests * Discussions * Actions * Projects * Wiki * Security * Insights Hy 1.0.0, the Lisp dialect for Python, has been released #2608 Kodiologist started this conversation in General Hy 1.0.0, the Lisp dialect for Python, has been released #2608 @Kodiologist Kodiologist Sep 22, 2024 * 1 comments * 1 reply Return to top Discussion options * {{title}} Something went wrong. Quote reply edited * {{editor}}'s edit {{actor}} deleted this content . {{editor}}'s edit Something went wrong. [322] Kodiologist Sep 22, 2024 Maintainer - I'm pleased to announce the release of Hy 1.0.0, after nearly 12 years of on-and-off development and lots of real-world use. Hy is a Lisp dialect embedded in Python. See Hylang.org for an introduction and documentation, the NEWS file for a version history, and the HYPE POST for something a little less serious. Henceforth, breaking changes to documented parts of the language (other than dropping support for versions of Python that are themselves no longer supported by the CPython developers) will increase the major version number, and my intention is for that not to happen often, if at all. My focus will be on fixing new bugs as they arise, adding compatibility with new versions of Python, and adding support for whatever new features are added to Python in a fashion that won't break code that works on previous versions of Hy 1.x.y. Beta Was this translation helpful? Give feedback. 46 You must be logged in to vote 114 [?] 54 35 7 All reactions * 114 * [?] 54 * 35 * 7 Replies: 1 comment * 1 reply * Oldest * Newest * Top Comment options * {{title}} Something went wrong. Quote reply [753] pyx Sep 23, 2024 - Congrats. This is the moment I've been waiting for over a decade, literally. It gives me peace of mind because I am working on an ORM and an async web framework, both in Hy, they are not the typical "yet another ..." ones, I am not reinventing the wheel, both libraries are leveraging existing awesome libraries, containing mostly macros, focusing on cleaner interface and less boilerplate code. For example, instead of these models in SQLAlchemy's ORM Quick Start Guide class Base(DeclarativeBase): pass class User(Base): __tablename__ = "user_account" id: Mapped[int] = mapped_column(primary_key=True) name: Mapped[str] = mapped_column(String(30)) fullname: Mapped[Optional[str]] addresses: Mapped[List["Address"]] = relationship( back_populates="user", cascade="all, delete-orphan" ) class Address(Base): __tablename__ = "address" id: Mapped[int] = mapped_column(primary_key=True) email_address: Mapped[str] user_id: Mapped[int] = mapped_column(ForeignKey("user_account.id")) user: Mapped["User"] = relationship(back_populates="addresses") One can use the defmodel macro: (defmodel User (id int :primary-key) (name str :max-length 30) (fullname str :nullable) (1->* Address :as "addresses")) (defmodel Address (id int :primary-key) (email str) (*->1 User :reference "addresses")) There will be no extra cost in runtime as defmodel is merely a macro that expand the code into the SQLAlchemy one above. To me, this is the true power of lisp, and a stabilized set of internals and APIs of Hy is a must for this kind of thing, so thank you all for the release of 1.0. Beta Was this translation helpful? Give feedback. 14 You must be logged in to vote [?] 22 2 All reactions * [?] 22 * 2 1 reply @kskarthik Comment options * {{title}} Something went wrong. Quote reply kskarthik Sep 23, 2024 - the hy syntax is minimal ! Beta Was this translation helpful? Give feedback. 1 All reactions * 1 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Category General Labels None yet 3 participants @Kodiologist @pyx @kskarthik Heading Bold Italic Quote Code Link --------------------------------------------------------------------- Numbered list Unordered list Task list --------------------------------------------------------------------- Attach files Mention Reference Menu * Heading * Bold * Italic * Quote * Code * Link * * Numbered list * Unordered list * Task list * * Attach files * Mention * Reference Select a reply Loading Create a new saved reply 1 reacted with thumbs up emoji 1 reacted with thumbs down emoji 1 reacted with laugh emoji 1 reacted with hooray emoji 1 reacted with confused emoji [?] 1 reacted with heart emoji 1 reacted with rocket emoji 1 reacted with eyes emoji Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.