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