about summary refs log tree commit diff
path: root/src/nix/repl.cc
AgeCommit message (Collapse)AuthorFilesLines
2018-06-23 repl: use `nix build` for building instead of `nix-store -r`Will Dietz1-1/+1
progress bar!
2018-06-12 Move EvalState from the stack to the heapEelco Dolstra1-2/+2
EvalState contains a few counters (e.g. nrValues) that increase quickly enough that they end up being interpreted as pointers by the garbage collector. Moving it to the heap makes them invisible to the garbage collector. This reduces the max RSS doing 100 evaluations of nixos.tests.firefox.x86_64-linux.drvPath from 455 MiB to 292 MiB. Note: ideally, allocations would be much further up in the 64-bit address space to reduce the odds of an integer being misinterpreted as a pointer. Maybe we can use some linker magic to move the .bss segment to a higher address.
2018-04-16 nix repl: Fix multiline SIGINT handling.Félix Baylac-Jacqué1-0/+1
Fixes #2076
2018-04-11 Fix #2057Eelco Dolstra1-0/+1
2017-12-26 nix repl: use linenoiseKeyType to differentiate ^C and ^DWill Dietz1-1/+10
Fixes #1757.
2017-11-27 no "linenoiseFree" in linenoise-ngWill Dietz1-1/+1
2017-10-24 nix: Respect -I, --arg, --argstrEelco Dolstra1-7/+6
Also, random cleanup to argument handling.
2017-08-09 nix repl: Support printing floating-point numbersEelco Dolstra1-0/+4
2017-07-30 Replace Unicode quotes in user-facing strings by ASCIIJörg Thalheim1-2/+2
Relevant RFC: NixOS/rfcs#4 $ ag -l | xargs sed -i -e "/\"/s/’/'/g;/\"/s/‘/'/g"
2017-07-20 nix-shell: Use bashInteractive from <nixpkgs>Eelco Dolstra1-3/+3
This adds about 0.1s to nix-shell runtime in the case where bashInteractive already exists. See discussion at https://github.com/NixOS/nixpkgs/issues/27493.
2017-05-10 Replace readline by linenoiseEelco Dolstra1-105/+62
Using linenoise avoids a license compatibility issue (#1356), is a lot smaller and doesn't pull in ncurses.
2017-04-28 Check for libreadlineEelco Dolstra1-0/+4
2017-04-25 nix repl: Fix Ctrl-CEelco Dolstra1-0/+10
2017-04-25 Minor cleanupEelco Dolstra1-10/+7
2017-04-25 "using namespace std" considered harmfulEelco Dolstra1-6/+5
2017-04-25 nix repl: Use $XDG_DATA_HOME for the readline historyEelco Dolstra1-3/+4
2017-04-25 Make "nix repl" buildEelco Dolstra1-32/+34
2017-04-25 Cleanup in preparation of merging nix-repl repo into nix repoEelco Dolstra1-0/+719