Programming thread

  • 🐕 I am attempting to get the site runnning as fast as possible. If you are experiencing slow page load times, please report it.
Would like to use graphics API, I have apple silicon and a riced out Linux thinkpad. MetalAPI is newer so probably better, I guess, but openGL would be more documented/easier. I just want to make spinny things and play with geometrical 3d plots.
if you're just starting out with 3d graphics and want to try making spinny things, it's probably a good idea to start out with some nice simple opengl 3 demo or two, and you can decide later if you want to man the fuck up and write a vulkan renderer
also fuck metal what kind of fucking retard would ever write a program against some shitty apple api
 
if you're just starting out with 3d graphics and want to try making spinny things, it's probably a good idea to start out with some nice simple opengl 3 demo or two, and you can decide later if you want to man the fuck up and write a vulkan renderer
also fuck metal what kind of fucking retard would ever write a program against some shitty apple api
Did you read Xah Lee's blog back in the long ago days? I asked him advice about something about Ceelang, he said to use Golang, because "Go is newer, so more advance and better." Xah's unhinged ranting was funny back then and helped with Emacs a long time ago. That 'newer is better' advice could be highly debatable, but WebGPU was released in 2021. The browser has some advantages for graphics programming, especially for locally hosted -- not posted to the web.
 
Did you read Xah Lee's blog back in the long ago days?
who
I asked him advice about something about Ceelang, he said to use Golang, because "Go is newer, so more advance and better."
go is probably an okay language but it doesn't have anything special over your typical c++ that a typical opengl demo would benefit from
the white man's editor
That 'newer is better' advice could be highly debatable
only fags say that (see: the white man's editor and <insert nu-editor here>)
WebGPU was released in 2021
webgpu has exactly zero relation to metal as far as i know
The browser has some advantages for graphics programming, especially for locally hosted -- not posted to the web.
what kind of advantages besides "i am too retarded to figure out things like sdl2 so i need to host http on localhost to cope"
 
what kind of advantages besides "i am too retarded to figure out things like sdl2 so i need to host http on localhost to cope"
We've come so far since the C64 demo scene days, but what do we have to show for it?
>learning graphics? fuck that, just use JS and maybe bundle it with a whole-ass web browser.
 
who

go is probably an okay language but it doesn't have anything special over your typical c++ that a typical opengl demo would benefit from

the white man's editor

only fags say that (see: the white man's editor and <insert nu-editor here>)

webgpu has exactly zero relation to metal as far as i know

what kind of advantages besides "i am too retarded to figure out things like sdl2 so i need to host http on localhost to cope"
SDL2 and OpenGL, SunVox uses both libraries and it's the finest example of Russian ultra portable audio GUI software.
Being interested in the correspondence between (theoretical) mathematics, (visual) geometry, and (audio) music theory... and how to integrate those three into one project feels a bit grandiose and impossible, but I suppose OpenGL is a good start.
 
Being interested in the correspondence between (theoretical) mathematics, (visual) geometry, and (audio) music theory... and how to integrate those three into one project feels a bit grandiose and impossible, but I suppose OpenGL is a good start.
OpenGL and a developing a strong background in trigonometry is a good place to start. imo acoustics is something you have to take the time to build a good intuition for, and knowing the math helps a lot.

Here is a book by the great Helmholtz on acoustics that I really like. He establishes a lot of the foundations using very easy to visualize physical phenomena, so you get a much better grasp on how it all works in practice. Ironically, audio can be a very visual thing.
 
Last edited:
SDL2 and OpenGL, SunVox uses both libraries and it's the finest example of Russian ultra portable audio GUI software.
Being interested in the correspondence between (theoretical) mathematics, (visual) geometry, and (audio) music theory... and how to integrate those three into one project feels a bit grandiose and impossible, but I suppose OpenGL is a good start.
if you want anything ultra portable, metal is absolutely not worth considering, since it's a gay apple NIH abomination (everything else, even recent nintendo shit, supports vulkan instead)

anyway it shouldn't be that hard to make a buffer of weird values from your audio samples and send them to opengl so some shader can deform and shade triangles to the music
anyway you might want to start by taking an fft and making it scale some boxes and then keep going from there
I think I read somewhere that Apple had a lot of say in the design of WebGPU and they tried to make it similar to Metal.
well they're probably not exactly the same and if you want to learn webgpu you should just learn webgpu
i also imagine there are a lot more tutorials for webgpu by now because it's the newest greatest way to do graphics on a web page, and not just the newest greatest way to do graphics on an iphone
 
OpenGL and a developing a strong background in trigonometry is a good place to start. imo acoustics is something you have to take the time to build a good intuition for, and knowing the math helps a lot.
Gathered several pdf files in regard to "The J Programming Language." It's a successor to APL without the unicode. It has accessible and relevant documentation, with openGL bindings, and specifically is a math language with good emacs integration. So who knows, it's a start.
 
Gathered several pdf files in regard to "The J Programming Language." It's a successor to APL without the unicode. It has accessible and relevant documentation, with openGL bindings, and specifically is a math language with good emacs integration. So who knows, it's a start.
if you want a more modern APL i recommend BQN
I personally prefer it with the unicode, as I don't need to learn the chinese characters approach of the same character having several different meanings
BQN has at most 2 definitions per symbol, one for monadic function (1 parameter), one for dyadic (2 parameters)

It has primitive control flow structures, more primitive than J, but it has BQNCrate, similar to APL's APLCart, while J has official, more powerful, less user friendly NuVoc
 
An old-school lolcow going back to the Usenet days who perfectly treads the line between arcane cosmic knowledge and mental illness. He also happens to host tons of Emacs guides, so chances are you ran into him if you ever had to look up something Emacs-related. Here is his site.
 
Here is his site.
1751234595840.webp
kek
Edit: reading why python doc sucks and he's writing full on critique on the screen:
1751234779875.webp
 
Last edited by a moderator:
i mean python does suck though
it sucks about as much as every other language because they all suck
the only language that doesn't suck is lisp but nobody uses it because they're scared of all the parentheses and there are never enough libraries
 
Edit: reading why python doc sucks and he's writing full on critique on the screen:
Transcription for those having trouble deciphering it:
Dumb python complainy guy said:
Classic Python doc problem.
Much talking, little example.
Lots philosophy, lots comp sci pretention [sic], many big words.

If his point is that python docs are way too in-depth and use too many big words (like "supported" and "implementation") for python's target audience, I can't argue with that.

edit: fixed transcription.
 
Last edited:
Python is a lot better if you use type annotations and static analysis. The problems with duck typing comes about when it's not well defined rather than having flexibility. The one major issue I have with python's type annotations is how there's almost no support within it for Python's metaclasses without writing plugins for whichever SA tool you use.
 
He spells things wrong intentionally because he prefers the appearance of certain words. He is quite, quite weird.
"pretention" is technically an archaic spelling that someone sufficiently autistic could argue is not improper. I guess I'll give him this one.
 
Back