• 2 Posts
  • 54 Comments
Joined 11 months ago
cake
Cake day: June 30th, 2025

help-circle
  • Either the UI is defined in some DSL, that’s loaded (or compiled) and then you spend most of the time writing getElement(pathToElement) and wiring it up, or you have to boilerplate create each element and parent.addChild(element).

    Im saying “there are no elements” because of what OP says here, the system i’m using now doesn’t have that.

    You have a panel+border+text “primitive” drawing functions. Nothing is stopping you from creating a single function that calls all 3 of those. You probably should, since it’s probably a common pattern. You could call it DrawBoxedText. There is no difference between a DrawBoxedText function and a BoxedText element with a draw() method.

    yeah i could make a function for that, but i would argue that “here is no difference between a DrawBoxedText function and a BoxedText element with a draw() method.” there is a big difference between these. Personally i find using a function like DrawBoxedText much easier.


  • I think this could be the beginning of the end for capitalism.

    With past automation capital became more efficient but labor was still required. A tractor for example replaced hundreds of farmers, but still required an operator, same with factory machines. But AI is different.

    Capitalism requires the capital labor relationship, but AI fudementally gets rid of that.

    What way it ends up I don’t know, but for the first time there is a real chance to end the extractive nature of wage labor.



  • TheMightyCat@ani.socialtome_irl@lemmy.worldme_irl
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    27 days ago

    Buy big tech, get big tech.

    People get upset that apparently “it is litteraly impossible to buy a smartphone without AI” while there are plenty of alternatives, but instead of putting in the effort to learn they would rather blame an abstract technology and buy the next IPhone anyway.




  • I had my own library for UI that tried to have a element model, but it was bloated and didn’t scale well. Now im drawing everything via vulkan compute shaders and its fast and looks great.

    I think the philosophy needs to switch from elements back to pixels, atleast that is what worked for me.

    i dare to say its as easy as webdev

    snippet from my game:

    DrawMenuButton(buf, btnExit, "Exit to title", exitHover, exitHover && window.mouseLeftHeld, false, font, topFontPx, exitCol);
    DrawMenuButton(buf, btnSave, "Save changes", saveHover, saveHover && window.mouseLeftHeld, false, font, topFontPx, saveCol);
    PushPanel(buf, titleRect, panelBgColor, 6.0f * s);
    PushBorder(buf, titleRect, borderColor, 6.0f * s, 1.5f * s);
    DrawText(buf, "OPTIONS", titleRect.x + titleRect.w * 0.5f, titleRect.y + titleRect.h * 0.5f + topFontPx * 0.32f, font, topFontPx, textUnfocusedColor, TextAlign::Center);
    

    this is in the draw function, and along with the other code produces this menu:




  • TheMightyCat@ani.socialtome_irl@lemmy.worldme_irl
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    28 days ago

    I’m not expecting people to flash custom roms, but both the pinephone and Jolla phone come pre-installed with open source os without AI.

    If you don’t want to switch you never have to see a terminal. As easy as any other phone.

    So the statement “litteraly cannot buy a smartphone without AI” is false.










  • You don’t have to be a tankie or a wankie to recognize the fact that a loss ratio of 0% is very good for an aircraft.

    If it was a Russian or Chinese aircraft doing this then that would also be a fact.

    It’s stupid to say that a single aircraft being damaged makes the entire type worthless like many here are saying when the F-35 is the only aircraft flying these missions and come back with only damage to a single plane.

    That is not a political statement or approval of the strikes. That’s just a statement on the plane.