A little bit of neuroscience and a little bit of computing

  • 55 Posts
  • 822 Comments
Joined 1 year ago
cake
Cake day: January 19th, 2023

help-circle
  • Every browser released since 2020 supports this

    It’s a little paranoid of me, but I like the idea that a basic web app I make can be thrown onto any old out of date machine, where ~2015 or younger seems about right for me ATM.

    You mean the Html template Element? I’ve never really got that to work, but I also never seriously tried.

    Yea. From memory, it’s just an unrendered chunk of HTML that you can select and clone with a bit of JS. I always figured there’d be a pattern that isn’t too much of a cludge and gets you some useful amount of the way to components for basic “vanilla-js” pages, just never gave it a shot either.


  • Yea, I’m unclear on how you can take web components and still have widespread browser support (not knowing enough about their ins and outs).

    Plain template elements are widely supported and have been for ~10 years (which ideologically matters to me along the same lines as the top post’s article) … perhaps a little bit of hacking together can get you close with just that?



  • Youre right about lemmy-ui, unfortunately it doesnt have enough contributors. I dont know why that is, you’d think a project written in a popular language like Typescript would easily find contributors.

    Random thoughts:

    • Is it obvious enough that one can contribute to the UI separately from the backend and that it’s a Typescript SPA style UI?
      • If not, maybe a bit of a “dev recruitment campaign” could help … let people people know and what sorts of issues could really do with new contributors lending a hand? Maybe even a bit of a “Inferno isn’t that different from all of the other SPA frameworks/libraries spiel?”
    • Is the use of Inferno as oppose to one of the big 3 React/Vue/Svelte a repellent? (perhaps a downside to the “diversity” of frontend frameworks?)
    • Are would-be UI contributors more inclined to make their own front-end or app than contribute to the default webUI?

    More generally:

    • Would a server side rendered webUI be welcome?
      • Then the contributions would mainly be on templates and their “simpler” logic, which might be more attractive or easier to get started on?
      • Plus, it might be more efficient? The current UI feels to me like it would suit server side rendering well.
      • Is this where the new leptos UI is heading … more server side rendering (I don’t know much about leptos)
    • Do you have a sense of usage numbers for the different apps and frontends? Obviously you only run lemmy.ml, but do you have a sense of how much the front-end gets hit versus the API directly?
      • I ask, because If the default WebUI is really the main interface, then it makes sense to try to organise some more contributors (It’s certainly my main, nearly exclusive interface, as much as I’ve like some of the alt front ends or apps)

  • Absolutely!

    The bit I’m conceptually stuck on (not know much at all about how a good plugin architecture would work) is how a plugin can surface or affect the UI, especially in an ecosystem with multiple UIs/Apps/Frontends, and, a federated ecosystem at that.

    Given the apps, I figure it’s not possible without a convention of plugins providing APIs which apps can then implement against when available, which adds a good amount of complexity but should be viable for popular/useful plugins. Though, tangentially, this does affirm for me that the whole native mobile app expectation is a bit of a trap for a social system like the fedi (as webUIs are naturally more universal and maleable).

    So, for immediate results, I can see only two options:

    1. a plugin operates on the backend directly manipulating or creating content not unlike a bot
    2. a plugin provides its own webUI which is made available through a simple and dedicated location in the UI

    Is there something I’m missing about how a plugin system could work?




  • but we’re at a critical point right now. It’s no longer software that is just fun side projects and building stuff that looks cool, it has some real issues now that it has a real userbase. I’m definitely one to say “But it’s FOSS, and other people can pick up and submit a PR” - but it also says something when the head devs just completely ignore a massively huge issue with it.

    This is a general issue I think, not just for lemmy but the whole fediverse (whatever one’s opinions might be on particular priorities).

    It’s all non-profit and being run and built at a much smaller scale than many users would appreciate (I think). Sure there are plenty of people here, but not that many. Combined with no obvious revenue streams, such as ads or subscription fees, there really is only so much that can be done. Some time last year even the Mastodon team (by far the most successful fediverse platform) admitted that they didn’t have the capacity to work on new things for a while … they were just busy keeping things running. And they are (apparently) notorious at being slow to ship new features. Meanwhile platforms like firefish just straight up died last year.

    So yea, it might be a critical point, for sure. But putting more on the core dev teams may not be the answer for the simple reason that it’s just not viable in the long run.

    If we enjoy the bigger community focus and open and non-profit organisations that makeup the fediverse, the “answer” at this critical point might be to find a way to give back somehow … to organise, build communities, run fund-raising campaigns, think of ideas for more sustainable funding, find devs who can help etc etc. It’s perhaps onerous and annoying, even to read perhaps … but this is likely the tradeoff we have to make for a place like this.




  • maegul@lemmy.mltoFediverse@lemmy.mlAlright, let's Fedify
    link
    fedilink
    English
    arrow-up
    5
    ·
    5 days ago

    A few months ago, the “Nazi” presence on substack and substack’s insistence on not moderating them (like at all it seemed) broke as a story, during which Casey Newton (and by extension his “platformer” blog) got engaged with substack about the issue and, after being disappointed with substack’s responses and policies, famously left for Ghost (see their post on the move here.

    Pretty sure that boosted its profile and prompted talks of federating, which they were initially hesitant to do … but here we are now.


  • Ha, yea! If you know rust, then you don’t need to reach for Python (right?!). Plus the main motivation was to contribute to lemmy itself while also learning rust. That another platform is good for personal instances doesn’t change that, though piefed does seem cool and I can see myself wanting to get involved with it at some point.



  • But I get the database thing. Its spiking every couple minutes and a lot every hour. It’s not a big deal if you have 2 threads at least but I can see how it doesnt work for everyone in every scenario.

    Yea database management seems to where the growing pains are right now (with the core devs welcoming help from anyone with DB/PostreSQL expertise) … and indeed it seems to be a perennial issue across the fediverse platforms.

    If I may ask (sorry, probably annoying) … what sort of resources would you recommend for a small personal lemmy instance? (let’s say 1-5 users, ~200 community subs and a few local communities?)


  • Woah woah … this is legit awesome! Just tested (on lemmy.ml) and yep … seems to be working like a charm!

    Give up to matc-pub for the PR (and maybe a new core dev for lemmy too?).

    I figure this makes live megathread style posts/chats more viable … which is certainly cool!

    I’ve mentioned this before, but an interesting possibility might be to enable selected posts to be “live chats” through a websocket like process as lemmy used to be, just for selected posts for certain windows of time, whenever a live chat dynamic is sort.

    It’s the sort of thing that could be scheduled and subject to admin approval or something if resources are a concern.

    Otherwise … awesome to see!


  • Yea I did a quick search through the GitHub issues, and it seems like there are some growing pains with updates they’re making to the way things work and the load it puts onto the database. Sad to hear for smaller instances as my impression was that lemmy had pretty good performance for smaller instances. Architecturally, it makes sense that there are different tradeoffs for bigger and smaller instances. It’d be good to see things mature to the point that you can tune things for your instance size. In the end though, picking the appropriate platform but with the assurance that migration can occur when you need to change platform may be a good way to go.


  • I think there’s a pretty fair argument that more common and easier languages and tech stacks are preferable platforms for smaller more personal instances … just the comfort of being able to modify and debug is probably worth whatever other tradeoffs may be encountered. Python, naturally, is basically a prime candidate. So yea, PieFed seems very cool, especially for personal servers and they’ve got a good performance profile.




  • We can already create private instances that don’t federate for those niche communities;

    That being said, creating a private instance is a relatively difficult hurdle. By providing private communities, an admin can take care of the hosting, along with all of the other communities, while those who want something more controlled and closed can have an easily accessible option. Plenty of people want their social media to have options for being relatively closed or relatively open, and I think it’s healthy to provide those options.

    I hear you though on the lemmy-world community closing possibility (and similar) … that would easily be an abuse IMO and it’s not entirely clear what would or could happen.

    To be fair though, the whole lemmy-world instance (or any other for that matter) could simply turn federation off at any point to the same effect you fear, so it’s arguably just part of the federation flexibility. In this case, any community mod has their hand on the switch for their community, which means we’ll probably see it get used in controversial circumstances at least once. But for any given community, going either private or local-only is sure to drop user engagement or be a PITA regarding managing the “approved users” list, so I can’t see it being a popular action TBH.