Live data from Hacker News

Minimal Cross-Platform Graphics

zserge.com

51–60 of 67 posts

Re: Minimal Cross-Platform Graphics

#51
post #45

Earlier quoted context omitted.

Alpha Rho Epsilon? Alpha Pee Epsilon? Google isn't helping me here...

I think they're referring to this: https://justine.lol/ape.html One of many HN discussions about the topic here: https://news.ycombinator.com/item?id=26273960

Thank you! When I encounter an unknown term on HN, I try to find out for myself what it is before bugging everyone, but it doesn't always work.

Re: Minimal Cross-Platform Graphics

#52

This is extremely useful, and the page is beautifully written. Some people write absurd electron behemoths, and then there's this jewel of elegance. Could this be compiled as an αpε? Such a thing would make many heads explode.

[deleted]

Re: Minimal Cross-Platform Graphics

#54
post #45

Earlier quoted context omitted.

I think they're referring to this: https://justine.lol/ape.html One of many HN discussions about the topic here: https://news.ycombinator.com/item?id=26273960

Thank you! When I encounter an unknown term on HN, I try to find out for myself what it is before bugging everyone, but it doesn't always work.

Yup! Besides being hard to search, others have commented that the name might be bad for accessibility:

https://news.ycombinator.com/item?id=24257503

Re: Minimal Cross-Platform Graphics

#55
since everyone else is posting links to their similar libraries, i thought i'd post mine too, https://gitlab.com/kragen/bubbleos/-/tree/master/yeso

it's probably a bit more efficient than fenster on x-windows because it uses shared memory, and i think the programming interface is a little nicer (see the readme above for code examples)

apps i've written in yeso include an adm-3a terminal emulator, a tetris game, a raytracer, an rpn calculator, a fractal explorer, and so on

i haven't ported yeso to win32/64, macos, android, or the browser canvas yet, just x-windows, the linux framebuffer (partly), and a window system implemented in yeso called wercam

it includes bindings for c, python (via cffi), and lua (via luajit's ffi), and presumably you could use it from zig or rust in the same way as fenster, but i haven't tried

Re: Minimal Cross-Platform Graphics

#58
post #50
post #17

Earlier quoted context omitted.

Fine, but at least fix this bug: .. (sizeof *f->buf) .. Because otherwise thats one stray space char away from a bad day ..

Or ... sizeof(*f->buf)? I’d forgotten that sizeof even allows dropping the parens, but isn’t that asking for trouble? “sizeof a b” is sometimes parsed as “sizeof(a) b” and sometimes as “sizeof(a b) depending on the precedence of operator . Is there any downside to always using parens and writing sizeof() like a function call?

Sure, many people like that style, I don't.

But no, I don't think there are any downsides, but there is this notion that things should look like what they are, which is popular in C.

With parens, I would suggest spaces to make it

    sizeof (*f->buf)
that makes it look less like a function call in many styles.

Re: Minimal Cross-Platform Graphics

#60
post #55

since everyone else is posting links to their similar libraries, i thought i'd post mine too, https://gitlab.com/kragen/bubbleos/-/tree/master/yeso it's probably a bit more efficient than fenster on x-windows because it uses shared memory, and i think the programming interface is a little nicer (see the readme above for code examples) apps i've written in yeso include an adm-3a terminal emulator, a tetris game, a ray…

I like BubbleOS. :)
Post reply on HN