janet/examples
Calvin Rose 549ee95f3d Add os/posix-exec (along os/posix-fork)
Useful for old-style unix daemons, start up scripts, and so on.
Easy to add on top of os/execute.

May want to consider allowing the same IO redirection as os/execute
and os/spawn.

May also want to put both fork and exec behind a config switch since I
suppose some systems may not support them, although I don't know of any
concrete examples.
2023-10-08 21:03:08 -05:00
..
ffi Run through astyle with manual corrections 2023-06-08 13:01:49 -05:00
jitfn Add length method ffi/jitfn abstract values. 2022-12-04 11:08:17 -06:00
numarray Add length to method and lib fn to numarray 2021-12-09 11:18:05 +01:00
3sum.janet Many changes for adding dynamic (fiber-level) scope. 2019-04-16 15:41:45 -04:00
assembly.janet Fix comments formating 2020-11-04 10:18:31 +01:00
async-execute.janet Add search on PATH for async execute example 2021-12-09 11:57:21 +01:00
channel.janet Add preliminary channel implementation. 2020-08-01 13:13:58 -05:00
colors.janet Update examples, add method like semantics to calling keywords. 2019-01-07 14:47:47 -05:00
debug.janet Fix up debug/step and janet_step. 2019-11-25 20:00:13 -06:00
debugger.janet Add debugger to the core repl. 2020-04-10 17:20:23 -05:00
echoclient.janet Get windows IOCP working for accept. 2020-11-08 18:56:13 -06:00
echoserve.janet Get windows IOCP working for accept. 2020-11-08 18:56:13 -06:00
error.janet Rename to janet 2018-09-05 22:18:42 -04:00
evlocks.janet Add rwlocks. 2022-06-05 16:42:18 -05:00
evsleep.janet Allow passing a function to directly to ev/go. 2021-08-30 22:22:22 -05:00
fizzbuzz.janet Updare examples. Delete ugly iterator example. 2018-11-26 22:09:12 -05:00
hello.janet Change format for declaring flexible arity functions. 2018-11-25 14:03:00 -05:00
iterate-fiber.janet Remove function `eachy`. 2021-01-03 16:19:23 -06:00
lazyseqs.janet First commit removing the integer number type. This should 2018-12-27 13:05:29 -05:00
life.janet Update game of life example. 2019-02-17 11:20:24 -05:00
lineloop.janet Add line loop example for awk or sed like processing. 2022-08-26 12:29:23 -05:00
marshal-stress.janet Add stress test for marshalling to examples. 2022-08-26 12:27:53 -05:00
maxtriangle.janet Fix example. 2019-03-21 14:32:08 -04:00
posix-exec.janet Add os/posix-exec (along os/posix-fork) 2023-10-08 21:03:08 -05:00
primes.janet Primes example fixed 2019-05-16 12:03:54 +02:00
rtest.janet Allow seeding RNG with a byte sequence. 2019-11-21 22:53:39 -06:00
select.janet Merge branch 'windows-ev' into ev 2020-10-11 09:32:17 -05:00
select2.janet Add another select example. 2020-10-11 09:14:31 -05:00
sigaction.janet Update sigaction to help address #1262. 2023-08-23 09:16:59 -05:00
tcpclient.janet Add methods to streams. 2020-02-12 09:32:41 -06:00
tcpserver.janet Improve reading and writing from streams. 2020-11-02 09:06:31 -06:00
threaded-channels.janet Working example for threaded channels. 2021-08-15 15:25:07 -05:00
udpclient.janet Initial UDP implementation. 2020-06-02 19:47:50 -05:00
udpserver.janet Inherit the supervisor channel from the root fiber if not given. 2021-01-08 16:32:23 -06:00
urlloader.janet Fix URL loader example to use os/spawn 2021-11-11 17:33:25 +09:00
weak-tables.janet Add support for weak references in arrays. 2023-09-30 10:56:43 -05:00