~alwinfy

Recent activity

[PATCH 2/2] Paginate popular cmd, now we can see everything in a guild 2 months ago

From to ~williewillus/public-inbox

From: Alwinfy <20421383+Alwinfy@users.noreply.github.com>

---
 main.rkt | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/main.rkt b/main.rkt
index 5ba5db4..cec8a66 100755
--- a/main.rkt
+++ b/main.rkt
@@ -203,17 +203,20 @@
        (> (trick-invocations l) (trick-invocations r)))))

(define (popular-tricks client db message text)
[message trimmed]

[PATCH 1/2] Fallback to update behavior if registering an extant trick 2 months ago

From to ~williewillus/public-inbox

From: Alwinfy <20421383+Alwinfy@users.noreply.github.com>

---
 main.rkt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.rkt b/main.rkt
index ca7aadd..5ba5db4 100755
--- a/main.rkt
+++ b/main.rkt
@@ -133,7 +133,7 @@
     [(not body) (~a "Trick " name " needs a body!")]
     [(db:add-trick! db context-id name (thunk (make-trick body message #f)))
      (~a "Successfully registered trick " name "!")]
[message trimmed]

[PATCH] Fix trickstorages deserializing as immutable 2 months ago

From to ~williewillus/public-inbox

From: Alwinfy <20421383+Alwinfy@users.noreply.github.com>

---
 main.rkt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.rkt b/main.rkt
index dcd1f10..ca7aadd 100755
--- a/main.rkt
+++ b/main.rkt
@@ -399,7 +399,7 @@
   (hash-ref json 'author)
   (hash-ref json 'body)
   (hash-ref json 'created)
[message trimmed]

[PATCH] Implement persistent trick storages 4 months ago

From to ~williewillus/public-inbox

From: Alwinfy <20421383+Alwinfy@users.noreply.github.com>

---
nice
 main.rkt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/main.rkt b/main.rkt
index 314de4e..dc1afba 100755
--- a/main.rkt
+++ b/main.rkt
@@ -283,7 +283,7 @@
  (let ([datum (and~> trick
                      trick-storage
[message trimmed]

[PATCH racket-rfc8949 v2] Make read-n-bytes performant (tm) 5 months ago

From to ~williewillus/public-inbox

From: Alwinfy <20421383+Alwinfy@users.noreply.github.com>

---
 decode.rkt | 30 +++++++++++-------------------
 1 file changed, 11 insertions(+), 19 deletions(-)

diff --git a/decode.rkt b/decode.rkt
index 1d89bc4..0be5aaf 100644
--- a/decode.rkt
+++ b/decode.rkt
@@ -11,15 +11,13 @@
      res
      (error "Unexpected EOF")))

[message trimmed]

[PATCH racket-rfc8949] Make read-n-bytes performant (tm) 5 months ago

From to ~williewillus/public-inbox

From: Alwinfy <20421383+Alwinfy@users.noreply.github.com>

---
 main.rkt | 33 ++++++++++++---------------------
 1 file changed, 12 insertions(+), 21 deletions(-)

diff --git a/main.rkt b/main.rkt
index 73366e5..430069d 100644
--- a/main.rkt
+++ b/main.rkt
@@ -8,15 +8,13 @@
; Parameter that holds the object used to represent undefined
(define cbor-undefined (make-parameter 'undefined #f 'cbor-undefined))

[message trimmed]

[PATCH v2] Implement trick-local storage 5 months ago

From to ~williewillus/public-inbox

From: Alwinfy <20421383+Alwinfy@users.noreply.github.com>

---
Same as last time, but rebased and formatted.
 main.rkt              | 41 +++++++++++++++++++++++++++++++++++++++--
 scribblings/r16.scrbl | 32 ++++++++++++++++++++++++++++----
 2 files changed, 67 insertions(+), 6 deletions(-)

diff --git a/main.rkt b/main.rkt
index 302c66a..3bed30e 100755
--- a/main.rkt
+++ b/main.rkt
@@ -32,6 +32,7 @@
  (author
[message trimmed]

Re: [PATCH r16] Display custom-write? results in sandbox context 6 months ago

From Alwinfy to ~williewillus/public-inbox

On 3/28/21 3:10 AM, eutro wrote:

> -                     list))
> -           (stdout (get-output evaluator))
> -           (stderr (get-error-output evaluator)))
> +                     (lambda results
> +                       (map
> +                        (lambda (result)
> +                          (if (custom-write? result)
> +                              (call-in-sandbox-context evaluator (thunk (~a result)))
> +                              result))
> +                        results)))]
> +           [stdout (get-output evaluator)]
> +           [stderr (get-error-output evaluator)])

[PATCH r16] Implement trick-local storage 6 months ago

From to ~williewillus/public-inbox

From: Alwinfy <20421383+Alwinfy@users.noreply.github.com>

---
Trick-local storage is currently *transient*.
By necessity, evaluation-contexts now know what trick they're from;
read/write are no-ops for `!rkt eval`.
Storage comes in three varieties: global (64kb), per-channel (8kb), per-user (2kb).
Right now they use `write` for measuring/saving stored data, for lower overhead than `serialize`.

 .gitignore            |  1 +
 r16.rkt               | 39 +++++++++++++++++++++++++++++++++++++--
 scribblings/r16.scrbl | 30 ++++++++++++++++++++++++++----
 3 files changed, 64 insertions(+), 6 deletions(-)
[message trimmed]

[PATCH r16] Alwinfy info + more demo work 6 months ago

From to ~williewillus/public-inbox

From: Alwinfy <20421383+Alwinfy@users.noreply.github.com>

---
First binary patch lol

 presentation/doot.wav     | Bin 0 -> 57275 bytes
 presentation/doots2.png   | Bin 0 -> 297468 bytes
 presentation/fractals.png | Bin 0 -> 318580 bytes
 presentation/main.rkt     |  27 +++++++++++++++++----------
 4 files changed, 17 insertions(+), 10 deletions(-)
 create mode 100644 presentation/doot.wav
 create mode 100644 presentation/doots2.png
 create mode 100644 presentation/fractals.png
[message trimmed]