~torresjrjr

Europe/London

https://torresjrjr.com/

~torresjrjr/public-inbox

Last active 19 days ago

~torresjrjr/nest-devel

Last active 7 months ago

~torresjrjr/nest-announce

Last active 7 months ago

~torresjrjr/lateximgbot-devel

Last active 10 months ago

~torresjrjr/lateximgbot-announce

Last active 10 months ago

~torresjrjr/bezier.py-devel

Last active 10 months ago

~torresjrjr/bezier.py-announce

Last active 10 months ago

~torresjrjr/go-nestedtext-discuss

Last active 1 year, 2 months ago

~torresjrjr/go-nestedtext-devel

Last active 1 year, 2 months ago

~torresjrjr/go-nestedtext-announce

Last active 1 year, 2 months ago
View more

Recent activity

Re: [PATCH RFC hare 2/2] time::chrono,datetime: embed instant into moment 2 days ago

From Byron Torres to ~sircmpwn/hare-dev

On Sat Jul 2, 2022 at 4:15 PM BST, Drew DeVault wrote:
> On Sat Jul 2, 2022 at 5:11 PM CEST, Byron Torres wrote:
> > On Sat Jul 2, 2022 at 4:02 PM BST, Drew DeVault wrote:
> > > Can you rebase your v2 against master and send the diff as a v3?
> >
> > The v2 is mergeable onto the current master.
> > Are you asking for a single big patch of it?
>
> No, I had assumed that there would be merge conflicts if I tried to
> apply it on top of the already-applied v1. I will try it and see if this
> is the case next time I sit down with the patch queue.

For the record, I don't see v1 applied onto master. No commits of mine
since f7fbfeac ("datetime: simplify calc_date_from_ywd()").

Re: [PATCH RFC hare 2/2] time::chrono,datetime: embed instant into moment 2 days ago

From Byron Torres to ~sircmpwn/hare-dev

On Sat Jul 2, 2022 at 4:02 PM BST, Drew DeVault wrote:
> Can you rebase your v2 against master and send the diff as a v3?

The v2 is mergeable onto the current master.
Are you asking for a single big patch of it?

Re: [PATCH RFC hare 2/2] time::chrono,datetime: embed instant into moment 2 days ago

From Byron Torres to ~sircmpwn/hare-dev

On Sat Jul 2, 2022 at 10:33 AM BST, Drew DeVault wrote:
> Error ./datetime/parse.ha:150:39: Cannot select field from non-struct, non-union object

You applied the v1 RFC. I sent a v2.

	https://lists.sr.ht/~sircmpwn/hare-dev/patches/33225

By the way, is it generally helpful for submitters to reply to old
version threads with something like the following?:

	Please disregard this patchset. See vN.

Re: [PATCH hare v3] time::chrono: use TZDIR environment variable 7 days ago

From Byron Torres to ~sircmpwn/hare-dev

Thanks for contributing.

The TZDIR seems to be a de facto standard not really described anywhere.
I think it's a good idea to support it. If you could compile some
sources which describe the usage of TZDIR in certain OSs, and put that
in the commentary, that would help onlookers.

Note, it is common practice to create a new email thread for each patch
version, not reply to the old version.

On Mon Jun 27, 2022 at 2:24 AM BST, Antero Mejr wrote:
> Good point, forgot about tryenv.
>
> Thanks,

[PATCH hare v2 12/12] datetime: revert %I and %p code 11 days ago

From Byron Torres to ~sircmpwn/hare-dev

Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 datetime/parse.ha | 46 +++++++++-------------------------------------
 1 file changed, 9 insertions(+), 37 deletions(-)

diff --git a/datetime/parse.ha b/datetime/parse.ha
index a6326e6f..4c111b88 100644
--- a/datetime/parse.ha
+++ b/datetime/parse.ha
@@ -65,22 +65,17 @@ export fn parse(build: *builder, layout: str, s: str) (void | invalid) = {
		case 'H' =>
			build.hour = trunc_int(scan_int(&iter, 2)?, 0, 23);
		case 'I' =>
			const hour = scan_int(&iter, 2);
[message trimmed]

[PATCH hare v2 11/12] datetime: parse: tidy code 11 days ago

From Byron Torres to ~sircmpwn/hare-dev

Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 datetime/parse.ha | 174 +++++++++++++++++++++++-----------------------
 1 file changed, 86 insertions(+), 88 deletions(-)

diff --git a/datetime/parse.ha b/datetime/parse.ha
index e7883868..a6326e6f 100644
--- a/datetime/parse.ha
+++ b/datetime/parse.ha
@@ -19,93 +19,81 @@ use time::chrono;
// 	datetime::parse(&builder, "%H:%M:%S", "03:14:07");
//
export fn parse(build: *builder, layout: str, s: str) (void | invalid) = {
	const format_iter = strings::iter(layout);
[message trimmed]

[PATCH hare v2 10/12] datetime: format: fix %j (ordinal-day/yearday) 11 days ago

From Byron Torres to ~sircmpwn/hare-dev

Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 datetime/format.ha | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/datetime/format.ha b/datetime/format.ha
index bce0d8c0..2282d459 100644
--- a/datetime/format.ha
+++ b/datetime/format.ha
@@ -114,7 +114,7 @@ fn fmtout(out: io::handle, r: rune, dt: *datetime) (size | io::error) = {
	case 'I' =>
		return fmt::fprintf(out, "{:02}", (_hour(dt) + 11) % 12 + 1);
	case 'j' =>
		return fmt::fprint(out, strconv::itos(_yearday(dt)));
[message trimmed]

[PATCH hare v2 08/12] datetime: format: simplify %p (AM/PM) 11 days ago

From Byron Torres to ~sircmpwn/hare-dev

Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 datetime/format.ha | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/datetime/format.ha b/datetime/format.ha
index f0a60ef4..abe8861d 100644
--- a/datetime/format.ha
+++ b/datetime/format.ha
@@ -124,12 +124,7 @@ fn fmtout(out: io::handle, r: rune, dt: *datetime) (size | io::error) = {
	case 'N' =>
		return fmt::fprintf(out, "{:09}", strconv::itos(_nanosecond(dt)));
	case 'p' =>
		const s = if (_hour(dt) < 12) {
[message trimmed]

[PATCH hare v2 09/12] datetime: format: simplify %y (year of century) 11 days ago

From Byron Torres to ~sircmpwn/hare-dev

Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 datetime/format.ha | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/datetime/format.ha b/datetime/format.ha
index abe8861d..bce0d8c0 100644
--- a/datetime/format.ha
+++ b/datetime/format.ha
@@ -136,9 +136,7 @@ fn fmtout(out: io::handle, r: rune, dt: *datetime) (size | io::error) = {
	case 'W' =>
		return fmt::fprintf(out, "{:02}", _week(dt));
	case 'y' =>
		let year_str = strconv::itos(_year(dt));
[message trimmed]

[PATCH hare v2 07/12] datetime: format: simplify %I (12 hour) 11 days ago

From Byron Torres to ~sircmpwn/hare-dev

Signed-off-by: Byron Torres <b@torresjrjr.com>
---
 datetime/format.ha | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/datetime/format.ha b/datetime/format.ha
index 786c8a57..f0a60ef4 100644
--- a/datetime/format.ha
+++ b/datetime/format.ha
@@ -112,7 +112,7 @@ fn fmtout(out: io::handle, r: rune, dt: *datetime) (size | io::error) = {
	case 'H' =>
		return fmt::fprintf(out, "{:02}", _hour(dt));
	case 'I' =>
		return fmt::fprintf(out, "{:02}", hour12(dt));
[message trimmed]