1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

610 Commits

Author SHA1 Message Date
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