18424 Commits

Author SHA1 Message Date
Delyan Angelov
6488041a74
tests: split vlib/v/tests/ into several subfolders, to mitigate github limits for number of files in a folder (#22158) 2024-09-04 09:38:09 +03:00
yuyi
99bfb5b0fc
builtin: cleanup comments of struct string (#22159) 2024-09-04 07:31:50 +03:00
Alexander Medvednikov
0090170b26 all: implements keyword for optional explicit interface implementations 2024-09-04 01:24:06 +03:00
larpon
04a3ecf617
flag: add support for parsing flag.FlagParser style flags in to_struct[T] (#22152) 2024-09-03 16:36:56 +03:00
Laurent Cheylus
f61a4f17a5
v.builder: fix errors in cstrict mode on OpenBSD with clang (#22154) 2024-09-03 13:11:20 +03:00
Kim Shrier
0a61b4a076
docs: fix minor typos in the memory management section (#22151) 2024-09-03 07:51:03 +03:00
Delyan Angelov
b898987ece
tools: add diagnostic in v repeat for invalid combinations of -r, -i and -a flags 2024-09-03 07:48:18 +03:00
Delyan Angelov
da228e93df
tools: implement a -repeats/-R N option to v repeat, to eliminate another need for platform dependent scripting weekly.2024.36 2024-09-02 20:38:15 +03:00
Delyan Angelov
8f957092cb
cgen: remove leftout println call 2024-09-02 11:41:59 +03:00
Felipe Pena
07e0370ece
cgen: fix array fixed initialization from map indexing (fix #22133) (#22149) 2024-09-02 11:38:43 +03:00
Delyan Angelov
ace4e93576
tests: move all slow vlib/builtin/map_issue_*_test.v files to vlib/v/slow_tests/, to speed up v test vlib/builtin 2024-09-02 07:56:20 +03:00
Delyan Angelov
dd967ca495
tests: rename vlib/v/tests/map_test.v to map_issue_16285_test.v 2024-09-02 07:54:44 +03:00
Delyan Angelov
e684c1d329
builtin: fix bug in .clear() caused by sizeof(u32) being 4, not 2 (fix #22148) 2024-09-02 07:38:51 +03:00
Delyan Angelov
33f74cf126
builtin: fix m.clear() having different observable behavior to m = {}, after multiple iterations of setting keys and clearing (fix #22145) (#22146) 2024-09-01 20:09:53 +03:00
Delyan Angelov
fc31b44399
builtin: fix incomplete m.clear(), allowing the map to have a duplicated entry for its first key (fix #22143) (#22144) 2024-09-01 17:27:28 +03:00
Delyan Angelov
673ac0a411
builtin: fix map.clear() not resetting map's metas and keys blocks (fix #22139) (#22140) 2024-09-01 12:02:03 +03:00
Delyan Angelov
d130939ad6
docs: improve documentation for if expressions
* add more examples
  * add a comparison with C's ternary operator
  * add an entry in the contents section
2024-09-01 09:04:30 +03:00
Delyan Angelov
8a9abbb14d
cgen, scanner: reduce allocations for the most common cases (#22142) 2024-09-01 07:56:08 +03:00
Delyan Angelov
217b191492
builtin: support -d builtin_print_use_fprintf, make the C fn declarations stricter (#22137) 2024-08-31 16:57:51 +03:00
Delyan Angelov
515b106f76
builder: allow for v -dump-defines - -check cmd/v, which is faster, because it can skip code generation 2024-08-31 11:17:46 +03:00
Carlos Esquerdo Bernat
8ebc288972
vweb: mark vweb as deprecated in its README, recommending using veb instead (#22131) weekly.2024.35 2024-08-30 14:32:44 +03:00
Carlos Esquerdo Bernat
d89e6df2a1
veb: extract constants into consts.v (#22132) 2024-08-30 13:53:31 +03:00
Delyan Angelov
01fd719116
examples: add examples/veb/websocket, to show how to use http connection upgrade to a websocket, from a veb route (#22128) 2024-08-29 16:34:06 +03:00
yuyi
1fbe2a1955
cgen: fix shared object method call (fix #22121) (#22125) 2024-08-28 11:24:34 +03:00
Laurent Cheylus
84135d733a
tests: skip an assertion in os_stat_test.v on OpenBSD (fix #22123) (#22124) 2024-08-28 11:23:08 +03:00
Delyan Angelov
05c7aa2cb2
ci: restore c2v_ci.yml too (#22120) 2024-08-27 23:13:56 +03:00
yuyi
1085f4587a
ci: restore v_apps_and_modules_compile_ci.yml (#22118) 2024-08-27 12:41:54 +03:00
Felipe Pena
426205ec19
checker: fix generic lambda type binding resolution (fix #22109) (#22115) 2024-08-26 12:39:03 +03:00
Martin Skou
caa0c46484
docs: add a copy code function (top/right copy icon) on doc examples (#22114) 2024-08-25 17:35:07 +03:00
Martin Skou
62c69e8a31
docs: improve formatting in time.parse_format description (#22113) 2024-08-25 08:05:13 +03:00
yuyi
d1b20bec79
tests: fix coutput_test.v on Windows and tcc compiler (#22111) 2024-08-25 00:23:39 +03:00
encyclopaedia
a31cd37b66
vlib: add an arrays.parallel module, containing parallel.run/3 and parallel.amap/3 implementations (#22090) 2024-08-24 17:57:06 +03:00
yuyi
481b842fb6
tools: fix vtest-self.v on Windows and tcc compiler (#22110) 2024-08-24 17:13:59 +03:00
Delyan Angelov
27ef543983
examples: add examples/gg/draw_unicode_text_with_gg.v, for easy comparison of how different fonts and unicode texts will look, when rendered by gg 2024-08-24 09:06:53 +03:00
Swastik Baranwal
4b799fd81d
checker: disallow using a preexisting const name in a for loop, as either a key or value ident (#22108) 2024-08-24 02:16:28 +03:00
Delyan Angelov
19c567047e
ast: improve Type and TypeFlag related operations (#22107) 2024-08-23 20:58:57 +03:00
Delyan Angelov
637291da16
cgen: return early from autofree related functions, when -autofree is not used 2024-08-23 20:32:12 +03:00
Felipe Pena
484cd83477
v: fix generic lambda type binding and resolution (#22083) 2024-08-23 19:01:15 +03:00
yuyi
16b1ff814e
util: cleanup check_module_is_installed(), do not automatically update already installed modules, just because their v.mod is present (#22106) 2024-08-23 18:46:25 +03:00
Alexander Medvednikov
4e7f94272f
roadmap: add shared compiled libs 2024-08-23 15:34:54 +03:00
Martin Skou
f435e9aaf3
time: update parse_format comment description in parse.c.v (#22104) 2024-08-23 14:33:48 +03:00
Delyan Angelov
2bf59b14d1
ast: cache ident lookups for consts in ast Expr str (#22101) 2024-08-23 13:40:38 +03:00
yuyi
c788c08d36
parser: cleanup using token.is_next_to() (#22102) 2024-08-23 12:32:27 +03:00
Delyan Angelov
1777bcc69c
tools: improve the help screen for v repeat -h, add detailed example for using -t and -p to produce a matrix of 24 permutation runs 2024-08-23 12:22:48 +03:00
Martin Skou
7baee04727
docs: add an example on how to use Options/Results, when returning multiple values from a function (#22099) 2024-08-23 10:16:31 +03:00
Delyan Angelov
89d0743fd6
tools: improve the output of v repeat command, by coloring the faster/slower label 2024-08-23 09:59:35 +03:00
yuyi
971feb8f89
builtin: cleanup u8.repeat() and rune.repeat() (#22100) 2024-08-23 08:24:35 +03:00
Delyan Angelov
e3ceb5881a
parser,ast: protect against more overflows/panics, by forcing early returns on deeply nested expressions and scopes (#22098) 2024-08-23 03:39:12 +03:00
Felipe Pena
d0ef4e31c0
cgen: fix auto free method for option map (fix #22081) (#22094) 2024-08-22 21:29:59 +03:00
Delyan Angelov
c4ba0d6863
ci: add step that verifies that -cc msvc -gc boehm continues to work on windows (boehm is not the default with msvc yet for some reason) 2024-08-22 20:26:45 +03:00