18
top 6 comments
sorted by: hot top controversial new old
[-] excel@lemmy.megumin.org 14 points 1 year ago

If you’re using assembly, then you’ve already given up on the easy ways.

[-] colonial@lemmy.world 2 points 1 year ago

OP is definitely a masochist.

[-] Jamie@jamie.moe 9 points 1 year ago

This site has a bunch of samples in various programming languages for an X11 Hello World, including Assembly.

[-] o11c@programming.dev 6 points 1 year ago

1, Don't target X11 specifically these days. Yes a lot of people still use it or at least support it in a backward-compatible manner, but Wayland is only increasing.

2, Don't fear the use of libraries. SDL and GTK, being C-based, should both be feasible from assembly; at most you might want to build a C program that dumps constants (if -dM doesn't suffice) and struct offsets (if you don't want to hard-code them).

[-] TootSweet@lemmy.world 4 points 1 year ago

If you do go X11 and want to go low-level, I'd recommend libxcb over libx11.

[-] o11c@programming.dev 3 points 1 year ago

The problem with XCB is that it's designed to be efficient, not easy. If you're avoiding toolkits for some reason, "so what if I block the world" may be a reasonable tradeoff.

this post was submitted on 19 Sep 2023
18 points (90.9% liked)

Programming

17314 readers
140 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS