trapped on the surface of a sphere
she/her
From Ember Sawady to ~sircmpwn/hare-dev
On Wed Dec 4, 2024 at 3:52 AM UTC, Bor Grošelj Simić wrote: > > +export fn init(seed: (u64 | void) = void) random = { > > + match (seed) { > > + case void => > > + return time::now(time::clock::MONOTONIC).sec: random; > > + case let r: u64 => > > + return r; > > + }; > > +}; > > Sorry, I know this was already merged, but I think this is problematic, because > by using sec, you effectively make all of the generators created in the same > second behave the same (across processes also!). We should take a look at what > other programming languages do, but the safest thing would be to initalize with
From Ember Sawady to ~sircmpwn/hare-dev
hrm, is the trailing nul in append_buffer still necessary? it seemed to work without that for me (if it's still needed outside of the lexer, i'm pretty sure it could still be simulated by copying the trailing nul from the appended string)
From Ember Sawady to ~sircmpwn/hare-dev
thanks! to git@git.sr.ht:~sircmpwn/hare 4f3781a6..6b91d398 master -> master
From Ember Sawady to ~sircmpwn/hare-dev
thanks! to git@git.sr.ht:~sircmpwn/hare 4f3781a6..6b91d398 master -> master
From Ember Sawady to ~sircmpwn/hare-dev
thanks! to git@git.sr.ht:~sircmpwn/hare 4f3781a6..6b91d398 master -> master
From Ember Sawady to ~sircmpwn/hare-dev
thanks! to git@git.sr.ht:~sircmpwn/hare 4f3781a6..6b91d398 master -> master
From Ember Sawady to ~sircmpwn/hare-dev
thanks! to git@git.sr.ht:~sircmpwn/hare 4f3781a6..6b91d398 master -> master
From Ember Sawady to ~sircmpwn/hare-dev
thanks! to git@git.sr.ht:~sircmpwn/hare 4f3781a6..6b91d398 master -> master
From Ember Sawady to ~sircmpwn/hare-dev
thanks! to git@git.sr.ht:~sircmpwn/hare 4f3781a6..6b91d398 master -> master
From Ember Sawady to ~sircmpwn/hare-dev
thanks! to git@git.sr.ht:~sircmpwn/hare 4f3781a6..6b91d398 master -> master