generated from calcit-lang/calcit-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a rushed refactor with content updates
- Loading branch information
Showing
8 changed files
with
167 additions
and
426 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
body { | ||
margin: 0; | ||
overscroll-behavior-y: none; | ||
} | ||
|
||
body * { | ||
flex-shrink: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
::-webkit-scrollbar { | ||
width: 4px; | ||
height: 4px; | ||
} | ||
|
||
::-webkit-scrollbar-track { | ||
background-color: hsla(0,0%,100%); | ||
} | ||
|
||
::-webkit-scrollbar-thumb { | ||
background-color: hsla(200,100%,76%,0.8); | ||
} | ||
|
||
::-webkit-scrollbar-corner { | ||
background-color: transparent; | ||
} | ||
|
||
::-webkit-resizer { | ||
background-color: transparent; | ||
} | ||
|
||
.md-block .md-p { | ||
font-size: 16px; | ||
margin: 24px 0px; | ||
line-height: 25px; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
Calcit is an interpreter and code emitter for snapshot file from [calcit-editor](https://github.com/Cirru/calcit-editor). It's inspired mostly by ClojureScript. Calcit-js is emitted in ES Modules syntax. And it's hot-swapping friendly. | ||
|
||
## Features | ||
|
||
* Immutabilit Data | ||
|
||
Values and states are represented in different data structures, which is the semantics from functional programming. Internally it's [`im` in Rust](https://crates.io/crates/im) and custom [finger trees](https://github.com/calcit-lang/ternary-tree.ts) in JavaScript. | ||
|
||
* Lisp(Code is Data) | ||
|
||
Calcit-js was designed based on experiences from ClojureScript, with a bunch of built macros. It offer similar experience with ClojureScript. So Calcit offers much power via macros, while keeps its core simple. | ||
|
||
* Indentations | ||
|
||
With the bundler command, Calcit code can be written like a indentation-based language. So you don't have to match parentheses like in Clojure. It also means now you need to handle indentations very carefully. | ||
|
||
### Eco-system | ||
|
||
Libraries & Tools: | ||
|
||
[Memof: memoization library with caching](https://github.com/calcit-lang/memof) | ||
[Lilac: validation library](https://github.com/calcit-lang/lilac) | ||
[Respo: virtual DOM library](https://github.com/Respo/respo.calcit) | ||
[Phlox: virtual DOM like wrapper on top of PIXI](https://github.com/Quamolit/phlox.calcit) | ||
[Quaterfoil: thin virtual DOM wrapper over three.js](https://github.com/Quamolit/quatrefoil.calcit) | ||
[Calcit IR viewer](https://github.com/calcit-lang/calcit-ir-viewer) | ||
[Calcit Error viewer](https://github.com/calcit-lang/calcit-error-viewer) | ||
[Calcit Paint: play with 2d shapes](https://github.com/calcit-lang/calcit-paint) | ||
[Cumulo: template for tiny realtime apps](https://github.com/Cumulo/cumulo-workflow.calcit) | ||
|
||
|
||
### Recent Posts | ||
|
||
Videos: | ||
|
||
[calcit-js 开发记录(21-01-22) 关于 ternary-tree.ts 重构](https://www.bilibili.com/video/BV1Ht4y167Fg) | ||
[calcit-js 阶段介绍(2021-01)](https://www.bilibili.com/video/BV1H5411n7su) | ||
[calcit-runner 阶段记录介绍(2021-01)](https://www.bilibili.com/video/BV1cK4y1W7dZ) | ||
|
||
Articles: | ||
|
||
[Introducing calcit-js: toy language inspired by cljs](https://clojureverse.org/t/introducing-calcit-js-toy-language-inspired-by-cljs/7097) | ||
[An indentation way to Lisp](https://github.com/calcit-lang/calcit-runner/discussions/123) | ||
[Problems encountered in generating js](\"https://github.com/calcit-lang/calcit-runner/discussions/148) | ||
[calcit-js 的 JavaScript 代码生成与疑难](https://github.com/calcit-lang/calcit-runner/discussions/184) | ||
[ternary-tree.ts: 关于初期的性能优化(on early optimizations)](https://github.com/calcit-lang/ternary-tree.ts/discussions/7) | ||
[A trick for cheaper persistent list in JavaScript](https://clojureverse.org/t/a-trick-for-cheaper-persistent-list-in-javascript/7172) | ||
|
||
### More | ||
|
||
Also see ["Cirru Project]("http://cirru.org/) " for higher goals of auto-layout code editor. | ||
|
||
Updates can be followed on ["Twitter @cirrulang]("https://twitter.com/cirrulang) ". Visit ["Calcit Runner]("https://github.com/calcit-lang) " for details. Pre-built binaries for Linux can be found on ["bin.calcit-lang.org]("http://bin.calcit-lang.org/linux/) " and you can also compile code by yourself to try it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.