!PbtOpdWBSRFbEZRLIf:numtide.com

Nix Community Projects

655 Members
Meta discussions related to https://nix-community.org. (For project specific discussions use github issues or projects own matrix channel). Need help from an admin? Open an issue on https://github.com/nix-community/infra/issues165 Servers

Load older messages


SenderMessageTime
21 May 2023
@adis:blad.isadisbladis
In reply to @hsngrmpf:matrix.org
Maybe:
Meta discussions about the nix-community org. (For project specific discussions use github issues or projects own matrix channel)
I made a slight variation just to get a clickable link, thanks!
11:18:04
22 May 2023
@lunik1:lunik.onelunik1 joined the room.12:47:11
23 May 2023
@daedmon:matrix.org@daedmon:matrix.org joined the room.21:21:49
25 May 2023
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius to disko in NixOS 23.11 when.13:32:19
@raitobezarius:matrix.orgraitobezarius changed their display name from disko in NixOS 23.11 when to raitobezarius.13:37:26
26 May 2023
@lotte:chir.rs@lotte:chir.rs changed their profile picture.18:41:00
27 May 2023
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.16:40:24
28 May 2023
@fedx:matrix.orgfedxMessing with the NUR and I cannot figure out how to take one package as an input of another within the same repo. 16:15:53
@fedx:matrix.orgfedxMore specificaly, I need to create a builder to simplify a standard build process, and cannot figure out how to get that into another package.16:22:02
@fedx:matrix.orgfedx Wait, would I use something like mypkg = pkgs.callPackage ./path/to/thing {inherit myBuilder};? 16:40:52
29 May 2023
@joerg:thalheim.ioMic92 invited @inclyc:matrix.orgYingchi Long.09:23:34
@inclyc:matrix.orgYingchi Long joined the room.09:59:52
@inclyc:matrix.orgYingchi LongHello guys! I would like to migrate my recently wrote language server (WIP) into nix-community incubator https://github.com/inclyc/nixd . I've sent emails to administrators, and what should I do now?🙂10:52:23
30 May 2023
@daxvena:matrix.orgdaxvena oh i'm not sure, but wow this looks amazing Yingchi Long!! 00:19:10
@daxvena:matrix.orgdaxvenai'm guessing the support for cross-file analysis doesn't do dataflow analysis to infer function argument types from usage? if it did that would be magical, but even if not, this project looks really cool! i'll definitely have to check it out!00:19:33
@daxvena:matrix.orgdaxvena * i'm guessing the support for cross-file analysis doesn't do dataflow analysis to infer function argument types from usage? if it did that would be magical, but even with that, this project looks really cool! i'll definitely have to check it out!00:19:58
@daxvena:matrix.orgdaxvena * i'm guessing the support for cross-file analysis doesn't do dataflow analysis to infer function argument types from usage? if it did that would be magical, but even without that, this project looks really cool! i'll definitely have to check it out!00:20:10
@inclyc:matrix.orgYingchi Long
In reply to @daxvena:matrix.org
i'm guessing the support for cross-file analysis doesn't do dataflow analysis to infer function argument types from usage? if it did that would be magical, but even without that, this project looks really cool! i'll definitely have to check it out!
Well, this basic idea is, nixd allow you configure a global installable which has exactly same argument as nix eval. For each evaluation, we inject nix parsing & eval cache with our own AST structure that tracing eval information. If the file is a lambda (e.g. nixos modules), it will be evaluated with real arguments, and we can know which argument is passed to it. Generally lambdas could be invoked many times, nixd stores the lastest information.
01:42:49
@daxvena:matrix.orgdaxvenaoh ok!! so it doesn't merge each possible call, but that sounds way better than nothing!! that sounds amazing!01:43:58
@inclyc:matrix.orgYingchi LongScreenshot_20230528_124426_20230530094521.png
Download Screenshot_20230528_124426_20230530094521.png
01:45:39
@inclyc:matrix.orgYingchi LongScreenshot_20230528_124528_20230530094524.png
Download Screenshot_20230528_124528_20230530094524.png
01:45:44
@daxvena:matrix.orgdaxvenathat's really cool! i've been wanting this so badly 😅01:46:43
@inclyc:matrix.orgYingchi Long
In reply to @daxvena:matrix.org
that's really cool! i've been wanting this so badly 😅
For example you can inspect real arguments for callPackage & nixosModule?
01:47:54
@inclyc:matrix.orgYingchi LongAST injections now is generally pure magics. We have our own classes inherited from nix itself, and override its `eval` method. https://github.com/inclyc/nixd/blob/2ee1ef796dd6dd5f0bc8cc4a3bc804972018c973/lib/nixd/include/nixd/CallbackExpr.h#L21 https://github.com/inclyc/nixd/blob/2ee1ef796dd6dd5f0bc8cc4a3bc804972018c973/lib/nixd/src/CallbackExpr.cpp#L4101:50:43
@inclyc:matrix.orgYingchi Long* AST injections now are generally pure magics. We have our own classes inherited from nix itself, and override its `eval` method. https://github.com/inclyc/nixd/blob/2ee1ef796dd6dd5f0bc8cc4a3bc804972018c973/lib/nixd/include/nixd/CallbackExpr.h#L21 https://github.com/inclyc/nixd/blob/2ee1ef796dd6dd5f0bc8cc4a3bc804972018c973/lib/nixd/src/CallbackExpr.cpp#L4101:51:00
@daxvena:matrix.orgdaxvenai really like how it's pick-backing off of the existing nix library rather than rewriting a parser & ast from scratch01:55:11
@daxvena:matrix.orgdaxvena * i really like how it's piggybacking off of the existing nix library rather than rewriting a parser & ast from scratch01:55:19
@daxvena:matrix.orgdaxvena Yingchi Long: it looks like you should post in the discussion form to get to request to add it to the organization: https://nix-community.org/contact/ 02:28:01
@daxvena:matrix.orgdaxvena * Yingchi Long: it looks like you should post in the discussion forum to get to request to add it to the organization: https://nix-community.org/contact/ 02:28:15
@inclyc:matrix.orgYingchi Long
In reply to @daxvena:matrix.org
Yingchi Long: it looks like you should post in the discussion forum to get to request to add it to the organization: https://nix-community.org/contact/
Thanks :). Posted https://github.com/orgs/nix-community/discussions/611
03:03:19

Show newer messages


Back to Room ListRoom Version: 6