Commit Graph

87 Commits (a0337c401e4363c539bb3ab9df632d0c6815248d)

Author SHA1 Message Date
Daniel Kolesa 84fc2bc9c4 do not rely on global locale when converting in format 2017-11-13 17:15:30 +01:00
Daniel Kolesa e5a21382af much better integer formatting (less stack space, better precision handling) 2017-11-13 02:13:42 +01:00
Daniel Kolesa 84572dfd01 use C locale in I/O and format by default
Should probably get rid of state in locale-aware APIs, too.
2017-11-12 19:15:43 +01:00
Daniel Kolesa 67525af4e5 gcc/libstdc++ 7.x fixes 2017-11-03 12:56:34 +01:00
Daniel Kolesa 25c97d9c8f typo fix 2017-06-11 18:55:50 +02:00
Daniel Kolesa bee56e6a52 add glob example 2017-06-11 18:51:29 +02:00
Daniel Kolesa 73421a5902 add argparse examples 2017-05-26 22:00:51 +02:00
Daniel Kolesa 1cc0577513 typo 2017-05-03 22:49:14 +02:00
Daniel Kolesa 1191162198 separate thread for stdout in buildsystem
This allows messages to be printed in sequence instead of
multiple prints in parallel mangling the output.
2017-05-03 21:09:25 +02:00
Daniel Kolesa 9be0ad2a0e simplify example a bit more 2017-05-03 02:31:26 +02:00
Daniel Kolesa d6a2a3f07c include all examples in generated docs 2017-05-03 02:14:27 +02:00
Daniel Kolesa d6c03be4cd clean up concurrency example a bit 2017-05-03 00:09:30 +02:00
Daniel Kolesa 2c62b82ec4 future-like objects representing tasks in concurrency 2017-05-02 21:42:31 +02:00
Daniel Kolesa cc8452e265 remove make_ range helpers for containers (use iter_begin/end) 2017-04-23 15:30:51 +02:00
Daniel Kolesa ef147c538c add complete input iterator type for any range 2017-04-22 17:12:20 +02:00
Daniel Kolesa b1f207bd3b hide appender_range definition 2017-04-17 17:07:24 +02:00
Daniel Kolesa f2a78ad589 guaranteed single-argument slice 2017-04-01 16:49:38 +02:00
Daniel Kolesa af1c446eca cleaner example 2017-03-31 01:14:22 +02:00
Daniel Kolesa 87e619485d remove ostd:: 2017-03-30 17:53:37 +02:00
Daniel Kolesa f3984f6412 no need for separate vars 2017-03-23 13:25:18 +01:00
Daniel Kolesa 972c27e181 remove unnecessary captures 2017-03-23 11:37:09 +01:00
Daniel Kolesa 023af03361 spawn/make_channel/yield without explicitly specifying scheduler 2017-03-23 11:35:23 +01:00
Daniel Kolesa 0e24dcd1c4 nested coroutine example + use stackpool for dispatcher in bscs 2017-03-23 00:40:42 +01:00
Daniel Kolesa 1351ac14f6 fix lockups when a condvar signals while a task is being blocked 2017-03-22 20:01:37 +01:00
Daniel Kolesa c120f49634 implement an M:N thread/coroutine scheduler 2017-03-21 00:28:38 +01:00
Daniel Kolesa d35e8b6341 channel api cleanup 2017-03-19 19:35:00 +01:00
Daniel Kolesa c123e98178 some universal funcs for working with schedulers 2017-03-19 18:12:08 +01:00
Daniel Kolesa 16362167e7 clean up concurrency example 2017-03-19 16:38:30 +01:00
Daniel Kolesa 9a9466e943 make channels copyable (referring to a shared state) 2017-03-19 16:23:00 +01:00
Daniel Kolesa 9ad7fe76c4 add a simple coroutine scheduler that multiplexes tasks onto a single thread 2017-03-19 14:11:23 +01:00
Daniel Kolesa 495c08602f simplify example 2017-03-18 01:08:21 +01:00
Daniel Kolesa b4b7224dd0 initial skeleton for concurrency module 2017-03-18 01:05:10 +01:00
Daniel Kolesa 06fbdc7419 remove coroutine_type, but keep public context 2017-03-17 02:46:24 +01:00
Daniel Kolesa c7451024c7 update exmaple output 2017-03-17 02:39:38 +01:00
Daniel Kolesa 959f319318 type inspection support on coroutines (with context as common base type) 2017-03-17 02:38:37 +01:00
Daniel Kolesa 88e6fe3906 revert the stack freeing method (can be achieved via stack allocator) 2017-03-11 18:24:55 +01:00
Daniel Kolesa 20f57dad9b dealloc stacks in destructor (allows stack reuse) 2017-03-11 17:57:04 +01:00
Daniel Kolesa 9c9221822a directly iterable generators 2017-03-11 14:16:47 +01:00
Daniel Kolesa 1940025cfd remove unnecessary void 2017-03-11 02:14:18 +01:00
Daniel Kolesa 935e1bc337 yielder revamp, separate generators without having to return 2017-03-11 02:12:43 +01:00
Daniel Kolesa b86df5c016 move over to standard filesystem module (from std::experimental or std) 2017-03-10 18:31:34 +01:00
Daniel Kolesa 7ba1f9265b make value-returning no-argument coroutines iterable 2017-03-06 19:01:17 +01:00
Daniel Kolesa 64d92743e4 only pass yield to coroutines, make them movable and swappable, improve examples 2017-03-06 18:38:50 +01:00
Daniel Kolesa b9260c8918 add coroutine examples 2017-03-06 03:32:39 +01:00
Daniel Kolesa 60cc9ee47e rename standard streams to feel less keywordy 2017-03-04 15:43:53 +01:00
Daniel Kolesa 22a5640a59 revamped stream errors, add get_line on streams and stream line range 2017-03-02 18:12:00 +01:00
Daniel Kolesa 5beecdf370 more elaborate format example 2017-02-26 15:35:17 +01:00
Daniel Kolesa ffc5bc0442 strip ostd namespace from example 2017-02-26 04:14:51 +01:00
Daniel Kolesa dc1d3aa373 example of locale specific numeric formatting 2017-02-26 04:11:23 +01:00
Daniel Kolesa bd5aa4795c custom formatting is now done with format_traits
Allows definition for any type, even in any foreign namespace.
2017-02-25 19:17:08 +01:00