~technomancy

WA, USA

https://technomancy.us

tryin' to catch the last train out of Omelas

~technomancy/fennel

Last active a day ago
View more

Recent activity

Re: [ANN] Fennel 1.4.1 released a day ago

From Phil Hagelberg to ~technomancy/fennel

Chris Brannon <chris@the-brannons.com> writes:

> Phil Hagelberg <phil@hagelb.org> writes:
>> We've got some great stuff lined up for 1.5.0 and just wanted to get out
>> the little things out before we start with that.
>
> Sweet!
> And now I'm really curious to know what's on the roadmap for 1.5.0.

The first thing I was thinking of was to generalize `set' to work on
table field access. Today you can do (set tbl.x.y 99), but if we added
support for using (set (. tbl :x :y) 99) then we could deprecate `tset'
altogether.

[ANN] Fennel 1.4.1 released 3 days ago

From Phil Hagelberg to ~technomancy/fennel

Hello everyone.

I'm happy to announce version 1.4.1 of Fennel is out.

Mostly we wanted to get this out because of the bugfix to assert-repl in
order to make sure people didn't end up with code that depended on the
old broken implementation, but there's some other handy bug fixes in
here too.

We've got some great stuff lined up for 1.5.0 and just wanted to get out
the little things out before we start with that.

## 1.4.1 / 2024-02-19

Re: [PATCH] Output compile/parse errors in a more standard format 4 days ago

From Phil Hagelberg to ~technomancy/fennel

Rudolf Adamkovič <rudolf@adamkovic.org> writes:

> The errors are missing a trailing colon after the line/column number which makes
> them "invisible" to standard tools, such as the Compilation Mode in Emacs.

Thanks; I've applied this patch. Does it necessitate changes in the
tests for faith as well?

-Phil

Re: [PATCH fennel v2] Relax multisym identifier requirements 11 days ago

From Phil Hagelberg to ~technomancy/fennel

XeroOl <xerool@protonmail.com> writes:

> Changes the rules so that multisym symbols whose tail pieces start
> with a digit contain `&`, such as `foo.0123:&&&` are allowed. This
> commit doesn't fix the other issue with symbols that end in `.`.

Looks great; thanks. I've applied and pushed this and the macroexpand
hook patch.

I think at this point, the only thing left for 1.4.1 is to deal with
symbols ending in . plus maybe https://todo.sr.ht/~technomancy/fennel/194
and https://todo.sr.ht/~technomancy/fennel/195.

thanks!

Re: Fennel Identifier Rules 18 days ago

From Phil Hagelberg to ~technomancy/fennel

XeroOl <xerool@protonmail.com> writes:

> Intsead of being inconsistent about whether & is allowed, we should
> allow multisyms that have & in their tail. Specifically, the rules
> I'm suggesting for multisyms are:
>
> * The "head" of a multisym has to be a valid identifier.
> * The "tail" pieces of a multisym have to be valid `:shorthand` strings.

Thanks for bringing this up. I think this is probably the simplest rule set
we could make that accurately describe how most Fennel is written today,
so I believe it's worth nailing this down in the docs and aligning the
implementation to be consistent with it, with the one caveat below.

Re: I'm taking a break from Fennel 18 days ago

From Phil Hagelberg to ~technomancy/fennel

Andrey Listopadov <andreyorst@gmail.com> writes:

> I'm sorry to say it, but I decided to take a break from Fennel.  There
> are a few reasons for that unrelated to the language or the community.
> I'm archiving all of my Fennel code on GitLab for now, if you're
> interested in picking up any of my projects, please feel free to do so.

Thanks for all your contributions and enthusiasm; it's really been
wonderful and inspiring at times. Please don't feel like you're letting
anyone down; it's important to take care of yourself first.

-Phil

Re: [PATCH fennel 1/2] assert-repl: fix as drop-in replacement for assert 21 days ago

From Phil Hagelberg to ~technomancy/fennel

Phil Hagelberg <phil@hagelb.org> writes:

> I'll go ahead and apply the patch as-is, but could you follow up with a
> test for that case so we know we're covered? Since it's kind of a subtle
> point.

Oops, spoke to soon. There was a bug in the tests that only showed up
with LuaJIT. Pushed a fix:

https://git.sr.ht/~technomancy/fennel/commit/fcc04a75f8331100d57cb5ee49a531352d00090f

-Phil

Re: [PATCH fennel 1/2] assert-repl: fix as drop-in replacement for assert 21 days ago

From Phil Hagelberg to ~technomancy/fennel

~jaawerth <jaawerth@git.sr.ht> writes:

> +  `(let [unpack# (or table.unpack _G.unpack)
> +         pack# (or table.pack #(doto [$...] (tset :n (select :# $...))))
> +         ;; need to pack/unpack input args to account for (assert (foo)),
> +         ;; because assert returns *all* arguments upon success

Overall this patch looks good; thanks for submitting.

However, we went back and forth about whether this pack was necessary,
and I think it is, but if you remove it, the tests still pass.

I'll go ahead and apply the patch as-is, but could you follow up with a
test for that case so we know we're covered? Since it's kind of a subtle

Re: [PATCH] Indent traceback frames with one tab instead of two spaces 21 days ago

From Phil Hagelberg to ~technomancy/fennel

Rudolf Adamkovič <salutis@me.com> writes:

> This is to improve tooling support.  For example, the Compilation mode in Emacs
> fontifies Lua tracebacks, and with this change, we it works for Fennel too.

Makes sense to keep it consistent with Lua's formatting; thanks.

Applied the patch.

-Phil

Re: Support for Lua/Fennel errors in Emacs merged 22 days ago

From Phil Hagelberg to ~technomancy/fennel

Rudolf Adamkovič <salutis@me.com> writes:

> This will be a longer journey, though, as I still cases where Fennel
> outputs something NIH that does not match any standard rules, such as
> GNU, nor the new Lua rules I contributed.  I will address those NIH
> cases, one by one, in subsequent patches against Fennel and Faith.

Looking forward to it.

> So, I now wonder, how can I reproduce
>
>> traces that have columns
>
> that you asked about?