Skip to content

nix-collect-garbage: translate to C++ - #522

Merged
edolstra merged 1 commit into
NixOS:masterfrom
lucabrunox:nix-collect-garbage
Apr 22, 2015
Merged

edolstra merged 1 commit into
NixOS:masterfrom
lucabrunox:nix-collect-garbage

Conversation

@lucabrunox

Copy link
Copy Markdown
Contributor

No description provided.

@Fuuzetsu

Copy link
Copy Markdown
Member

Reasoning? Speed?

@shlevy

shlevy commented Apr 22, 2015

Copy link
Copy Markdown
Member

#341

@Fuuzetsu

Copy link
Copy Markdown
Member

Cool

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than calling nix-env, it would be cleaner to factor out opDeleteGenerations() from nix-env.cc into a library function and call it directly. IMHO that's one of the main benefits of rewriting in C++ (being able to call APIs directly rather than going through command line invocations).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not yet confident with doing this, can we accept this in the while as a 1:1 translation?

@lucabrunox
lucabrunox force-pushed the nix-collect-garbage branch from b01477e to ab2b3d6 Compare April 22, 2015 15:09
edolstra added a commit that referenced this pull request Apr 22, 2015
nix-collect-garbage: translate to C++
@edolstra
edolstra merged commit 4bbcfaf into NixOS:master Apr 22, 2015
@edolstra edolstra mentioned this pull request Aug 10, 2016
12 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants