hy
sci
hy | sci | |
---|---|---|
52 | 20 | |
4,778 | 1,167 | |
0.6% | 0.8% | |
9.2 | 7.2 | |
4 days ago | 16 days ago | |
Python | Clojure | |
GNU General Public License v3.0 or later | Eclipse Public License 1.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
hy
- A dialect of Lisp that's embedded in Python
-
How to Write a (Lisp) Interpreter (In Python)
Not exactly the same (doesn't embed into the source like this did), but I believe Hylang[0] is the best Lisp package available for modern Python.
[0] https://github.com/hylang/hy
-
Sapling: A highly experimental vi-inspired editor where you edit code, not text
Isn't that a bit what hy (https://hylang.org/) tries to do ? AIUI it is a lisp interacting directly with the AST of Python, allowing seamless interop: Python modules can be used from hy and vice versa, everything is transparent.
- Hylang, a Lisp dialect embedded in Python
-
Hissp
I’ve been keeping loose tabs on this and Hy[1] for a while, but I’ve had some trouble figuring out the major differences between them and the use-cases for either. Would love to see an in-depth comparison in the form of a blog post sometime (though maybe the answer here is to do the research and write one up myself).
1: https://hylang.org
- Hy
-
Ask HN: Is SICP/HtDP still worth reading in 2023? Any alternatives?
“Python is for scientists. Lisp is for engineers.”
Then what does that make Hy language?
https://hylang.org/
Re Languages with lots of example code and LLM’s
With translators or things like Hy lang, one could get the LLM’s to solve your problem in Python before converting it to another form. Then, you just need a translator. If lacking one, it’s easy to translate by hand.
The practicality of this concept will probably vary by use case. My experiments had GPT doing sketching, implementations, boilerplate, and even porting Python to Rust. A legally-clear LLM trained on multiple languages could probably be fine-tuned to do Python to LISP conversions. If not, Hy might be a stepping stone, too.
-
Sharing Saturday #469
You could say so: I've been maintaining the compiler since 2016 ;). Infinitesimal Quest 2 + ε (SQ) exists more to advance Hy than for its own sake.
- What if: python without commas
-
Best implementation of CL for learning purposes
If you are using Python - you might find Hylang (https://hylang.org) interesting.
sci
-
What's the value proposition of meta circular interpreters?
I've tried researching this myself and can't find too much. There's this project metaes which is an mci for JS, and there's the SCI module of the Clojure babashka project, but that's about it. I also saw Triska's video on mci but it was pretty theoretical.
- Sci: Configurable Clojure/Script interpreter suitable for scripting
-
Windmill: Open-source developer platform to turn scripts into workflows and UIs
https://github.com/babashka/SCI if it's a requirement for proper sandboxing
-
Embedding cherry in an existing CLJS app for runtime eval
Since cherry is a compiler, the code generally runs faster than with SCI which is an interpreter. For many cases SCI is fast enough, but numerical computations in a hot loop isn't one of its strenghts:
-
Compiled and Interpreted Languages: Two Ways of Saying Tomato
Startup and sustained performance are absolutely implementation issues. For example, SBCL will take its sweet time to make machine code out of Common Lisp, but CLISP will interpret and generate bytecode. Both are useful, and both implement the same language. Clojure on the JVM takes also takes plenty of time to start up, so some use an interpreter instead. Furthermore neither of these languages has a cost model, so the cost of anything is an implementation issue.
- Show HN: Programming Google Flutter with Clojure
-
Third party integrations with a monolithic Clojure app
So far we have relied on an increasing number of home-grown integration points to our platform, where relevant combined with the excellent SCI (so we can write some Clojure-code when adhoc data conversions / calculations / tweaking is required).
-
Scala native equivalent to Clojure
Also take a look at SCI, https://github.com/babashka/sci/blob/master/doc/libsci.md
-
Langdev in Clojure
You probably want to take a look at sci if you are creating a DSL or want to use Clojure itself as your DSL.
-
ClojureRS – Clojure interpreter implemented in Rust
Built with the lovely SCI library (https://github.com/babashka/sci) + GraalVM, probably the most useful GraalVM project I've seen in the wild so far.
Also, Babashka will probably always support more features than ClojureRS could ever, particularly the interop with the various Java classes/functions, as that'd be very hard to achieve in ClojureRS.
What are some alternatives?
hissp - It's Python with a Lissp.
clojure-lsp - Clojure & ClojureScript Language Server (LSP) implementation
Fennel - Lua Lisp Language
tailwindcss-typography - Beautiful typographic defaults for HTML you don't control.
babashka - Native, fast starting Clojure interpreter for scripting
hotwire-rails - Use Hotwire in your Ruby on Rails app
eso-light-attack-weave - This is a macro for the game Elder Scrolls Online
mdx - Markdown for the component era
Carp - A statically typed lisp, without a GC, for real-time applications.
rich4clojure - Practice Clojure using Interactive Programming in your editor
hebigo - 蛇語(HEH-bee-go): An indentation-based skin for Hissp.