!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
26 Apr 2025
@commentator2.0:elia.gardenRutile (Commentator2.0) i might genuinly tend towards having black be in the pre commit hooks/ passing conditions for commits (black is a py style formatter/linter) 21:31:41
@jade_:matrix.orgjade_yes, that's the idea21:31:55
@jade_:matrix.orgjade_but i believe ruff is the better supported one these days21:32:04
@jade_:matrix.orgjade_i have an autocmd that sets syntax but not filetype to python21:32:33
@kfears:matrix.orgKFears (burning out)I'm not much of a Python person at all, but... working with releng mixed between xonsh and Python felt like major pain21:32:33
@jade_:matrix.orgjade_fixes the problem21:32:37
@commentator2.0:elia.gardenRutile (Commentator2.0)i don't have any experience with ruff and only little with black, so i can't say which is better or worse21:32:42
@kfears:matrix.orgKFears (burning out)Isn't Xonsh syntax literally different from Python?21:33:09
@jade_:matrix.orgjade_it's like, Fine. the only problem with it is that you don't have IDE support in your straight line code21:33:13
@jade_:matrix.orgjade_it's a superset that only blows up language servers but the syntax highlighter doesn't care that much21:33:33
@kfears:matrix.orgKFears (burning out)Not having an LSP feels very bad, though21:34:17
@jade_:matrix.orgjade_i guess, the main thing that sucks about working on the xonsh is, yes, the lack of language server support, which is why you put the complicated code in a .py file21:34:19
@kfears:matrix.orgKFears (burning out)I in general don't like understand the value proposition of xonsh21:34:42
@jade_:matrix.orgjade_maybe i am too used to writing nix and large scale haskell but it's really not that bad. also ctags can help21:34:50
@kfears:matrix.orgKFears (burning out)To me it feels like an annoying side thing that bites me in the ass while not bringing much useful21:35:02
@jade_:matrix.orgjade_the value proposition is it's not a shell script and it's more legible than python for stuff that is a shell script21:35:15
@jade_:matrix.orgjade_* the value proposition is it's not an actual shell script and it's more legible and writable than python for stuff that is a shell script21:35:32
@kfears:matrix.orgKFears (burning out)Can't we write helper function to like run exec and pipes?21:35:45
@jade_:matrix.orgjade_also it manages environment variables better21:35:53
@jade_:matrix.orgjade_perhaps, i just don't see any value in rewriting working code to become harder to read when we have bigger fish to fry21:36:53
@kfears:matrix.orgKFears (burning out)Well, it was hard to work with for me, that is all21:37:54
@kfears:matrix.orgKFears (burning out)I'll try to get the local releng to the finish line, once I have it in me to continue21:39:13
@kfears:matrix.orgKFears (burning out)Hope it helps to get people to work on releng21:40:20
@kfears:matrix.orgKFears (burning out)Because writing code blind without any way to test it feels very bad21:40:48
@jade_:matrix.orgjade_i was testing it in staging but it is indeed quite hard to do for external contributors. the garage ephemeral key is a remote script on the other end; you might either be able to not use it and just scatter keys all over the temporary box cuz whatever, or you can integrate it. probably easier to not use it.21:41:54
@kfears:matrix.orgKFears (burning out)I've made some decent progress21:42:22
@kfears:matrix.orgKFears (burning out)Like, garage ephemeral stuff is sorted out21:42:36
@kfears:matrix.orgKFears (burning out)But the code hasn't turned out any good, because I basically insert if/else everywhere to check if we're running local or not and code in very different behavior21:43:08
@k900:0upti.meK900I was going to make it talk to a VM for this21:43:29
@k900:0upti.meK900We have good tools for those21:43:42

Show newer messages


Back to Room ListRoom Version: 10