!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

408 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.135 Servers

Load older messages


SenderMessageTime
10 Dec 2025
@piegames:flausch.socialpiegamesYeah I've heard that of miette, which is really nice15:32:43
@piegames:flausch.socialpiegamesThough on a first glance the ariadne API seems a lot simpler15:32:55
@charles:computer.surgeryCharleshmm what about chumsky precludes its use for LSPs and formatters?15:34:30
@kloenk:kloenk.eukloenkmy want for a lossless syntax tree. Chumsky apparently can somehow integrate into rowan, but found it so painful that I decided to use logos and do it with only logos15:35:09
@charles:computer.surgeryCharlesoh right yeah i forgot to mention rowan exists15:35:29
@kloenk:kloenk.eukloenkyeah that is true. and apparently they have a todo for screen reader output so maybe at some point15:35:52
@piegames:flausch.socialpiegamesFor lix performance will be key and everything else will require a secondary parser. Maybe even error handling will get a secondary parser15:35:59
@piegames:flausch.socialpiegames
In reply to @kloenk:kloenk.eu
my want for a lossless syntax tree. Chumsky apparently can somehow integrate into rowan, but found it so painful that I decided to use logos and do it with only logos
With lossless syntax tree you mean CST?
15:36:19
@kloenk:kloenk.eukloenkthen cumsky could be interesting. but apparently it's a pain with the type signatures. My (kconfig) project sadly is single threaded either way as the language is shit15:36:46
@kloenk:kloenk.eukloenkyeah I think that's the same. never exatly sure what is what15:37:00
@piegames:flausch.socialpiegamesOne thing I worry about nom is that statless parsing is simpler but may end up requiring more allocations/moves of data and thus hurt performance. Winnow seems to support stateful parsing. How does chumpksy work there?15:39:10
@piegames:flausch.socialpiegamesStateful parsing is more annoying on backtracking, but the Nix language is almost LL1 and the two edge cases where it isn't can be handled manually15:39:52
@k900:0upti.meK900cumsky15:40:12
@k900:0upti.meK900Sorry15:40:14
@piegames:flausch.socialpiegamesChompsky15:41:12
@kloenk:kloenk.eukloenkI don't remember exactly. but IIRC it was titled as parser combinator which does some backtracking internally and tries to optimize everything as good as possible which just throwing compile time on it15:41:18
@helle:tacobelllabs.nethelle (just a stray cat girl)chumsky, what a name..... not a recipe for headaches there :P15:43:30
@kloenk:kloenk.eukloenk Oh there is also a library to bridge chumsky and logos for token based parsing. Apparently it’s utter shit and looks very AI generated 16:05:33
@rosssmyth:matrix.orgrosssmythI've written several parsers in Rust and TBH for best error handling recursive descent will always win. 16:26:03
@rosssmyth:matrix.orgrosssmythChumsky is my favorite library though16:26:13
@rosssmyth:matrix.orgrosssmyth* I've written several parsers in Rust and TBH for best error handling hand-rolled recursive descent will always win. 16:26:20
@rosssmyth:matrix.orgrosssmythPratt parsing is nice16:26:41
@rosssmyth:matrix.orgrosssmyth https://matklad.github.io/2020/04/13/simple-but-powerful-pratt-parsing.html 16:27:05
@rosssmyth:matrix.orgrosssmythWhy do you need a library for that? 16:27:42
@rosssmyth:matrix.orgrosssmythThey integrate just fine 16:28:05
@kloenk:kloenk.eukloenkFriend looked at the lib for it and was very unhappy. Not looked myself into it. Mostly happy with logos and hand rolled conversion into rowan16:28:48
@rosssmyth:matrix.orgrosssmythYeah my latest project has a lexer that is just a copy of Rustc's lexer with my tokens in it, ungrammar for the cst data structures, and then hand-rolled parser. 16:29:58
@rosssmyth:matrix.orgrosssmythLogos is cool though16:30:09
@rosssmyth:matrix.orgrosssmythUsed it before16:30:14
@rosssmyth:matrix.orgrosssmythThe thing about parsing is that perf doesn't really matter that much, it's such a small amount of time unless you really mess it up. Better to focus on making it have really good errors16:32:12

Show newer messages


Back to Room ListRoom Version: 10