!lTqhfnNvIkcEackxxk:matrix.org

Nix Bindings

45 Members
Nix C API https://github.com/NixOS/nix/blob/master/doc/manual/src/c-api.md, language-specific bindings, and their use cases (currently broken link: https://nixos.org/manual/nix/unstable/c-api)15 Servers

Load older messages


SenderMessageTime
25 Apr 2024
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @marcusramberg:matrix.org
Should the perl bindings also be changed to use the C bindings? 🤔
It would fit the agenda of getting the C API a baseline adoption in order to iron out the kinks. But there's a fundamental resource constraint at the moment: who's gonna do the work and who's gonna merge the PRs? There's a quick way out of this: saying whoever does the job gets commit access and ownership of that code, all strings attached. I don't think this has consensus though, but I'd like to be surprised.
07:01:39
@marcusramberg:matrix.orgMarcus
In reply to @fricklerhandwerk:matrix.org
It would fit the agenda of getting the C API a baseline adoption in order to iron out the kinks. But there's a fundamental resource constraint at the moment: who's gonna do the work and who's gonna merge the PRs? There's a quick way out of this: saying whoever does the job gets commit access and ownership of that code, all strings attached. I don't think this has consensus though, but I'd like to be surprised.
I've pinged stigtsp about this as well, since he's more in touch with his Perl roots than I am these days 🙂 I quickly looked at the existing bindings, seems they use XSLoader towards the c++ code.
07:10:10
@jlesquembre:matrix.orgjlesquembreCould an admin add a link to https://github.com/NixOS/nix/labels/c%20api in the channel description? Notice that it's a list with all open issues/PRs with the "c api" label instead of a link to the milestone (https://github.com/NixOS/nix/milestone/52) because we have some PRs that aren't in the milestone 08:14:33
@joerg:thalheim.ioMic92
In reply to @marcusramberg:matrix.org
Should the perl bindings also be changed to use the C bindings? 🤔
Potentially. I think the perl api was already an ok abstraction on top of Nix. So maybe it could be used as a starting point?
09:30:02
@joerg:thalheim.ioMic92
In reply to @marcusramberg:matrix.org
Should the perl bindings also be changed to use the C bindings? 🤔
* Potentially. I think the perl api was already an ok abstraction on top of Nix c++ api. So maybe it could be used as a starting point?
09:30:14
@joerg:thalheim.ioMic92The API I was using in harmonia was inspired by the perl api.09:30:39
@erinvanderveen:matrix.orgErin joined the room.13:38:30
@infinisil:matrix.orginfinisil changed the room topic to "[Nix C bindings](https://github.com/NixOS/nix/labels/c%20api), language-specific bindings, and their use cases" from "Nix C bindings, language-specific bindings, and their use cases".19:50:48
@infinisil:matrix.orginfinisil changed the room topic to "Nix C bindings (https://github.com/NixOS/nix/labels/c%20api), language-specific bindings, and their use cases" from "[Nix C bindings](https://github.com/NixOS/nix/labels/c%20api), language-specific bindings, and their use cases".19:51:00
@infinisil:matrix.orginfinisilIt would be great to have a https://wiki.nixos.org/ page to keep an ongoing summary of what's happening relating to bindings :D19:51:35
@zraexy:nixos.devDavid Mell (zraexy) joined the room.23:07:56
@zraexy:nixos.devDavid Mell (zraexy) changed their display name from David Mell to David Mell (zraexy).23:51:56
26 Apr 2024
@joerg:thalheim.ioMic92Or even just a Nix issue or is this to messy?05:55:37
@rosariopulella:matrix.orgRosario Pulella joined the room.06:02:15
@fricklerhandwerk:matrix.orgfricklerhandwerkTracking issue sounds resonable08:46:38
@fricklerhandwerk:matrix.orgfricklerhandwerk* Tracking issue sounds reasonable08:46:44
@philiptaron:matrix.orgPhilip Taron (UTC-8) joined the room.15:50:20
@roberthensing:matrix.orgRobert Hensing (roberth)We have a start here, but issue may be better. https://github.com/NixOS/nix/pull/8699#issuecomment-207115189616:12:46
@roberthensing:matrix.orgRobert Hensing (roberth) changed the room topic to "Nix [C API](https://nixos.org/manual/nix/unstable/c-api), language-specific bindings, and their use cases" from "Nix C bindings (https://github.com/NixOS/nix/labels/c%20api), language-specific bindings, and their use cases".16:13:39
@roberthensing:matrix.orgRobert Hensing (roberth) changed the room topic to "Nix C API https://nixos.org/manual/nix/unstable/c-api, language-specific bindings, and their use cases" from "Nix [C API](https://nixos.org/manual/nix/unstable/c-api), language-specific bindings, and their use cases".16:14:01
@roberthensing:matrix.orgRobert Hensing (roberth)Path values are represented by absolute paths, so I think that's what's expected by that function16:58:39
@roberthensing:matrix.orgRobert Hensing (roberth)Not a great name, and insufficient docs though16:58:51
@roberthensing:matrix.orgRobert Hensing (roberth)I think it needs to be improved: https://github.com/NixOS/nix/issues/1061317:02:05
27 Apr 2024
@pederbs:pvv.ntnu.nopbsds joined the room.21:44:41
28 Apr 2024
@a-kenji:matrix.orga-kenji joined the room.09:59:50
29 Apr 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:30:00
@c4lliope:matrix.orgc4lliope joined the room.18:20:13
1 May 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:06:16
2 May 2024
@shine:proqqul.netTaeer Bar-Yam joined the room.15:10:51
@roberthensing:matrix.orgRobert Hensing (roberth) Does anyone know a reason to use void * instead of opaque pointers like Value * (after struct Value;)?
I think we want to just change it: https://github.com/NixOS/nix/issues/10561
16:47:55

Show newer messages


Back to Room ListRoom Version: 10