15926 Commits

Author SHA1 Message Date
Alexander Medvednikov
aef83bae62 all: @[attr] syntax 2023-08-18 18:29:15 +03:00
yuyi
f4eede8d23
cgen: fix using custom enum static from_string() (#19171) 2023-08-18 18:12:34 +03:00
Delyan Angelov
56644b2b52
tools: add SKIP_TESTS env variable support for parser_speed.v and scanner_speed.v 2023-08-18 09:19:27 +03:00
Delyan Angelov
68d962f6b3
v: make all .trace() methods generic on the type of the passed expression
That is more efficient, than always converting the expression to a string
at the callsites, since most of the times the file selector will not match,
and in those cases, the expression will not have to be converted to a string at all.
2023-08-18 09:01:29 +03:00
Swastik Baranwal
c862394358
parser: disallow an empty chan type (#19167) 2023-08-17 23:11:02 +03:00
Turiiya
4908ec57e2
checker: disallow taking the address of consts with int literal values (#19160) 2023-08-17 22:00:14 +03:00
yuyi
757d26cd89
checker: check enum static from_string arguments errors (#19163) 2023-08-17 21:49:45 +03:00
squidink7
f4d2ec70a9
wasm: add a -wasm-stack-top flag to compiler (#19157) 2023-08-17 20:39:40 +03:00
yuyi
c5e1c8ee98
ast, checker, cgen: implement enum static from_string(name string) (#19156) 2023-08-17 16:53:54 +03:00
Delyan Angelov
9e0c2943e9
os: fix os.execute('x 2> stderr.txt') on windows (#19155) 2023-08-17 10:39:31 +03:00
Turiiya
6df8ca212b
arrays: fix examples for find_first and find_last (#19153) 2023-08-17 07:15:37 +03:00
yuyi
d0e605750b
checker: fix assigning array slice in struct init (#19150) 2023-08-16 13:33:58 +03:00
shove
06e2bc5df2
checker: fix an inappropriate variable name (#19148) 2023-08-16 13:26:13 +03:00
yuyi
815439a381
checker: fix assigning an array slice (fix #19120) (#19137) weekly.2023.33 2023-08-15 20:37:51 +03:00
Delyan Angelov
717076bef6 vlib: use sync.new_mutex() consistently for initialising all vlib structures containing mutex fields 2023-08-15 15:19:27 +03:00
Delyan Angelov
2643970945 context.onecontext: fix sync.Mutex initialisation in onecontext.v 2023-08-15 15:14:25 +03:00
Wertzui123
64cbbea074
net.websocket: fix typo in docs (ws -> wss) (#19143) 2023-08-15 13:48:57 +03:00
Irving M
8e8bd857b0
vweb: add application/wasm to mime_types, for .wasm files (#19142) 2023-08-15 12:50:07 +03:00
Turiiya
1bed0b5e68
toml: add generic automatic decoding and encoding of simple structs, when they don't implement custom methods (#17970) 2023-08-15 12:06:57 +03:00
Delyan Angelov
d9ad6be5b0
docs: change vself.v -> vup.v at line 44 in packaging_v_for_distributions.md (thanks @le0developer) 2023-08-15 09:28:58 +03:00
Delyan Angelov
0d61edaff7
docs: add doc/packaging_v_for_distributions.md (#19139) 2023-08-14 23:44:16 +03:00
Delyan Angelov
8ae962b4d5
ci,tests: fix compilation of vlib/v/tests/bench/gcboehm/GC_bench.v, add a CI task for checking that .v files inside vlib/v/tests/bench continue to compile 2023-08-14 18:53:51 +03:00
Delyan Angelov
e446eb5953
tools: add support for .skip_should_compile_all files to ./v should-compile-all . 2023-08-14 18:52:30 +03:00
Delyan Angelov
679cbf1490
math.big: restore gdc_euclid, use it for smaller numbers, fix bench_euclid.v . 2023-08-14 18:37:48 +03:00
Delyan Angelov
d6db4f90ea
tests: fix compilation of bench_compare_tokens.v, add from_string from tinyv 2023-08-14 17:27:12 +03:00
jacksonmowry
d285ff08f0
db.mysql: add the exec family of methods (#19132) 2023-08-14 16:18:01 +03:00
Delyan Angelov
cdaabc120d
tools: quick bugfix to vgit.v, after the previous commit message, that included a hash; TODO: a more robust check 2023-08-14 15:47:46 +03:00
Delyan Angelov
a93ef6ea67
tools: make v run cmd/tools/oldv.v 5b7a1e8 -c "./v version" faster (5b7a1e8 is the oldest supported commit from 2019-06-29) 2023-08-14 14:32:13 +03:00
Delyan Angelov
eef77e3cc1
tools: make parser_speed.v more robust (now find . -name "*.v" | xargs v run cmd/tools/measure/parser_speed.v passes) 2023-08-14 12:35:34 +03:00
Turiiya
2fec2fad53
vdoc: make minor improvements to scrollspy and styles (#19128) 2023-08-14 10:14:36 +03:00
Delyan Angelov
85de1486da
ci,parser: fix syntax error 2023-08-14 10:05:31 +03:00
Alexander Medvednikov
83067667c7 checker: improve -line-info 2023-08-14 09:37:46 +03:00
shove
58d4bd67b2
checker, fmt: fix static methods not recognized when imported from a module(fix #19127) (#19133) 2023-08-14 06:29:52 +03:00
yuyi
d72229ff2c
scanner: error early on an unsupported escape sequence in a string, like \_ (fix #19131) (#19134) 2023-08-14 06:21:51 +03:00
Etienne Girondel
492e918fdb
builder,pref: allow thirdparty objects compilation with CPP compiler (#19124) 2023-08-13 20:30:28 +03:00
Delyan Angelov
9543123dc5
arrays: add a generic arrays.append/2, which unlike arrays.concat(a, ...b), does not require a spread for the second argument 2023-08-13 20:04:44 +03:00
Delyan Angelov
be1270540b
gg: use html5_canvas_name as the name of the canvas in gg.js.v too, similarly to gg.c.v 2023-08-13 17:45:19 +03:00
Delyan Angelov
33965bc29b
examples/2048: remove the emscripten specific code from examples/2048/2048.v (moved to gg.c.v) 2023-08-13 17:31:29 +03:00
Delyan Angelov
ca0f589310
examples/tetris: add instructions, on how to compile the game through Emscripten and v -os wasm32_emscripten 2023-08-13 17:28:27 +03:00
Delyan Angelov
59f831059c
ci: fix binary_artifact.yml weekly.2023.32.2 2023-08-13 16:03:50 +03:00
shove
11a8a46ade
tests: cleanup test cases (#19104) weekly.2023.32.1 2023-08-13 13:36:08 +03:00
shove
a711e17f41
cgen: fix alias of array method call(fix #19125) (#19129) 2023-08-13 13:24:56 +03:00
Turiiya
f7187a7816
ci: extend vinix ci to include utils (#19123)
* ci: extend vinix ci to include utils

* rename vinix_kernel_ci to vinix_ci
2023-08-13 13:20:11 +03:00
Delyan Angelov
88d3326a60
ci: fix v check-md examples/2048/ 2023-08-13 13:04:00 +03:00
Delyan Angelov
dad93f8fab
examples/2048: add instructions, on how to compile the game through Emscripten and v -os wasm32_emscripten 2023-08-13 11:13:17 +03:00
Delyan Angelov
bfaa3debcd
cgen: fix bootstrapping on older macOS Catalina 2023-08-12 12:31:01 +03:00
yuyi
e136941655
scanner: fix string interpolation with nested string interpolation in inner quotes p. 3 (#19121) 2023-08-12 11:45:08 +03:00
Felipe Pena
aca6f544ff
cgen: fix shared map ptr type default value (#19113) 2023-08-12 11:43:47 +03:00
yuyi
89bd575ec0
ast, parser, cgen: fix generic struct init (Stack[&Person]{}) (fix #19119) (#19122) 2023-08-12 11:43:20 +03:00
Alexander Medvednikov
3c26bfff55 checker: "v -line-info" for a quick run to fetch info about objects on one line 2023-08-11 21:08:28 +03:00