1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-28 01:10:26 +00:00
janet/examples
Calvin Rose f4d7fd97f6 Working TCP echo server and client.
Required a few changes to APIs, namely janet_root_fiber()
to get topmost fiber that is active in the current scheduler.
This is distinct from janet_current_fiber(), which gets the bottom
most fiber in the fiber stack - it might have a parent, and so cannot
be reliably resumed.
This is the kind of situation that makes symmetric coroutines more
attractive.
2020-02-09 20:00:50 -06:00
..
numarray Drop leading and trailing newlines in longstrings. 2019-04-21 13:34:41 -04:00
3sum.janet Many changes for adding dynamic (fiber-level) scope. 2019-04-16 15:41:45 -04:00
assembly.janet Update examples, add method like semantics to calling keywords. 2019-01-07 14:47:47 -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 Fix debugger example. 2019-12-17 23:06:41 -06:00
error.janet Rename to janet 2018-09-05 22:18:42 -04: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
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
maxtriangle.janet Fix example. 2019-03-21 14:32:08 -04: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
tarray.janet Fix some example issue and warnings under -Os. 2019-12-08 12:40:05 -06:00
tcpclient.janet Working TCP echo server and client. 2020-02-09 20:00:50 -06:00
tcpserver.janet Working TCP echo server and client. 2020-02-09 20:00:50 -06:00
threads.janet Pass thread body explicitly in thread/new. 2019-12-18 15:07:46 -05:00
urlloader.janet Remove resolver element in path tuple. 2019-05-25 17:27:56 -04:00