~technomancy

WA, USA

https://technomancy.us

tryin' to catch the last train out of Omelas

~technomancy/fennel

Last active 3 days ago
View more

Recent activity

Re: [PATCH fennel v2] fennel.view: only output valid utf-8 9 days ago

From Phil Hagelberg to ~technomancy/fennel

Thanks! I've applied the patch and removed the workaround for the old
short-circuit bug. We'll tackle that new short-circuit bug separately.

-Phil

Re: [PATCH fennel] a more robus __fennelrest metamethod detecting 14 days ago

From Phil Hagelberg to ~technomancy/fennel

Andrey Listopadov <andreyorst@gmail.com> writes:

> This uses a proper `if` that doesn't have the disadvantage if `&`
> destructuring decides to return `nil` or `false`.  The compilation
> string is onelined.

Looks pretty sensible, plus it has the advantage of getting rid of the
extremely long line. =) Thanks.

-Phil

Re: [PATCH fennel v2] add __fennelrest metamethod to adjust & destructuring 15 days ago

From Phil Hagelberg to ~technomancy/fennel

Andrey Listopadov <andreyorst@gmail.com> writes:

> If a table implements the __fennelrest metamethod, when destucturing
> this table with the & operator, the metamethod is invoked.  The
> metamethod receives the table as the first argument, and the amount of
> values it needs to skip from the beginning of the table, much like
> table.unpack

Thanks; this turned out to be much simpler than I expected! Applied and pushed.

-Phil

Re: LSP Server 19 days ago

From Phil Hagelberg to ~technomancy/fennel

Ag <agzam.ibragimov@gmail.com> writes:

> Has anyone ever thought about making an lsp-server for Fennel? I often
> feel I'm in a dire need for one.

I believe someone started one a while back but didn't get too far in it.

What specific features do you feel you need from LSP? I don't use any LSP
myself but maybe there's another way to achieve those goals.

-Phil

Re: [PATCH fennel-lang.org] adds support for void tags 22 days ago

From Phil Hagelberg to ~technomancy/fennel

Thanks; applied and pushed this change. Looks like everything's fine:

https://builds.sr.ht/~technomancy/job/600958

Build failure must have been something specifically wrong with the
list+ci integration I guess?

-Phil

Re: [PATCH fennel] add --add-macro-path switch 22 days ago

From Phil Hagelberg to ~technomancy/fennel

Andrey Listopadov <andreyorst@gmail.com> writes:

> fixes #93

Thanks; applied both the patches. This one could use a mention in the
changelog and help text too though, could you send that additionally?

-Phil

Re: [PATCH fennel] fix tables with negative arguments being treated as sequential a month ago

From Phil Hagelberg to ~technomancy/fennel

Thanks! Applied and pushed.

-Phil

Re: [ANN] Fennel survey a month ago

From Phil Hagelberg to ~technomancy/fennel

Phil Hagelberg <phil@hagelb.org> writes:

> The survey is now closed. I've published the results with some
> commentary here:
>
>     https://fennel-lang.org/survey/2021

I wrote a post on my blog summarizing the approach I used to make the
survey, including static HTML generation, a CGI script, and SVG charts:

  https://technomancy.us/196

I saw that one of the common requests from the survey was to see more
detailed examples of Fennel code, so I hope this can provide a look into

Re: [PATCH fennel] Treat else branches in if as nil, not zero values. a month ago

From Phil Hagelberg to ~technomancy/fennel

Phil Hagelberg <phil@hagelb.org> writes:

> Previously when you had an even number of arguments in an if, there was
> no else branch emitted, which means that if none of the conditions were
> truthy, zero values were returned.

I went ahead and merged this to main. If you're working off the main
branch, please pull in the latest and let me know if anything breaks!

-Phil

Preparing for Fennel 1.0.0 a month ago

From Phil Hagelberg to ~technomancy/fennel

There's been a flurry of development on Fennel the last few days, and
it's really feeling like a good time to prepare for the 1.0.0
release. Here's what's already landed on main:

### New Features
* Add `:into` clause to `collect` and `icollect`
* Improve consistency of table key ordering in compiled output
* Apply strict globals checking in the repl by default
* Allow strict globals checking to be disabled with `--globals "*"`

### Bug Fixes
* Fix a bug where macro modules did not get compiler options propagated

### Changes and Removals