Commit graph

1128 commits

Author SHA1 Message Date
Delyan Angelov
db61723206
examples: fix notices for pendulum-simulation, simplify --workers option handling, fix assertions for v test examples/pendulum-simulation 2024-01-29 04:37:46 +02:00
Delyan Angelov
77b8097f51
examples: cleanup the glsl includes in the sokol examples 2024-01-29 03:55:09 +02:00
Delyan Angelov
4f7476eaa3
examples: cleanup compiler notices for all sokol examples 2024-01-29 03:42:47 +02:00
Delyan Angelov
49aa602fe5
examples: cleanup examples/fizz_buzz.v 2024-01-27 19:19:20 +02:00
Delyan Angelov
a17b54527a
examples: allow for ./v run examples/xvweb/todo, without needing to first change the current folder to examples/xvweb/ 2024-01-25 21:46:12 +02:00
Casper Küthe
d88ca11a4c
picoev, x.vweb: small fixes and backport changes from vweb (#20584) 2024-01-23 18:34:22 +02:00
Kim Shrier
2b6490060a
examples: add casts to the term.ui callback functions to satisfy stricter type checking with newer versions of clang (or older ones with -cc clang -cstrict) (#20624) 2024-01-23 09:36:10 +02:00
ScriptMaster
ea2d92d661
os: document os.ls (using readdir), add example (#20622) 2024-01-21 20:45:19 +02:00
Muhammad Saleh Solahudin
a1eb94bbee
examples: fix link for image flappy.png in examples/flappylearning/README.md (#20605) 2024-01-21 07:48:32 +02:00
Muhammad Saleh Solahudin
bf8b7f08ef
examples: fix typo (exteranl -> external) and tidy up list in examples/regex/readme.md (#20601) 2024-01-20 19:53:16 +02:00
Pierre Curto
45e13ea02a
datatypes,examples: fix typos, and silence notice in the quadtree example (#20577) 2024-01-18 15:31:42 +02:00
Hitalo Souza
cb224076ec
examples: add examples/wasm/change_color_by_id/ (#20519) 2024-01-14 13:34:23 +02:00
Oli Barnett
fe669f8ce1
examples: fix "call v from ruby" example for Windows and Mac (#20487) 2024-01-12 15:59:09 +02:00
kbkpbot
fd269cad87
cgen, dl: add windows dll support, fix (#20447) (#20459) 2024-01-10 10:59:52 +02:00
Delyan Angelov
51e19dd54e
examples: fix gg: 0 notice for bounce.v 2024-01-08 04:30:16 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
shove
cc250baf3c
cgen: fix missing line breaks in generated code with closure IIFE, when compiled with '-g' (fix #20306) (#20316) 2023-12-31 07:04:41 +02:00
Delyan Angelov
923b410d4d
x.vweb: fix $vweb.html() integration in cgen for the newer x.vweb module (fix #20204) 2023-12-30 23:05:07 +02:00
Delyan Angelov
c4180d4b06
examples: shrink examples/gg/minimal.v even more 2023-12-29 16:46:18 +02:00
Delyan Angelov
0b4a93c1c1
examples: add an even smaller gg usage example, demonstrating how to always show the builtin fps counter, and how to avoid importing gx 2023-12-29 16:31:01 +02:00
Yuyi_Hao
680b0d463a
example: add a path finding algorithm visualizer using gg (#20060) 2023-12-28 23:19:28 +02:00
el-gringo
5be5cd9be1
websocket: enable using an already existing connection (from vweb or another http server) (#20103) 2023-12-19 14:16:07 +02:00
Swastik Baranwal
25c900f439
examples: minor refactor in the xvweb example (#20206) 2023-12-17 20:51:32 +02:00
Larpon
6d0d82dbb9
gg: fix overlapping slices in draw_slice_filled() (#20182) 2023-12-15 19:31:33 +02:00
Casper Küthe
70c575a9f2
examples: add TODO app example with x.vweb (#20175) 2023-12-14 20:20:16 +02:00
yuyi
5d99138cb2
checker: fix generic fn with generic fn call returning generic map (fix #20106) (#20150) 2023-12-12 11:41:58 +02:00
Delyan Angelov
2de9a24f2f
examples: increase the resolution of the generated image in examples/wasm/mandelbrot 2023-12-11 16:54:09 +02:00
Hitalo Souza
1b3c4f596e
examples: serve the wasm mandelbrot project using a v web server (#19937) 2023-12-11 14:10:06 +02:00
Delyan Angelov
131052c1ed
ci: rename duplicate example files, to make them unique, and reduce false positives in v build-examples on windows. 2023-12-11 13:40:57 +02:00
Casper Küthe
08189d649c
vweb2 (#19997) 2023-12-09 08:07:51 +03:00
Delyan Angelov
4687f8c1f7
examples: add an example of a simple process wrapper, built around an interactive python process, in wrapping_interactive_python.v 2023-12-08 14:39:08 +02:00
Larpon
64e8139d46
examples, x: fix notice about assigning 0 to a reference field (#20115) 2023-12-07 22:34:53 +02:00
Delyan Angelov
4b3109237d
builtin: deprecate string.last_index/1 for string.index_last/1, and string.last_index_u8/1 for string.index_u8_last/1 (#20095) 2023-12-05 13:56:59 +02:00
Delyan Angelov
c88f0d382c
examples: show how to turn on CORS in a vweb server app 2023-11-30 13:50:07 +02:00
Alexander Medvednikov
51bb2768ca vweb: .html('custom_template.html') 2023-11-26 03:01:48 +03:00
Delyan Angelov
5e37798560
ci: run VAUTOFIX=1 ./v check-md -hide-warnings . to fix doc failures 2023-11-25 09:34:46 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Turiiya
c80515465e
docs: update deprecated blockquote highlight syntax (#19974) 2023-11-23 13:33:33 +02:00
Delyan Angelov
f7b9e4eafd
vfmt: automate transition from the old [attribute] to the new @[attribute] syntax (#19912) 2023-11-17 17:43:29 +02:00
Turiiya
b347f546f2
all: update remaining deprecated attr syntax (#19908) 2023-11-17 12:03:51 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
shove
e92d210bd0
checker: add missing check when assignment statement lvalue is ParExpr (fix #19819) (#19830) 2023-11-11 13:27:00 +03:00
Casper Küthe
a176021afe
picoev: improve raw mode, change fn signature for the raw_cb field to fn (mut Picoev, int) (#19817) 2023-11-11 09:36:52 +02:00
Delyan Angelov
d86b3689d9
tests: workaround name conflict, causing false positives with msvc on windows, when both tests were executed at the same time (locked executable) 2023-11-07 14:41:25 +02:00
Delyan Angelov
50c22b5a12
os: implement os.fd_is_pending/1, os.Process.pipe_read/1, os.Process.is_pending/1 (#19787) 2023-11-07 13:47:25 +02:00
Turiiya
e34e06350a
pref: fix unintended file extensions in default output names, allow for v run file.c.v (#19745) 2023-11-03 19:51:44 +02:00
Delyan Angelov
03709169e2
ci: mark more tests as flaky 2023-11-03 07:12:33 +02:00
Joe C
a63f3e6f77
coroutines: use photon work_pool when nr_jobs > 0, and use photon libc fn wrappers (#19711) 2023-10-31 20:12:52 +03:00
Larpon
775b25e11b
sokol: update to match uptream at 9e0f1b4 (#19687) 2023-10-28 17:15:46 +03:00
Larpon
95509cf8fb
all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00