Commit Graph

547 Commits (208cabc99494be027f2ba7d571d0a620bbc9e162)

Author SHA1 Message Date
Delyan Angelov cd423251da
vweb: add .mount_static_folder_at/2 , use it instead of app.handle_static in the server_sent_events example 2021-03-02 21:30:18 +02:00
Miccah d0fab60981
vweb: refactor routing logic (#9025) 2021-03-01 11:50:52 +01:00
spaceface b712af56fd
all: bring back `panic(err.msg)` -> `panic(err)` (#9022) 2021-03-01 00:18:14 +01:00
spaceface d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
Miccah 7e08e84bc1
vweb: refactor HTTP request parsing (#8874) 2021-02-27 23:18:25 +01:00
penguindark 1d69a0bd22
gg: window_size_real_pixels that for 3D without dpi scaling (#9004) 2021-02-27 22:11:26 +01:00
Alexander Medvednikov 3a2d696fac time: time.wait() => time.sleep() 2021-02-27 20:41:06 +03:00
Uwe Krüger f67bff1696
all: support `thread` handles and `wait()` for functions returning optionals (#8990) 2021-02-27 10:16:55 +02:00
Nick Treleaven aed348fb80
os: tag some File methods that take voidptr as unsafe - write_bytes, write_bytes_at (#8985) 2021-02-27 10:11:17 +02:00
Miccah 66c85aa5cb
docs: update concurrency docs and examples to use []thread{} (#8933) 2021-02-24 10:41:12 +01:00
Delyan Angelov 9e06af8bf9
vfmt: vfmt examples/*.v 2021-02-23 20:21:50 +02:00
Delyan Angelov d1cebcb608
2048: remove `[no_inline]` (no longer needed) 2021-02-22 21:40:55 +02:00
spaceface b4dc6c83cd
gg: handle Android's own native dpi scaling factor (#8908) 2021-02-22 21:24:18 +02:00
spaceface 8033203ef6
builtin: add an Option2 struct (#8890) 2021-02-22 18:44:15 +02:00
Louis Schmieder 7a35131721
vweb: add handle static root & documentation (#8865) 2021-02-21 20:01:29 +02:00
zakuro ac4791045f
time: consolidate the different sleep functions into time.wait(Duration) (#8853) 2021-02-21 17:05:03 +02:00
spaceface 260f677469
term.ui: use the new `[flag]` enums (#8881) 2021-02-21 16:07:49 +02:00
Delyan Angelov 3a65ccd060
examples: make examples/templates/templates.v runable from everywhere, not just . 2021-02-19 17:29:35 +02:00
Miccah a153ec5951
cli: ensure that required flags are set (#8826) 2021-02-19 12:43:18 +02:00
kristof de spiegeleer 3f3bec45fa
examples: add a template example, update the regex examples (#8829) 2021-02-19 12:39:15 +02:00
penguindark 198b395cde
examples: add examples/sokol/05_instancing_glsl, cleanup code (#8809) 2021-02-18 11:11:26 +02:00
Alexander Medvednikov e662d61573 examples: fix 2048 scaling 2021-02-17 16:18:33 +01:00
Delyan Angelov 217e8c9146
ci,examples: fix compilation of 03_march_tracing_glsl/rt_glsl.v 2021-02-17 11:07:31 +02:00
Alexander Medvednikov 023f6829a1 examples: fix rt_glsl.v 2021-02-17 06:57:32 +01:00
Alexander Medvednikov 2f328f952e examples: fix fireworks.v 2021-02-17 06:50:09 +01:00
Alexander Medvednikov 60a8881326 examples: fix and vfmt cube_glsl example 2021-02-17 06:47:41 +01:00
Alexander Medvednikov d4a05bebde gg: use gg types for Events instead of sapp 2021-02-17 06:44:01 +01:00
Delyan Angelov 4961d3ea17
io: fix detection of end_of_stream, when reading files through io.new_buffered_reader(reader: io.make_reader(f)) 2021-02-16 23:22:17 +02:00
AAAA 4213851e22
cli: fix typo (#8742) 2021-02-15 17:25:30 +02:00
penguindark 325aef6d41
gg: add gg.m4, use it in the sokol GLSL examples (#8755) 2021-02-15 15:40:28 +02:00
Nick Treleaven ea803113c3
checker: check `unsafe` V function calls (#8752) 2021-02-14 19:31:42 +01:00
penguindark 9d5243a410
examples: add an example of march tracing in glsl, first release (#8689) 2021-02-12 01:42:10 +02:00
Delyan Angelov 578de634fe
sync: move pool related code to `sync.pool`, cleanup, add a README.md 2021-02-11 10:55:23 +02:00
Mohammad Ali Chraghi 86e6b4f926
examples: improve the pg and vweb output (#8640) 2021-02-09 11:31:25 +02:00
Larpon d62918581e
example: support running flappylearning on Android (#8612) 2021-02-07 12:40:12 +02:00
Alexander Medvednikov f589a70874 examples: make a process example compile with -prod 2021-02-07 05:23:45 +01:00
kristof de spiegeleer 2d875260e8
examples: Process examples (#8598) 2021-02-07 05:19:05 +01:00
Delyan Angelov 576492af4e examples: fix 2048 on Apple M1 2021-02-05 19:35:51 +02:00
Louis Schmieder 97c0ef3505
orm: struct field support (#8517) 2021-02-04 20:28:33 +01:00
Delyan Angelov 32cc95a340
test-cleancode: check some of the examples too 2021-02-04 17:34:59 +02:00
Delyan Angelov f4b757e47d
examples: add examples/vweb/server_sent_events; implement vweb.sse 2021-02-03 16:03:06 +02:00
Larpon c818ad97eb
examples: tetris: better mobile device support (#8519) 2021-02-02 18:37:43 +01:00
Larpon 975206f38e
examples: support better placment and scaling on nonsquare viewports in cube.v (#8513) 2021-02-02 14:09:40 +02:00
Delyan Angelov d57a9c419d
examples: add net_udp_server_and_client.v 2021-02-02 10:36:56 +02:00
Lucas Hernán Tarche 7813ecbb75
gg: add draw_convex_poly/2 and draw_empty_poly/2 methods (#8487) 2021-02-01 18:18:23 +02:00
Alexander Medvednikov 96466e2b15 examples: move websocket example from x/ 2021-01-31 15:18:54 +01:00
Alexander Medvednikov c91f7746fd websocket: minor improvements in the server example 2021-01-31 15:18:04 +01:00
Tomas Hellström 7eb7d042ec
x.websocket: workaround `for _, item in a_map{}` bug, causing panic (#8463) 2021-01-31 11:37:32 +02:00
Delyan Angelov 89bf48e3ba
ci: fix `v -W build-examples` 2021-01-31 10:43:49 +02:00
Hitalo de Jesus do Rosário Souza 8dff63b824
vweb: example: make css in vweb_assets.v work (#8090) 2021-01-30 14:20:13 +01:00