Skip to content

Commit

Permalink
Release version 0.4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed May 13, 2020
1 parent 763420d commit f19d368
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 17 deletions.
15 changes: 8 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,20 @@ luacheck:

count:
cloc fennel.lua
cloc --force-lang=lisp fennelview.fnl fennelfriend.fnl launcher.fnl

# For the time being, avoid chicken/egg situation thru the old Lua launcher.
LAUNCHER=./old_launcher.lua

# Precompile fennel libraries
%.lua: %.fnl fennel.lua
./old_launcher.lua --globals "" --compile $< > $@
$(LAUNCHER) --globals "" --compile $< > $@

fennel: launcher.fnl fennel.lua fennelview.lua fennelfriend.lua
echo "#!/usr/bin/env lua" > $@
$(LAUNCHER) --globals "" --require-as-include --metadata --compile $< >> $@
chmod 755 $@
./old_launcher.lua --globals "" --require-as-include --no-searcher \
--metadata --compile $< >> $@

pre-compile: fennelview.lua fennelfriend.lua

ci: luacheck testall count pre-compile
ci: luacheck testall count

.PHONY: test testall luacheck count pre-compile ci
.PHONY: test testall luacheck count ci
10 changes: 3 additions & 7 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
# Summary of user-visible changes

## 0.4.0 / ???
## 0.4.0 / 2020-05-12

* Add `import-macros` for more flexible macro module loading (#269)
* Ensure deterministic compiler output (#257)
* Fix an issue where quoted forms did not have filename/line source data (#253)
* Add bit-wise operators `rshift`, `lshift`, `bor`, `band`, `bnot`, and `bxor`
* Friendlier compiler/parse error messages with suggestions
* Omit compiler internal stack traces by default unless `FENNEL_DEBUG=trace`
* Add support for `__fennelview` metamethod for custom serialization
* Fix a bug where `dofile` would report the wrong filename
* Fix bug causing failing `include` of Lua modules that lack a trailing newline (#234)
* Introduce `pick-values` and `pick-args` macros (as `limit-*`: #246, as `pick-*`: #256)
* Fix a bug where destructuring tables emits locals in unstable order in Lua 5.2/5.3 (#259)
* Set macros on scope.macros & add new `macroexpand` helper to expand macro forms during
compilation rather than uplifting macros to specials. (#258)
* Add `macrodebug` util macro for printing expanded macro forms in REPL. (#258)
* Make completion walk scope ancestors for macros & specials (#260)
* Add new `macroexpand` helper to expand macro forms during compilation (#258)
* Add `macrodebug` utility macro for printing expanded macro forms in REPL (#258)

## 0.3.2 / 2020-01-14

Expand Down
2 changes: 1 addition & 1 deletion fennel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2453,7 +2453,7 @@ local module = {
macroLoaded = macroLoaded,
path = table.concat(pathTable, ";"),
traceback = traceback,
version = "0.4.0-dev",
version = "0.4.0",
}

-- In order to make this more readable, you can switch your editor to treating
Expand Down
4 changes: 2 additions & 2 deletions launcher.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ Run fennel, a lisp programming language for the Lua runtime.

(fn repl []
(let [readline (try-readline (pcall require :readline))]
(when (not readline)
(print "Try installing readline via luarocks for a better repl experience."))
(set options.pp (require :fennelview))
(when (not= false options.fennelrc)
(load-initfile))
(print (.. "Welcome to Fennel " fennel.version "!"))
(when (not= options.useMetadata false)
(print "Use (doc something) to view documentation."))
(when (not readline)
(print "Try installing readline via luarocks for a better repl experience."))
(fennel.repl options)
(when readline
(readline.save_history))))
Expand Down
36 changes: 36 additions & 0 deletions rockspecs/fennel-0.4.0-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
-- -*- lua -*-

package = "fennel"
version = "0.4.0-1"
source = {
url = "git+https://github.com/bakpakin/Fennel",
tag = "0.4.0"
}
description = {
summary = "Lisp that compiles to Lua",
detailed = [[
A lisp-like language that compiles to efficient Lua. Combine
meta-programming with Lua.]],
homepage = "https://fennel-lang.org/",
license = "MIT"
}
dependencies = {
"lua >= 5.1"
}
build = {
type = "builtin",
modules = {
fennel = "fennel.lua",
fennelview = "fennelview.lua",
fennelfriend = "fennelfriend.lua"
},
install = {
bin = {
-- use the old launcher for now; once we have a chance to mess about
-- with the build we can try compiling the new launcher with the
-- old; ideally during packaging time we would compile the bin/fennel
-- script, but luarocks docs do not explain how to do this.
fennel = "old_launcher.lua"
}
}
}

0 comments on commit f19d368

Please sign in to comment.