moved to the new origin domain
This commit is contained in:
@@ -28,7 +28,7 @@ The most recent Clyx version is **0.3.7**. The version is bumped every time the
|
|||||||
|
|
||||||
## Implementations
|
## Implementations
|
||||||
|
|
||||||
- [Reference implementation in Python](clyx-python/clyx/clyx.py) (compatible with MicroPython and [T-DeckARD](https://codeberg.org/luxferre/t-deckard) on CircuitPython)
|
- [Reference implementation in Python](clyx-python/clyx/clyx.py) (compatible with MicroPython and [T-DeckARD](https://code.luxferre.top/luxferre/t-deckard) on CircuitPython)
|
||||||
- [Reference implementation in Go](clyx-go/clyx.go)
|
- [Reference implementation in Go](clyx-go/clyx.go)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
@@ -40,7 +40,7 @@ Depending on the implementation, there are several installation ways.
|
|||||||
For the easiest way to install the reference Python-based Clyx implementation, [pipx](https://pipx.pypa.io/stable/) is recommended:
|
For the easiest way to install the reference Python-based Clyx implementation, [pipx](https://pipx.pypa.io/stable/) is recommended:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
pipx install "git+https://codeberg.org/luxferre/clyx.git#subdirectory=clyx-python"
|
pipx install "git+https://code.luxferre.top/luxferre/clyx.git#subdirectory=clyx-python"
|
||||||
```
|
```
|
||||||
|
|
||||||
This will install the REPL as `clyx` into your current environment.
|
This will install the REPL as `clyx` into your current environment.
|
||||||
@@ -64,15 +64,15 @@ This will install Clyx as a T-DeckARD applet.
|
|||||||
To install the Go-based Clyx implementation and its tools (including `clyxc`) directly from Git, run:
|
To install the Go-based Clyx implementation and its tools (including `clyxc`) directly from Git, run:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go install codeberg.org/luxferre/clyx/...@latest
|
go install code.luxferre.top/luxferre/clyx/...@latest
|
||||||
```
|
```
|
||||||
|
|
||||||
*(Note: If you are installing immediately after a new commit or release has been pushed, Go's default module proxy might serve a cached version. You can bypass this cache by running `GOPROXY=direct go install codeberg.org/luxferre/clyx/...@latest` instead).*
|
*(Note: If you are installing immediately after a new commit or release has been pushed, Go's default module proxy might serve a cached version. You can bypass this cache by running `GOPROXY=direct go install code.luxferre.top/luxferre/clyx/...@latest` instead).*
|
||||||
|
|
||||||
For maximum performance, you can pass optimization flags to build stripped binaries without debug symbols, bounds checks, or inlining:
|
For maximum performance, you can pass optimization flags to build stripped binaries without debug symbols, bounds checks, or inlining:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go install -a -trimpath -gcflags=all="-l -B -e" -ldflags "-s -w" codeberg.org/luxferre/clyx/...@latest
|
go install -a -trimpath -gcflags=all="-l -B -e" -ldflags "-s -w" code.luxferre.top/luxferre/clyx/...@latest
|
||||||
```
|
```
|
||||||
|
|
||||||
This will install the executables as `clyx` and `clyxc` into your `$GOPATH/bin` directory. To upgrade to the latest versions at any time, simply run the same command again.
|
This will install the executables as `clyx` and `clyxc` into your `$GOPATH/bin` directory. To upgrade to the latest versions at any time, simply run the same command again.
|
||||||
@@ -134,11 +134,11 @@ To package your program, you can use the `clyxc` utility.
|
|||||||
#### Installing `clyxc`
|
#### Installing `clyxc`
|
||||||
Install the utility directly from Git (this also installs the main `clyx` binary):
|
Install the utility directly from Git (this also installs the main `clyx` binary):
|
||||||
```sh
|
```sh
|
||||||
go install codeberg.org/luxferre/clyx/...@latest
|
go install code.luxferre.top/luxferre/clyx/...@latest
|
||||||
```
|
```
|
||||||
Or to install only the compiler utility:
|
Or to install only the compiler utility:
|
||||||
```sh
|
```sh
|
||||||
go install codeberg.org/luxferre/clyx/clyxc@latest
|
go install code.luxferre.top/luxferre/clyx/clyxc@latest
|
||||||
```
|
```
|
||||||
Alternatively, if compiling locally from the repository root:
|
Alternatively, if compiling locally from the repository root:
|
||||||
```sh
|
```sh
|
||||||
@@ -179,7 +179,7 @@ The [examples](examples/) directory contains several simple examples of Clyx pro
|
|||||||
|
|
||||||
### Where does the name Clyx originate from?
|
### Where does the name Clyx originate from?
|
||||||
|
|
||||||
Similarly to [LVTL](https://codeberg.org/luxferre/lvtl-x) and [LTTB](https://codeberg.org/luxferre/lttb), the prototype of Clyx had been called LPLF (Luxferre's Pointer-Less Forth). However, as the finalized language began to differ from the Forth standard in too many ways, a decision was made to focus on the concatenative nature itself. Thus, the word ConCat had been chosen, which was quickly modded into ConLynx and then naturally shortened to Clyx.
|
Similarly to [LVTL](https://code.luxferre.top/luxferre/lvtl-x) and [LTTB](https://code.luxferre.top/luxferre/lttb), the prototype of Clyx had been called LPLF (Luxferre's Pointer-Less Forth). However, as the finalized language began to differ from the Forth standard in too many ways, a decision was made to focus on the concatenative nature itself. Thus, the word ConCat had been chosen, which was quickly modded into ConLynx and then naturally shortened to Clyx.
|
||||||
|
|
||||||
Additionally, this name can be viewed as an acronym hinting at the order some binary operations pop their operands from the stack: "Compute by Loading Y, then X".
|
Additionally, this name can be viewed as an acronym hinting at the order some binary operations pop their operands from the stack: "Compute by Loading Y, then X".
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -99,7 +99,7 @@ func main() {
|
|||||||
|
|
||||||
clyxBin, err := os.ReadFile(clyxPath)
|
clyxBin, err := os.ReadFile(clyxPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "Error: Clyx interpreter binary not found at %s. Please install it first using: go install codeberg.org/luxferre/clyx@latest\n", clyxPath)
|
fmt.Fprintf(os.Stderr, "Error: Clyx interpreter binary not found at %s. Please install it first using: go install code.luxferre.top/luxferre/clyx@latest\n", clyxPath)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
module codeberg.org/luxferre/clyx
|
module code.luxferre.top/luxferre/clyx
|
||||||
|
|
||||||
go 1.26.4
|
go 1.26.4
|
||||||
|
|||||||
Reference in New Issue
Block a user