Commit graph

18547 commits

Author SHA1 Message Date
Alexander Medvednikov
2684ef94e3 ci: test -os linux cross compilation on macOS 2024-10-26 18:10:47 +03:00
Delyan Angelov
d25f281b25
tests: fix compilation of the semaphore_wait.v program with latest V 2024-10-26 17:24:01 +03:00
yuyi
31c01fe956
checker: add tests for checking the new errors for fixed arrays .sort() calls (#22656) 2024-10-26 13:20:17 +03:00
alexey semenyuk
bfee824860
docs: fix broken links by adding missing READMEs (#22636) 2024-10-26 13:15:50 +03:00
Felipe Pena
419645a045
encoding.utf8: fix is_punct func (fix #22646) (#22647) 2024-10-26 10:33:31 +03:00
Felipe Pena
b5f022d804
cgen: fix waiter funcs declarations (fix #22640) (#22649) 2024-10-26 10:24:51 +03:00
Felipe Pena
067c5b6486
cgen,ast: fix interface conversion codegen race issue (fix #22640, #17943) (#22655) 2024-10-26 08:26:41 +03:00
Delyan Angelov
be0de59076
builder,pref: fix ./v -os linux examples/json.v on macos (#22651) 2024-10-25 23:15:17 +03:00
yuyi
4a7eca14c6
checker, cgen: implement method sort()/sorted() for fixed array (#22650) 2024-10-25 22:01:09 +03:00
Delyan Angelov
a454f0647f builder: change linuxroot repo URL to https://github.com/vlang/linuxroot 2024-10-25 18:58:44 +03:00
yuyi
5ad0186895
checker, cgen: implement method map() for fixed arrays (#22644) 2024-10-25 11:49:48 +03:00
Felipe Pena
4e9f7c21aa
v: optimize literal string comparison (match, in and ==) (#22643) 2024-10-25 10:40:09 +03:00
yuyi
f715d49156
cgen: fix struct field init with fixed array using index (fix #22616) (#22641) 2024-10-24 17:14:35 +03:00
Delyan Angelov
9e677393dc
parser: do import veb, only for templates that do use functions defined in veb 2024-10-24 14:57:10 +03:00
yuyi
75de056dfc
checker: cleanup method_call() (#22639) 2024-10-24 10:51:46 +03:00
yuyi
42cc345381
checker: improve checking parameter mismatches for fixed array builtin methods (#22630) 2024-10-24 10:35:27 +03:00
Felipe Pena
a847edd6c8
cgen: fix anon fn with & prefix (fix #22628) (#22638) 2024-10-24 09:47:11 +03:00
Felipe Pena
93df2f65ec
cgen: fix selector indexexpr with fntype on assignment (fix #22635) (#22637) 2024-10-24 09:45:24 +03:00
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 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