9c9533dad9 
								
									
								
							
								 
							
						 
						
							
							
								
								checker: add error for `fn f() Struct { return &Struct{} }` ( #6019 )  
							
							
							
						 
						
							2020-07-29 21:40:43 +02:00  
				
					
						
							
							
								 
						
							
							
								dfa01d8877 
								
							
								 
							
						 
						
							
							
								
								rand: add rand.ulid_at_millisecond/1, use it in rand.ulid/0  
							
							
							
						 
						
							2020-07-26 14:17:29 +03:00  
				
					
						
							
							
								 
						
							
							
								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  
				
					
						
							
							
								 
						
							
							
								6fcc6cdc75 
								
							
								 
							
						 
						
							
							
								
								rand: add comments for rand.uuid_v4, apply some more perf tweaks  
							
							
							
						 
						
							2020-07-25 21:39:54 +03:00  
				
					
						
							
							
								 
						
							
							
								ee3ebed23c 
								
							
								 
							
						 
						
							
							
								
								rand: further speed up of rand.uuid_v4  
							
							
							
						 
						
							2020-07-25 20:21:44 +03:00  
				
					
						
							
							
								 
						
							
							
								d5b837e808 
								
							
								 
							
						 
						
							
							
								
								rand: speed up rand.uuid_v4() ~7x, with -prod  
							
							
							
						 
						
							2020-07-25 13:09:05 +03:00  
				
					
						
							
							
								 
						
							
							
								289974dd15 
								
							
								 
							
						 
						
							
							
								
								rand: use time microseconds too in default rand initialization; generate proper uuid_v4  
							
							
							
						 
						
							2020-07-24 14:33:58 +03:00  
				
					
						
							
							
								 
						
							
							
								c429fa7e27 
								
							
								 
							
						 
						
							
							
								
								rand: add test for rand.uuid_v4()  
							
							
							
						 
						
							2020-07-24 14:01:48 +03:00  
				
					
						
							
							
								 
						
							
							
								bba0edf9a3 
								
							
								 
							
						 
						
							
							
								
								rand: add rand.uuid_v4()  
							
							
							
						 
						
							2020-07-24 13:59:24 +03:00  
				
					
						
							
							
								 
						
							
							
								ec443c65a8 
								
							
								 
							
						 
						
							
							
								
								tests: fix some tests  
							
							
							
						 
						
							2020-07-24 01:55:55 +02:00  
				
					
						
							
							
								 
						
							
							
								ee349691f9 
								
									
								
							
								 
							
						 
						
							
							
								
								v/checker: Warn about pointer indexing outside unsafe {} ( #5918 )  
							
							
							
						 
						
							2020-07-22 20:28:53 +03:00  
				
					
						
							
							
								 
						
							
							
								0af415fa28 
								
							
								 
							
						 
						
							
							
								
								vlib: add unsafe{} wrappers to C. fn calls, to allow compiling with -prod again  
							
							
							
						 
						
							2020-07-21 09:05:31 +03:00  
				
					
						
							
							
								 
						
							
							
								de0fc53d62 
								
							
								 
							
						 
						
							
							
								
								CI: fix failing tests because of hash.wyhash duplicates  
							
							
							
						 
						
							2020-07-18 15:27:57 +03:00  
				
					
						
							
							
								 
						
							
							
								c563168d69 
								
							
								 
							
						 
						
							
							
								
								rand: string()  
							
							
							
						 
						
							2020-07-15 21:36:09 +02:00  
				
					
						
							
							
								 
						
							
							
								f61a7bf3df 
								
									
								
							
								 
							
						 
						
							
							
								
								os,rand.mt19937: fix broken links in code comments ( #5806 )  
							
							
							
						 
						
							2020-07-12 16:18:52 +03:00  
				
					
						
							
							
								 
						
							
							
								c84bafbdae 
								
									
								
							
								 
							
						 
						
							
							
								
								vlib,cgen: cleanup array inits using `.repeat() instead of new init syntax  
							
							
							
						 
						
							2020-06-27 21:46:04 +02:00  
				
					
						
							
							
								 
						
							
							
								e649cf84e3 
								
									
								
							
								 
							
						 
						
							
							
								
								rand: reorganize: phase 2  
							
							
							
						 
						
							2020-06-09 15:06:07 +02:00  
				
					
						
							
							
								 
						
							
							
								11b7b97311 
								
									
								
							
								 
							
						 
						
							
							
								
								parser: fail when assigning to _ with :=  
							
							
							
						 
						
							2020-06-08 00:47:04 +02:00  
				
					
						
							
							
								 
						
							
							
								13a7ce9e69 
								
							
								 
							
						 
						
							
							
								
								gg: GG => Context  
							
							
							
						 
						
							2020-06-04 20:26:18 +02:00  
				
					
						
							
							
								 
						
							
							
								13c68eb81e 
								
									
								
							
								 
							
						 
						
							
							
								
								rand: fix warnings  
							
							
							
						 
						
							2020-06-02 06:39:38 +02:00  
				
					
						
							
							
								 
						
							
							
								a7c84834f4 
								
									
								
							
								 
							
						 
						
							
							
								
								rand: reorganize (step 1)  
							
							
							
						 
						
							2020-06-01 21:13:56 +02:00  
				
					
						
							
							
								 
						
							
							
								e89ae7e194 
								
									
								
							
								 
							
						 
						
							
							
								
								rand: refactor rand.v and random_numbers_test.v  
							
							
							
						 
						
							2020-05-28 02:16:17 +03:00  
				
					
						
							
							
								 
						
							
							
								48cc8dd86b 
								
									
								
							
								 
							
						 
						
							
							
								
								rand: cleanup of rand_f32xxx and rand_f64xxx functions  
							
							
							
						 
						
							2020-05-27 20:13:57 +03:00  
				
					
						
							
							
								 
						
							
							
								8c753ddf8d 
								
									
								
							
								 
							
						 
						
							
							
								
								rand: add random functions for f32 and f64, [0,max] and [min,max] versions  
							
							
							
						 
						
							2020-05-27 16:41:37 +03:00  
				
					
						
							
							
								 
						
							
							
								7f4cf08516 
								
									
								
							
								 
							
						 
						
							
							
								
								parser: check `(mut f Foo)` syntax  
							
							
							
						 
						
							2020-05-17 13:51:18 +02:00  
				
					
						
							
							
								 
						
							
							
								e9177faf17 
								
							
								 
							
						 
						
							
							
								
								checker: allow `*x = y` only inside unsafe blocks  
							
							
							
						 
						
							2020-05-11 16:05:59 +02:00  
				
					
						
							
							
								 
						
							
							
								682838a0cf 
								
									
								
							
								 
							
						 
						
							
							
								
								checker: check array and fields mutability  
							
							
							
						 
						
							2020-04-27 22:53:26 +02:00  
				
					
						
							
							
								 
						
							
							
								9f4d498ff1 
								
									
								
							
								 
							
						 
						
							
							
								
								all: update`import ()` and `[]array`  
							
							
							
						 
						
							2020-04-26 13:49:31 +02:00  
				
					
						
							
							
								 
						
							
							
								153ac230ec 
								
							
								 
							
						 
						
							
							
								
								tests: use new array init syntax, fix mutability  
							
							
							
						 
						
							2020-04-26 11:56:30 +02:00  
				
					
						
							
							
								 
						
							
							
								a9a8f8c804 
								
							
								 
							
						 
						
							
							
								
								rand: remove duplicate C fn  
							
							
							
						 
						
							2020-04-13 20:11:44 +02:00  
				
					
						
							
							
								 
						
							
							
								5247d5924e 
								
							
								 
							
						 
						
							
							
								
								tests: stats_test.v, pcg32_test.v, splitmix64_test.v now also pass  
							
							
							
						 
						
							2020-04-08 17:29:43 +03:00  
				
					
						
							
							
								 
						
							
							
								8e06f4e519 
								
							
								 
							
						 
						
							
							
								
								tests: rename vlib/rand/rand_test.v to random_numbers_test.v to fix sporadic CI fails  
							
							
							
						 
						
							2020-04-08 03:04:04 +03:00  
				
					
						
							
							
								 
						
							
							
								ef339a4896 
								
									
								
							
								 
							
						 
						
							
							
								
								rand: update module  
							
							
							
						 
						
							2020-04-03 08:53:57 +02:00  
				
					
						
							
							
								 
						
							
							
								07ea1eff81 
								
							
								 
							
						 
						
							
							
								
								glfw: more fn definitions  
							
							
							
						 
						
							2020-04-02 02:02:12 +02:00  
				
					
						
							
							
								 
						
							
							
								7f709c3285 
								
									
								
							
								 
							
						 
						
							
							
								
								update copyright years  
							
							
							
						 
						
							2020-02-03 05:00:36 +01:00  
				
					
						
							
							
								 
						
							
							
								6210984c97 
								
							
								 
							
						 
						
							
							
								
								run vfmt  
							
							
							
						 
						
							2019-12-20 02:09:56 +03:00  
				
					
						
							
							
								 
						
							
							
								f51784ee01 
								
							
								 
							
						 
						
							
							
								
								remove unnecessary casts everywhere  
							
							
							
						 
						
							2019-12-07 15:51:00 +03:00  
				
					
						
							
							
								 
						
							
							
								ddcff7e9c5 
								
							
								 
							
						 
						
							
							
								
								rand/pcg32: make the struct public  
							
							
							
						 
						
							2019-11-19 14:26:18 +03:00  
				
					
						
							
							
								 
						
							
							
								fdf6682254 
								
							
								 
							
						 
						
							
							
								
								require `unsafe` for dereferencing  
							
							
							
						 
						
							2019-11-10 19:57:17 +03:00  
				
					
						
							
							
								 
						
							
							
								1b91b31698 
								
							
								 
							
						 
						
							
							
								
								rand: add pcg32 and splitmix64 implementations  
							
							
							
						 
						
							2019-09-23 00:50:22 +03:00  
				
					
						
							
							
								 
						
							
							
								ff009f1c4e 
								
							
								 
							
						 
						
							
							
								
								rand: rand_r(seed)  
							
							
							
						 
						
							2019-09-16 22:21:21 +03:00  
				
					
						
							
							
								 
						
							
							
								f077fbd32d 
								
							
								 
							
						 
						
							
							
								
								vlib: change `[0;n]` to `[0].repeat(n)`  
							
							
							
						 
						
							2019-09-15 12:26:05 +03:00  
				
					
						
							
							
								 
						
							
							
								2cb12b4f4e 
								
							
								 
							
						 
						
							
							
								
								rand: change rand.seed() to receive seed value  
							
							
							
						 
						
							2019-07-13 18:17:45 +02:00  
				
					
						
							
							
								 
						
							
							
								4594d78bd6 
								
							
								 
							
						 
						
							
							
								
								move all vlib modules to vlib/  
							
							
							
						 
						
							2019-06-29 12:00:31 +02:00