Live data from Hacker News

Olive.c: a simple graphics library that does not have any dependencies

tsoding.org

51–60 of 96 posts

Re: Olive.c: a simple graphics library that does not have any dependencies

#51
post #21

Nice to see tsoding on the top of HN, this guy does amazing streams and youtube video

How can I find them?

He's got a channel on the tube, Tsoding Daily. These days he's really into WASM and Jai, but he's always trying something new.

https://youtube.com/c/TsodingDaily

Re: Olive.c: a simple graphics library that does not have any dependencies

#53
post #5

Earlier quoted context omitted.

From demos/triangle.c ( https://github.com/tsoding/olive.c/blob/master/demos/triangl... ) // This idea is that you can take this code and compile it to different platforms with different rendering machanisms: // native with SDL, WebAssembly with HTML5 canvas, etc. The goal seems to be to maximize portability.

Unfortunately only portable to systems with fast CPUs though. Although I guess rendering simple 3d shapes probably runs just fine on low end hardware.

It depends how fast “fast” is. PCs in the 90s could run games like quake in lower quality mode with lower framerates, but they ran. CPUs that we have now are many orders of magnitude more powerful, so imagine what you can do with that.

Though most games don't bother so we don't really have actual evidence.

Re: Olive.c: a simple graphics library that does not have any dependencies

#54
post #17

Does this use WebGL2? It doesn't run on my phone (which does support WebGL 1). Edit: According to the JS source file it appears to be a plain 2D canvas. Now I am even more confused, those should definitely load! https://github.com/tsoding/olive.c/blob/master/js/vc.js

Does your browser version support webassembly?

Re: Olive.c: a simple graphics library that does not have any dependencies

#56

The name is pronounced as "olivets" which is a Ukrainian word for "pencil" ("олівець"). From the readme.

Neat.. of course it seems obvious now, but that's funny - I'm Ukrainian and I think that without explicit explanation it would have never occurred to me to read, let alone pronounce it this way - the dot before the extension somehow puts an insurmountable boundary after "olive".

Re: Olive.c: a simple graphics library that does not have any dependencies

#59
The combination of mapping pixels to memory and rendering individually and then that appearing on webgl and looking great on a not too expensive phone, where I am pinch zooming while it flawlessly animates, sort of blows my mind in how much technology has come in 25 years. Connects the old with the new in a way I haven’t seen for a while (and yeah seen loads of C64 emulators and such)

Re: Olive.c: a simple graphics library that does not have any dependencies

#60

Earlier quoted context omitted.

Unfortunately only portable to systems with fast CPUs though. Although I guess rendering simple 3d shapes probably runs just fine on low end hardware.

It depends how fast “fast” is. PCs in the 90s could run games like quake in lower quality mode with lower framerates, but they ran. CPUs that we have now are many orders of magnitude more powerful, so imagine what you can do with that. Though most games don't bother so we don't really have actual evidence.

I was thinking about this just yesterday, it would be neat to have a game jam to make something run in dosbox at modern cpu speeds.
Post reply on HN