janet icon indicating copy to clipboard operation
janet copied to clipboard

A dynamic language and bytecode vm

Results 66 janet issues
Sort by recently updated
recently updated
newest added

Right now, `stdin` is a file. I have to use `file/read` in a thread. I can't kill the program with `(os/exit 1)` which is blocked by `file/read`.

* In `(ev/with-deadline deadline & body)`, `deadline` should become `sec`. * In `(ev/deadline sec &opt tocancel tocheck)`, I don't know the difference between `tocancel` and `tocheck`. If deadline is reached,...

enhancement

It closes https://github.com/janet-lang/janet/issues/1386

Right now, it uses `file/open`. `file/` functions block the event loop. `os/open` creates a stream which doesn't block the event loop.

Is there a convenient way to introduce arbitrary precision integers (bignum) in Janet? Perhaps through long strings?

**EDIT:** @pepe has a better idea, see below. ``` janet > (def lookup {:a 1 :b {:c 3}}) {:a 1 :b {:c 3}} > (lookup :b :c) 3 ``` That's...

For now, I discovered a few tricks for `os/spawn` as below. ```janet (try (with [proc (os/spawn ["prog" "arg1"] :p {:out :pipe})] (ev/read (proc :out) :all nil 5)) ([_] nil)) ```...

Among embedded scripting languages, Janet is as far as I know joined only by Chez Scheme in storing VM state statically, rather than as an opaque context object passed by...

If I build janet with the default meson option `epoll=false`, then the following code causes a busy loop. ```janet (def proc (os/spawn ["ls"] :p {:out :pipe})) (print (ev/read (proc :out)...

bug

``` repl:1:> (doc empty?) function boot.janet on line 117, column 1 (empty? xs) Check if xs is empty. ``` What? Define empty. I thought `nil` was empty.