I’m surprised that Tic Tac Toe is even winnable. There is always a perfect strategy to force a draw.
pelya
- 0 Posts
- 42 Comments
More like, take a bunch of screenshots of vibe coded website, and treat that as design document while rewriting the whole thing from scratch with clean architecture.
Non-commercial usage restriction makes this license not FOSS compatible.
Additionally, ‘no mortal hand’ restriction is strange, it permits someone like medusa to modify the code while forbidding that to actual software engineers, and would a software engineer dictating code to a medusa be a breach of this clause? I’m not saying that long-lived organisms cannot obtain programming skills, but it is exceedingly rare.
pelya@lemmy.worldto Programmer Humor@programming.dev•What do you call your production branch?11·2 months agoIt’s
goshujin-sama
pelya@lemmy.worldto Programming@programming.dev•Ignoring lemmyhate, are programmers really using AI to be more efficient?11·2 months agoI’m okay with AI-powered autocomplete, or with AI-powered mock project generator. Anything beyond that seems like the management’s misguided attempt at
having more meetingsraising productivity.I’m not using AI, and I rarely use IDE, because ugh, code editor is not fullscreen, and I don’t need a separate panel to navigate project tree and edit makefiles, I can perfectly use the shell for that, and I don’t even need to wiggle the mouse like some graphics designer to debug my code.
pelya@lemmy.worldto Linux@programming.dev•What problems does Linux have to overcome to get more users7·2 months agoIf you ever need to disable SELinux, your software distribution is trash, or you bought some unsupported piece of hardware with crap Linux drivers. Or you are writing kernel drivers and it’s your test machine.
What the user really needs is to launch an app in a secure sandbox with two mouse clicks, not an easier way to edit SELinux rules. Linux software distributions focus too much on technology, but don’t provide the finished user-facing solution with this technology, that’s the problem #4.
pelya@lemmy.worldto Programming@programming.dev•Can somebody explain the graphics stack? Vulkan, OpenGL, Magma, DirectX, SDL, Metal, Mesa, ... wat?3·2 months agoYes, OpenGL is an open specification, it has multiple proprietary implementations, and an open-source implementation (MESA). DirectX 3D is a proprietary specification with proprietary implementations (and one open-source implementation in Wine), but it’s essentially the same graphics driver API as OpenGL.
OpenGL uses multiple GPU cores, but GPU is controlled by a single CPU core. GPU does most of the work of course, but for some operations, like uploading a lot of textures when loading a level, or drawing a dynamic geometry with a lot of triangles, CPU becomes a bottleneck.
pelya@lemmy.worldto Programming@programming.dev•Can somebody explain the graphics stack? Vulkan, OpenGL, Magma, DirectX, SDL, Metal, Mesa, ... wat?11·2 months agoBack in the '90s, when you created a game, you had to build three separate game engines for DOS, Windows, and MacOS, with their separate audio and video drivers. Or you just selected DOS and ignored all Mac users.
SDL was revolutionary, it could create an OS window for you to draw onto (or emulate a full-screen ‘window’ for DOS), and output 2D video and sound using the same SDL calls, on DOS, Windows, MacOS, Linux, AmigaOS, and even Sony PlayStation. So you had the same source code compiling to 6 different game binaries for each platform.
SDL does not implement 3D graphics, it just initializes OpenGL in a window and passes that to your code, because the game studios went all ‘fuck you I’m using OpenGL or I’m ignoring your XBOX entirely’ so even Microsoft was forced to support OpenGL on top of it’s incompatible proprietary DirectX 3D drivers, so OpenGL became the new standardized cross-platform API for 3D graphics.
Vulkan is a replacement for OpenGL which can use multiprocessor architecture, OpenGL is strictly single-threaded so your high-end 12-core gaming CPU ends up with one overworked core drawing all the graphics and 11 lazy cores performing Windows update in the background. The rules are already established, so every GPU and chip manufacturer will either support Vulkan or not have 3D graphics at all.
KDE on Debian. Takes me about an hour to set up a fresh Debian installation.
Creating a kernel is hard, Linux itself is not going anywhere.
If all current maintainers suddenly disappear, several corporations, who heavily depend on Linux, will maintain their own forks, so we will get Google kernel for phones, Amazon kernel for datacenters, Valve kernel for gaming, and probably some European initiative kernel for PCs and laptops to do document editing.
Because it does work, you need
grep -E
for ‘+’ to work without escaping. Also, your quotes are wrong, ‘ should be ’ .
pelya@lemmy.worldto Selfhosted@lemmy.world•What are the benefits of a server having multiple public IP addresses?English7·4 months agoBecause you won’t determine the type of NAT during hole punching. This requires the client sending two UDP packets to two different IP addresses, then comparing their source addresses on the server.
Normally yes, you can just assume that two clients you are trying to connect both have port restricted cone NAT, and run the hole punching algorithm, and if the connection fails after ten seconds, show message to the users ‘Error 418: your router is a teapot’.
pelya@lemmy.worldto Selfhosted@lemmy.world•What are the benefits of a server having multiple public IP addresses?English41·4 months agoThe one use case is running STUN/TURN server for NAT hole punching, that requires two separate servers, or one server with two IP addresses. You will only need that to run masterserver for games that support hole punching, or to run VoIP telephony / teleconference server.
Another use case is reliability, when your server is connected to several network providers, it will keep working if one of them has an outage, and will naturally have a different IP address for each network link. But your VPS does not have several network links, otherwise they would advertize that in bold red letters.
It flies, so I don’t get the joke. I’m an embedded developer BTW.
Gone are the days when I could set up a Wallhaven wallpaper updated each minute, because the plugin no longer works.
pelya@lemmy.worldto Linux@programming.dev•cat /proc/sys/kernel/random/uuid [I ❤️ Linux]4·4 months agoWorks in Termux on Android
std::vector<bool>
fits eight booleans into one byte.
You don’t need to close it, your HTML will be rendered correctly anyway.