v/vlib
penguindark 7d52d612ce
rand: add rand.ulid() (#5979)
* removed debug println

* added newline to the end of the file

* time: add .unix_time_milli() method; rand,time: add tests

* rand: add more ulid tests; move tests to a separate file random_identifiers_test.v

* run vfmt over vlib/rand/random_identifiers_test.v

* speed up time.unix_time_milli

* simplify and speedup time.unix_time/0 and time.new_time/1

* update comment about rand.ulid()

* fix terminating 0 off by 1 issue in rand.ulid()

* optimize time.new_time()

* restore the master version of vlib/time/parse.v

* make test_unix_time more robust

Co-authored-by: Delyan Angelov <delian66@gmail.com>
2020-07-26 13:10:56 +03:00
..
benchmark
bitfield
builtin ci: prepare for enabling compilation with g++ again 2020-07-25 20:20:49 +03:00
cli cli: prevent need for unsafe block (#5937) 2020-07-22 20:53:49 +03:00
clipboard unsafe: tag with unsafe{} some more pointer manipulations 2020-07-22 21:42:51 +03:00
crypto tests: fix some tests 2020-07-24 01:55:55 +02:00
darwin
dl
encoding utf8: fix a panic in utf8.len("pippo"), mark with `unsafe{}` direct pointer manipulations 2020-07-22 21:15:27 +03:00
eventbus
flag
fontstash
gg gg: always use stb_truetype for now 2020-07-13 01:02:50 +02:00
glm
gx
hash CI: fix failing tests because of hash.wyhash duplicates 2020-07-18 15:27:57 +03:00
json vlib: add unsafe{} wrappers to C. fn calls, to allow compiling with -prod again 2020-07-21 09:05:31 +03:00
live live: fix compilation 2020-07-24 08:45:28 +03:00
log log: add flush to log file (#5942) 2020-07-23 08:02:53 +03:00
math
mysql
net websocket: add tests (#5967) 2020-07-25 22:25:31 +02:00
orm
os os: implement os.system for iOS and uncomment the `$if ios` blocks (#5947) 2020-07-24 10:17:32 +03:00
os2
pg
picoev examples: fix `v build-examples` 2020-07-24 13:29:47 +03:00
picohttpparser examples: fix `v build-examples` 2020-07-24 13:29:47 +03:00
rand rand: add rand.ulid() (#5979) 2020-07-26 13:10:56 +03:00
readline repl: fix BSDs 2020-06-03 08:44:44 +03:00
regex v/checker: Warn about pointer indexing outside unsafe {} (#5918) 2020-07-22 20:28:53 +03:00
runtime runtime: simplify nr_cpus(), add a test for nr_jobs() 2020-07-20 17:36:44 +03:00
sokol
sqlite time: add .format_ss_milli and .format_ss_micro methods 2020-07-21 11:58:33 +03:00
stbi
strconv all: cached modules fixes 2020-07-18 11:15:44 +02:00
strings builtin: unsafe vlib pointer indexing (#5836) 2020-07-15 21:56:50 +02:00
sync vlib: add unsafe{} wrappers to C. fn calls, to allow compiling with -prod again 2020-07-21 09:05:31 +03:00
szip cgen: fix warnings (#5820) 2020-07-14 00:16:31 +02:00
term term: fix panic in term.header, when cols,rows from get_terminal_size are < 2 2020-07-24 08:34:39 +03:00
time rand: add rand.ulid() (#5979) 2020-07-26 13:10:56 +03:00
v ci: fix remaining failing tests. Do mut ptr check only outside unsafe{} blocks. 2020-07-26 10:59:07 +03:00
vweb gen: compile time for (methods and fields) (#5957) 2020-07-25 00:02:44 +02:00
.vdocignore