17665 Commits

Author SHA1 Message Date
Delyan Angelov
35e91a7e70
checker,cgen: change x.filter(cond).len > 0 to x.any(cond), and x.filter(cond) == 0 to x.all(!cond) (#20513) 2024-01-13 08:52:31 +02:00
awgh
6c016e51b7
builder: replace "-rdynamic" for clang on macos with "-Wl,-export_dynamic" (fix #20510) (#20511) 2024-01-13 03:17:10 +02:00
shove
abc9e06ed1
net.urllib: fix parsing url error, when querypath is '//' (fix #20476) (#20504) 2024-01-12 22:51:48 +02:00
Hitalo Souza
62872c677f
json2: cleanup (#20347) 2024-01-12 22:48:28 +02:00
Felipe Pena
bcd77eddce
cgen: fix generated code for fixed array cast (fix #20454) (#20480) 2024-01-12 16:17:34 +02:00
Delyan Angelov
b120c10f42
os: make os.cache_dir() and os.vtmp_dir() more robust to parallel test executions on windows (#20495) 2024-01-12 16:09:08 +02:00
Vinicius Silva
d986f8252a
repl: support executing shell commands on the REPL with !sh [COMMAND] (#20496) 2024-01-12 16:08:03 +02:00
shove
cfd8915782
checker: cleanup the const variable evaluate for fixed array fields of structs (#20503) 2024-01-12 16:02:52 +02:00
Oli Barnett
fe669f8ce1
examples: fix "call v from ruby" example for Windows and Mac (#20487) 2024-01-12 15:59:09 +02:00
shove
f1fdc9c52f
parser, cgen: a minor cleanup (#20502) 2024-01-12 15:58:00 +02:00
shove
fdd481b2c2
orm: fix checking invalid recursive structs in sql stmts (fix #20278) (#20505) 2024-01-12 15:53:06 +02:00
Felipe Pena
0c4611fa4c
cgen: fix fixed array handling, on generic result return, and on or block (#20492) 2024-01-12 03:31:01 +02:00
Swastik Baranwal
554f21a29c
checker: disallow option or result return type, for infix operator overloading (#20494) 2024-01-11 20:31:44 +02:00
kbkpbot
69b0d1cfe9
log: enhance log time format setting (#20484) 2024-01-11 19:17:23 +02:00
shove
29d662fcd1
checker: fix anon struct init with const fields (fix #20452) (#20463) 2024-01-11 19:13:19 +02:00
shove
cc7144c4d8
orm: fix checking invalid recursive structs (fix #20285) (#20491) 2024-01-11 18:30:25 +02:00
shove
690961b796
parser: fix close_scope() missing, when field.name is sort or sorted (fix#20436) (#20485) 2024-01-11 14:31:31 +02:00
Felipe Pena
781d97dd11
cgen: fix C code, generated for generic option fixed array return type (fix #20465) (#20479) 2024-01-11 12:19:22 +02:00
Kim Shrier
341e79fc63
sync: fix FreeBSD implementation of sync functions (#20483) 2024-01-11 12:03:34 +02:00
Delyan Angelov
9109b23c76
tests: reduce chances of unrelated false positives due to network errors, for running code in vlib/v/tests/skip_unused/ 2024-01-11 11:53:35 +02:00
Bakul Shah
426bcd6972
sync: add mutex.try*lock functions for FreeBSD too (#20482) 2024-01-11 11:09:57 +02:00
Henrik Holst
091040116d
strings: fix levenshtein_distance function correctness after #20435 (#20474) 2024-01-10 23:33:39 +02:00
Juan de Bruin
61cd2ee9cf
doc: add r and R string interpolation switch examples (#20473) 2024-01-10 23:25:35 +02:00
Casper Küthe
464062774f
x.vweb: add error, when static directory does not exist (#20455) 2024-01-10 18:07:55 +02:00
blackshirt
0713e398a6
x.crypto.chacha20: speed up the core functionality of the ChaCha20 stream cipher (#20470) 2024-01-10 17:51:08 +02:00
Felipe Pena
edd07bff01
checker: fix comptime if with comptime smartcast (#20466) 2024-01-10 17:40:28 +02:00
Felipe Pena
86d1cc2c48
cgen: fix fixed array handling with operator overloading call (fix #20467) (#20469) 2024-01-10 17:25:42 +02:00
Delyan Angelov
3142114bd7
net: remove unused import in tcp_test.v 2024-01-10 17:15:20 +02:00
Henrik Holst
e8e198c349
net: fix vlib/net/tcp_test.v (since .listen_tcp with af .unix, is now expected to return an error) (#20472) 2024-01-10 17:14:00 +02:00
shove
b77e3914d8
parser, checker, cgen: fix multidimensional fixed array size expression evaluation (fix #20311) (#20458) 2024-01-10 16:11:36 +02:00
yuyi
c1904ecab7
parser, checker: check invalid lambda expr (#20461) 2024-01-10 15:53:41 +02:00
Delyan Angelov
28e810d92e
ci: make the vab-compiles-v-examples job, more robust to github runner and Android SDK changes (#20462) 2024-01-10 11:54:48 +02:00
kbkpbot
fd269cad87
cgen, dl: add windows dll support, fix (#20447) (#20459) 2024-01-10 10:59:52 +02:00
Delyan Angelov
be4f7176f4
v.builder: allow for v -shared -os windows file.v on Linux/macos (fix #20445) (#20453) 2024-01-10 03:39:53 +02:00
Alexander Medvednikov
ac2dcc2bc0 V 0.4.4 0.4.4 2024-01-09 16:54:06 +03:00
Felipe Pena
ee745113bd
vfmt: fix fmt for map value type using select import symbol (fix #20449) (#20451) 2024-01-09 15:24:34 +02:00
yuyi
ee95e23ab6
ast: add Type.clear_option_and_result() and cleanup all the related calls (#20443) 2024-01-09 11:46:47 +02:00
shove
3635772431
checker: fix checking when converting 'voidptr/nil' to struct aliases (fix #20429) (#20444) 2024-01-09 11:44:38 +02:00
shove
14f3c950be
cgen: fix escape of non-ascii characters in string interpolation (fix #20432) (#20437) 2024-01-09 02:07:42 +02:00
Delyan Angelov
89f06d35fd
Revert "tools: update the style.css for fast.vlang.io pages, so that the rownumber counter is reversed" (Chrome does not support counting in reverse)
This reverts commit 2765ca45b8f367d69511d5a5aa2e6d49b1912047.
2024-01-08 20:58:54 +02:00
Delyan Angelov
2765ca45b8
tools: update the style.css for fast.vlang.io pages, so that the rownumber counter is reversed 2024-01-08 19:43:57 +02:00
Delyan Angelov
f2dee664ba
tools: extract all the common styles for fast.vlang.io pages into a separete style.css 2024-01-08 19:33:20 +02:00
Delyan Angelov
33d7843027
tools: add a visual row counter for the <tr> elements in cmd/tools/fast 2024-01-08 19:20:10 +02:00
Delyan Angelov
252540a1ea
os: add os.path_devnull (containing /dev/null on POSIX and \\.\nul on Windows) (#20439) 2024-01-08 18:00:36 +02:00
yuyi
34da4c97ea
ast: add has_option_or_result() and cleanup all the related calls (#20434) 2024-01-08 17:59:58 +02:00
zeozeozeo
8af961faf6
strings: use faster levenshtein distance algorithm (#20435) 2024-01-08 12:41:57 +02:00
yuyi
c7b8da7ffe
checker: fix lambda expr with result (#20433) 2024-01-08 12:41:11 +02:00
Alexander Medvednikov
5cd4933280 changelog: 0.4.4 (part 2) 2024-01-08 13:34:03 +03:00
Delyan Angelov
5b9d0f241a
strings: improve the performance of levenshtein_distance/2 (use early returns for the easy cases, idiomatic array initalisation, and @[direct_array_access]) 2024-01-08 05:00:04 +02:00
Delyan Angelov
51e19dd54e
examples: fix gg: 0 notice for bounce.v 2024-01-08 04:30:16 +02:00