Commit Graph

22 Commits (7fa33fc250407b6e8d5eb4d09bebf94007e620a8)

Author SHA1 Message Date
joe-conigliaro 59378dce46 compiler/vlib: replace substr/left/right with `[start..end]` everywhere 2019-10-27 10:03:15 +03:00
Alexander Medvednikov 4574039e4d new vh generation + simpler match statement 2019-10-23 00:45:17 +03:00
Delyan Angelov eef73eea22 tools: new tool to extracts function names declared in V files 2019-10-21 14:14:28 +03:00
Alexander Medvednikov a76165828b snake_case consts 2019-10-12 22:36:14 +03:00
Delyan Angelov 4f4ac45670 performance_compare: support passing --vcrepo and --hyperfine_options
* support passing --vcrepo and --hyperfine_options. Streamline output.

* Compare the performance of compiling a simple hello world program too.

* Remove redundant vprod comparisons. Instead use v .
2019-10-10 20:10:41 +03:00
Delyan Angelov f43c4fd81c tools/performance_compare: speed it up and make it more robust
* tools/performance_compare is now more robust. It uses the C source from the time of the v commit, instead of always the latest one. It also now clones https://github.com/vlang/vc just once per comparison, not for every build.

* Remove obsoleted tools/compare_v_performance_between_commits shell script.
2019-10-04 16:11:29 +03:00
Delyan Angelov e72fe25224 compiler: more precise 'declared and not used' error positioning
* compiler: extract and cleanup error handling functionality into its own file compiler/compile_errors.v

* compiler: implement p.error_with_token_index and p.warn_with_token_index and use them. Fix tests.

* tools/performance_compare: add a 'Source lines in compiler/' line

* MSVC does not have STDOUT_FILENO nor STDERR_FILENO ...
2019-09-29 20:37:39 +03:00
Dongliang Ma 46ac22f3e5 vget fixes
* refactor(tools): remove trailing spaces in vget.v

* refactor(tools): fix mix tabs and spaces

* fix(tools): vget should exit non-zero when call with invalid arguments

* refactor(tools): extract vmodules directory create and chdir logic

* feat(tools): add travis-ci check to vget
2019-09-28 14:21:52 +03:00
Delyan Angelov 366c50674c tooling: add tools/compare_v_performance_between_commits
easily compare v performance/size across commits.

* fix eprintln on linux (it now uses stderr, and flushes it).

* flag: cleaner usage information.
2019-09-28 14:17:16 +03:00
joe-conigliaro 8974aa4513 compiler/vlib: change `_ :=` to `_ =` and disable `_ :=` 2019-09-25 15:10:45 +03:00
joe-conigliaro e1dd8716fb tools: gen_vc - add purge flag 2019-08-31 19:00:40 +03:00
joe-conigliaro b737eb1a87 tools: move gen_vc into the v repo 2019-08-31 17:44:01 +03:00
Delyan Angelov f013359a44 compiler: improve error handling for 'v install' 2019-08-18 17:57:57 +03:00
Delyan Angelov 891913e182 vget: handle more errors. 2019-08-11 13:22:13 +02:00
iRedMail c67783bcd1 v install: install multiple modules in one command: 'v install m1 m2 m3 …' 2019-08-10 12:21:31 +02:00
Alexander Medvednikov a0b583d8c8 fix vget 2019-08-10 12:05:18 +02:00
Julian Schurhammer 28147c0930 os.exec: return ?string instead of string 2019-08-08 07:30:05 +02:00
FoXy fa99402314 VGet: Fix for dot folder name import 2019-08-07 04:28:55 +02:00
FoXy 67d6702c1f Create VModules directory before Clone 2019-08-06 16:09:44 +02:00
Alexander Medvednikov 5ed338dc2e bring back map.str() 2019-08-05 04:34:12 +02:00
S-YOU 58117f1312 vget: clone with depth 1 and use module name instead of repository name 2019-08-05 03:04:23 +02:00
Alexander Medvednikov a7e464fee9 user modules + `v install` from vpm 2019-08-01 17:28:25 +02:00