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

74 Commits

Author SHA1 Message Date
Delyan Angelov
4a1970a322 http: return ?string 2019-07-29 19:18:26 +02:00
Alexander Medvednikov
2ac579ca0a wrap up the new mut check 2019-07-25 14:13:35 +02:00
Alexander Medvednikov
505f784047 fix log example 2019-07-24 17:59:54 +02:00
yep84
94a599d630 log: allow file logging 2019-07-24 17:50:29 +02:00
Alexander Medvednikov
facf55cbc0 examples/news_fetcher: don't print the ids 2019-07-24 00:56:42 +02:00
lutherwenxu
4f11185231 Fix news_fetcher example
News_fetcher now uses proper numbering with mutex lock instead of the cursor
2019-07-24 00:54:16 +02:00
d2verb
e25664dfbf Update .gitignore & add examples/hot_code_reloading/.gitignore 2019-07-23 13:30:02 +02:00
Alexander Medvednikov
89042b0f97 examples/tetris: an extra collision check 2019-07-23 03:29:11 +02:00
Alexander Medvednikov
a2a0b149b2 examples/graph: update the graph instantly; add a couple of graphs 2019-07-23 00:24:42 +02:00
Alexander Medvednikov
5933f2107a examples/graph: a small import fix 2019-07-22 13:45:02 +02:00
Alexander Medvednikov
5d188130e5 fix memory free 2019-07-21 16:30:10 +02:00
Alexander Medvednikov
975286302c fix Tetris onkeydown 2019-07-21 11:56:43 +02:00
Alexander Medvednikov
7f512eaf72 examples/hot_code_reloading: graph builder improvements 2019-07-20 17:59:40 +02:00
Alexander Medvednikov
769cda1d1f simplify gg; remove forced OpenGL dependency; graph builder /w hot code reloading 2019-07-20 16:06:15 +02:00
Alexander Medvednikov
26ed3fb372 examples/hot_code_reloading: graph builder 2019-07-19 13:15:47 +02:00
Alexander Medvednikov
c35adbea91 vfmt fixes 2019-07-17 21:00:39 +02:00
Alexander Medvednikov
bdf1717703 examples/bounce.v: minor fixes 2019-07-17 02:55:28 +02:00
Alexander Medvednikov
8c516bec4f [][]int 2019-07-16 13:56:48 +02:00
Alexander Medvednikov
48d5650765 examples/hot_code_reloading: move the square faster 2019-07-16 02:23:09 +02:00
Alexander Medvednikov
840e496a51 force snake_case in variable names 2019-07-15 22:53:33 +02:00
Alexander Medvednikov
b36a9f7e55 glfw always on top 2019-07-15 19:23:09 +02:00
Delyan Angelov
37aff9b107 hot reload: no -sanitize is needed anymore, -live is now enough on both Linux and MacOS X
* hot reload for GL programs: force the main executable (the shared library loader) to be build with -rdynamic flag, when -live is passed to v compiler.

* hot reload: optimize away a redundant load_so/0 call at the start of the reload_so thread.

* hot code reload for MacOSX requires -flat_namespace flag instead of -rdynamic (on linux).
2019-07-15 17:32:00 +02:00
Carl Bordum Hansen
92fb9c8b94 VCasino was printing the opposite of intended 2019-07-15 17:20:16 +02:00
Delyan Angelov
60ad97c4fb fix hot code reloading for GUI example bounce on linux: works when compiled with 'v -live -sanitize bounce.v' .
It crashes with SIGSEGV, when -sanitize is not given.
Also thirdparty/glad/glad.o should be build with -fPIC .
2019-07-15 12:28:35 +02:00
Alexander Medvednikov
3b1964e9df migrate remaining code to the new maps 2019-07-14 22:26:21 +02:00
d2verb
2cb12b4f4e rand: change rand.seed() to receive seed value 2019-07-13 18:17:45 +02:00
d2verb
14bbf766b0 Update examples/.gitignore 2019-07-12 20:46:58 +02:00
Alexander Medvednikov
28d379dc7b make glfw work on Windows 2019-07-12 05:04:27 +02:00
Alexander Medvednikov
045d480c8c clean up the examples a bit 2019-07-07 22:09:08 +02:00
Alexander Medvednikov
de8dc4cddb hot code reloading examples 2019-07-07 22:02:27 +02:00
pverghese
144d7ca362 Added benchmarks 2019-07-07 01:19:54 +02:00
vertical222
8c3e47c9de nbody.v fixes 2019-07-07 01:18:04 +02:00
pverghese
758267254d Added Benchmark-games: spectralnorm 2019-07-06 16:49:30 +02:00
vertical222
0f8682d2f0 Create nbody.v 2019-07-06 12:03:30 +02:00
d2verb
504c0d6077 Modify examples/.gitignore 2019-07-04 22:05:12 +02:00
musou1500
668646f8f9 add str function for rune 2019-07-01 17:36:23 +02:00
archanpatkar
235a7ecd7f Restructured termcolor to term module 2019-07-01 17:26:23 +02:00
Zaoqi
437b32fe78 fmt: id []typ 2019-06-30 13:06:45 +02:00
Alexander Medvednikov
3ddbe015b4 bring back examples 2019-06-29 12:34:32 +02:00
Alexander Medvednikov
4594d78bd6 move all vlib modules to vlib/ 2019-06-29 12:00:31 +02:00
aguspiza
bed7440ebb tetris improvements
added getexepath() to os module
added some wrapper functions to glfw
removed hardcored path in gg module
better tetris example exit and resource loading
2019-06-28 21:40:47 +02:00
Alexander Medvednikov
4aab26d3e3 mut v := update examples 2019-06-28 15:24:48 +02:00
Alexander Medvednikov
bd49977feb fix single file programs without fn main and REPL (allow imports,
function definitions, consts, etc)
2019-06-28 13:43:32 +02:00
Alexander Medvednikov
6824e6e7db Replace all remaining C code with V in the compiler and vlib (hoorah!) 2019-06-27 23:11:27 +02:00
lutherwenxu
b464adec43 Add the log example to .gitignore of examples
The compiled log file should no longer cause a file to be added to the git repo during `make test`.
2019-06-27 13:49:57 +02:00
Alexander Medvednikov
76bf732e63 builtin: public/private functions, remove lots of duplicate functionality
(string.eq, compare_strings, etc)
2019-06-27 13:29:31 +02:00
Alexander Medvednikov
b018237c72 1 2019-06-27 12:51:53 +02:00
Alexander Medvednikov
90c0791345 replace ugly tos2(bytes) with string(bytes) 2019-06-27 12:50:02 +02:00
ofunc
2ee6ca1b8b Rewrite time module 2019-06-27 12:02:47 +02:00
wfhtqp
9ac653c3e3 add log and rename colors 2019-06-27 02:20:04 +02:00