playX
b0bc112168
jsdom, examples: add more WebGL APIs; add interactive 3D cube example running on VJS ( #12562 )
2021-11-24 20:31:39 +02:00
playX
243e66a106
js,jsdom: Canvas & context API; Added TypeSymbol.is_js_compatible & temporary hacks for JS ifaces ( #12526 )
2021-11-20 21:28:11 +02:00
Larpon
7ec70d5477
toml: small refactor, move all json functionality to submodule ( #12502 )
2021-11-18 13:27:59 +02:00
playX
2eb02ff5a7
jsdom, js: start refactoring jsdom; improve JS interfaces; add two attributes for them ( #12488 )
2021-11-17 11:41:33 +02:00
Delyan Angelov
6c5dfc5c2f
examples: fix initial clock size on hdpi displays
2021-11-11 18:09:57 +02:00
Delyan Angelov
4728b975e3
examples: use app.gg.quit() instead of exit(0)
2021-11-11 17:45:22 +02:00
Delyan Angelov
9cb378bb6b
examples: reduce the memory usage of the clock example, without -autofree & -gc boehm
2021-11-11 17:39:02 +02:00
Delyan Angelov
637ebe5d42
examples: improve examples/vweb/file_upload
2021-11-10 18:26:16 +02:00
Delyan Angelov
3c6356ba36
ci: fix request_test.v (add missing \r to hardcoded post data)
2021-11-10 18:16:15 +02:00
Delyan Angelov
466ced2876
net.http: fix multipart/form-data file upload handling
2021-11-10 17:31:41 +02:00
playX
d8f971ffb5
jsdom: add Path2D API, All CanvasRenderingContext2D methods (except image methods) ( #12404 )
2021-11-07 10:06:28 +02:00
Delyan Angelov
852d85b3a9
gg: cleanup the minimal gg program more
2021-11-07 09:16:49 +02:00
Delyan Angelov
32b74dd348
gg: simplify the minimal gg application even more with context.user_data = context
2021-11-06 18:24:19 +02:00
playX
2b4154910c
jsdom, checker: add more methods for CanvasRenderingContext2D, fix interop check for JS methods ( #12372 )
2021-11-03 16:54:28 +02:00
Miccah
ce9f26c589
examples/vweb: use map instead of string in call to app.json ( #12338 )
2021-10-31 12:31:49 +02:00
czkz
81b95ece51
docs: improve the docs by provide better examples and describe module publishing ( #12308 )
2021-10-31 11:32:31 +02:00
Wertzui123
612e742c1f
examples: remove unneeded workaround ( #12336 )
2021-10-30 18:49:54 +03:00
playX
a32dae335a
js: fix interfaces behaviour & disable struct deep copy for now ( #12333 )
2021-10-29 11:23:40 +03:00
Delyan Angelov
8fd66994c7
ci: comment out the main
body in draw.js.v for now
2021-10-28 02:18:38 +03:00
playX
cfecb62299
js: DOM API. Part 1 ( #12296 )
2021-10-27 23:18:09 +03:00
Amund Tenstad
18da724a9f
examples: prevent a 180 turn in snek ( #12286 )
2021-10-25 10:57:05 +03:00
playX
864d6eae6b
js: codegen & vlib fixes, replace the Game of Life CLI example ( #12272 )
2021-10-22 22:03:19 +03:00
Larpon
09cc0c7247
gg: use sgl.begin_points for pixels + improve pixels example ( #12085 )
2021-10-07 10:46:57 +03:00
Louis Schmieder
6391f3d2da
orm: fix other int types ( #11981 )
2021-09-26 11:17:56 +03:00
Ruofan XU
4fbf3fdf03
examples: make the binary search tree example generic ( #11968 )
2021-09-24 21:17:26 +03:00
Larpon
5541ec8670
vlib: add toml module + tests ( #11964 )
2021-09-24 21:13:52 +03:00
yuyi
108a01d65f
fmt: fix unnecessary line break in array init ( fix #11448 ) ( #11562 )
2021-09-21 16:20:09 +03:00
Alexander Medvednikov
49886b8c40
examples: add a missing vweb header
2021-09-21 08:13:42 +03:00
Alexander Medvednikov
f6bdc6b87e
tmpl: fix <div> inside <div>
2021-09-21 07:54:10 +03:00
Michele Zenoni
92bb292113
examples: add Rule 110 example ( #11516 )
2021-09-17 03:24:28 +03:00
Delyan Angelov
5010d18f27
examples: use double buffering for mandelbrot.v, to remove flickering on m1
2021-09-10 19:46:10 +03:00
Delyan Angelov
fa0983128f
examples: add a mandelbrot viewer example
2021-09-10 18:59:39 +03:00
Delyan Angelov
6ea750da8d
v test-all: add a v run examples/v_script.vsh
step too
2021-09-10 12:45:52 +03:00
Alexander Medvednikov
afeb1525a1
native: rename cgen to code_gen to avoid confusion with cgen
2021-09-10 03:17:53 +03:00
yuyi
e5360e164a
fmt: remove unnecessary parentheses after return
( fix #11423 ) ( #11435 )
2021-09-08 14:19:53 +03:00
Enzo
e3b65092d6
parser: deprecate size_t
( #11443 )
2021-09-08 13:09:32 +03:00
penguindark
f1cba44154
examples: add a gg drag'n'drop example ( #11403 )
2021-09-05 16:14:38 +03:00
Delyan Angelov
56993b9e2d
net.http: support passing client certificates in http.fetch ( #11356 )
2021-09-01 01:43:35 +03:00
Delyan Angelov
e72af5e2ee
examples: fix 404 status code for not found pages in examples/http_server.v
2021-08-31 12:13:58 +03:00
Delyan Angelov
2b92ccecb5
ci: fix v build-examples
and v build-tools
2021-08-28 12:44:03 +03:00
Larpon
e85311c2ba
gg: change draw_cubic_bezier* call signatures for speed and to match *_poly ( #11323 )
2021-08-27 16:52:05 +03:00
Fabricio Pashaj
0bf9197f41
net.http: add a close method to immediatly close the listener of a started http.Server, add more tests ( #11248 )
2021-08-24 19:21:24 +03:00
Larpon
833bf2cf15
gg: add cubic Bézier curves + examples ( #11286 )
2021-08-24 06:35:27 +03:00
Delyan Angelov
b5f8a04778
examples/mini_calculator.v: handle ctrl-d gracefully
2021-08-20 10:07:41 +03:00
Benjamin Stigsen
70a658a265
gg: set_pixels() ( #11236 )
2021-08-20 01:14:25 +03:00
Stefan Schroeder
6983f74a9d
example: add an animated analog clock ( #11231 )
2021-08-18 17:40:20 +03:00
Delyan Angelov
f96b81b53a
ci: fix failing vweb_test.v
2021-08-17 18:57:04 +03:00
Louis Schmieder
0d30667ab5
orm: fix orm unique lists ( #11198 )
2021-08-16 14:59:23 +03:00
Daniel Däschle
800c0e5092
vlib: remove deprecated map{} usages as well as deprecated functions ( #11035 )
2021-08-04 12:44:41 +03:00
Alexander Medvednikov
80976e640c
vweb: remove init_server() from all examples, tutorials, and tests
2021-08-03 16:03:16 +03:00
shadow
eca7af107a
examples: fix static vweb assets example ( #11008 )
2021-08-01 21:46:30 +03:00
Roj Serbest
cd03d31989
examples: fix a typo ( #10984 )
2021-07-28 22:39:37 +03:00
Delyan Angelov
0d12d55295
gg: allow customisation of the image format in gg.new_streaming_image
2021-07-26 11:05:16 +03:00
Louis Schmieder
1943da54a5
orm: integrate psql to orm ( #10933 )
2021-07-24 20:49:40 +03:00
Louis Schmieder
26db3b0995
orm: redesign orm (re-write it in V) ( #10353 )
2021-07-23 12:33:55 +03:00
Delyan Angelov
5098334e65
os: add execute_or_exit(cmd), use it consistently instead of execute_or_panic(cmd)
2021-07-20 15:22:04 +03:00
Daniel Däschle
ad3835b598
parser: deprecate short struct init ( #10842 )
2021-07-20 11:17:08 +03:00
Miccah
1a6a7a678a
vweb: change Context.headers from string to struct Header ( #10749 )
2021-07-18 12:21:07 +03:00
Delyan Angelov
05284c45a6
examples: fix x,y dimensions
2021-07-16 22:51:20 +03:00
Miccah
c3c420a41c
vweb: remove chunked encoding support in server responses ( #10750 )
2021-07-13 15:47:16 +03:00
Delyan Angelov
de9aa987bc
examples: improve progressbar in path_tracing.v
2021-07-12 07:53:48 +03:00
Michiel Vlootman
452c8e14d4
examples: remove unused return types in hanoi.v ( #10661 )
2021-07-04 17:34:58 +03:00
Tomas Hellström
ec973f5c6e
x.websocket: move to net.websocket module ( #10648 )
2021-07-03 02:56:00 +03:00
Delyan Angelov
b2391424d9
examples: add examples/gg/random.v demonstrating how to stream images/pixels
2021-06-24 17:45:14 +03:00
Delyan Angelov
5a308005d5
examples: show the tetris ghost by default
2021-06-24 11:59:18 +03:00
Delyan Angelov
f18265e6a8
gg: remove obsolete usages of use_ortho: true
2021-06-24 11:15:12 +03:00
Rasmus Schultz
1c80741886
doc: document type Fn = fn (string) string
(type aliases) ( #10471 )
2021-06-22 12:39:57 +03:00
Delyan Angelov
dd6591b2f5
ci: fix [if xyz ?]
usages
2021-06-22 10:46:43 +03:00
Miccah
6a19a13812
vweb: re-enable concurrency and fix the counter example ( #10484 )
2021-06-17 02:08:02 +03:00
Miccah
d56219a986
examples: add TCP echo server using os.notify ( #10481 )
2021-06-16 19:15:56 +03:00
Uwe Krüger
60c880a0cc
vlib: use malloc_noscan()
where possible ( #10465 )
2021-06-15 14:47:11 +03:00
Delyan Angelov
b26e1cdc0f
examples: persist and show the personal best score in snek.v
2021-06-14 18:13:26 +03:00
Wes
694b991929
examples: tetris: add ubuntu dependencies list ( #10456 )
2021-06-14 16:16:40 +03:00
Emily Hudson
535dcac8fa
net: ipv6 support, merge unix+ip;[pack:x] attribute ( #9904 )
2021-06-13 23:53:38 +03:00
Delyan Angelov
b25c0e5ef6
examples: do not write to files in examples/templates/templates.v
2021-06-12 17:08:14 +03:00
Delyan Angelov
ead445e205
examples: cleanup generated file examples/templates/result.md
2021-06-12 17:08:14 +03:00
shadowninja55
534b59e721
examples: rename "Chield" to "Child" in examples/database/orm.v ( #10414 )
2021-06-11 11:52:06 +03:00
Delyan Angelov
5b2046342b
Revert "examples: split asm.v to asm.amd64.v and asm.i386.v"
...
This reverts commit 74e73edac1
.
2021-06-07 20:23:44 +03:00
Delyan Angelov
74e73edac1
examples: split asm.v to asm.amd64.v and asm.i386.v
2021-06-07 20:17:45 +03:00
Delyan Angelov
ac0b638b6a
examples: run vfmt over psql/customer.v
2021-06-07 18:25:20 +03:00
Delyan Angelov
4f213f4468
examples: conditionally compile an asm amd64 {}
block on M1 in asm.v
2021-06-07 18:23:18 +03:00
Yuriy Zymlex
a716a00e38
builder: fix a bug with submodule import ( #10318 )
2021-06-05 12:45:23 +03:00
Delyan Angelov
e54af19b25
examples: fix -cstrict compilation of c_interop_wkhtmltopdf.v
2021-06-05 10:03:57 +03:00
Delyan Angelov
eac1e25c5d
strings: simplify Builder ( #10263 )
2021-05-31 14:21:06 +03:00
Ruofan XU
4e55b9c08e
example: improve binary search tree example ( #10226 )
2021-05-27 20:13:02 +03:00
penguindark
d8d05e0106
all: new string interpolation in pure V ( #10181 )
2021-05-24 05:20:45 +03:00
Alexander Medvednikov
dcfea5c69b
vweb: detect mime type automatically in serve_static()
2021-05-22 07:02:25 +03:00
Enzo
906b207e58
checker: deprecate using V strings in C function calls ( #10140 )
2021-05-20 09:17:44 +03:00
ScriptBoy2077
a849d52d4a
examples: add web_crawler and get_weather ( #10084 )
2021-05-14 11:09:21 +03:00
Delyan Angelov
143c3d4bb4
io: deprecate io.make_reader (not needed anymore)
2021-05-13 10:26:26 +03:00
Delyan Angelov
c55549a16a
ci: fix v build-examples
2021-05-11 11:10:35 +03:00
Alexander Medvednikov
dc034d9b16
vweb: make thread safe; checker: $if T is Interface {
2021-05-11 09:30:18 +03:00
Larpon
19b4504072
examples: add a gg timer example, drawing the result coming from a worker thread ( #10065 )
2021-05-10 11:30:24 +03:00
Uwe Krüger
d26ac5692e
all: various fixes for [heap]/auto-heap handling ( #10033 )
2021-05-07 15:58:48 +03:00
Vice Versa
4e6a19b0e5
examples: add a BFS example for finding the shortest distance between nodes in a graph ( #10006 )
2021-05-05 21:52:28 +03:00
Jordan Bonecutter
2c4a59f367
example: add a pendulum simulation ( #9992 )
2021-05-05 16:09:38 +03:00
Louis Schmieder
b8e070b2a1
orm: fix multi substructs ( #9941 )
2021-05-04 12:35:18 +03:00
Anton Zavodchikov
b621595c05
picoev: error handling workaround ( #9913 )
2021-05-01 14:20:10 +03:00
Louis Schmieder
fb685eee18
orm: support arrays ( #9936 )
2021-04-30 09:13:26 +03:00
Louis Schmieder
b15156d465
orm: fix mysql substructs ( #9930 )
2021-04-29 21:00:17 +03:00
Louis Schmieder
e9bbb7de3a
orm: add pg select expr ( #9927 )
2021-04-29 13:38:36 +03:00
R cqls
8af6237e28
gg: fix width and height in draw_rounded_rect primitive ( #9926 )
2021-04-29 10:58:57 +03:00
Lukas Neubert
daff481233
examples/text_editor: use mathutil for min/max functions ( #9911 )
2021-04-29 09:42:59 +03:00
Lukas Neubert
dee733aae4
fmt: reset const field align after multi line exprs ( #9916 )
2021-04-29 02:17:37 +03:00
pancake
6750ed254f
x64: rename to native
to not conflict with the x64 comptime variable
2021-04-27 12:24:58 +03:00
Don Park
aebb551e93
cgen: do full struct initialisation for V structs, fixes invalid data from map[string]Struct{}['unknown']
( #9878 )
2021-04-27 08:18:48 +03:00
Delyan Angelov
cafe382424
vweb: update references to old .init_once() and .init() methods to .init_server() and .before_request()
2021-04-26 19:38:13 +03:00
Uwe Krüger
3c0a368af3
all: automatically move (some) referenced objects to heap ( #9873 )
2021-04-25 21:40:38 +03:00
Louis Schmieder
7184629969
orm: add initial pg support ( #9827 )
2021-04-25 18:57:55 +03:00
Anton Zavodchikov
dee4904bee
pico: small refactor ( #9857 )
2021-04-24 13:21:30 +03:00
Alexander Medvednikov
0567cbe431
examples: fix compilation with -prod
2021-04-23 14:48:07 +03:00
Lukas Neubert
16e79bc3ca
tools: format most examples and tutorials, add them to v test-cleancode
( #9826 )
2021-04-20 17:16:35 +03:00
Delyan Angelov
d4f31412b7
v: deprecate @VROOT
in favour of @VMODROOT
( #9795 )
2021-04-19 19:01:47 +03:00
Louis Schmieder
dcf4a6b008
orm: add support for custom table names & custom field names ( #9697 )
2021-04-15 10:53:43 +03:00
Alexander Medvednikov
a18f85c8cd
vweb: init_once() => init_server(); init() => before_request()
2021-04-15 06:27:24 +03:00
Alexander Medvednikov
21c452c5cd
builtin: define u8 = byte alias
2021-04-15 02:58:27 +03:00
crthpl
14434cc86a
all: bare metal support (fix -freestanding
) ( #9624 )
2021-04-14 07:50:50 +02:00
Alexander Medvednikov
711e309eef
gg: bring back native rendering on macos
2021-04-14 03:59:34 +03:00
Delyan Angelov
8193efb379
v.markused: mark all pub
functions on -shared -skip-unused
2021-04-12 09:29:34 +03:00
Louis Schmieder
67d8639917
orm: add unique fields & add drop table stmt ( #9684 )
2021-04-11 23:57:25 +02:00
Louis Schmieder
64391efa4d
orm: add mysql support ( #9630 )
...
* add mysql to orm
* fix got to big packet error
* format sql.v
* format example
* custom sql types
* add mysql table cration
* add documentation
* format sql.v
* fix markdown
* start implementing select_expr for mysql
* remove orm.c
* format sql.v
* finish mysql expr
* remove c
* remove unessecary files
* change to c implementation
* remove c
* added str interpolation for idents
* fix string insert
* fix compilation problems
* fix gitly compilation
* fix typing mistake
* add link to orm docs
2021-04-10 17:38:27 +03:00
penguindark
73238a81e2
examples: sokol: update the comments on how to compile the shaderes ( #9633 )
2021-04-08 02:11:41 +02:00
Larpon
8caabf0e9e
sokol: update to floooh/sokol@c602d83 ( #9607 )
2021-04-07 20:39:23 +02:00
penguindark
a016ac39c0
examples: change byteptr to &byte in sokol examples and regex ( #9606 )
2021-04-05 18:17:45 +03:00
Alexander Medvednikov
ed37512ea9
ci: run wkhtmltopdf only on linux again
2021-04-05 07:55:32 +03:00
Alexander Medvednikov
22b4ac2266
examples: fix C interop example
2021-04-05 06:43:46 +03:00
Delyan Angelov
accd4d83bf
ci: fix compilation
2021-04-04 20:14:51 +03:00
Alexander Medvednikov
57e6138a61
all: remove byteptr and charptr; replace them with &byte and &char
2021-04-04 17:43:32 +03:00
Delyan Angelov
bcb3992406
log: implement .log_to_console_too() method
2021-04-02 10:12:52 +03:00
Atakan Yenel
89082de5d1
semver: add custom errors ( #9493 )
2021-03-29 11:17:00 +02:00
penguindark
f0e36ca845
examples: fix fireworks exiting when minimized on windows (issue: #9485 ) ( #9487 )
2021-03-27 17:28:09 +02:00
penguindark
a2ef9967fe
examples: add .obj viewer as a sokol example ( #9456 )
2021-03-25 16:53:13 +01:00
Delyan Angelov
9e48826bcb
dl: add dl.open_opt/2, dl.sym_opt/2 and dl.dlerror/0 utility functions
2021-03-24 11:47:04 +02:00
zakuro
c8416f9a54
all: deprecate write_str and replace it with write_string ( #9369 )
2021-03-20 17:25:51 +01:00
zakuro
e3c0f305b2
os: deprecate os.File.write_bytes
and add os.File.write_ptr
( #9370 )
2021-03-20 09:02:28 +02:00
Delyan Angelov
4f6306f6d4
examples: fix v -cflags "-Werror" test examples/
2021-03-19 13:13:56 +02:00
Emeric MARTINEAU
125236694f
cli: improve multiple value management ( #8310 )
2021-03-19 13:09:56 +02:00
Delyan Angelov
04095f4088
ci: fix failing v -W build-tools
and v -W build-examples
; run vfmt.
2021-03-19 09:49:26 +02:00
Delyan Angelov
c2b574384f
examples: fix dropping pieces with -autofree for tetris.v
2021-03-17 14:45:32 +02:00
crthpl
fafb035fb5
all: reimplement inline assembly ( #8645 )
2021-03-17 01:43:17 +01:00
Leah Lundqvist
64d0006ff9
jsgen: fix string and array for loops and improve casting ( #9295 )
2021-03-14 08:20:01 +02:00
Delyan Angelov
2fbacd0e79
examples: remove unused 629KB demo.gif animation
2021-03-12 11:57:47 +02:00
Lukas Neubert
a67d49050c
math: add a pure V math.mathutil
, with generic min
, max
and abs
functions ( #9176 ), and use it consistently
2021-03-12 11:28:04 +02:00
Delyan Angelov
d7049ae2da
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result ( #8974 )
2021-03-08 20:52:13 +02:00
StunxFS
9a7d9e047b
dl: move 'example' to 'examples/dynamic_library_loading' ( #9187 )
2021-03-08 18:21:43 +02:00
Delyan Angelov
849cde245c
v: support dump(expr) ( #9160 )
2021-03-06 18:09:28 +01:00
joe-conigliaro
2d73411396
checker: define missing C fn args & check C & JS args ( #8770 )
2021-03-05 17:41:11 +03:00
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
Larpon
afddcda7a3
examples: make raven text run on android, fix text scaling ( #8394 )
2021-01-29 12:13:06 +02:00
spaceface
e233911a7b
term.ui: native Windows console implementation ( #8359 )
2021-01-27 13:52:39 +01:00
Delyan Angelov
1f4e8254b9
examples: enable maximization
2021-01-26 23:40:30 +02:00
Delyan Angelov
06b660666b
examples: fix font does not exist message in fireworks
2021-01-26 23:21:10 +02:00
shadowninja55
ba3342a034
examples: add fireworks example ( #8358 )
2021-01-26 23:13:11 +02:00
Delyan Angelov
e5a84719ca
all: require calling optfn() ?
/ optfn() or {...}
for fn optfn() ? {}
2021-01-26 16:43:17 +02:00
penguindark
ebda57fa6f
examples: 3d cube sokol example ( #8327 )
2021-01-24 23:17:50 +01:00
Jordan Bonecutter
1c8c3a109d
examples: fix typos/grammar and chmod u+x v_script.vsh ( #8304 )
2021-01-24 11:15:11 +02:00
Alexander Medvednikov
d991712b3c
gg: native rendering mode on macOS
2021-01-23 10:25:43 +01:00
Daniel Däschle
dbf84520f1
all: update assoc syntax ( #8274 )
2021-01-22 23:24:48 +01:00
Delyan Angelov
12897d1e2b
examples: fix ./v -W -Wfatal-errors build-examples
, run vfmt
2021-01-22 22:33:37 +02:00
Emeric MARTINEAU
081e3c46b4
cli: allow flag to be set multi time ( #8256 )
2021-01-22 19:03:02 +02:00
shadowninja55
a569dc17e8
gg: allow fonts loaded with $embed_file() to be used ( #8263 )
2021-01-21 23:07:47 +02:00
shadowninja55
d1286dbf18
examples: add snek (a snake game) ( #8257 )
2021-01-21 18:34:42 +02:00
Louis Schmieder
f7c251f8f3
vweb: add multipart/form-data parser and file upload ( #8160 )
2021-01-21 11:08:51 +01:00
Delyan Angelov
d9532eda30
checker: error on a.slice(x,y) outside builtin
2021-01-19 15:55:52 +02:00
Ruofan XU
103901a5cb
example/test: add a binary search tree example and test ( #8145 )
2021-01-19 15:18:38 +02:00
Sun Junyi
048d8edf62
examples: update mini_calculator.v ( #8182 )
2021-01-18 18:40:47 +02:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 ( #8029 )
2021-01-18 13:20:06 +01:00
Louis Schmieder
38881e4b20
vweb: Implement chunked encoding transfer ( #8179 )
2021-01-18 13:04:21 +01:00
Larpon
512f62b7a1
android: enable custom (e)println output via android log system ( #8135 )
2021-01-17 05:32:59 +01:00
Larpon
4044abef0e
tetris: enable to run on android, run v fmt ( #8136 )
2021-01-17 05:28:09 +01:00
Delyan Angelov
5c3ef588c3
live: move to vlib/v/live
2021-01-16 15:05:01 +02:00
Delyan Angelov
0da40c4ea9
examples: use Empty instead of Leaf in tree_of_nodes.v
2021-01-15 11:15:29 +02:00
Delyan Angelov
944bb294e3
examples: add tree_of_nodes.v, based on a type Tree = Leaf | Node
sumtype
2021-01-15 10:09:44 +02:00
yuyi
a2efb5319d
all: change [1,2,3]!!
to [1,2,3]!
( #8101 )
2021-01-14 03:51:13 +01:00
yuyi
a1c67232d0
checker: fix duplicate variable name ( fix #265 ) ( #7982 )
2021-01-10 21:41:29 +01:00
Delyan Angelov
692a718428
examples: use os.resource_abs_path, so v run examples/ttf_font/example_ttf.v
works
2021-01-10 20:36:50 +02:00
penguindark
c067cc0357
vlib: add a TTF font loader and render in x.ttf
( #7995 )
2021-01-10 20:14:41 +02:00
Don Alfons Nisnoni
d645e45752
mysql: add more documentation ( #7846 )
2021-01-09 10:40:21 +02:00
Swastik Baranwal
9291fb5e0c
checker: disallow comparison between enum and int ( #7886 )
2021-01-08 17:41:52 +01:00
Daniel Däschle
5dbc19410c
examples: fix vweb assets example ( #7949 )
2021-01-07 20:46:23 +01:00
Tomas Hellström
f9a873736e
x.websocket: server broadcast plus examples ( #7922 )
2021-01-06 15:43:54 +01:00
Delyan Angelov
3a357d9718
gg: add examples/gg/stars.v
2021-01-04 12:19:05 +02:00
Leandro Silva
86df5cd1a9
examples: C interop for HTML to PDF conversion using libwkhtmltox ( #7751 )
2021-01-03 16:56:55 +01:00
Don Alfons Nisnoni
e943d03298
mysql: migrate connection flags to enum instead of const, fix example ( #7803 )
2021-01-02 15:09:20 +02:00
Alexander Medvednikov
7bcc5afbb6
ci: run tutorial
2021-01-01 20:25:49 +01:00
Daniel Däschle
5ae3637d27
checker: revert embedded methods fix ( #7780 )
2021-01-01 14:36:07 +01:00
spaceface
480d78de2e
examples/2048: make tiles have rounded corners ( #7763 )
2021-01-01 13:04:51 +02:00
Alexander Medvednikov
2bc9ee4d88
vweb: more updates
2020-12-31 17:47:20 +01:00
Alexander Medvednikov
2533c706ae
vweb: migrate all tests and examples to the new syntax
2020-12-31 17:22:47 +01:00
Alexander Medvednikov
3ffdcd8910
vweb: embed context
2020-12-31 17:07:27 +01:00
Delyan Angelov
cf978ca1ac
flappylearning: set app.timer_period_ms to 0 with 0
key
2020-12-31 17:51:52 +02:00
Delyan Angelov
06766fd0eb
flappylearning: toggle update period with space
, exit with esc
2020-12-31 17:46:50 +02:00
Alexander Medvednikov
0d43ff2453
parser: fix `for i, mut val in vals {; examples: vfmt flappybird
2020-12-27 12:02:18 +01:00
uxnow
e69e5c5b91
examples: add flappylearning to examples ( #7605 )
2020-12-27 11:19:32 +01:00
Alexander Medvednikov
9f964c9ce0
examples: fix spectral.v
2020-12-21 08:50:31 +01:00
Delyan Angelov
c2064b2cc0
ci: more args = os.args fixes
2020-12-20 19:01:15 +02:00
penguindark
a6baffcb8c
regex: lots of fixes ( #7380 )
2020-12-18 05:57:31 +01:00
Emily Hudson
553ecf63e7
vlib/io: fix reader bugs, make read_all take a config struct ( #7361 )
2020-12-16 18:22:26 +01:00
Delyan Angelov
e3a1756b11
net: add tcp_default_read_timeout and tcp_default_write_timeout and use them consistently
2020-12-15 17:54:51 +02:00
Daniel Däschle
11808f9fa3
parser: fix silent errors ( #7271 )
2020-12-12 04:06:09 +01:00
penguindark
6b7d7cee0c
regex: new examples, new utility functions ( #7150 )
2020-12-05 22:24:08 +01:00