~apreiml

Austria

https://denkmaschine.at/

~apreiml/hare-tls

Last active 6 months ago

~apreiml/public-inbox

Last active 5 years ago
View more

Recent activity

Re: [PATCH hare v3] time: nomem updates an hour ago

From Armin Preiml to ~sircmpwn/hare-dev

Applied!

To https://git.sr.ht/~sircmpwn/hare
   dc65431e..e6ce2783  master -> master

Re: [PATCH hare v2] time: nomem updates 2 days ago

From Armin Preiml to ~sircmpwn/hare-dev

On Sat Apr 19, 2025 at 11:27 PM CEST, Byron Torres wrote:
> On Fri Apr 18, 2025 at 7:32 AM BST, Armin Preiml wrote:
>> Breaking-Change: nomem::
>
> Personal side notes, ignore at will:
>
>>  export fn bsformat(buf: []u8, layout: str, d: *date) (str | io::error) = {
>>  	let sink = memio::fixed(buf);
>> -	format(&sink, layout, d)?;
>> +	match (format(&sink, layout, d)) {
>> +	case size => void;
>> +	case nomem =>
>> +		return nomem;
>> +	case =>

[PATCH hare v3] time: nomem updates 2 days ago

From Armin Preiml to ~sircmpwn/hare-dev

Breaking-Change: nomem::
Signed-off-by: Armin Preiml <apreiml@strohwolke.at>
---

v3: change bsformat return type to (size | nomem)

 time/chrono/timescale.ha | 99 +++++++++++++++++++++++++---------------
 time/chrono/utc.ha       | 17 +++++--
 time/date/format.ha      | 26 ++++++++---
 time/date/posix.ha       |  6 +--
 time/date/timezone.ha    | 18 ++++++--
 time/date/tzdb.ha        | 54 ++++++++++++++--------
 time/date/virtual.ha     | 15 +++---
 7 files changed, 153 insertions(+), 82 deletions(-)
[message trimmed]

[PATCH hare v2] time: nomem updates 6 days ago

From Armin Preiml to ~sircmpwn/hare-dev

Breaking-Change: nomem::
Signed-off-by: Armin Preiml <apreiml@strohwolke.at>
---
 time/chrono/timescale.ha | 99 +++++++++++++++++++++++++---------------
 time/chrono/utc.ha       | 17 +++++--
 time/date/format.ha      | 24 ++++++++--
 time/date/posix.ha       |  6 +--
 time/date/timezone.ha    | 18 ++++++--
 time/date/tzdb.ha        | 54 ++++++++++++++--------
 time/date/virtual.ha     | 15 +++---
 7 files changed, 152 insertions(+), 81 deletions(-)

diff --git a/time/chrono/timescale.ha b/time/chrono/timescale.ha
index aed1596d..5d8a1695 100644
[message trimmed]

Re: [PATCH hare] time: nomem updates 6 days ago

From Armin Preiml to ~sircmpwn/hare-dev

On Wed Apr 16, 2025 at 12:33 PM CEST, Byron Torres wrote:
> On Wed Apr 16, 2025 at 10:40 AM BST, Armin Preiml wrote:
>> On Wed Apr 16, 2025 at 11:20 AM CEST, Byron Torres wrote:
>>> On Tue Apr 15, 2025 at 3:33 PM BST, Armin Preiml wrote:
>>>>  // Formats a [[date]] and writes it into a heap-allocated string.
>>>>  // The caller must free the return value.
>>>> -export fn asformat(layout: str, d: *date) (str | io::error) = {
>>>> +export fn asformat(layout: str, d: *date) (str | io::error | nomem) = {
>>>>  	let sink = memio::dynamic();
>>>> -	format(&sink, layout, d)?;
>>>> +	match (format(&sink, layout, d)) {
>>>> +	case size => void;
>>>> +	case let e: io::error =>
>>>> +		if (e is nomem) {

[PATCH himitsu v2 6/6] hiq: add -e to edit entries by providing changes via stdin 7 days ago

From Armin Preiml to ~sircmpwn/himitsu-devel

---
 cmd/hiq/main.ha | 101 +++++++++++++++++++++++++++++++++++++-----------
 1 file changed, 79 insertions(+), 22 deletions(-)

diff --git a/cmd/hiq/main.ha b/cmd/hiq/main.ha
index a56200b..e899e3e 100644
--- a/cmd/hiq/main.ha
+++ b/cmd/hiq/main.ha
@@ -30,6 +30,7 @@ export fn main() void = {
		('c', "key/value pair", "change the value of a pair. "
			"Can be used multiple times."),
		('d', "decrypt private keys"),
		('e', "edit entries matched by the query by providing changes via stdin"),
		('F', "field", "select a field for output"),
[message trimmed]

[PATCH himitsu v2 5/6] hiq: add -c option to change individual key/value pairs 7 days ago

From Armin Preiml to ~sircmpwn/himitsu-devel

---
 cmd/hiq/main.ha | 28 +++++++++++++++++++++++++---
 1 file changed, 25 insertions(+), 3 deletions(-)

diff --git a/cmd/hiq/main.ha b/cmd/hiq/main.ha
index 4e3827c..a56200b 100644
--- a/cmd/hiq/main.ha
+++ b/cmd/hiq/main.ha
@@ -27,6 +27,8 @@ export fn main() void = {
		"secure key store client",
		('1', "only accept one match"),
		('a', "add a key"),
		('c', "key/value pair", "change the value of a pair. "
			"Can be used multiple times."),
[message trimmed]

[PATCH himitsu v2 4/6] himitsud: implement the update command 7 days ago

From Armin Preiml to ~sircmpwn/himitsu-devel

---
 cmd/himitsud/client.ha   |   6 ++
 cmd/himitsud/cmd.ha      | 134 +++++++++++++++++++++++++++++++++++++++
 cmd/himitsud/socket.ha   |   2 +
 himitsu/client/client.ha |  62 ++++++++++++++++++
 himitsu/query/parse.ha   |  38 ++++++++---
 secstore/query.ha        |  23 +++++--
 secstore/secstore.ha     |   4 +-
 secstore/types.ha        |   1 +
 8 files changed, 255 insertions(+), 15 deletions(-)

diff --git a/cmd/himitsud/client.ha b/cmd/himitsud/client.ha
index a3ce964..c4afb16 100644
--- a/cmd/himitsud/client.ha
[message trimmed]

[PATCH himitsu v2 3/6] prompter: prompt update 7 days ago

From Armin Preiml to ~sircmpwn/himitsu-devel

---
 cmd/himitsud/prompter.ha  |  6 ++++++
 himitsu/prompt/command.ha |  9 +++++++--
 himitsu/prompt/prompt.ha  |  8 ++++++--
 prompt/prompter.ha        | 22 ++++++++++++++++++++++
 prompt/version.ha         |  1 +
 5 files changed, 42 insertions(+), 4 deletions(-)

diff --git a/cmd/himitsud/prompter.ha b/cmd/himitsud/prompter.ha
index fa3370a..53ca93f 100644
--- a/cmd/himitsud/prompter.ha
+++ b/cmd/himitsud/prompter.ha
@@ -3,6 +3,7 @@ use himitsu::remember;
use prompt;
[message trimmed]