[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: gnu: Add parenscript.
From: |
Pierre Neidhardt |
Subject: |
03/07: gnu: Add parenscript. |
Date: |
Tue, 9 Oct 2018 15:39:17 -0400 (EDT) |
ambrevar pushed a commit to branch wip-next-browser
in repository guix.
commit e0f2cf413ae279fa3d2a6426062b236ad7590e70
Author: Pierre Neidhardt <address@hidden>
Date: Fri Oct 5 16:14:30 2018 +0200
gnu: Add parenscript.
* gnu/packages/lisp.scm (cl-parenscript, ecl-parenscript,
sbcl-parenscript): New variables.
---
gnu/packages/lisp.scm | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 55a7ee5..9563494 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -2983,3 +2983,63 @@ package.")
"The @command{cl-sqlite} package is an interface to the SQLite embedded
relational database engine.")
(license license:public-domain))))
+
+(define-public sbcl-parenscript
+ (let ((commit "061d8e286c81c3f45c84fb2b11ee7d83f590a8f8"))
+ (package
+ (name "sbcl-parenscript")
+ (version (git-version "2.6" "1" commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://gitlab.common-lisp.net/parenscript/parenscript")
+ (commit commit)))
+ (file-name (git-file-name "parenscript" version))
+ (sha256
+ (base32
+ "1kbhgsjbikc73m5cwdp4d4fdafyqcr1b7b630qjrziql0nh6mi3k"))))
+ (build-system asdf-build-system/sbcl)
+ (inputs
+ `(("cl-ppcre" ,sbcl-cl-ppcre)
+ ("anaphora" ,sbcl-anaphora)
+ ("named-readtables" ,sbcl-named-readtables)))
+ (home-page "https://common-lisp.net/project/parenscript/")
+ (synopsis "Translator from a subset of Common Lisp to JavaScript")
+ (description
+ "Parenscript is a translator from an extended subset of Common Lisp to
+JavaScript. Parenscript code can run almost identically on both the
+browser (as JavaScript) and server (as Common Lisp).
+
+Parenscript code is treated the same way as Common Lisp code, making the full
+power of Lisp macros available for JavaScript. This provides a web
+development environment that is unmatched in its ability to reduce code
+duplication and provide advanced meta-programming facilities to web
+developers.
+
+At the same time, Parenscript is different from almost all other \"language
+X\" to JavaScript translators in that it imposes almost no overhead:
+
address@hidden
address@hidden No run-time dependencies: Any piece of Parenscript code is
runnable
+as-is. There are no JavaScript files to include.
address@hidden Native types: Parenscript works entirely with native JavaScript
data
+types. There are no new types introduced, and object prototypes are not
+touched.
address@hidden Native calling convention: Any JavaScript code can be called
without the
+need for bindings. Likewise, Parenscript can be used to make efficient,
+self-contained JavaScript libraries.
address@hidden Readable code: Parenscript generates concise, formatted,
idiomatic
+JavaScript code. Identifier names are preserved. This enables seamless
+debugging in tools like Firebug.
address@hidden Efficiency: Parenscript introduces minimal overhead for advanced
Common
+Lisp features. The generated code is almost as fast as hand-written
+JavaScript.
address@hidden itemize\n")
+ (license license:bsd-3))))
+
+(define-public cl-parenscript
+ (sbcl-package->cl-source-package sbcl-parenscript))
+
+(define-public ecl-parenscript
+ (sbcl-package->ecl-package sbcl-parenscript))
- branch wip-next-browser updated (d6fdab2 -> 1ab5ad6), Pierre Neidhardt, 2018/10/09
- 05/07: gnu: Add cl-unix-opts., Pierre Neidhardt, 2018/10/09
- 03/07: gnu: Add parenscript.,
Pierre Neidhardt <=
- 04/07: gnu: Add cl-json., Pierre Neidhardt, 2018/10/09
- 06/07: gnu: Add sbcl-cl-cffi-gtk., Pierre Neidhardt, 2018/10/09
- 02/07: cl-sqlite (FIX), Pierre Neidhardt, 2018/10/09
- 01/07: cl-sqlite (FIX), Pierre Neidhardt, 2018/10/09
- 07/07: next (FIX), Pierre Neidhardt, 2018/10/09