18949 Commits

Author SHA1 Message Date
Felipe Pena
769699ede6
cgen: fix spawn with non-pointer receiver (fix #22718) (#22719) 2024-11-02 10:58:05 +02:00
Hitalo Souza
5384a2e77a
x.json2: pre-arranging the replacement of the decoder, to match https://github.com/enghitalo/v/tree/decoder2_to_json2 (#22729) 2024-11-02 10:57:18 +02:00
Felipe Pena
45b7a0e6e2
checker, cgen: fix comptime T.methods with generic types and interface checking with is operator (fix #22721) (#22724) 2024-11-02 10:53:08 +02:00
yuyi
9e2592e429
cgen: fix assert [1, 2, 3]!.index(2) == 1 (#22727) 2024-11-02 10:49:00 +02:00
yuyi
3b828f3ca1
cgen: fix assert [1, 2, 3]!.contains(2) (#22725) 2024-11-02 10:16:54 +02:00
yuyi
fc6e481bc3
cgen: cleanup array.v (#22723) 2024-11-01 13:44:04 +02:00
yuyi
2c887e2017
cgen: fix [1, 2, 3]!.map(it * 2) (#22722) 2024-11-01 09:39:17 +02:00
Felipe Pena
a9e814ff68
cgen: fix ptr field encoding for json (fix #22717) (#22720) 2024-11-01 07:28:37 +02:00
Felipe Pena
ee4f29fd87
v: optimize the compiler performance (#22709) 2024-10-31 20:40:30 +02:00
Delyan Angelov
2ad5d0cd15
tools: change v test to allow for // vtest hide_retries so that retry_test.v can hide its own (deliberate) retries 2024-10-31 20:23:19 +02:00
Delyan Angelov
d48cb18c3a
tools: show the full test output, on known flaky test failure with v test folder/ (#22716) 2024-10-31 19:02:14 +02:00
Delyan Angelov
a189d7f8e8
net: fix resolving of ::1:48872 (pass the *should_listen_on_both_ipv4_and_ipv6_by_default_test.v tests) (#22715) 2024-10-31 18:22:25 +02:00
yuyi
97941b97f8
checker, cgen: implement methods reverse()/reverse_in_place() for fixed arrays (#22712) 2024-10-31 13:46:36 +02:00
Jose Mendoza
b210278c31
parser: make C struct fields public and mutable by default (fix #22695) (#22706) 2024-10-31 13:43:58 +02:00
kbkpbot
86470abc77
strings: add hamming_distance/jaro_similarity/jaro_winkler_similarity functions (#22701) 2024-10-31 13:34:37 +02:00
Delyan Angelov
c32c2d732a Duplicate ./examples/assets/v.svg history in ./examples/veb/veb_assets/assets/v-logo.svg history. 2024-10-31 11:56:18 +02:00
Delyan Angelov
e665760d99 Duplicate ./examples/assets/v.svg history in ./examples/vweb/server_sent_events/assets/v-logo.svg history. 2024-10-31 11:56:17 +02:00
Delyan Angelov
4cbd11419d Duplicate ./examples/assets/v.svg history in ./examples/vweb_fullstack/src/assets/v-logo.svg history. 2024-10-31 11:56:17 +02:00
Delyan Angelov
b5f170258d examples: add examples/assets/v.svg and examples/assets/v_16x16.svg 2024-10-31 11:56:17 +02:00
yuyi
4e9b21f9d0
checker, cgen: implement methods sort_with_compare()/sorted_with_compare() for fixed arrays (#22702) 2024-10-31 06:52:06 +02:00
Felipe Pena
730b3f5e0f
checker: check for receiver name clashing with global var (fix #22698) (#22708) 2024-10-31 06:46:08 +02:00
Delyan Angelov
63a192ccb3
cgen: ensure proper saving/restoring of cgen map[k] := fn () state, when assigning anonymous fns (fix #22705) (#22707) 2024-10-31 06:12:48 +02:00
Felipe Pena
6cfa84c991
checker: fix generic resolve comptime generic var (#22699) 2024-10-31 03:22:13 +03:00
Felipe Pena
0b2b06df3c
checker: fix missing check for fn var with generic return inherited to anon fn (fix #19045) (#22683) 2024-10-30 21:56:52 +02:00
kbkpbot
2f75348b67
bitfield: add shift_left/1 and shift_right/1 methods to BitField (#22700) 2024-10-30 21:55:42 +02:00
Delyan Angelov
d79b85099c
x.vweb: bump port numbers for tests, to avoid conflicts with the equivalent veb test ports 2024-10-30 20:27:26 +02:00
larpon
dad8e3c766
flag: add missing short flag match in flag.to_struct, add test (#22696) 2024-10-30 17:31:31 +02:00
Felipe Pena
3af720921c
checker: fix selector with prefixed & structinit (#22689) 2024-10-30 17:56:21 +03:00
Hitalo Souza
54a6915f02
x.json2.decoder: support sumtypes fully (#22694) 2024-10-30 09:01:39 +02:00
Delyan Angelov
6e9a66dbf3
picoev: extract common code to a trace_fd/1 function, cleanup weekly.2024.44 2024-10-29 18:32:34 +02:00
Delyan Angelov
3939737a8d
picoev: support -d picoev_verbose_errors, do not use any naked eprintln by default, since that is a low level module 2024-10-29 18:04:08 +02:00
yuyi
45cbf4f14e
ast: improve the assert informations (related #22668) (#22679) 2024-10-29 07:15:27 +02:00
Delyan Angelov
5495280e7d
checker: allow for f() or { T{} } part 2, see also cc55aa5 (handle the case of an ignored result as well) (#22687) 2024-10-29 07:04:47 +02:00
daniel-le97
5d76ee4603
orm: fix orm.Connection only allowing immutable Connections (#22684) 2024-10-28 22:29:47 +02:00
yuyi
08c2019672
cgen: fix array append map value with or expr (fix #22674) (#22678) 2024-10-28 20:57:12 +02:00
Felipe Pena
7bd2bef1ae
parser: fix generic struct init detection T{} (#22682) 2024-10-28 17:56:43 +03:00
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