News for hackers. Stuff that matters.
Re:Hk, a new Git hook manager from jdx by jdxcode on Monday February 17, 2025 @03:13PM (#43082893)
I also looked into WASI as well as lua until I ultimately decided that I think I can get rid of the concept of plugins altogether in favor of pkl. We'll see how well that works out but right now I don't have any use-cases that would require plugins and if I can stick to that it will definitely help performance.
Re:Hk, a new Git hook manager from jdx by timhh on Monday February 17, 2025 @03:50PM (#43083166)
I don't really understand. Pkl seems to be a configuration language? How are you going to run clang-format, rustfmt, go fmt, pyright, etc. using Pkl?
Re:Hk, a new Git hook manager from jdx by jdxcode on Monday February 17, 2025 @04:35PM (#43083518)
it just needs to define shell script
Re:Hk, a new Git hook manager from jdx by timhh on Monday February 17, 2025 @04:59PM (#43083689)
So you have to already have all the linters installed? Ok I am planning to solve that problem too, but we'll have to see whether it's actually possible to compile e.g. rustfmt to WASI. In my experience so far WASI is pretty alpha quality.
Re:Hk, a new Git hook manager from jdx by jdxcode on Monday February 17, 2025 @05:08PM (#43083766)
mise is my solution to that problem. I don't think it should be the job of a hook manager to install things developers should have installed for other reasons anyways.