1102 Commits

Author SHA1 Message Date
Delyan Angelov
10f2fe196a
examples,gg: modify all remaining calls to fons.add_font_mem/3 to use an array.clone() 2025-02-07 14:39:36 +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
Delyan Angelov
801600c0c7
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
syrmel
b1d2593c1b
examples: add a solution to the "1 Billion Row Challenge" (#23458) 2025-01-15 09:09:11 +02:00
Mike Ward
dacdafbd3e
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
Alexander Medvednikov
78f34e6c89 checker: vfmt fn.v 2025-01-14 01:25:20 +03:00
Delyan Angelov
f06ff69bb9
examples: mention also the RAM usage increase in many_thousands_of_circles_overriding_max_vertices.v 2025-01-06 15:01:27 +02:00
Delyan Angelov
7aa2fcb55e
gg,sokol,examples: add example of overriding _SGL_DEFAULT_MAX_VERTICES in code 2025-01-06 14:54:56 +02:00
Delyan Angelov
6eb14082b3
examples: fix unused db.pg import warning for examples/database/psql/customer.v 2025-01-05 20:30:37 +02:00
kbkpbot
f821c657a7
examples,builtin,cgen,live: fix windows hot reload with -cc tcc, improve the infrastructure, use a V global instead of a C one (fix #23214) (#23350) 2025-01-03 18:04:32 +02:00
Adam Oates
c50d4ee13b
gg: add linux support for fn screen_size() Size (fix #23146) (#23326) 2025-01-02 19:10:09 +02:00
Delyan Angelov
02a7355cfa
tools: improve v should-compile-all . with support for compiling .wasm.v and .js.v files; skip module name files, compile projects that have .glsl files 2025-01-01 20:18:20 +02:00
kbkpbot
5b44b67211
term: add key_pressed, enable_echo (fix #21826) (#23171) 2024-12-27 10:36:39 +02:00
Delyan Angelov
7eec8b1cd7
math,examples: make 2048 use sliding animation for the tile movement (#23268) 2024-12-26 06:39:59 +02:00
Delyan Angelov
4cd3009bd1
examples: add examples/gg/easing_animation.v (follow up to e6c1637) (#23253) 2024-12-24 22:57:06 +02:00
Delyan Angelov
c9542a2553
examples: cleanup examples/term.ui/event_viewer.v 2024-12-15 15:09:56 +02:00
Delyan Angelov
d257a1f06a
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
Delyan Angelov
c7ee45fc64
strings.textscanner, examples: add TextScanner .skip_whitespace/0, .peek_u8/0, .peek_n_u8/0, add examples/mini_calculator_recursive_descent.v (#23001) 2024-11-28 21:17:24 +02:00
Hitalo Souza
05377f3c03
examples: add a cpu_features/ folder, with several examples, using SSE and MMX assembly instructions (#22645) 2024-11-22 01:20:51 +02:00
Delyan Angelov
561efd1463
examples: simplify and reorder output of poll_coindesk_bitcoin_vs_usd_rate.v 2024-11-15 14:32:27 +02:00
Delyan Angelov
6845db9831
examples: add poll_coindesk_bitcoin_vs_usd_rate.v 2024-11-15 14:16:22 +02:00
Delyan Angelov
c32c2d732a Duplicate ./examples/assets/v.svg history in ./examples/veb/veb_assets/assets/v-logo.svg history. 2024-10-31 11:56:18 +02:00
Delyan Angelov
e665760d99 Duplicate ./examples/assets/v.svg history in ./examples/vweb/server_sent_events/assets/v-logo.svg history. 2024-10-31 11:56:17 +02:00
Delyan Angelov
4cbd11419d Duplicate ./examples/assets/v.svg history in ./examples/vweb_fullstack/src/assets/v-logo.svg history. 2024-10-31 11:56:17 +02:00
Delyan Angelov
b5f170258d examples: add examples/assets/v.svg and examples/assets/v_16x16.svg 2024-10-31 11:56:17 +02:00
Hitalo Souza
7a0febb12d
examples: fix some of the instructions in examples/thread_safety/ (#22571) 2024-10-22 11:36:38 +03:00
Hitalo Souza
5ec9bb54b8
examples: add a thread_safety/ folder with several examples of using different thread synchronisation mechanisms (#22561) 2024-10-18 13:14:11 +03:00
yuyi
1fb9fec7fa
examples: change var name '@type' to 'type' in net_resolve.v (#22526) 2024-10-15 13:00:09 +03:00
alexey semenyuk
bb99f8b57c
examples: fix veb example's file_transform port typo (#22511) 2024-10-13 13:23:08 +03:00
yuyi
da3112e545
all: replace fn name '@xxx' with 'xxx' (#22506) 2024-10-12 22:17:02 +03:00
yuyi
79786732ef
all: replace struct field name '@type' with 'type' (#22485) 2024-10-11 08:53:18 +03:00
yuyi
51b471b060
all: replace enum field name 'xxx_' with 'xxx' (#22469) 2024-10-10 09:17:19 +03:00
Delyan Angelov
e5d46d2f81
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
Delyan Angelov
f98e9d5757
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
Delyan Angelov
cfa91d81d7
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
larpon
59d5115483
examples: make gg/stars.v run on android (#22276) 2024-09-22 08:02:14 +03:00
larpon
d139e56ca7
examples: make gg/rectangles.v Android friendly (#22275) 2024-09-22 08:00:41 +03:00
larpon
1e1bc1046a
examples: add gc_is_enabled() check to 2048 to prevent crash in Android emulator (#22274) 2024-09-22 07:41:26 +03:00
Alexander Medvednikov
c11b1f8bd1 examples: fix type in veb_example.v 2024-09-17 23:00:11 +03:00
yuyi
acf6b344f7
fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
Alexander Medvednikov
c004d0c899 examples: migrate vweb examples to veb 2024-09-17 09:15:07 +03:00
Felipe Pena
4eb087a347
checker: add missing check for ref passing to non-ref (#22194) 2024-09-14 23:13:25 +03:00
Alexander Medvednikov
26ab7d4fe1 veb: implicit context 2024-09-14 00:41:02 +03:00
yuyi
cc7665ff32
tests: add a test for short enum syntax across modules (related #12183) (#22210) 2024-09-13 17:07:01 +03:00
yuyi
008aaad999
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
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
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
Delyan Angelov
423a94aa58
examples: prevent cliping of long font names in draw_static_text.v 2024-08-22 12:49:27 +03:00
Delyan Angelov
3f8e92bc6d
examples: make draw_static_text.v show the font name too, for easier comparisons 2024-08-22 12:38:42 +03:00
Delyan Angelov
e6b8162bfa
examples: add examples/ttf_font/draw_static_text.v, to make it easier to test x.ttf with different fonts, and texts 2024-08-22 11:59:49 +03:00