• 0 Posts
  • 24 Comments
Joined 1 year ago
cake
Cake day: June 1st, 2023

help-circle
  • Mars@beehaw.orgtoProgrammer Humor@lemmy.mlsigma star
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    A tree can be seen as a formal language. Look into L-systems.

    If you generalize what a symbol is (the rgb value of a pixel) you can write a grammar that ends producing a list of pixels. You can then place it in a 2d matrix and you have an image.

    I guess a better approach would be wave function colapse, but seems to me like it could be formally described as a grammar (CS or CF, dunno, would have to look into it)




  • It’s funny how computers are almost the only human invention that for some reason must be able to be used without learning anything.

    We don’t do that for almost anything else. We expect people to learn how to drive, how to fill taxes, how to buy things on the store, how to cook, how to play chess. It seems like the only cases when someone decides learning stuff is an inconvenience is when tech people get into another field and tries to disrupt it.

    I am all about making things as simple as they can be, but not simpler. Intuitive is a super relative term that depends on your knowledge and life experience. People find Office intuitive after using it for twenty years, but for me is a nightmare where legacy features intermingle with weird cloud and AI shit, and most of the time I only need a markdown file. No interface is intuitive, they are only familiar, clear, accesible, discovereable, etc.

    Interface Design goes in cycles of skeuomorphism and simplification because computer stuff is not Intuitive, you have to open the way with metaphors people can understand, and when they are part of everyday life you can make the app for the virtual credit cards not look like it’s made of leather.








  • It’s an amazing ideology to have because if you can create a plausible future benefit you can do any real evil and feel like the good guy!

    • Stealed billions in wages from your workers? It’s alright, the funds will be used for you to gain influence and guide humanity to a better future!

    • Did you release a bioweapon in some global south country? It’s all right! Overpopulation was a danger 5 or 6 generations from now!

    • Destroyed democracy! It does not matter. Fascism today ensures democracy in the year 4000, trust me bro!


  • Vivaldi is a chrome derived browser. Using it entrenches Google power over the web.

    The manifest v3 debacle, weird “standards” like the recent Web Environment Integrity and more are only posible because Google controls most of the web clients through Blink and V8. They can make or break standards thanks to the massive amount of Chrome and Chromium related browsers, like Vivaldi, Brave, Opera, Edge, etc.

    So, glad you like Vivaldi, but you are not that far from google and are in fact an asset for their goals.

    We need Firefox alive and well. If we lose it, Google will be THE web and will control it’s foreseeable future.


  • It’s not that huge of a userbase. Pinterest is bigger. Twitter just have a disproportionate amount of celebrities, politicians and journalists addicted to the instant feedback and drama.

    Elon is hooked and high on his own supply, so he seems incapable of understand what Twitter actually IS for most users and that “ego boosting machine for the rich and famous” is not a business plan.

    Enshitification implies a degree of planning and success that he seems incapable of right now. And you can’t jump to step three without achieving steps one and two. Never good for (most of) the users, never good for the advertisers. Nothing to squeeze.

    I mean, it has gone to shit, but it doesn’t seem intentional. Even in the best of circumstances these changes would not be better for the bottom line than just doing nothing.





  • I’m sorry but framework and library in this post are going to be used loosely, because even React, Vue, Angular, Svelte, etc devs use the terms loosely.

    React is mostly a UI library like you would find in most native app development. Of them all them JS frameworks/libraries is one of the less opinionated and with less batteries included. By design it does not does everything. Most other frameworks do way more.

    It lets you define custom components. The components can have properties that their parent component defines and internal state. If the state or the properties change the component gets redrawn (magically). There are some lifetime functionalities (things to do on first render for example) and performance improving stuff (memoization) but mostly that’s it.

    All the other features you talk about are third party libraries or frameworks that can operate with react or are build on top of and cover the bases, like routing, fetching, caches, server side rendering, styling utility libraries, component libraries, animation libraries, global state management, etc.

    The big difference with the vanilla way is that the approach is mostly declarative. The runtime takes charge of updating the DOM when your components state or properties change.

    You take a big performance hit, and an even bigger bundle size one, but the speed of development and huge ecosystem of readymade solutions can be really important for some use cases.

    Other frameworks take different approaches to solve the same problems:

    • Component system for code reuse and organization.
    • Some way to manage state
    • Some way to decide what to re-render and when.
    • Extra stuff. Some frameworks end here, some have tools for everything you would need for a web app.

  • Real time video and audio are a different beast to text. The only way forward for these is P2P, not federation.

    Maybe some Matrix like protocol for chat rooms (call them Channels, Communities, Club Houses or something trendy if you want) that also setups a P2P audio room, and a P2P video sharing system.

    No one can independently host and transfer the insane amounts of data discord moves, but P2P networks resources for serving data grow linearly with the amount of devices consuming data. And audio/video streaming can be ephemeral, no need to save 80tb of a streamer sleeping.

    The thing is how are they going to use the piracy bogie man to make all this ilegal hahaha.


  • New favorite way to use lemmy.

    Great design, feels responsive, works everywhere…

    PWAs are great, and for 99% of use cases are more than enough. We need a fake App Store that “installs” PWAs in people devices in a transparent way.

    Also let’s hope Apple is forced to open iOS to alternative rendering engines and complete full features browsers.

    And for a final irony boost, the PWA thing is the “”””original”””” vision for smartphones, at least according to Steve Jobs during the original iPhone keynote. Full circle and stuff.


  • The end of 0% interest means “business” no longer have access to free money. So now they want benefits, and growth but without the spending.

    Also we skipped a tech bubble crash around 2008, so these corpos deaths are more than overdue.

    The cicle as Doctorow says in his enshification tesis is:

    1.- be good to your users, spending tons of that VC and 0% interest loan free money.

    2.- be shit to your users, be good to your clients (add buyers, business that use your platform to do business)

    3.- be shit to everyone. Squeeze the platform and get every last dime of value as profit.

    Once you are in 3 there is no coming back. But these corporations have pulling the ladder behind them using an extra decade of dominant position to try to stop the cicle.