markup
datascript
markup | datascript | |
---|---|---|
8 | 25 | |
62 | 5,358 | |
- | - | |
0.7 | 7.7 | |
about 1 year ago | 10 days ago | |
Common Lisp | Clojure | |
Apache License 2.0 | 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.
markup
- lisp-markup.el: MARKUP provides a reader-macro to read HTML tags inside of Common Lisp code
-
Is it just me or do language modes have a lot of jankiness in Emacs?
Correct. Php mode focuses on not mixing php and html which is the more modern suggested way. Multi major modes can be fun, but very difficult to get to work correctly, especially for indentation. OP, if you really want this to work, php mode will need soecial treatment like js-mode for jsx or something like this: https://github.com/moderninterpreters/markup/blob/master/lisp-markup.el which is a minor mode for writing html in lisp files.
- Looking for unopinionated HTML generator library
-
LispWorks IDE vs Slime/Sly?
Also, /u/KaranasToll wrote an Emacs mode for markup, which I also can't live without: https://github.com/moderninterpreters/markup, basically the ability to indent HTML embedded inside CL.
-
Tutorial 33 - with-clog-create - Declarative syntax for CLOG GUIs (Thanks to u/mmontone !)
Very nice! Then I wonder how much it is doable to add a JSX-like syntax, such as https://github.com/moderninterpreters/markup (so that we could copy&paste HTML snippets).
-
Screenshotbot: An open source Screenshot Testing service written in Common Lisp
Heavy use of markup, most files have at least some HTML interspersed with Lisp. This might go against everything you've learnt about software design, but works really well.
-
LFE or alternative for server-side Web API?
Finally, if you like React style HTML-in-js, you might also like HTML-in-Lisp: https://github.com/moderninterpreters/markup
-
Main reasons for a programmer to try their hand in Lisp?
Let me give you an example. In PHP, Facebook wanted the ability to write HTML inside PHP code, so they built that feature into their PHP compiler (and through some series of steps eventually became HHVM, which isn't technically considered PHP anymore, but I digress). Similarly, they wanted that feature for Javascript so they modified their compiler to support that. I've worked for Facebook, and I loved that feature and missed it when I left. So I built that for Lisp: I just wrote a reader macro without changing the compiler, and I had a working implementation in a day's work. (Btw, the library is here: https://github.com/moderninterpreters/markup)
datascript
- Datascript: Immutable database and Datalog query engine
-
Datalog in 100 lines of JavaScript (2022)
Hi pests, I don't think the criticism in the comments gives a full picture.
I wrote about a particular flavor of datalog, in common use today. [1] [2]. The earliest representation I know, which matches the syntax of my essay, was in SICP [3]
There's another, more academic form of datalog, which looks a lot more like prolog. Both have lots of similarities: both systems have a set of facts and rules. Both systems have can take a partially filled fact or rule, and find all matching facts. The more academic flavors of Datalog are useful for general logic, and particularly powerful for recursive questions. The variant I showed is more tailed for database queries.
[1] https://github.com/tonsky/datascript
-
XTDB on Mobile Possible?
There is also datascript as a similar option.
- FoundationDB: A Distributed Key-Value Store
-
wotbrew/relic: FRP for Clojure(Script)
What's the use case for relic? Sounds similar to https://github.com/tonsky/datascript ?
- Introduction to Datalog
- Clojure Turns 15 panel discussion video
-
Show HN: Cozo – new Graph DB with Datalog, embedded like SQLite, written in Rust
This look nice !
Datascript seems to be another Datalog engine (in memory only)
https://github.com/tonsky/datascript
-
Ergonomic inline SQL as a Python library
Inspired by past work: LINQ, inline-python, crepe, DataScript, Riffle.
-
Working with large maps
An in-memory database like Datascript may be worth looking into. Otherwise you could take an indexing approach: put all the data into one big map indexed by some unique key, and have a bunch of supplementary indexes that are updated on insertion.
What are some alternatives?
FXML - Secure-by-default, error-recovering XML parser and serializer in Common Lisp
asami - A graph store for Clojure and ClojureScript
datahike - A durable Datalog implementation adaptable for distribution.
datalevin - A simple, fast and versatile Datalog database
10000-markdown-files - 10,000 markdown files. Useful for stress testing note-taking tools.
xtdb - An immutable database for application development and time-travel data compliance, with SQL and XTQL. Developed by @juxt
Apache AGE - Graph database optimized for fast analysis and real-time data processing. It is provided as an extension to PostgreSQL. [Moved to: https://github.com/apache/age]
Neo4j - Graphs for Everyone
pathom3 - A library for navigating data.
JWM - Cross-platform window management and OS integration library for Java
shadow-cljs - ClojureScript compilation made easy
swipl-wasm - Run SWI-Prolog in your browser using WebAssemply