15865 Commits

Author SHA1 Message Date
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
yuyi
61ffbe1a8c
parser, checker, cgen: fix fn return alias of fixed array (#19116) 2023-08-11 20:57:05 +03:00
Delyan Angelov
5a0d9e7d67
.gitignore: ignore thirdparty/tcc/ and thirdparty/sqlite/ (fix #18102 i.e. slowness of V from v_windows.zip, after v up on windows, because tcc was removed) 2023-08-11 18:46:44 +03:00
yuyi
4355be8ef2
checker, cgen: fix the comparison of alias and non-alias values (#19112) 2023-08-11 15:07:16 +03:00
shove
8714119590
cgen: fix spawn call fn struct field(fix #18862) (#19096) 2023-08-11 13:58:26 +03:00
yuyi
ec45e4736a
parser: fix struct field fn type with default value (fix #19099) (#19106) 2023-08-11 13:50:54 +03:00
Wertzui123
387f717004
websocket: initialize function pointers with nil (#19105) 2023-08-11 13:49:29 +03:00
yuyi
741f5541ff
benchmark: minor cleanup in total_message() (#19102) 2023-08-11 12:12:37 +03:00
Delyan Angelov
595200f7dc
ci: cleanup more the contents of the generated v_linux.zip, v_macos.zip, and v_windows.zip, use -skip-unused 2023-08-11 12:09:01 +03:00
Delyan Angelov
e3b0dfbfdd
term.termios: allow again for v -prod -os wasm32_emscripten examples/2048/, by using an eprintln, instead of a $compile_warn 2023-08-11 11:05:26 +03:00
Delyan Angelov
715c0b6185
gg: expand the -d show_fps background, so fps>100 will not overflow it 2023-08-11 10:33:05 +03:00
shove
65a493d023
v.util: fix a wrong path analysis when parsing 'mod_name' (fix #18970) (#19090) 2023-08-10 05:42:59 +03:00