[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: incr.png (48 KB, 449x981)
48 KB
48 KB PNG
/dpt/ - Daily Programming Thread

Welcome to the Daily Programming Thread. What are you working on, /g/?
Previous thread: >>107575071
>>
>>107627028
there's still a bias. See the 8? Scroll the image.
>>
File: screenshot.png (703 KB, 1400x894)
703 KB
703 KB PNG
I'm done working on my image reviewer app.
https://github.com/kjpgit/PhotoReviewer4Net

Really fun side project, and I'm happy with it.
>>
>no /dpt/ in the subject
I almost didn't see it and almost created a new one
>>
>Right and wrong: ten choices in
language design
https://arxiv.org/abs/2211.16597

Interesting enough to make me want to learn Eiffel and perhaps even rehabilitate OOP in my mind. At the very least, I respect the focus on OOP and the discipline to purity.
>>
>>107628127
> Language exposure is not by itself the problem; the trouble is that together with the
language they were taught bogus principles such as “multiple inheritance is bad” (often just
“inheritance is bad”), or “overloading is an OO mechanism” or “you should make fields
private and write getter functions to provide access to them”, or “you can return from any
where in a function”, or “writing interfaces helps OO design” or “you should use defensive
programming” and other atrocities apparently entered into young minds at the same time
and with the same authority as the information that the earth revolves around the sun.
absolute truth nuke
>>
>>107627055
>intel syntax
Based.
>>
>>107628127
OOP is Smalltalk, extreme late binding of all things.
That's it. All the contract stuff is unrelated.
>>
File: file.png (403 KB, 1497x1009)
403 KB
403 KB PNG
>>107628127
uh oh
>>
>>107628415
I don't feel so good
>>
File: xmenu.jpg (74 KB, 574x1236)
74 KB
74 KB JPG
If you were going to implement a nested menu program like xmenu but for wayland, what libraries would you use? Wlroots should be able too, but the learning curve is a bit steep
>>
>>107628644
Actually wlroots shouldn't work, turns out it's just for compositors and is the wrong tool for the job when making applications
>>
>>107628644
Depends if you're doing it "from scratch" or not.
Like gtk or qt _could_ be twisted to do that, but you'll have to poke around at the lower level wayland interfaces, because xdg_toplevel isn't really the right type of surface for that.

If you're doing it yourself, all you truly need is libwayland-client and something capable of drawing into some shared memory, e.g. Cairo + freetype2.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.