Christoffer Lerno
|
79f964dce9
|
Fix of atomic checks. Renamed MONOTONIC -> RELAXED.
|
2023-08-29 12:27:40 +02:00 |
|
Christoffer Lerno
|
a23112fae6
|
Added parentof.
|
2023-08-29 11:51:09 +02:00 |
|
Pierre Curto
|
092296984a
|
std/math/random: add missing SimpleRandom.init() method
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
|
2023-08-28 10:03:30 +02:00 |
|
Christoffer Lerno
|
565f511cc7
|
Updated error handling on test/benchmark attribute.
|
2023-08-28 08:17:57 +02:00 |
|
Dmitry Atamanov
|
b8c92c69b0
|
Implement builtin benchmarks.
|
2023-08-28 08:13:21 +02:00 |
|
Christoffer Lerno
|
6ebb3caa20
|
Fix issue where type wasn't canonical. Addresses #957
|
2023-08-27 19:04:34 +02:00 |
|
Dmitry Atamanov
|
cc2c737357
|
Fix calling llvm::writeArchive for LLVM > 17.
|
2023-08-27 18:11:24 +02:00 |
|
Christoffer Lerno
|
69553fd80e
|
Bitstruct designated initializer sometimes failed. This addresses. #954
|
2023-08-27 18:10:22 +02:00 |
|
Christoffer Lerno
|
190e1b19f1
|
Fix of next_short
|
2023-08-26 16:17:30 +02:00 |
|
Pierre Curto
|
c09b6154f4
|
std/lib/collections: add Object.get_len(); add some tests for encoding/json
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
|
2023-08-26 13:24:23 +02:00 |
|
Pierre Curto
|
120d5a672c
|
std/collections: Object.get* return an error if requested type if invalid
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
|
2023-08-26 13:24:23 +02:00 |
|
Pierre Curto
|
307212a19c
|
std/encoding: use char.is_digit() where applicable
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
|
2023-08-26 13:24:23 +02:00 |
|
Pierre Curto
|
eedb2c3c52
|
std/collections: add RingBuffer.popc()
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
|
2023-08-26 13:24:23 +02:00 |
|
Christoffer Lerno
|
b1f52cf8a9
|
Updated random interface further.
|
2023-08-26 13:22:02 +02:00 |
|
Christoffer Lerno
|
bea9ac010c
|
Updated random interface.
|
2023-08-26 12:58:57 +02:00 |
|
Christoffer Lerno
|
6ebd437a5f
|
Fix bug when converting from typedef to distinct. Ordered struct fields. Update debug type when returning an optional.
|
2023-08-25 14:11:23 +02:00 |
|
Pierre Curto
|
c0b109fbc1
|
#934 followup
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
|
2023-08-24 18:10:18 +02:00 |
|
Dmitry Atamanov
|
b77f254ab1
|
Tune @expect, @likely, @unlikely and @prefetch macros.
|
2023-08-24 16:09:56 +02:00 |
|
Dmitry Atamanov
|
f5fea69ef9
|
Move get_var, set_var and clear_var to os::env module.
|
2023-08-24 13:31:48 +02:00 |
|
Pierre Curto
|
c63b3d4209
|
Small updates to std::lib (#949)
* lib/std/io: add Stream.supports_{read,Write}_byte and Stream.write_all
* std/io/: use char.digit()
|
2023-08-24 11:59:00 +02:00 |
|
Christoffer Lerno
|
056ffa5876
|
Fix bug dropping bounds checks for arrays. This addresses #943.
|
2023-08-23 14:21:11 +02:00 |
|
Christoffer Lerno
|
0120498ec8
|
Fix seeder, update with dynamic interface for random. Insert unreachable after panic in asserts. Macro ensure static check.
|
2023-08-23 13:52:27 +02:00 |
|
Christoffer Lerno
|
0b67f1a8e4
|
Fix windows .dyn_search.
|
2023-08-22 21:34:10 +02:00 |
|
Christoffer Lerno
|
16e71c14b9
|
New resolution of $define only check on the last element. Fix issue with pointer and array element types not considered live.
|
2023-08-22 18:16:26 +02:00 |
|
Christoffer Lerno
|
27445e6c1d
|
Semi-fix of $embed on empty. Inline caches for dynamic dispatch.
|
2023-08-22 15:24:21 +02:00 |
|
Dmitry Atamanov
|
fcb4bc0781
|
Reimplement QuickSort (non-recursive modification).
|
2023-08-22 14:48:12 +02:00 |
|
Christoffer Lerno
|
6c60b0d2a6
|
Update errno listings. Update ai flags in std::net. Fix incorrect socket error results on Win32. Change behaviour Socket set_option. TcpSocket/TcpServerSocket/UdpSocket. Rename "TimeDuration" to "Duration". Allow @if on enum values.
|
2023-08-19 22:41:54 +02:00 |
|
Christoffer Lerno
|
ed70f39da8
|
Update the json API
|
2023-08-19 00:53:28 +02:00 |
|
Christoffer Lerno
|
d5aebb434c
|
Eliding length for ":"-ranges is no longer allowed.
|
2023-08-18 22:25:51 +02:00 |
|
Christoffer Lerno
|
17f69d8da8
|
Update slice assign so that it looks at the arguments and does slice copying or splat assign as needed.
|
2023-08-18 18:46:38 +02:00 |
|
Christoffer Lerno
|
c07dc700df
|
Fix of #936. Also some general cleanup.
|
2023-08-18 15:55:43 +02:00 |
|
Christoffer Lerno
|
957ce320ae
|
Cleanup and size reduction of Ast/Expr.
|
2023-08-18 01:57:56 +02:00 |
|
Pierre Curto
|
7a39933c97
|
add NanoDuration.to_format() (#935)
* lib/std/time: avoid switch in DateTime.compare_to()
* lib/std/time: add NanoDuration.to_format()
* std/lib: fix #934
|
2023-08-17 10:30:20 +02:00 |
|
Christoffer Lerno
|
9b0da89a03
|
Added compare_to as a standard macro.
|
2023-08-17 10:13:00 +02:00 |
|
Christoffer Lerno
|
b05ba8d110
|
Updated the test runner code slightly.
|
2023-08-16 17:31:16 +02:00 |
|
Christoffer Lerno
|
0448038c68
|
Added test.
|
2023-08-16 15:58:33 +02:00 |
|
Christoffer Lerno
|
e694d60f23
|
Updates and fixes to Mutex (#933)
Updating Mutex to have specific types: TimedMutex, RecursiveMutex, TimedRecursiveMutex. Fixes to the win32 implementation.
|
2023-08-16 15:45:49 +02:00 |
|
Christoffer Lerno
|
8a4337e819
|
Some improvements for the stacktrace.
|
2023-08-16 13:54:21 +02:00 |
|
Pierre Curto
|
5bd21c10b6
|
improve tests (#932)
* test: fix warnings generated by Python's interpreter
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
* lib/std/core/runtime: sort tests to run; improve tests output
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
|
2023-08-16 12:28:07 +02:00 |
|
Christoffer Lerno
|
87c9c29ee8
|
Make -O1 the default, not -O2.
|
2023-08-16 10:51:43 +02:00 |
|
Pierre Curto
|
6c3d6a4b05
|
std/lib: fix module path for RingBuffer
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
|
2023-08-15 15:58:28 +02:00 |
|
Christoffer Lerno
|
f39dd82adc
|
Fix issue where imports could be made more than once. Addresses #929
|
2023-08-15 10:47:40 +02:00 |
|
Pierre Curto
|
f4ad9fcee0
|
move num_cpu() to std::os (#928)
* lib/std: move num_cpu() to std::os
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
* add ThreadPool (#926)
* lib/std/collections: fix tab indentation
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
* lib/std/threads: add ThreadPool
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
* ats/lib/threads: add num_cpu()
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
* lib/std/os: move macos constants to std::os::macos
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
|
2023-08-14 17:04:06 +02:00 |
|
Pierre Curto
|
65bea1cb2d
|
add ThreadPool (#926)
* lib/std/collections: fix tab indentation
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
* lib/std/threads: add ThreadPool
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
* ats/lib/threads: add num_cpu()
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
|
2023-08-14 15:33:51 +02:00 |
|
Christoffer Lerno
|
f912e53038
|
Fix where designated initializers had optional arguments. See #923
|
2023-08-13 20:57:50 +02:00 |
|
Christoffer Lerno
|
3c8bbc2b90
|
Fix issue combining void! in macros in some cases. See #927
|
2023-08-13 20:35:49 +02:00 |
|
Christoffer Lerno
|
e22afe5424
|
Allow "if (try foo())"."
|
2023-08-13 18:15:20 +02:00 |
|
Pierre Curto
|
c060569599
|
add tests for Mutex (#925)
* std/lib: add tests for Mutex
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
* lib/collections: add missing import
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
* std/collections: add RingBuffer
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
---------
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
|
2023-08-13 17:39:09 +02:00 |
|
Christoffer Lerno
|
d83f591184
|
Check for mutex initialization. Fix missing check on optional for certain macro situations.
|
2023-08-12 11:55:49 +02:00 |
|
Christoffer Lerno
|
b6f302d1c6
|
Fix issues with thread, add some simple test.
|
2023-08-12 02:16:46 +02:00 |
|