Commit graph

18563 commits

Author SHA1 Message Date
Delyan Angelov
cc55aa5b36
checker: allow for f() or { T{} } in a generic method, for fn f() ?T {, being called with T, being a container like []int etc, not just a primitive type like int (#22672) 2024-10-28 17:56:12 +03:00
Alexander Medvednikov
27ff2f1628 orm: cross compile pg to linux; openssl: make cross compile work 2024-10-28 17:37:34 +03:00
Felipe Pena
986ed33deb
cgen: fix dump of alias to option fn type (fix #22670) (#22676) 2024-10-28 14:05:38 +02:00
Delyan Angelov
a5d1229372
ci: run zizmor .github/workflows/paths_ci.yml and fix reported issues (#22681) 2024-10-28 13:50:56 +02:00
0dminnimda
9c72d94767
make: fix GNUmakefile to build with msys (#22675) 2024-10-28 01:27:35 +03:00
Hitalo Souza
b59b57efd8
x.json2.decoder2: add initial support for sumtypes (#22669) 2024-10-27 22:34:35 +02:00
Felipe Pena
8ffcc34224
checker: fix f: app.method field initialisation, for fn fields, initialised with generic methods (#22665) 2024-10-27 20:43:15 +02:00
Felipe Pena
1ced1e9108
checker: fix return type checks, when returning struct values, implementing IError in non-result fn (fix #22659) (fix #22658) (#22660) 2024-10-27 20:31:01 +02:00
yuyi
c8ddf2197a
builtin, cgen: improve the assert informations (fix #22666) (#22668) 2024-10-27 17:45:08 +02:00
Delyan Angelov
3e8345d216 ci: move the macos->linux check even higher, to make easier testing and diagnosing linuxroot update failures 2024-10-27 17:40:18 +02:00
Delyan Angelov
0eb8688a14 ci: test the cross compilation from macos to linux sooner, show more information 2024-10-27 17:35:52 +02:00
yuyi
e59115ed02
checker: fix index expr that left is if expr (fix #22654) (#22661) 2024-10-27 16:54:46 +03:00
Hitalo Souza
d7d88b9f0f
log,time: improve performance for writing a line to a log, add Time.format_rfc3339_micro/0 (#22662) 2024-10-27 12:00:16 +02:00
Delyan Angelov
d133d30b60
ci: fix failing musl jobs after 2684ef9 (#22667) 2024-10-27 11:58:53 +02:00
Felipe Pena
731d07d6d6
v: allow sumtype init by variant comptime var T(v) / SumType(v) (#22664) 2024-10-27 09:26:44 +02:00
Delyan Angelov
14b1a14e6c
readme: uncollapse the Docker section, so that links like https://github.com/vlang/v/blob/master/README.md#docker-with-alpinemusl work properly 2024-10-26 18:28:28 +03:00
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