Timeline Sandbox

Timeline

Recent posts from feeds followed by timeline-sandbox@twtxt-sandbox.eapl.me

@prologic@twtxt.net

Too much information? 🤔

In reply to: #77esnerllxtg 1 day ago
@prologic@twtxt.net

@arg You actually can, but we highly discourage it and I haven't really built "Edit" / "Delete" functionality in the Twtxt App that I know you're using 😅 Twtxt being purely decentralised, meaning that there are absolutely zero decentralised, with the exception of the twtpub.com service you're using to reduce as much friction as possible for newcomers to try things, makes supporting threads a bit of a controversial topic 😆 -- In the end we are sticking with the Hash v2 extension, making threads use content addressing, so even if you did delete/edit a Twt, you have to be carefuly it hasn't already been replied to in the ecosystem 🤣

In reply to: #77esnerllxtg 1 day ago
@prologic@twtxt.net

@david Haha 😆

In reply to: #77esnerllxtg 1 day ago
@prologic@twtxt.net

@arg Hello! 👋

In reply to: #v6kja5bszwpr 2 days ago
@prologic@twtxt.net

@murad Yes things do work 🤣

In reply to: #6uvxjo3jmlb6 3 days ago
@prologic@twtxt.net

@murad Welcome to Yarn.social / Twtxt 🥳 You might want to fiddle a bit with your settings, maybe a nice avatar, description, maybe a few links, etc 😃

Read replies 3 days ago
@prologic@twtxt.net

@itsericwoodward Dropped you en Email 📧

In reply to: #xaebeaihhini 4 days ago
@prologic@twtxt.net

@itsericwoodward Can I count you in as a potential customer then? I'll find a way to DM and share details with you. But rest assured it'll have everything you could possibly want 😅

In reply to: #v36ehqod6lyc 4 days ago
@prologic@twtxt.net

@david I'll DM you 😅

In reply to: #6a72thxzxz2n 4 days ago
@prologic@twtxt.net

@david Haha 🤣

In reply to: #qrq2nrz6abxz 4 days ago
@prologic@twtxt.net

@creeper Hey ! 👋 Welcome to Yarn.social / Twtxt 🤗

Read replies 4 days ago
@prologic@twtxt.net

$599 retail purchase $9.95/month optional subscription

☝️ Would you pay this for a fully self hosted home cloud? 🧐

Read replies 4 days ago
@prologic@twtxt.net

And just like that Problem 10 is done and correct whoohoo 🥳 It was easy because in Problem 7 I'd already written an iterator to produce infinite primes. So the solution for finding the sum of primes under 2,000,000 is basically (shortened):

  primes := iter.take_while(iter.filter(prime_candidates(), is_prime), fn(p) { p < n })
  print(iter.sum(primes))

And of course the answer is: 142913828922 which took ~21.ss for the Go Vm to compuete.

In reply to: #tz4dru7nwzct 4 days ago
@prologic@twtxt.net

What's interesting here... Which is the interesting thing about Mu is the dual runtime. So the above solution for Euler Problem 9 finds the solution in ~429ms with the Go VM and ~327ms natively compiled to darwin/arm64. Not bad for a language I haven't really done any optimization work on yet (correctness first obviously).

In reply to: #tz4dru7nwzct 4 days ago
@prologic@twtxt.net

Oh man wow 😮 Problem 9 was quite hard 😱 I had to build two new functions in the Mu stdlib for computing combinations and permutations, but then the combinations of range(1000) for triples such as a + b == c is enormous! So i had to write iterator versions of these to do lazy evaluation. Anyway solution follows:

#!/usr/bin/env mu

// Special Pythagorean Triplet

import "iter"

fn usage() {
  print("Usage:", args()[0], "<n>")
}

fn sqr(x) { x * x }

