Skip to content

Commit a8a6a6e

Browse files
committed
release docs
1 parent e8dee1d commit a8a6a6e

File tree

5 files changed

+57
-131
lines changed

5 files changed

+57
-131
lines changed

LINUX.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## Installing Common Lisp + CLOG Builder on Linux (all platforms)
22

3-
(For emacs based Linux install - https://lisp-lang.org/learn/getting-started/)
3+
For emacs based Linux install - https://lisp-lang.org/learn/getting-started/)
4+
5+
Also see another alternative [Install and Using OCICL on all platforms](OCICL.md)
46

57
1. Install sbcl, sqlite and openssh (modify for your OS)
68

MACOS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
(If you do not want emacs skip steps 1,2,6, and 7 and just use the
44
CLOG Builder)
55

6+
also see [Install and Using OCICL on all platforms](OCICL.md)
7+
68
1. Install Emacs for Mac OS from - https://emacsformacosx.com/
79

810
2. [optional] Add Emacs to your system's path by creating a

NATIVE.md

Lines changed: 12 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
# Creating Native Applications with CLOG
22

3-
## The Simple solution:
3+
## The Simple solutions:
44

5-
Common to all solutions is compiling you CLOG application to an executable.
5+
1. Common to all solutions is compiling you CLOG application to an executable.
66
See demos/make-snake and the source of the 01-demo.lisp file.
77

88
make-snake produces a native app that launches a browser. When snake game
99
exist the executable quits.
1010

11-
or better yet use CLOGFRAME - see clogframe/README.md and the built in
11+
2. You can use CLOGFrame - see clogframe/README.md and the built in
1212
browser control on your OS.
1313

1414

15-
## More advanced solutions:
15+
## Other solutions:
1616

17-
1. Open app using chrome in app mode (not exactly native but looks it)
17+
1. Use the Ceramic project that uses Electron (win,linux,mac)
1818

19-
2. Use MacGap on Mac
19+
2. Chrome app mode
2020

21-
3. Native app using (ql:quickload :ceramic) (works well for Windows and Linux)
21+
3. Use MacGap on Mac
2222

2323
4. Native iOS and Android using Cordova and ECL
2424

25-
5. Webview.h
2625

2726
## 1 Open app using chrome in app mode
2827

28+
Sample project https://github.com/rabbibotton/elect
29+
30+
## 2 Open app using chrome in app mode
31+
2932
To open a chrome window in app mode use -app="URL" for example
3033
to start the builder as an app:
3134

@@ -41,7 +44,7 @@ On Windows
4144

4245
chrome --new-window --app="http://127.0.0.1:8080/builder"
4346

44-
## 2 Use MacGap and XCode
47+
## 3 Use MacGap and XCode
4548

4649
https://github.com/MacGapProject/MacGap2
4750

@@ -52,79 +55,7 @@ open MacGap2/MG.xcodeproj/
5255
In public/index.html in Xcode you use: MacGap.launch(appName)
5356
to launch your app. Then connect to it on the port you have chosen.
5457

55-
## 3 Using Ceramic Mac/Windows/Linux
56-
57-
The documentation for ceramic is at:
58-
http://ceramic.github.io/
59-
60-
Complete project at - https://github.com/rabbibotton/elect
61-
62-
1. (ql:quickload :ceramic)
63-
2. (ceramic:setup)
64-
65-
Now that ceramic is installed. We create a new project using CLOG Builder:
66-
67-
1. (ql:quickload :clog/tools)
68-
2. (clog-tools:clog-builder)
69-
70-
In CLOG Builder:
71-
72-
1. Choose Builder->New Application Template
73-
2. Choose a template for your project - I will use CLOG-GUI
74-
3. Give the new project a name - I am using elect as the project name
75-
4. Choose the default directory ~/common-lisp or another that works for you
76-
77-
In the REPL let's load the new project:
78-
79-
1. Let's open ~/common-lisp/elect/elect.asd
80-
2. Add to depends-on #:ceramic
81-
3. Let's open ~/common-lisp/elect/elect.lisp
82-
4. Replace start-app with:
83-
84-
```
85-
(defvar *window* nil)
86-
87-
(defun start-app (&key (port 8080))
88-
(ceramic:start)
89-
(initialize 'on-new-window
90-
:port port
91-
:static-root (ceramic:resource-directory 'www))
92-
(setf *window*
93-
(ceramic:make-window :url (format nil "http://127.0.0.1:~D/" port)))
94-
(ceramic:show *window*))
95-
96-
(ceramic:define-resources :elect ()
97-
(www #p"www/"))
98-
99-
(ceramic:define-entry-point :elect ()
100-
(start-app))
101-
```
102-
103-
5. We need to add to the botton of on-new-window code to shutdown app.
104-
105-
```
106-
(clog:run body) ; wait while body is running
107-
(ceramic:quit) ; quit ceramic/electron
108-
(clog:shutdown) ; shutdown clog
109-
```
110-
111-
6. I suggest starting from scratch at this point: M-x slime-restart-inferior-lisp
112-
7. (ql:quickload :elect)
113-
8. (elect:start-app)
114-
115-
That should start up a native application with your CLOG app
116-
117-
To package you applicaton use:
118-
119-
1. (ceramic:bundle :elect)
120-
12158

12259
## 4 Native iOS and Android using Cordova and ECL
12360

12461
https://cordova.apache.org/
125-
126-
## 5 Webview.h
127-
128-
https://github.com/webview/webview
129-
130-
See clogframe for working external example

README.md

Lines changed: 38 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,23 @@ embedded in a native application.)
1919

