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
thomas-senechal
e57fbeee41
examples: VCasino
2019-06-27 02:05:05 +02:00
Alexander Medvednikov
ee09cde583
CI test successful
2019-06-26 21:36:44 +02:00
Alexander Medvednikov
fcf60306c4
CI test: break tetris
2019-06-26 21:33:21 +02:00
whoami
e7f2babb5d
separate .gitignore for examples ( #667 )
...
it will be easier to move the examples to a separate repository if it increases
2019-06-26 18:06:00 +02:00
Alexander Medvednikov
92ecd0ca7c
word_counter: handle bad path
2019-06-26 18:01:31 +02:00
Ryota.I (yabu)
61e4367aa8
👍 Fix up redundant type declare and remove space ( #603 )
2019-06-26 16:39:40 +02:00
Alexander Medvednikov
b00a47be66
Revert "add log replace color"
...
This reverts commit 8ef27f0bb3
.
2019-06-26 01:28:00 +02:00
nzlov
8ef27f0bb3
add log replace color
2019-06-26 01:26:06 +02:00
Wink Saville
67f68db530
Add several gitignore files
...
- compiler/.gitignore and remove the corresponding entries in root/.gitignore.
- examples/game_of_life/.gitignore
- examples/tetris/.gitignore
- examples/word_counter/.gitignore
2019-06-26 01:22:35 +02:00
Wink Saville
82a65c75a9
Fix examples/game_of_life/README.md
...
- Fix run command in README.md
2019-06-26 01:19:47 +02:00
Wink Saville
8ceb110412
Add .gitignore to examples
2019-06-25 23:32:11 +02:00