20129 Commits

Author SHA1 Message Date
Felipe Pena
cb4d16ff3a
fmt: fix comment handling on ending of struct decl (fix #23947) (#23948) 2025-03-17 16:32:29 +02:00
Delyan Angelov
5978cbcfbf
examples: add an asteroids game (it is currently < 400 lines of V, using gg) 2025-03-17 15:41:50 +02:00
Mr. Doge
21874f93dc
x.json2: fix "\\" scanner bug, disallow (ch < 0x20) unescaped control characters (#23954) 2025-03-16 13:38:40 +02:00
Felipe Pena
b2ff9d5d08
ast: fix the registration of fixed arrays, when size_expr is a const (fix #23946) (#23949) 2025-03-16 13:28:01 +02:00
Swastik Baranwal
e1ce57dd73
tests: add an edge test case, in which the array was initialised with an expression without commas, to enum_on_array_init_test.v (#23945) 2025-03-16 13:17:03 +02:00
Felipe Pena
1f10a65515
cgen: fix codegen for generic structinit and generic array return (fix #23916) (#23943) 2025-03-16 13:09:56 +02:00
Felipe Pena
e995d991f1
checker: disallow references to constants (fix #23935) (#23942) 2025-03-16 13:03:12 +02:00
Felipe Pena
725e25991d
parser: fix enum value parsing inside array initialization (fix #23937) (#23941) 2025-03-15 17:27:43 +02:00
kbkpbot
d16aa2547b
tools: add --check flag to v ast (#23938) 2025-03-15 11:54:07 +02:00
ChAoS_UnItY (Kyle Lin)
c69b125162
markused: fix markused behavior on struct field's default expression (fix #23909) (#23933) 2025-03-15 07:35:34 +02:00
Swastik Baranwal
a22a3f7760
checker: check if next() method infers generic type correctly (fix #23927) (#23932) 2025-03-14 19:47:52 +02:00
kbkpbot
e8c6922580
datatypes: optimize linkedlist (fix #23928) (#23934) 2025-03-14 19:47:13 +02:00
ChAoS_UnItY (Kyle Lin)
1ca7157b81
markused: fix markused behavior on array / map index getter / setter / slice (#23931) 2025-03-14 15:45:01 +02:00
Delyan Angelov
2c3e278d3e
v.builder: support -d trace_parsed_files 2025-03-14 10:14:06 +02:00
Delyan Angelov
37c3f6578c
v.util.version: centralise the use of @VCURRENTHASH, to minimise the vlang/vc diffs for each commit 2025-03-14 10:07:28 +02:00
Felipe Pena
dc222b6ca6
checker: add missing check for casting generic type to literal values (#23915) 2025-03-14 09:22:54 +02:00
Delyan Angelov
d6ac5b5caf
ci,vc: use the full V repo commit hash, when generating vlang/vc commit messages 2025-03-14 09:17:48 +02:00
Delyan Angelov
a826febf5e
v.builder: remove forgotten b.show_parsed_files/0 call 2025-03-14 08:39:29 +02:00
Delyan Angelov
e6f7c2ad6c
v.builder: extract Builder.show_parsed_files/0 to make it easier to debug import/parsing issues 2025-03-14 08:38:41 +02:00
Delyan Angelov
5dbb808ef0
tools: make v repeat -R 5 -r 10 "v run examples/hello_world.v" also show the time it took for all runs in each repeat 2025-03-14 08:17:43 +02:00
Delyan Angelov
23d4754f2c
tools: make v repeat failing_cmd show the error output *just once*, but also still measure the time it took to execute 2025-03-14 07:49:59 +02:00
Delyan Angelov
8c92e3d0c5
v.markused: improve stability (avoid runtime crash) when processing generic functions (partial fix for #23927) 2025-03-14 07:02:53 +02:00
Delyan Angelov
62ba811534
tests: cleanup warnings in the autofree code samples in vlib/v/slow_tests/valgrind/ (#23929) 2025-03-14 06:56:16 +02:00
Delyan Angelov
a80bc23314
tools: cleanup entries from the hardcoded skip_files list in common.v (used by v test, v test-self etc); use the new // vtest build: syntax to mark the tests instead (#23918) 2025-03-13 19:51:51 +02:00
ChAoS_UnItY (Kyle Lin)
9f3f1291e8
checker: fix signed integer literal overflow error, when most significant bit occupies signed bit (fix #23782) (#23919) 2025-03-13 17:29:44 +02:00
Felipe Pena
734fde89e8
checker: add fntype casting validations (#23872) 2025-03-13 16:38:12 +03:00
Alexander Medvednikov
e006b65944 parser: remove table dep for script main check 2025-03-13 16:01:45 +03:00
Delyan Angelov
17695801ea
gg: add is_key_down/1 helper method 2025-03-13 11:40:39 +02:00
blackshirt
2fd3b7e881
crypto.ecdsa: improve the performance of the .public_key method of PrivateKey (#23920) 2025-03-13 10:21:36 +02:00
Delyan Angelov
0321c3f544
Revert "math.bits: port changes from e66e996, so that -cstrict -cc gcc-11 passes for markdown as well"
This reverts commit 41a846a534dd582f061183463d2812cce29530e1.
2025-03-13 00:08:57 +02:00
Delyan Angelov
58e4e7bbdc
thirdparty: fix recompilation of markdown with -cc gcc-11 -prod -cstrict 2025-03-12 23:52:30 +02:00
Delyan Angelov
41a846a534
math.bits: port changes from e66e996, so that -cstrict -cc gcc-11 passes for markdown as well 2025-03-12 23:40:01 +02:00
Luke Miles
361309f660
docs: combine IDE plugins into one list in README.md (#23913) 2025-03-12 23:13:10 +02:00
Alexander Medvednikov
951d30405f builtin: string.index_after() ?int 2025-03-12 23:03:25 +03:00
Delyan Angelov
85973b9cca
v.builder,v.cflags: improve the cross compilation support for programs using libraries like raylib, that have specific linking order needs, by supporting -lraylib@START_LIBS 2025-03-12 21:58:28 +02:00
Delyan Angelov
d970a8fce2
v.build_constraint: support // vtest build: false and // vtest build: true too; add tests 2025-03-12 15:35:17 +02:00
Delyan Angelov
acfa088b60
v.build_constraint: support comments too, for example linux&&gcc // some comment 2025-03-12 14:21:57 +02:00
Felipe Pena
ad20a57139
checker, cgen: fix generic container init (fix #23910) (#23912) 2025-03-12 14:04:13 +02:00
Delyan Angelov
e32283fd1c
math: add remap/5, smoothstep/3 and smootherstep/3 implementations + tests 2025-03-12 08:53:27 +02:00
Delyan Angelov
35b1cff2d3
tools: support // vtest build: !do_not_test ?, // vtest build: !windows && tinyc to skip files during testing on specific platforms, without having to keep centralised skip lists (#23900) 2025-03-11 21:57:47 +02:00
Delyan Angelov
5439ff9cde
cgen: make sure to call the overriden pub fn (mut a []string) free() { method, NOT the generic fn (a &array) free() { one. (#23911) 2025-03-11 21:09:55 +02:00
Felipe Pena
2dc0911e8c
cgen: fix codegen for array of anon struct (fix #23896) (#23907) 2025-03-11 19:06:40 +02:00
Felipe Pena
4e87a1ba09
checker: add missing any type validation on assignment (fix #23905) (#23906) 2025-03-11 18:34:06 +02:00
⚡ Sigui
ae89466843
veb.assets: ✏️ fix typo in veb.assets error message (#23908) 2025-03-11 16:08:15 +02:00
Mike
a5affa5d99
crypto.aes: fix notices about order of operations (fix #23898) (#23902) 2025-03-11 14:22:48 +02:00
Delyan Angelov
fe618a500b
cgen: improve the stability of generated code for auto string methods 2025-03-11 13:28:04 +02:00
blackshirt
de54be058e
crypto.ecdsa: improves internal function of calc_digest_with_evpkey (#23901) 2025-03-11 11:27:14 +02:00
blackshirt
4cc6f2547f
crypto.ecda: improvement the performance of PrivateKey.new by avoiding match+assignments (#23899) 2025-03-11 04:04:19 +02:00
Hitalo Souza
f787e0317e
examples: add vanilla_http_server - a fast, multi-threaded, non-blocking, port and host reuse, thread-safe, epoll server (#23094) 2025-03-10 19:44:32 +02:00
blackshirt
6623ac21c7
crypto.ecdsa: update and cleanup the documentation (#23897) weekly.2025.11 2025-03-10 10:37:00 +02:00