From 81547dbe573c1a44b9867275edb5ac75858c296f Mon Sep 17 00:00:00 2001 From: vindarel Date: Fri, 30 Aug 2024 12:33:57 +0200 Subject: [PATCH] rm nodgui, mention nodgui-lite, yet to test its integration. drops SDL, SDL TTF and JPEG turbo libraries. the flip side of the coin will be the loss of canvas with fast pixel drawing, hardware accelerated canvas for 3D rendering and also the support for JPEG bitmap. for https://github.com/ciel-lang/CIEL/issues/56 for https://github.com/ciel-lang/CIEL/pull/52 --- README.md | 6 +++--- ciel.asd | 8 +++++++- docs/libraries.md | 10 ++++++++-- src/gui.lisp | 3 ++- 4 files changed, 20 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5189151..0ddfacb 100644 --- a/README.md +++ b/README.md @@ -59,8 +59,8 @@ One of our goals is to make Common Lisp useful out of the box for mundane tasks -by today standards. As such, we ship libraries to handle **JSON** or **CSV**, as well as others to ease string manipulation, to do pattern matching, to bring regular expressions, for -threads and jobs scheduling, for **HTTP** and URI handling, to -create simple GUIs with nodgui (Tk-based, nice theme), and so on. You can of course do all this +threads and jobs scheduling, for **HTTP** and URI handling, +and so on. You can of course do all this without CIEL, but then you have to install the library manager first and load these libraries into your Lisp image every time you start it. Now, you have them at your fingertips whenever you start CIEL. @@ -393,7 +393,7 @@ you won't wait for the quicklisp libraries to load. We import, use and document libraries to fill various use cases: generic access to data structures, functional data structures, string -manipulation, JSON, database access, web, URI handling, GUI, iteration +manipulation, JSON, database access, web, URI handling, iteration helpers, type checking helpers, syntax extensions, developer utilities, etc. diff --git a/ciel.asd b/ciel.asd index 1fe34ec..1640a8e 100644 --- a/ciel.asd +++ b/ciel.asd @@ -65,7 +65,13 @@ :cl-ftp ;; depends on only: split-sequence and usocket. ;; GUI - :nodgui ;; ltk fork with built-in themes and more widgets. + ;; We remove nodgui as of <2024-08-30> + ;; because it was too heavy in dependencies, see + ;; https://github.com/ciel-lang/CIEL/issues/56 + ;; We'll test again with its lightweight nodgui-lite system. + ;; :nodgui ;; ltk fork with built-in themes and more widgets. + ;; to test: + ;; :nodgui-lite ;; CLI :clingon ;; args parsing diff --git a/docs/libraries.md b/docs/libraries.md index 4d526cd..f50c435 100644 --- a/docs/libraries.md +++ b/docs/libraries.md @@ -578,9 +578,15 @@ And there is more, check file-finder's documentation. > WARN: file-finder is still experimental. -## GUI (tk) +## GUI (tk) (removed) -We ship [nodgui](https://lispcookbook.github.io/cl-cookbook/gui.html#tk-ltk-and-nodgui). +Previous versions of CIEL shipped [nodgui](https://lispcookbook.github.io/cl-cookbook/gui.html#tk-ltk-and-nodgui) which, in its default form, is featureful but heavy in dependencies for us. + +As of August of 2024, a lightweight [`nodgui-lite` system was made available](https://www.autistici.org/interzona/nodgui.html#nodgui-lite). + +It is not yet included in CIEL. + +We leave nonetheless the presentation of the library. The Tk toolkit is nearly ubiquitous and simple to use. It doesn't have a great deal of widgets, but it helps anyways for many kind of uses, from utility GUIs to industrial applications. Moreover, it doesn't look aweful (as it did decades ago), it has themes to look surprisingly good on the different platforms. diff --git a/src/gui.lisp b/src/gui.lisp index 5cfbaf6..6ab7a54 100644 --- a/src/gui.lisp +++ b/src/gui.lisp @@ -1,3 +1,4 @@ (in-package :ciel) -(setf nodgui:*default-theme* "yaru") +;; let's try nodgui-lite +;; (setf nodgui:*default-theme* "yaru")