~alwinfy

Recent activity

[PATCH] Implement persistent trick storages a month 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) 2 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) 2 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 2 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 2 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 3 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 3 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]

Re: [PATCH r16] Eliminate flatten trick context into db and guild id 3 months ago

From Alwinfy to ~williewillus/public-inbox

probably should have done this to start with, tbh :wacko:
yeah, haven't tested but from reading it lgtm

[PATCH r16 v2] Add methods to lookup and fetch emotes 3 months ago

From to ~williewillus/public-inbox

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

---
 r16.rkt | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/r16.rkt b/r16.rkt
index ccef9a6..c138337 100755
--- a/r16.rkt
+++ b/r16.rkt
@@ -8,6 +8,7 @@

  (only-in racket/serialize serializable-struct/versions)
  (only-in "evaluator.rkt" (run ev:run))
[message trimmed]

[PATCH] Patch stuff 3 months ago

From to ~williewillus/public-inbox

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

---

> Also, how are animated emotes handled?
Unhandled right now due to a racketcord limitation.

> I'm not really sure why this check/the whitelist cache is necessary?
Not necessary, but it saves on net accesses in case some asshole decides
to go all `(for ([i in-naturals]) (emote-image (~a i)))`.

For everything else, see below:

 r16.rkt | 29 ++++++++++++++++++++++-------
[message trimmed]