20129 Commits

Author SHA1 Message Date
Felipe Pena
b1bd4c4a1c
checker: fix generic fn call return type resolve on var assignment (fix #22612) (#22627) 2024-10-24 09:19:12 +03:00
Delyan Angelov
97c6cd09f3
tools: show more details in compare_pr_to_master.v 2024-10-23 18:28:27 +03:00
yuyi
edbafcb70a
checker: check fixed array builtin method args mismatch (#22626) 2024-10-23 17:52:13 +03:00
Delyan Angelov
8b36856692
builtin: support -d no_gc_threads for turning off passing -DGC_THREADS=1 while compiling the GC library 2024-10-23 16:10:19 +03:00
yuyi
fe6af05b59
checker: fix lambda expr with fntype params and restore fixed_array_any_all_test.v (#22625) 2024-10-23 15:38:53 +03:00
Alexander Medvednikov
399de3ec3e tmpl: remove a print 2024-10-23 15:33:56 +03:00
Felipe Pena
9dc1a9988d
cgen: optimize literal string comparison (string__eq -> vmemcmp) (#22614) 2024-10-23 07:42:40 +03:00
yuyi
a6c5289f89
builtin: temporary fix fixed_array_any_all_test.v (#22624) 2024-10-23 07:35:58 +03:00
Felipe Pena
4a2210f8d0
cgen: optimise the generated code for returning literal values and option/result values (#22622) 2024-10-23 07:34:42 +03:00
yuyi
ea8ae7ba17
builtin: improve fixed_array_any_all_test.v (related #22609) (#22621) 2024-10-22 18:33:49 +03:00
yuyi
fa88da6e89
checker, gen: implement method .contains/1 for fixed arrays (#22617) 2024-10-22 18:17:06 +03:00
Felipe Pena
4ffa7a0264
reflection: split mod from typesymbol name (fix #22488) (#22618) 2024-10-22 18:15:48 +03:00
Delyan Angelov
5fabc8ef5e
tools: allow for v repeat -N ./cmd/tools/vtest_test, by adding a -N/--no_vexe_reset option to v repeat 2024-10-22 17:44:24 +03:00
Hitalo Souza
b5795dcd76
builtin: improve performance of string.starts_with/1 and string.ends_with/1, when compiled with tcc (#22620) 2024-10-22 17:02:47 +03:00
Hitalo Souza
4e13ddf847
picoev,net.http: use Time.http_header_string method, to improve performance (#22619) 2024-10-22 16:39:48 +03:00
Felipe Pena
b2ac2ed627
strings,cgen: add .write2/2 and .writeln2/2 methods to reduce consecutive write calls (#22610) 2024-10-22 16:30:58 +03:00
Hitalo Souza
7a0febb12d
examples: fix some of the instructions in examples/thread_safety/ (#22571) 2024-10-22 11:36:38 +03:00
Hitalo Souza
dd0b6a6480
x.json2.decoder2: add a test for decoding pretty printed json (#22615) 2024-10-22 11:09:02 +03:00
yuyi
49e1b01488
checker, cgen: implement fixed array methods any() and all() (#22609) 2024-10-22 11:06:31 +03:00
Felipe Pena
cb4ddb10d9
cgen: add caching to contains_ptr return (#22605) 2024-10-22 11:02:12 +03:00
Felipe Pena
6a8ab333d8
cgen: cache the results of g.base_type/1 (#22613) 2024-10-22 10:20:19 +03:00
Delyan Angelov
2499d26261
tools: discard the top 7 results for each 10 runs, from v repeat runs, done by compare_pr_to_master.v, to reduce σ on machines with more varied load weekly.2024.43 2024-10-21 17:56:04 +03:00
Hitalo Souza
8e3cd702a1
x.json2.decoder2: support aliases fully (#22608) 2024-10-21 17:43:27 +03:00
yuyi
f31ba78de8
backends: change gen.typ() to gen.styp() ; change gen.ret_typ() to gen.ret_styp() (#22597) 2024-10-21 12:51:23 +03:00
Felipe Pena
72f6368680
parser,ast,cgen: do is_builtin sym marking during parse time just *once*, to save multiple checks later (#22580) 2024-10-21 12:45:52 +03:00
Felipe Pena
726a682141
checker: fix T.unaliased_typ if branch evaluation (fix #22587) (#22598) 2024-10-21 12:33:19 +03:00
Felipe Pena
36e9c29b07
cgen: add test for #22586 (#22600) 2024-10-21 12:31:37 +03:00
Felipe Pena
cf03ecd0de
fmt: add support for comments inside sql db { ... } blocks (fix #22601) (#22602) 2024-10-21 12:08:04 +03:00
Felipe Pena
9579c1f68b
checker: optimise identical type checking (#22596) 2024-10-21 11:32:54 +03:00
Hitalo Souza
c55a75f412
breaking,time: rewrite parse_rfc3339/1 to improve performance, reject partial timestamps, that miss date info like 22:47:08Z (#22585) 2024-10-21 11:24:37 +03:00
Felipe Pena
de46d9d395
cgen: add codegen for auto free methods for interface type (#22555) 2024-10-21 11:09:33 +03:00
Delyan Angelov
988f8b487d
ci: fix failing jobs after 4ed9d13 (#22606) 2024-10-20 23:51:19 +03:00
Alexander Medvednikov
4ed9d13803 veb: translations via %translation_key 2024-10-20 21:35:27 +03:00
Delyan Angelov
1cf38ed501
tools: allow for fast exiting in compare_pr_to_master.v through Ctrl-C (or any failed command) 2024-10-20 17:11:51 +03:00
Delyan Angelov
ce63593800
tools: cleanup after running compare_pr_to_master.v 2024-10-20 17:10:16 +03:00
Delyan Angelov
dd9776a75d
tools: use a ~same~ label, when the results in v repeat are not different enough 2024-10-20 16:51:40 +03:00
yuyi
39c69c5fc8
checker, cgen: implement .index/1 method for fixed arrays (#22593) 2024-10-20 14:38:48 +03:00
Hitalo Souza
14ca0f533f
x.json2: cleanup comments (#22595) 2024-10-20 14:36:56 +03:00
Hitalo Souza
e85905ddc5
ci: add benchmark_footprint_json_decode.yml and benchmark_footprint_json_encode.yml (#22592) 2024-10-20 13:19:35 +03:00
yuyi
555bad727c
cgen: improve fixed array literal in operation and index calls (#22590) 2024-10-20 10:36:38 +03:00
yuyi
ddbef2d327
cgen: cleanup in fixed_array_init() (#22589) 2024-10-20 10:31:35 +03:00
Felipe Pena
d8edb13ff8
cgen: fix codegen for fixed array contains - [1,2]! in a (fix #22559) (#22579) 2024-10-20 03:57:38 +03:00
Felipe Pena
daeb548e7b
cgen: fix codegen for if with struct init that contains option type (fix #22577) (#22578) 2024-10-20 03:51:02 +03:00
Felipe Pena
67f2e9331d
v: fix aliased type checking, add error for passing aliased int values to fns that accept u8 (fix #18278) (#22572) 2024-10-20 02:20:42 +03:00
Hitalo Souza
9ed378884a
x.json2.decoder2: use a linked list insted of an array, to store the decoded elements (#22581) 2024-10-20 01:12:58 +03:00
Felipe Pena
136bdfe93f
maps: use explicit map value cloning in maps.merge_in_place and maps.merge (fx #22564) (#22576) 2024-10-19 11:49:41 +03:00
Delyan Angelov
380500a76b
cgen: fix hardcoded db__pg__DB_last_id for x := sql db { insert address into Address } (fix #22583) (#22582) 2024-10-19 11:07:06 +03:00
Felipe Pena
d1b0370166
checker: check for external variable access on qsort/sorted callback (fix #12386) (#22557) 2024-10-19 07:19:00 +03:00
Hitalo Souza
5ec9bb54b8
examples: add a thread_safety/ folder with several examples of using different thread synchronisation mechanisms (#22561) 2024-10-18 13:14:11 +03:00
Pepper Gray
891a8bc362
doc: explain deprecation process (#22568) 2024-10-18 13:11:43 +03:00