2020
- [CLOG - Reference Manual](https://rabbibotton.github.io/clog/clog-manual.html)
2121

22-
STATUS: CLOG and CLOG Builder 2.2 released. CLOG API Stable 4 years
22+
STATUS: CLOG and CLOG Builder 2.3 released. CLOG API Stable 4 years
2323

2424
The CLOG Builder is in 100% portable Common Lisp using the CLOG Framework.
2525

2626
CLOG tech was invented (first in Ada) and has been running in commercial
2727
production code and productss since 2013 and in Common Lisp since 2022. CLOG
2828
is used in commerical products, websites, and other opensource projects.
2929

30-
CLOG is being actively extended, however the core API is stable and proven,
31-
the CLOG Builder is rich in features and is a full featured IDE for Common Lisp
32-
and web development and includes a GUI Builder for the CLOG Framework.
30+
CLOG is being actively extended, the core API is stable and proven,
31+
the CLOG Builder is rich in features and is a full featured general purpose
32+
IDE for Common Lisp and web development (including support for working on
33+
JavaScript, HTML and more) and includes a GUI Builder for the CLOG Framework.
3334

3435
Check the github discussion boards for the latest on the project and support.
3536

3637
Consider sponsoring work on CLOG at https://github.com/sponsors/rabbibotton
38+
it really does help!
3739

3840
Some potential applications for CLOG:
3941

@@ -58,20 +60,32 @@ CLOG is developed with ECL, CCL and SBCL, it is tested fairly
5860
regulary on Linux, Windows, Android, Rasperry Pi, and Mac. It
5961
is also know to work with the commercial Common Lisps as well.
6062

61-
To install Common Lisp and CLOG:
63+
CLOG works with QuickLisp and with OCICL distribution for builds.
64+
65+
To install Common Lisp with QuikLisp:
6266

6367
* [Install Common-Lisp for MacOS](MACOS.md)
6468
* [Install Common-Lisp for Linux](LINUX.md)
6569
* [Install Common-Lisp For Android (Termux)](ANDROID-TERMUX.md)
6670
* [Install Common-Lisp for Win64](WINDOWS.md)
6771

68-
For **Windows** users there is an easy install for full CL and CLOG -
69-
https://github.com/rabbibotton/clog-win64-ez/releases
70-
Unzip, double click setup.bat and then drag the resulting builder.exe to your
71-
application bar or double click. Update regularly by running update.bat
72-
If you change directories you need to run make.bat or update.bat
73-
You can also run frame.bat to produce a version of builder that does not use
74-
the browser.
72+
For more advanced users:
73+
74+
* [Install and Using OCICL on all platforms](OCICL.md)
75+
76+
For those new to Common Lisp or just want to quickly try CLOG use ther
77+
simple _EZ_ standalone versions:
78+
79+
* https://github.com/rabbibotton/clog-win64-ez/releases
80+
* https://github.com/rabbibotton/clog-linux-ez
81+
* https://github.com/rabbibotton/clog-linux-arm-ez
82+
* https://github.com/rabbibotton/clog-mac-ez
83+
84+
Unzip, double click setup.bat or ./setup
85+
Run builder.exe or ./builder
86+
Update (almost daily :) use update.bat or ./update
87+
88+
As QuickLisp most frequently used - here are instructions:
7589

7690
CLOG v1 is in QuickLisp (ql:quickload :clog), therefore one should
7791
add the UltraLisp distribution to use CLOG v2 (alternatively use git)
@@ -91,43 +105,23 @@ You still need to update often the UltraLisp and QuickLisp distros with:
91105
If using the CLOG Builder Options -> Update CLOG Builder will do this for you.
92106

93107

94-
To get started load CLOG and then can load and run the builder:
95-
96-
```
97-
(ql:quickload :clog/tools)
98-
(clog-tools:clog-builder)
99-
100-
```
101-
102-
You can also just run from the command line run-builder or run-builder.bat
108+
Q U I C K S T A R T
109+
=====================
103110

104-
To use the git versions CLOG, place git clone into ~/common-lisp or
105-
a findable source directory, i.e.
106-
[ ``(push #P"path/to/dir/of/projects" ql:*local-project-directories*)`` ]
107111

108-
For git (you also need the clog builder plugins clog-ace and clog-terminal
109-
for the builder or use the UltraLisp versions):
112+
1) To get started load CLOG and then can load and run the builder:
110113

111114
```
112-
cd ~/common-lisp
113-
git clone https://github.com/rabbibotton/clog.git
114-
git clone https://github.com/rabbibotton/clog-ace.git
115-
git clone https://github.com/rabbibotton/clog-terminal.git
115+
sbcl --eval "(ql:quickload :clog/tools)" --eval "(clog-tools:clog-builder)"
116116
```
117+
or if using OCICL see [Install and Using OCICL on all platforms](OCICL.md)
118+
or if using emacs M-x slime then (ql:quickload :clog/tools)(clog-tools:clog-builder)
117119

118-
Update git clones with:
119-
120-
```
121-
git pull
122-
```
123120

124-
125-
1. Start emacs then M-x slime (or just run sbcl at the command line or use the
126-
CLOG Buider REPL Tools -> CLOG Builder Repl)
127-
2. In the REPL, run:
121+
2) In a REPL in the builder Tools -> CLOG Builder REPL
122+
(can _also_ do all in the slime/sly REPL in emacs)
128123

129124
```
130-
CL-USER> (ql:quickload :clog) ; if not already loaded
131125
CL-USER> (clog:run-tutorial 1)
132126
```
133127

@@ -146,17 +140,13 @@ To see where the source, tutorial and demo files are:
146140
CL-USER> (clog:clog-install-dir)
147141
```
148142

149-
You can the run the demos with:
143+
Also in CLOG Builder use HELP -> Tutorials Dir
150144

151-
```
152-
CL-USER> (clog:run-demo 1)
153-
```
154145

155-
The CLOG Builder tool can be run with:
146+
You can the run the demos with:
156147

157148
```
158-
CL-USER> (ql:quickload :clog/tools)
159-
CL-USER> (clog-tools:clog-builder)
149+
CL-USER> (clog:run-demo 1)
160150
```
161151

162152
You can also open a "clog-repl" browser window to play
@@ -172,7 +162,7 @@ CLOG-USER> (create-div *body* :content "Hello World!")
172162
The clog-repl URL is http://127.0.0.1:8080/repl ``*body*`` will always refer
173163
to the last access of that URL.
174164

175-
To open a browser with the CLOG manual (or in the builder it is under Help):
165+
To open the CLOG manual (or in the builder it is under Help):
176166

177167
```
178168
CL-USER> (clog:open-manual)

WINDOWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
(For a simple "one step" non-emacs install see:
44
https://github.com/rabbibotton/clog-win64-ez/releases)
55

6+
also see [Install and Using OCICL on all platforms](OCICL.md)
7+
68
1. Download and install rho-emacs:
79

810
https://gchristensen.github.io/rho-emacs/
@@ -90,7 +92,6 @@ sbcl --eval '(ql:quickload :clog/tools)' --eval '(clog-tools:clog-builder)'
9092
Run Slime - M-x slime
9193

9294

93-
9495
NOTES for Windows:
9596

9697
I have a zip with the needed DLLs should it come up - https://rabbibotton.github.io/clog/clogframe.zip

0 commit comments

Comments
 (0)