!lTqhfnNvIkcEackxxk:matrix.org

Nix Bindings

53 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)17 Servers

Load older messages


SenderMessageTime
24 Apr 2024
@hexa:lossy.networkhexa joined the room.16:49:23
@admin:nixos.org@admin:nixos.org infinisil: please step down to moderator 16:52:11
@admin:nixos.org@admin:nixos.orgchanged room power levels.16:52:16
@admin:nixos.org@admin:nixos.org left the room.16:52:28
@infinisil:matrix.orginfinisilchanged room power levels.16:53:07
@infinisil:matrix.orginfinisil Done :) 16:53:24
@fricklerhandwerk:matrix.orgfricklerhandwerk joined the room.17:21:15
@Ericson2314:matrix.orgJohn Ericson joined the room.18:34:02
@marcusramberg:matrix.orgMarcus joined the room.21:47:47
@marcusramberg:matrix.orgMarcuso/21:47:58
@marcusramberg:matrix.orgMarcusI got the go bindings updated to a point where they compile against the current api, currently struggling with the callback for nix_get_string and trying to get the value back to go.22:07:57
@marcusramberg:matrix.orgMarcusimage.png
Download image.png
22:45:27
@marcusramberg:matrix.orgMarcuswelp, this looks better already, not crashing hard 🙂22:45:42
@marcusramberg:matrix.orgMarcusNot sure why the leading . on the path it stripped when passing to nix_init_path_string 🤔22:55:45
@marcusramberg:matrix.orgMarcus * Not sure why the leading . on the path is stripped when passing to nix_init_path_string 🤔 22:55:54
25 Apr 2024
@adis:blad.is@adis:blad.is joined the room.00:21:38
@infinisil:matrix.orginfinisil changed the room topic to "Nix C bindings, language-specific bindings, and their use cases" from "C and language-specific bindings for Nix".00:27:47
@marcusramberg:matrix.orgMarcus
In reply to @joerg:thalheim.io
And nix-serve (also that one uses perl bindings?)
Should the perl bindings also be changed to use the C bindings? 🤔
06:26:46
@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

Show newer messages


Back to Room ListRoom Version: 10