Commit graph

2243 commits

Author SHA1 Message Date
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
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
Alexander Medvednikov
951d30405f builtin: string.index_after() ?int 2025-03-12 23:03:25 +03:00
Delyan Angelov
acfa088b60
v.build_constraint: support comments too, for example linux&&gcc // some comment 2025-03-12 14:21:57 +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
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
larpon
81afd8f502
docs, cmd: fix broken docs source links regression in vdoc (#23889) 2025-03-09 16:31:14 +02:00
Delyan Angelov
615e74d341
vlib: reduce false positive matches for /// , cleanup commented code 2025-03-08 17:47:13 +02:00
kbkpbot
698018cd3f
vrepl: fix slow response for empty line input (after just pressing 'enter/return') (fix #23856) (#23858) 2025-03-05 00:01:36 +02:00
Delyan Angelov
cec123a0df
math,examples: add examples/sokol/sounds/simple_sin_tone_using_audio_push.v, cleanup math 2025-03-04 12:19:27 +02:00
Delyan Angelov
1b136e213a
ci: fix vweb_run_at.run.out and vweb_run_at.skip_unused.run.out, ensure stable ordering of stdout/stderr for v run file.v, in case of compiling a program with warnings/notices. 2025-03-02 18:32:23 +02:00
Delyan Angelov
cb3b980379
tools: make v install avoid using --filter=blob:none --shallow-submodules --also-filter-submodules on windows (#23840) 2025-03-01 19:23:54 +02:00
Alexander Medvednikov
f83af8a1a2 veb: deprecate vweb (part 1); update the blog tutorial 2025-03-01 03:34:16 +03:00
Delyan Angelov
9062d76bb4
tools: support module no_main based examples in v should-compile-all 2025-02-22 14:22:22 +02:00
Delyan Angelov
5698a6ae79
ci: fix v build-examples failure on gcc-windows 2025-02-20 09:13:06 +02:00
Alexander Medvednikov
a045bb0132 all: use arguments() instead of os.args in some files 2025-02-20 03:07:30 +03:00
Delyan Angelov
dfacc3321d
tools: build examples, that start with module no_main as well 2025-02-19 17:19:50 +02:00
Delyan Angelov
01bee65f16
ci: fix github job names in cmd/tools/vtest-self.v 2025-02-17 22:36:07 +02:00
Delyan Angelov
4465c04dc7
ci: fix job names in cmd/tools/modules/testing/common.v as well 2025-02-17 22:34:07 +02:00
blackshirt
66e1d14bb4
crypto.ecdsa: migrate core routines for signing (and verifying), it now requires using OpenSSL 3 (#23705) 2025-02-17 18:49:32 +02:00
Delyan Angelov
9649af30e2
tools: improve v test by updating VTEST_REPORT_RUNNING_PERIOD_MS to 5 minutes by default, and adding stats for the currently compiling tests too 2025-02-17 11:43:29 +02:00
Delyan Angelov
55f482bb63
ci: update linux image runners from ubuntu-20.04 to ubuntu-24.04 (#23706) 2025-02-17 07:37:59 +02:00
Delyan Angelov
46447f1262
tools: move cmd/tools/vdoc/doc to cmd/tools/vdoc/document, so that it can be imported from other programs through -path, without conflicting with the top level doc/ folder in the main repo (#23733) 2025-02-15 23:12:57 +02:00
kbkpbot
f7841e125b
checker: check and error for invalid utf8 string literals (#23721) 2025-02-15 19:32:38 +02:00
Delyan Angelov
49fb7ca501
make: show instructions about installing a C compiler, when the bootstrap compilation with cc fails (#23718) 2025-02-14 08:13:39 +02:00
Eliyaan (Nopana)
81a2e7a772
tools: fix warnings in v reduce (#23709) 2025-02-13 21:32:01 +02:00
Delyan Angelov
c58563ce5a
tools: improve v reduce output; bump version, warn on failed string_reproduces/3, but continue to run 2025-02-12 14:52:58 +02:00
Eliyaan (Nopana)
6ed56eef64
tools: improve the v reduce parser for functions, and add more loops to reduce more (#23694) 2025-02-12 10:40:51 +02:00
Delyan Angelov
424c453610
fix warning when compiling cmd/tools/vast/vast.v, add description of -s to ast.txt too 2025-02-05 15:59:55 +02:00
Delyan Angelov
94a97f6173
tools: implement an -s option for v ast, to skip all nodes with default values like [], {}, 0, false; with it v ast -pts examples/hello_world.v | wc -l is 36 lines 2025-02-05 15:53:56 +02:00
Delyan Angelov
627cb37cca
tools: describe a more direct way to use a v run shebang in cmd/tools/vrun 2025-02-04 15:04:30 +02:00
Delyan Angelov
7ea5b4a020
tools: add a small utility script cmd/tools/vrun, to make it easier to use .vsh scripts on systems, with /usr/bin/env still not supporting -S 2025-02-04 14:54:38 +02:00
Delyan Angelov
99a587af95
tools: let v test . show the running _test.v files each minute (set by VTEST_REPORT_RUNNING_PERIOD_MS); diagnose stuck windows gcc CI jobs (#23649) 2025-02-04 10:33:51 +02:00
Delyan Angelov
319eb83525
log: add log.use_stdout(), use it to silence the transition note for the most commonly used V tools/examples (#23642) 2025-02-03 12:37:57 +02:00
Eliyaan (Nopana)
7e157caed7
tools: add v reduce program.v, in order to make smaller reproductions (rpdc.v files), before filing cgen bugs (#23636) 2025-02-03 12:28:47 +02:00
Delyan Angelov
e68fab82c4
ci: fix CI=name ./v -d network test cmd/tools/vpm/ ; update the image runners in vpm_ci.yml (#23628) 2025-02-02 10:45:42 +02:00
Delyan Angelov
b8c7892f5e
v.util: show unknown command suggestions, for more misspelled variants, like v sefl; make util.new_suggestion calls parametrizable 2025-02-01 13:41:38 +02:00
Felipe Pena
78effd0c09
type_resolver: refactor resolve_comptime_type (#23616) 2025-01-31 08:51:20 +02:00
Delyan Angelov
ceaa5d2315
tools: restore previous behavior of v download (show progress on stdout, when it is connected to an interactive terminal; hide log stdout->stderr notice) 2025-01-30 01:48:36 +02:00
Delyan Angelov
6fa3a4ebee
tools: make v check-md . print the actual length of lines too, when reporting errors/warnings about them (#23606) 2025-01-29 10:19:01 +02:00
Laurent Cheylus
5bfea9d3e8
tools: fix v doctor output on OpenBSD: get gcc version from egcc; do not run ldd to get the glibc version (fix #23576) (#23578) 2025-01-26 08:01:32 +02:00
Felipe Pena
45b79dfb97
vet: add an -I option to notice fns, with the potential to be inlined (#23534) 2025-01-22 15:58:02 +02:00
Alexander Medvednikov
f9d3bd39a6 parser: make old [attr] syntax an error 2025-01-19 23:13:04 +03:00
Delyan Angelov
c94e1e05f6
ci: fix failure of the docker-ubuntu-musl job (keep vlib/vweb/vweb_app_test.v in the skip_files) 2025-01-19 13:01:06 +02:00
Alexander Medvednikov
e5f70278ea x.vweb: remove the entire module (it's now veb) 2025-01-19 05:43:03 +03:00
blackshirt
c2b7dbf9b4
crypto.ecdsa: improve safety checking, unify signing (and verifying) api to accept options (#23463) 2025-01-18 20:07:19 +02:00
Delyan Angelov
40b574b409
tools,v.doc: move vlib/v/doc/ to cmd/tools/vdoc/doc/ to reduce the runtime of the CI runs, when v doc is changed (#23483) 2025-01-16 14:40:28 +02:00
Delyan Angelov
e5153e7be7
tools,v.doc: let https://modules.vlang.io use vlib/README.md as the index page. (#23480) 2025-01-16 03:15:16 +02:00
syrmel
b1d2593c1b
examples: add a solution to the "1 Billion Row Challenge" (#23458) 2025-01-15 09:09:11 +02:00