v/examples
2025-07-06 15:05:22 +03:00
..
1brc 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
2048 examples: make the 2048 game update rate, independent from the frame rate as well 2025-03-09 09:18:52 +02:00
assets examples: add examples/assets/v.svg and examples/assets/v_16x16.svg 2024-10-31 11:56:17 +02:00
asteroids examples: remove the generic alias type overloaded operator workaround, after 29e60da 2025-03-18 09:27:56 +02:00
breakout gg,examples: use a timer to limit the rate of updates in breakout, instead of a separate thread, restore ability to run in a browser through emscripten 2025-03-09 08:45:21 +02:00
build_system build: add build system (#23853) 2025-04-15 20:04:58 +03:00
call_c_from_v 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
call_v_from_c 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
call_v_from_python 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
call_v_from_ruby 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
clock examples,os: add an os.asset module, use it to simplify code in examples/, by removing $if android { checks (#22281) 2024-09-22 16:04:05 +03:00
compiletime examples: add compiletime/d_compile_value.v (#21738) 2024-06-26 17:08:08 +03:00
concurrency vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
coroutines 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
cpu_features/SSE_and_MMX_Extensions examples: add a cpu_features/ folder, with several examples, using SSE and MMX assembly instructions (#22645) 2024-11-22 01:20:51 +02:00
database db: modify mysql/pg/sqlite interface for pool working (#24780) 2025-06-27 02:25:13 +03:00
dynamic_library_loader fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
dynamic_library_loading ci: remove the // vtest flaky: true tags from the remaining tests (#24379) 2025-06-19 20:16:49 +03:00
eventbus fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
fireworks examples,os: add an os.asset module, use it to simplify code in examples/, by removing $if android { checks (#22281) 2024-09-22 16:04:05 +03:00
flag fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
flappylearning examples: add a consistent background to flappylearning, shown when the height of the view is very high (on Android) 2024-09-23 13:30:22 +03:00
game_of_life fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
get_weather v: change old attr syntax mention to new one in comments too (#21860) 2024-07-14 09:39:37 +03:00
gg examples: cleanup memory.v (reduce it to 135 lines) 2025-06-03 11:17:13 +03:00
graphs fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
hot_reload examples: shorten the periodic output of examples/hot_reload/message.v 2025-03-08 14:02:35 +02:00
js_dom_cube ci: run VAUTOFIX=1 ./v check-md -hide-warnings . to fix doc failures 2023-11-25 09:34:46 +02:00
js_dom_draw ci: run VAUTOFIX=1 ./v check-md -hide-warnings . to fix doc failures 2023-11-25 09:34:46 +02:00
js_dom_draw_benchmark_chart all: replace fn name '@xxx' with 'xxx' (#22506) 2024-10-12 22:17:02 +03:00
linear_regression fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
macos_tray 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
native native: implement for-c and for-in range loops (#12155) 2021-11-30 11:49:30 +02:00
orm examples: remove unused import orm from orm_sql.v 2025-04-21 20:13:01 +03:00
password all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
pendulum-simulation 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
pico 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
process examples: cleanup process/execve.v (#21557) 2024-05-24 11:01:01 +03:00
quadtree_demo examples: remove the setting of font_path from drag_n_drop.v and quadtree_demo.v (make them portable to Android + setting the font does not matter, for their goal) 2024-09-22 20:58:17 +03:00
readline all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
regex examples: fix v -N examples/regex/regex_example.v 2024-05-01 14:48:55 +03:00
smtp 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
snek examples: cleanup snek.v, by using math.vec, the builtin array support, instead of datatypes, and by removing casts that are no longer needed 2025-03-05 18:50:55 +02:00
sokoban examples: support boxoban style collections of levels files (from https://github.com/google-deepmind/boxoban-levels/) 2025-05-15 15:42:53 +03:00
sokol examples: add examples/sokol/sounds/simple_keyboard_synth.v 2025-07-06 15:05:22 +03:00
ssl_server net.mbedtls: support Server Name Indication (SNI) (#22012) 2024-08-11 20:26:13 +03:00
submodule v.utils: fix module lookup if module import parts end with the word modules (#21083) 2024-03-24 20:22:16 +02:00
templates fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
term.ui examples: cleanup examples/term.ui/event_viewer.v 2024-12-15 15:09:56 +02:00
tetris examples: make the tetris update rate, independent from the frame rate too 2025-03-09 09:05:02 +02:00
thread_safety examples: fix some of the instructions in examples/thread_safety/ (#22571) 2024-10-22 11:36:38 +03:00
ttf_font examples: prevent cliping of long font names in draw_static_text.v 2024-08-22 12:49:27 +03:00
vanilla_http_server parser, ast, fmt: convert "hello".str => c"hello" (fix #24635) (#24652) 2025-06-08 11:44:38 +03:00
vcasino vlib: refactor empty string checks to use s == '' or s != '', instead of s.len == 0 (#21300) 2024-04-18 02:44:31 +03:00
veb veb: deprecate vweb (part 2); move all vweb examples to veb 2025-03-02 14:37:20 +03:00
viewer checker: do not allow &u8(0), force nil like we do with &Type(0) 2025-05-03 22:37:51 +03:00
vwatch db.sqlite: make functions return results, breaking change (#19093) 2023-08-10 05:39:32 +03:00
vweb_fullstack Duplicate ./examples/assets/v.svg history in ./examples/vweb_fullstack/src/assets/v-logo.svg history. 2024-10-31 11:56:17 +02:00
vweb_orm_jwt fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
wasm 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
wasm_codegen examples: fix brainvuck.v (handle [ and ] properly); allow both brainvuck.v wasm_codegen/bf_compiler.v to work with .b files too 2023-10-03 17:01:55 +03:00
web_crawler fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
websocket 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
word_counter all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
.gitignore log: improve logging interface (#12886) 2021-12-18 12:38:43 +02:00
asm.v 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
binary_search_tree.v examples: fix typos (#18229) 2023-05-25 16:54:46 +03:00
brainvuck.v fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
bst_map.v all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
buf_reader.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
c_interop_wkhtmltopdf.v checker: do not allow &u8(0), force nil like we do with &Type(0) 2025-05-03 22:37:51 +03:00
cli.v fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
control_thread_stack_size.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
custom_error.v examples: add custom_error.v, that shows how to match over possible errors (#16265) 2022-10-31 09:56:41 +02:00
diff.v vlib,tools: add an arrays.diff module, implement a simple platform independent tool v diff file1.txt file2.txt using it (#24428) 2025-05-08 11:09:36 +03:00
dump_factorial.v v: support dump(expr) (#9160) 2021-03-06 18:09:28 +01:00
errors.v semver: add custom errors (#9493) 2021-03-29 11:17:00 +02:00
fetch.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
fetch_ip.v fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
fibonacci.v all: use arguments() instead of os.args in some files 2025-02-20 03:07:30 +03:00
file_list.v examples: add web_crawler and get_weather (#10084) 2021-05-14 11:09:21 +03:00
fizz_buzz.v examples: cleanup examples/fizz_buzz.v 2024-01-27 19:19:20 +02:00
function_types.v doc: document type Fn = fn (string) string (type aliases) (#10471) 2021-06-22 12:39:57 +03:00
get_raw_line.v os: fix get_raw_line() on windows (fix #23843) (#23846) 2025-03-03 06:55:35 +02:00
hanoi.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
hello_world.v
http_server.v tests: add a test for short enum syntax across modules (related #12183) (#22210) 2024-09-13 17:07:01 +03:00
js_hello_world.v examples: reduce completion friction, when doing the very common v run examples/hello_world.v in a shell 2024-12-08 23:50:47 +02:00
json.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
lander.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
links_scraper.v builtin: string.index_after() ?int 2025-03-12 23:03:25 +03:00
log.v log: improve the most common use case (#19242) 2023-08-31 06:44:11 +03:00
logfatal.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
mini_calculator.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
mini_calculator_recursive_descent.v examples: cleanup and shorten mini_calculator_recursive_descent.v to 98 lines (#23847) 2025-03-03 19:34:43 +02:00
minimal_c_like_program_using_puts.v 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
nbody.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
net_failconnect.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
net_peer_ip.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
net_raw_http.v all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
net_resolve.v examples: change var name '@type' to 'type' in net_resolve.v (#22526) 2024-10-15 13:00:09 +03:00
net_t.v fmt: replace go with spawn 2022-11-05 10:46:40 +03:00
net_udp_server_and_client.v examples: fix net_udp_server_and_client.v with latest V and latest net module (listen on 0.0.0.0, and dial to 127.0.0.1) (#19564) 2023-10-14 17:08:26 +03:00
news_fetcher.v examples: fetch 30 stories instead of 10 in examples/news_fetcher.v 2025-03-25 09:13:56 +02:00
path_tracing.v fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
pidigits.v examples: add pidigits.v; optimise math.big's Integer divide a bit (#21239) 2024-04-09 17:01:05 +03:00
poll_coindesk_bitcoin_vs_usd_rate.v examples: fix poll_coindesk_bitcoin_vs_usd_rate.v, use the new v2 API endpoint 2025-03-02 09:19:25 +02:00
primes.v examples: add primes.v, that shows how to get command line arguments, and use loops and functions 2025-05-19 17:39:18 +03:00
quick_sort.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
random_ips.v db, json, time, term: change optional to result (#16201) 2022-10-26 11:26:28 +03:00
readdir.v os: document os.ls (using readdir), add example (#20622) 2024-01-21 20:45:19 +02:00
rule110.v rand: simplify rand.PRNG, move to optional types for error handling (#13570) 2022-02-23 12:36:14 +02:00
rune.v
sha256sum_with_io_cp.v examples,io: add sha256sum_with_io_cp.v, make the size of the buffer used by io.cp parametrisable (#23585) 2025-01-26 15:44:15 +02:00
spectral.v fmt: remove unnecessary parentheses after return (fix #11423) (#11435) 2021-09-08 14:19:53 +03:00
sudoku.v examples: add a simple sudoku solver 2025-05-18 11:54:56 +03:00
sync_pool.v examples: add sync_pool.v for easier testing/diagnosing issues with the sync.pool implementation on different platforms 2025-03-25 20:11:19 +02:00
tcp_echo_server.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
tcp_notify_echo_server.v checker: check if guard returning non-propagate option or result (fix #17742) (#17794) 2023-03-29 14:51:29 +03:00
term_display_sixel.v term: add functions for detecting Sixel support + example (#21665) 2024-06-11 19:59:58 +03:00
term_key_pressed.v term: add key_pressed, enable_echo (fix #21826) (#23171) 2024-12-27 10:36:39 +02:00
terminal_control.v vfmt: vfmt examples/*.v 2021-02-23 20:21:50 +02:00
toml.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
tree_of_nodes.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
v_script.vsh ci: more ? -> ! fixes 2022-10-16 22:57:38 +03:00
vascii.v examples: add vascii.v showing a table of the first 128 ASCII characters with their names and codes in dec, oct, hex, bin formats (#23466) 2025-01-14 21:38:52 +02:00
vmatrix.v examples: update vmatrix.v to handle terminal resizing, minor visual tweaks (#21836) 2024-07-09 22:10:40 +03:00
vmod.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
vpwgen.v all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00
vtail.v examples: add vtail.v, deprecate File.read_bytes_into_newline/1 in favor of File.read_bytes_with_newline/1 (#21182) 2024-04-04 11:09:06 +03:00