fn main() {
  if len(args()) < 2 {
    usage()
    exit(1)
  }

  n := must(int(args()[1]))
  print("n:", n)

  // For a < b < c and a + b + c == n, both a and b are strictly less
  // than n/2. Generate only (a,b) combinations and derive c directly. This
  // keeps the search lazy and reduces n=1000 from C(999,3) = 165,668,499
  // candidate triples to C(499,2) = 124,251 candidate pairs.
  pairs := iter.combinations(iter.range(1, n / 2), 2)

  triples := iter.map(pairs, fn(xs) {
    a := xs[0]
    b := xs[1]
    return [a, b, n - a - b]
  })

  // Enforce b < c; a < b is already guaranteed by combinations over an
  // increasing range, and a + b + c == n holds by construction.
  triples = iter.filter(triples, fn(xs) {
    return xs[1] < xs[2]
  })

  // Euler 9 has one answer for n=1000. find() stops the entire upstream
  // iterator chain as soon as the first Pythagorean triple is found.
  answer := iter.find(triples, fn(xs) {
    return sqr(xs[0]) + sqr(xs[1]) == sqr(xs[2])
  })

  print(answer)

  if answer != nil {
    print(answer[0] * answer[1] * answer[2])
  }
}

main()
In reply to: #tz4dru7nwzct 4 days ago
@prologic@twtxt.net

It is such a nice feeling that Mu is such a capable little language 😅 And I decided to write code code in Mu by hand 🤚 haha 🤣 and start solving Project Euler problems, like Problem 8 which works out to be a nice elegant solution in Mu:

#!/usr/bin/env mu

// Largest Product in a Series

import "fp"
import "sys"

fn usage() {
  print("Usage: cat |", args()[0], "<n>")
}

fn products(xs) {
  return fp.reduce(xs, 1, fn(x, y) {
    if y == nil {
      return x
    }
    return x * y
  })
}

fn main() {
  if len(args()) < 2 {
    usage()
    exit(1)
  }

  s := must(sys.read_all(0))
  if len(s) == 0 {
    usage()
    exit(1)
  }

  n := must(int(args()[1]))
  r := fp.max(fp.map(fp.sliding(fp.map(s, int), n), products))
  print(r)
}

main()
Read replies 4 days ago
@prologic@twtxt.net

@anth Haha 😆

In reply to: #mrbakhe7wg2g 6 days ago
@prologic@twtxt.net

but yes, however you cannot currently add it or delete post via the app as I haven't really built that feature at the moment you technically can do it, but you do run into some challenges with breaking threads if you've already published something and then go back and edit it so we generally advise not to do that too much if you can help it

In reply to: #fzla7l7wxjcf 6 days ago
@prologic@twtxt.net

@brytboi I hope you're seeing my replies because you absolutely can scroll up in the app. Let me know if you've run into a bug though and report it to me so I can fix it immediately!

In reply to: #fzla7l7wxjcf 6 days ago
@prologic@twtxt.net

@brytboi no a subset of markdown is fully supported by the app!

In reply to: #xx524yait6e3 6 days ago
@prologic@twtxt.net

@brytboi I mean you can, technically. But most clients won't render Javascript or HTML fragments at all. Only Markdown, Text, Images and Links.

In reply to: #br4uwndn6dps 6 days ago
@prologic@twtxt.net

@brytboi Hey! 👋 Welcome to Yarn.social / Twtxt 🤗

In reply to: #nbbskbetbon6 6 days ago
@prologic@twtxt.net

@david Please report any logs from the Javascript console if you can. It's possible the one commit I made to the Swag framework might be the culprit here. Not sure.

In reply to: #soqii4xefpen 6 days ago
@prologic@twtxt.net

I'm not seeing any of what you're describing, But then again I only use the app on mobile, on iPhone. There's only been basically a few commits to the App and one to Swag. That's it.

In reply to: #dghmwdhaplf7 6 days ago
@prologic@twtxt.net

@anth Where's the other side of this? Your side? 🤔

In reply to: #mrbakhe7wg2g 6 days ago
@prologic@twtxt.net

@lyse You are correct, 👍, however, not what I was thinking in this case. More of just a reminder/nudge.

In reply to: #tsmtcnglkix6 6 days ago
@prologic@twtxt.net

@david broken how? wiring here

