read-line
Summary
Reads in a line of user input and returns it
Bytecode
Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.
( 0 ($get/val 'buffer/allocate)) ( 2 ($push/val 128)) ( 4 ($apply 1)) ( 6 ($det/val 'buf)) ( 8 ($drop)) ( 9 ($get/val 'read-line/raw)) ( 11 ($get/val 'stdin)) ( 13 ($get/val 'buf)) ( 15 ($apply 2)) ( 17 ($det/val 'len)) ( 19 ($drop)) ( 20 ($get/val 'len)) ( 22 ($dup)) ( 23 ($jf* 12)) ( 26 ($drop)) ( 27 ($get/val 'buffer->string)) ( 29 ($get/val 'buf)) ( 31 ($get/val 'len)) ( 33 ($apply 2)) ( 35 ($ret))