このスクラップは限定公開です
Open1

hylang関係

xiangzexiangze

インストールと基本

pip install hy

でhylangそのものの実装とPythonからの読み込み、実行ができる

https://masatoi.github.io/2017/05/11/hy-tutorial
pandasとか使える
https://leetschau.github.io/hy-notes.html

本家

https://hylang.org/hy/doc/v1.1.0
https://hylang.org/hy/doc/v0.28.0/syntax
https://hylang.org/hy/doc/v1.1.0/tutorial#functions-classes-and-modules

https://github.com/hylang/hy

入門

https://niyarin.github.io/contents/2020-12/use-hylang.html
https://kitchingroup.cheme.cmu.edu/blog/2016/04/03/Getting-hylp-in-hy/

基本関数

  • setv
  • fn
  • list
  • do

関数の引数、listの要素を[]で囲む方言があり難儀した。

pythonのhy

impory hy
hy.read()
hy,eval()

#stringへの変換、dump,printは

#など

https://qiita.com/masatoi0/items/8215353612bc32ad0717

https://qiita.com/riktor/items/498a30d41f89d41ea168

pyhon的関数をlispで使う

特定の性質をもつS式を生成する

マクロ定義

https://sandmark.hateblo.jp/entry/2018/10/22/213807
HySymbol, HyExpression, HyListはPythonにはない
https://masatoi.github.io/2017/05/11/hy-tutorial

関係する?
https://docs.sympy.org/latest/modules/codegen.html