In reply to: #dghmwdhaplf7 1 week ago
@prologic@twtxt.net

@david Do you mind re-testing too with the updates i just pushed out? 🙏

Read replies 1 week ago
@prologic@twtxt.net

Testinf image upload fixes...

Read replies 1 week ago
@prologic@twtxt.net

Testing image upload fixes 🙏

Read replies 1 week ago
@prologic@twtxt.net

Public holiday today!😅

Read replies 1 week ago
@prologic@twtxt.net

@GabesArcade Not sure if @mariam will ever see or respond to our welcomes tbh 😢 I caught the new user trying out the Twtxt App 4 days too left 🤦‍♂️ -- I think I need to make some improvements to the app, some nudges, something to encourage users to stick around? Maybe some periodic push notifications? 🤔

In reply to: #nzjdtqwqhohc 1 week ago
@prologic@twtxt.net

@mariam Hey! 👋 Welcome to Yarn.social / Twtxt 🤗

In reply to: #4rjahurhebi7 1 week ago
@prologic@twtxt.net

@david Thank you 🙏

Read replies 1 week ago
@prologic@twtxt.net

@david Also if you wouldn't mind writing up an Issue for the image/upload problem too, that would be great 👍 I still haven't solved it properly, but I'll try to do so today. There's also an issue uploading images via the yarnd API path from the Twtxt App too, which I can replicate with basically any photo from my iPhone's Photo gallery hmm 🤔

Read replies 1 week ago
@prologic@twtxt.net

@david Are you able to describe this bug as an Issue in the Gitea Issue Tracker such that it can be reproduced and fixed? 🙏

In reply to: #avyvlyec54mb 1 week ago
@prologic@twtxt.net

@david centralised right?

In reply to: #7lk4gorp7l2q 1 week ago
@prologic@twtxt.net

@david Wanna try again? 🙏

In reply to: #zmmqqgunfn7b 1 week ago
@prologic@twtxt.net

This has been fixed now if you could retest?

In reply to: #zmmqqgunfn7b 1 week ago
@prologic@twtxt.net

@david Okay 👌

In reply to: #zmmqqgunfn7b 1 week ago
@prologic@twtxt.net

@david No idea 🤷 We shall see! haha 😂

In reply to: #2e22svtawaj4 1 week ago
@prologic@twtxt.net

@david Ahhh so you had a WebP you downloaded from somewhere on your Phone and you're trying to uploaded it via the Twtxt.App? 🤔

In reply to: #zmmqqgunfn7b 1 week ago
@prologic@twtxt.net

@david Is this from your camera, or some other source of WebP somewhere? 🤔

In reply to: #zmmqqgunfn7b 1 week ago
@prologic@twtxt.net

@david Why not indeed 😅 I'm taking nearly a whole month off from Sept 10 to Oct 6 Haha 🤣

In reply to: #2e22svtawaj4 1 week ago
@prologic@twtxt.net

I really do find it difficult to follow anyone that basically posts to a wall, or doesn't follow back. It's utterly pointless not being able to have a conversation, like basically, at all. Maybe it's not even anyone's fault? Maybe just a sucky client that doesn't understand how User-Agent works in Twtxt Discovery? 💡

Read replies 2 weeks ago
@prologic@twtxt.net

@david you're quite possibly right!

In reply to: #32ag3dz474in 2 weeks ago
@prologic@twtxt.net

@itsericwoodward And... Are there basically a lot of "village idiots"? 🤔

In reply to: #3awspha2najf 2 weeks ago
@prologic@twtxt.net

Gonna recreate the classic [Break out](https://en.wikipedia.org/wiki/Breakout_(video_game) game this weekend for the Mills Games Cabinet -- Anyone else got any ideas, requests? 🤔 #games #ebitengine

Read replies 2 weeks ago
@prologic@twtxt.net

@david Yes it does!

In reply to: #32ag3dz474in 2 weeks ago
@prologic@twtxt.net

@dce nah that's pretty hot 🥵

In reply to: #uolghehjpyaj 2 weeks ago
Comment via email