I ported the #CadQuery Lego brick example from #Python to #Hy to see if it would work. It did, and I posted a gist here: https://gist.github.com/jmwright/b1f4e3cbcb2152a240b03a8779a202b4 #Hylang
As promised, I have published the second episode of the introductory tutorial on Hy, the Lisp dialect that compiles to Python AST and interoperates with its libraries.
This episode explores lexical scoped blocks and macros, showcasing the metaprogramming capabilities offered by Hy.
https://dev.to/gicrisf/getting-started-with-hy-the-python-lisp-a-matplotlib-example-ep-2-7jm
#hylang #python #beginner #lisp #clojure #macro #matplotlib
> Tris was carried off to a vast dungeon deep beneath the faraway elven land of Québec.
lmao
#quebec #hy #hylang #lisp #roguelike
ChatGPT is not very good at coding in unpopular languages. It made up lots of functions that didn’t exist in #Hylang (a language it, at first, denied the existence of), and made mistakes implementing them (though it did succeed in fixing them when I pointed them out).
In ABC the sheet music it generated had measures in the bass that didn’t match the length of the treble measures, and it couldn’t fix it when I asked.
Pretty good at Python though.
#hylang New version of my book A Lisp Programmer Living in Python-Land: The Hy Programming Language | http://redd.it/13rtgo1
#hylang New version of my book A Lisp Programmer Living in Python-Land: The Hy Programming Language | http://redd.it/13rtgo1
@Reiddragon @ezio @ksk As far as syntax goes, I'll say #Hylang is what #Python should've been.
Though then once you get that close you wonder whether Python shouldn't have simply been another #Scheme implementation with a rich library instead, or contributions to an existing one.
@niconiconi This is partly why I think #Python should've just been #Hylang.
Doing this is asking for meaningful whitespace bullshit to wreck things, nevermind the fact it's more legible and less ambiguous.
#hylang FYI: Hy core developers (e.g., me) pay more attention to the GitHub Discussions page than to this subreddit... | http://redd.it/117cecy
fizzbuzz in #hylang is really nice
```
(require
hyrule.anaphoric [ap-if]
hyrule.sequences [defseq])
(defseq fizzbuzz [n]
(ap-if
(lfor [d w] [[3 "Fizz"] [5 "Buzz"]] :if (= 0 (% n d)) w)
(.join "" it)
(str n)))
```
#hylang Important update to install info for my book "A Lisp Programmer Living in Python-Land: The Hy Programming Language"... | http://redd.it/z66xti
#hylang Important update to install info for my book "A Lisp Programmer Living in Python-Land: The Hy Programming Language"... | http://redd.it/z66xti
#hylang Pycket: a Racket/Scheme implementation that is generated using the RPython framework | http://redd.it/upiyxc
#hylang Pycket: a Racket/Scheme implementation that is generated using the RPython framework | http://redd.it/upiyxc
#hylang Some Hy stuff in this blog post about using opencv to analyze films | http://redd.it/uoihph
#hylang Some Hy stuff in this blog post about using opencv to analyze films | http://redd.it/uoihph
#hylang help trying to figure out why some 0.17 code doesn't work in 0.20 | http://redd.it/qyiw80