20489 Commits

Author SHA1 Message Date
Jorge Mireles
e9cd499a98
examples: make get_weather use x.json2 and add translation to a user selectable language, defaulting to English (#25368) 2025-09-22 14:44:05 +03:00
David Legrand
fcf9228b95
db.redis: add optional password support with edis.connect(password: some_pass) (#25371) 2025-09-22 11:43:09 +03:00
Felipe Pena
9c4dfd3848
cgen: fix option unwrap with string interpolation (fix #25337) (#25367) 2025-09-22 11:31:29 +03:00
Delyan Angelov
4645db3ec4
tools: make v test detect a running redis server too, and make that info available to the individual tests through // vtest build: present_redis? 2025-09-22 10:56:01 +03:00
Delyan Angelov
a5d7f36691
examples: improve wav_player.v by ensuring the sound buffer is always zeroed (silence) first, before writing potentially incomplete frames 2025-09-22 00:26:49 +03:00
Delyan Angelov
fe8e5495ab
examples: fix wav_player.v to handle both .WAV files with a sample rate of 44100Hz and 11025Hz 2025-09-21 22:35:03 +03:00
blackshirt
bf41714c87
x.crypto.chacha20: makes 64-bit counter cipher work too (#25363) 2025-09-21 14:38:12 +03:00
Felipe Pena
cd152169e8
markused: fix or block handling and result propagation from indexexpr (fix #25339) (#25356) 2025-09-21 08:42:35 +03:00
Felipe Pena
23477fc77f
comptime: fix $compile_error on $match when used on return stmt (fix #25348) (#25358) 2025-09-21 08:34:05 +03:00
CreeperFace
bdfd0085bc
cgen: fix interface heap allocate pointing to same value (fix #25354) (#25359) 2025-09-21 08:28:21 +03:00
Delyan Angelov
8fa8354b23
v: support __global C.Name = i16(123) and @[c_extern] __global C.stdout &C.FILE declarations (in addition to @[c_extern] fn C.name()), to allow for more precise C API error checking (fix #25319) (#25331) 2025-09-20 17:44:20 +03:00
Delyan Angelov
93a136f3a5
ci: fix compilation of ved after d3cb48a with -autofree 2025-09-20 17:31:17 +03:00
Jorge Mireles
2e6d73d6dd
x.json2: let examples/news_fetcher.v use decoder2 (#25353) 2025-09-20 13:25:58 +03:00
kbkpbot
85ed3f22c3
gx: fix int to i32 (#25352) 2025-09-20 13:09:27 +03:00
kbkpbot
dddbacb196
vlib: fix new_int for tests too (#25351) 2025-09-19 16:54:58 +03:00
kbkpbot
7b07f27774
v.ast: fix type_size for hardcode map and array (preparing for new_int) (#25350) 2025-09-19 14:37:13 +03:00
kbkpbot
1361002adc
gg: change the Color APIs, that int to use i32 instead (#25349) 2025-09-19 14:33:54 +03:00
blackshirt
5fd2278df4
x.crypto.chacha20: fix internal counter handling (#25334) 2025-09-19 14:25:24 +03:00
Delyan Angelov
0e68a92838
ci: run v fmt -w cmd/tools/changelog_helper.v 2025-09-19 13:44:06 +03:00
Alexander Medvednikov
420c16eb4b V 0.4.12 0.4.12 2025-09-19 13:36:29 +03:00
Delyan Angelov
7cff857dea
ci: skip flag_autofree_test.v on the sanitize-address-gcc job too 2025-09-19 07:28:17 +03:00
Delyan Angelov
70ed690964
v.help: update description of the -message-limit option 2025-09-19 07:24:02 +03:00
kbkpbot
b93dfa1a03
v: cleanup - replace complex 64bit CPU comptime ident with && x64 (#25343) 2025-09-18 17:18:14 +03:00
Delyan Angelov
a3628cb177
ci: skip flag_autofree_test.v on the sanitize-memory-gcc and tests-sanitize-address-clang jobs 2025-09-18 17:08:06 +03:00
Eliyaan (Nopana)
fa79c6f64c
gg: allow changing gg.Rect fields (implement #25332) (#25341) 2025-09-18 16:51:41 +03:00
kbkpbot
f2abf79f71
parser: detect wrong multi-dim arr declare (fix #25333) (#25338) 2025-09-18 16:35:13 +03:00
Jorge Mireles
c088cbdbd5
toml: decode date arrays with extra spaces that are not date-time separators (fix #25279) (#25335) 2025-09-18 11:48:22 +03:00
Eliyaan (Nopana)
b2a985170d
vreduce: change -e option name to -m, to avoid a conflict with V's -e option name (#25340) 2025-09-18 11:44:46 +03:00
CreeperFace
23602c149e
autofree,flag: fix double free in FlagParser free (#25336) 2025-09-18 11:14:44 +03:00
kbkpbot
16c9bf2f2d
vlib,tests: fix array's field initialisation with signed integers (preparation for future 64bit int) (#25324) 2025-09-17 20:26:13 +03:00
Jorge Mireles
7e9fbaf4f5
time: make parse_rfc3339 accept t, and space, in addition to T, reject incomplete date-times and such with no timezone (fix #25272) (#25316) 2025-09-17 13:24:35 +03:00
Delyan Angelov
563987c450
cgen: restore old behaviour for struct Name{field &C.FILE};i:=Name{};unsafe{i.free()} (fix #25325) (#25327) 2025-09-17 13:22:50 +03:00
kbkpbot
14ef765151
checker: allow bool int i32 to be used interchangeably for C functions (#25317) 2025-09-16 20:39:28 +03:00
Felipe Pena
97edd610b0
v: implement comptime regular func params traversing (support $if T is $function { $for param in T.params {) (#25322) 2025-09-16 20:37:15 +03:00
blackshirt
ace3eb2ddb
x.crypto.chacha20: adds some missing bits into stream reset (#25321) 2025-09-16 15:04:54 +03:00
Felipe Pena
95e1b7c14c
cgen,checker: fix option generic passing to T param (fix #25267) (fix #24466) (partial fix for #25227) (#25292) 2025-09-16 15:01:31 +03:00
Delyan Angelov
eed68275fa
tools,scanner: make v scan file.v output all valid tokens *before* a syntax error 2025-09-16 14:20:43 +03:00
CreeperFace
0dbbed7bde
cgen,autofree: fix method chaining generating invalid c code (fix #9094) (#25315) 2025-09-16 08:14:41 +03:00
kbkpbot
d2174e47a5
v.gen.js: simplify comptime if; catch up with cgen (fix #25295) (#25313) 2025-09-15 19:24:25 +03:00
blackshirt
89a24958a1
x.crypto.chacha20: improves the internals of chacha20, add a bench (#25311) 2025-09-15 19:20:43 +03:00
Delyan Angelov
5d98162960
builtin,cgen: fix i64 enum as a map key, when the enum values are too small (fix #25294) (#25310) 2025-09-15 19:11:07 +03:00
CreeperFace
373e5abb47
markused: fix marking of mutable generic method calls (fix #25312) (#25314) 2025-09-15 19:08:53 +03:00
kbkpbot
fa49b769e1
checker,gen: introduce if match branch's id (#25308) weekly.2025.38 2025-09-15 10:07:59 +03:00
Jorge Mireles
38ebb3fbbb
examples: fix rune casting from u32 in rune.v (#25307) 2025-09-15 01:22:52 +03:00
Eliyaan (Nopana)
5bad20dbe5
native: begin array support, a := []Type{len: x, cap: y} and a[i] read/write (#25299) 2025-09-15 01:22:07 +03:00
Delyan Angelov
9f666ad117
v.util: fix handling of "start \u005c${...} end" in cgen (fix #25304) (#25306) 2025-09-15 01:18:40 +03:00
Swastik Baranwal
0e4078f27d
scanner: uncomment working rune test (#25305) 2025-09-14 19:36:28 +03:00
kbkpbot
1000ada582
cgen,parser,markused: add export const support (fix #25300) (#25303) 2025-09-14 12:54:13 +03:00
Delyan Angelov
a2b4f08436
tools: cleanup vtest-all.v, using option values instead of comparison to <nothing>
Also allow for passing `rmfile: ['hw.linux', 'hw.linux.o']`
2025-09-14 09:21:08 +03:00
kbkpbot
e104a5f571
checker: disallow duplicate export names (fix #25301) (#25302) 2025-09-14 06:59:56 +03:00