~patwid

Zürich

https://patwid.srht.site

I write code.

Recent activity

Re: bleh 2 months ago

From Patrick Widmer to ~sircmpwn/public-inbox

For a few years already, I have been following your work. I really
appreciate what you are doing. You are a true inspiration for me,
personally. I would like to take this opportunity and thank you for all
your efforts.

All the best,
Patrick

[PATCH hare v4] encoding::json: fix infinite loop in iterator next 3 months ago

From Patrick Widmer to ~sircmpwn/public-inbox

Signed-off-by: Patrick Widmer <patrick.widmer@tbwnet.ch>
---
Improve test case by using object containing multiple pairs

 encoding/json/+test/value.ha | 15 +++++++++++++++
 encoding/json/value.ha       |  4 +++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/encoding/json/+test/value.ha b/encoding/json/+test/value.ha
index 79e08dea..41127148 100644
--- a/encoding/json/+test/value.ha
+++ b/encoding/json/+test/value.ha
@@ -18,3 +18,18 @@
	del(&obj, "hello");
[message trimmed]

[PATCH hare v3] encoding::json: fix infinite loop in iterator next 3 months ago

From Patrick Widmer to ~sircmpwn/public-inbox

Signed-off-by: Patrick Widmer <patrick.widmer@tbwnet.ch>
---
Add simple test case for iterator, as suggested

 encoding/json/+test/value.ha | 13 +++++++++++++
 encoding/json/value.ha       |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/encoding/json/+test/value.ha b/encoding/json/+test/value.ha
index 79e08dea..a614d1e0 100644
--- a/encoding/json/+test/value.ha
+++ b/encoding/json/+test/value.ha
@@ -18,3 +18,16 @@
	del(&obj, "hello");
[message trimmed]

[PATCH hare v2] encoding::json: fix infinite loop in iterator next 3 months ago

From Patrick Widmer to ~sircmpwn/public-inbox

Signed-off-by: Patrick Widmer <patrick.widmer@tbwnet.ch>
---
Previously, next calls would infinitely return the same entry.

 encoding/json/value.ha | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/encoding/json/value.ha b/encoding/json/value.ha
index 486be438..8fd1f642 100644
--- a/encoding/json/value.ha
+++ b/encoding/json/value.ha
@@ -75,11 +75,13 @@ export fn iter(obj: *object) iterator = {
export fn next(iter: *iterator) ((const str, const *value) | void) = {
	for (iter.i < len(iter.obj.buckets); iter.i += 1) {
[message trimmed]

[PATCH hare] encoding::json: fix iterator next 3 months ago

From Patrick Widmer to ~sircmpwn/public-inbox

Signed-off-by: Patrick Widmer <patrick.widmer@tbwnet.ch>
---
This is my first patch to hare and also the first patch submitted using
git send-email.

Let me know if there is a better way of fixing the issue at hand.

 encoding/json/value.ha | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/encoding/json/value.ha b/encoding/json/value.ha
index 486be438..8fd1f642 100644
--- a/encoding/json/value.ha
+++ b/encoding/json/value.ha
[message trimmed]

[PATCH v2] Demonstrate that I can use git send-email 3 months ago

From Patrick Widmer to ~sircmpwn/email-test-drive

---
 patrick-widmer | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 patrick-widmer

diff --git a/patrick-widmer b/patrick-widmer
new file mode 100644
index 0000000..66cb3d4
--- /dev/null
+++ b/patrick-widmer
@@ -0,0 +1 @@
I have successfully used git send-email!
-- 
2.36.1
[message trimmed]

[PATCH] Demonstrate that I can use git send-email 3 months ago

From Patrick Widmer to ~sircmpwn/email-test-drive

---
 patrick-widmer | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 patrick-widmer

diff --git a/patrick-widmer b/patrick-widmer
new file mode 100644
index 0000000..6d0ecfd
--- /dev/null
+++ b/patrick-widmer
@@ -0,0 +1 @@
I'm about to try git send-email
-- 
2.36.1
[message trimmed]