~ecs

trapped on the surface of a sphere

https://ecs.d2evs.net

she/her

~ecs/mrsh-dev

Last active a month ago

~ecs/public-inbox

Last active 5 months ago
View more

Recent activity

Re: [PATCH hare] math::random: seed from current time if seed not provided 4 hours ago

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

Re: [PATCH harec 2/3] lex: enforce lexer->buf trailing 0 byte only where needed 5 hours ago

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)

Re: [PATCH hare v3] unix::signal: change handle interface to use default args 6 hours ago

From Ember Sawady to ~sircmpwn/hare-dev

thanks!

to git@git.sr.ht:~sircmpwn/hare
  4f3781a6..6b91d398  master -> master

Re: [PATCH hare] strconv: add default arguments to ftosf and fftosf 6 hours ago

From Ember Sawady to ~sircmpwn/hare-dev

thanks!

to git@git.sr.ht:~sircmpwn/hare
  4f3781a6..6b91d398  master -> master

Re: [PATCH hare] math::random: seed from current time if seed not provided 6 hours ago

From Ember Sawady to ~sircmpwn/hare-dev

thanks!

to git@git.sr.ht:~sircmpwn/hare
  4f3781a6..6b91d398  master -> master

Re: [PATCH hare] types::c: add sig_atomic 6 hours ago

From Ember Sawady to ~sircmpwn/hare-dev

thanks!

to git@git.sr.ht:~sircmpwn/hare
  4f3781a6..6b91d398  master -> master

Re: [PATCH hare] encoding::utf8: document behavior of next on invalid codepoint 6 hours ago

From Ember Sawady to ~sircmpwn/hare-dev

thanks!

to git@git.sr.ht:~sircmpwn/hare
  4f3781a6..6b91d398  master -> master

Re: [PATCH hare] rt: make sigact function pointer fields nullable 6 hours ago

From Ember Sawady to ~sircmpwn/hare-dev

thanks!

to git@git.sr.ht:~sircmpwn/hare
  4f3781a6..6b91d398  master -> master

Re: [PATCH hare] rt: use pid_t in more places 6 hours ago

From Ember Sawady to ~sircmpwn/hare-dev

thanks!

to git@git.sr.ht:~sircmpwn/hare
  4f3781a6..6b91d398  master -> master

Re: [PATCH hare] uuid: update RFC number in README 6 hours ago

From Ember Sawady to ~sircmpwn/hare-dev

thanks!

to git@git.sr.ht:~sircmpwn/hare
  4f3781a6..6b91d398  master -> master