bakpakin on master
Fix #682 - Don't hardcode size … (compare)
But if you do this
(table/getproto (fiber/getenv (fiber/current)))
you get
@{os/clock @{:value <cfunction os/clock> :doc "(os/clock)\n\nReturn the number of seconds since some fixed point in time. The clock is guaranteed to be non decreasing in real time."} net/write @{:value <cfunction net/write> :doc "(net/write stream data &opt timeout)\n\nWrite data to a stream, suspending the current fiber until the write completes. Takes an optional timeout in seconds, after which will return nil. Returns nil, or raises an error if the write failed."} bytes? @{:source-map ("boot.janet" 100 1) :value <function bytes?> :doc "(bytes? x)\n\nCheck if x is a string, symbol, keyword, or buffer."} ...}
(put modules/cache "my-lib" nil)
@Saikyun ?
modules/cache
-part will solve a similar problem as import :fresh true
, but I wonder if it will solve the "thrown away names" problem
(import :fresh true)
is doing that module/cache
thing :-)
main.janet
, and it depends on various files. in those files I want to make changes and have them come through to the render loop. wrt: evaluating in different environments -- an environment and/or fiber per netrepl connection might make sense? :) not sure what problem you want to solve
recv
and send
which read from and write to the stream respectively. The problem is that if I read from the stream when there's nothing there, it will block.
ev
and net
as tight as my old mind allowes
ev/sleep
call makes it so that the netrepl gets a chance to do its thing :)
recv
to block, just not indefinitely :)