aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2023-03-05 09:48:25 -0600
committerCalvin Rose <calsrose@gmail.com>2023-03-05 09:48:25 -0600
commit01aab666676c5f93529ba8db5d97b9db1f4c499a (patch)
treef92fc4164a6854f69baa36b374e62f533b73a4a9
parentChange semantics of bracketed tuple equality. (diff)
Prepare for 1.27.0 release.v1.27.0
-rw-r--r--CHANGELOG.md2
-rw-r--r--Makefile4
-rw-r--r--meson.build2
-rw-r--r--src/boot/boot.janet26
-rw-r--r--src/conf/janetconf.h8
5 files changed, 20 insertions, 22 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 49d6ee48..e10a8fb7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,7 +1,7 @@
# Changelog
All notable changes to this project will be documented in this file.
-## ??? - Unreleased
+## 1.27.0 - 2023-03-05
- Change semantics around bracket tuples to no longer be equal to regular tuples.
- Add `index` argument to `ffi/write` for symmetry with `ffi/read`.
- Add `buffer/push-at`
diff --git a/Makefile b/Makefile
index a108525d..6aa76508 100644
--- a/Makefile
+++ b/Makefile
@@ -176,9 +176,9 @@ build/c/janet.c: build/janet_boot src/boot/boot.janet
########################
ifeq ($(UNAME), Darwin)
-SONAME=libjanet.1.26.dylib
+SONAME=libjanet.1.27.dylib
else
-SONAME=libjanet.so.1.26
+SONAME=libjanet.so.1.27
endif
build/c/shell.c: src/mainclient/shell.c
diff --git a/meson.build b/meson.build
index 9da32926..02e6d96d 100644
--- a/meson.build
+++ b/meson.build
@@ -20,7 +20,7 @@
project('janet', 'c',
default_options : ['c_std=c99', 'build.c_std=c99', 'b_lundef=false', 'default_library=both'],
- version : '1.26.1')
+ version : '1.27.0')
# Global settings
janet_path = join_paths(get_option('prefix'), get_option('libdir'), 'janet')
diff --git a/src/boot/boot.janet b/src/boot/boot.janet
index ae909686..5ab4bc87 100644
--- a/src/boot/boot.janet
+++ b/src/boot/boot.janet
@@ -129,20 +129,18 @@
# For macros, we define an imcomplete odd? function that will be overriden.
(defn odd? [x] (= 1 (mod x 2)))
-(def idempotent?
- ```
- (idempotent? x)
-
- Check if x is a value that evaluates to itself when compiled.
- ```
- (do
- (def non-atomic-types
- {:array true
- :tuple true
- :table true
- :buffer true
- :struct true})
- (fn idempotent? [x] (not (in non-atomic-types (type x))))))
+(def- non-atomic-types
+ {:array true
+ :tuple true
+ :table true
+ :buffer true
+ :symbol true
+ :struct true})
+
+(defn idempotent?
+ "Check if x is a value that evaluates to itself when compiled."
+ [x]
+ (not (in non-atomic-types (type x))))
# C style macros and functions for imperative sugar. No bitwise though.
(defn inc "Returns x + 1." [x] (+ x 1))
diff --git a/src/conf/janetconf.h b/src/conf/janetconf.h
index 666cd01e..8b030b50 100644
--- a/src/conf/janetconf.h
+++ b/src/conf/janetconf.h
@@ -4,10 +4,10 @@
#define JANETCONF_H
#define JANET_VERSION_MAJOR 1
-#define JANET_VERSION_MINOR 26
-#define JANET_VERSION_PATCH 1
-#define JANET_VERSION_EXTRA "-dev"
-#define JANET_VERSION "1.26.1-dev"
+#define JANET_VERSION_MINOR 27
+#define JANET_VERSION_PATCH 0
+#define JANET_VERSION_EXTRA ""
+#define JANET_VERSION "1.27.0"
/* #define JANET_BUILD "local" */