• 0 Posts
  • 90 Comments
Joined 3 years ago
cake
Cake day: June 16th, 2023

help-circle


  • I hate this argument on principal, if I write a game with Pygame, it’s written in Python not C.

    Balatro is written in Lua not C just because Love uses SDL.

    This is like saying Python, CPP, JS, PHP, LUA, Perl, Dart, C# and Java are just written in C.

    This is like saying Rust isn’t a real language because it relies on LLVM which is written with C/CPP.

    If I split the lua code in balatro from the SDL library, I don’t have a game anymore.





  • People who say “Python is slow” are generally wrong, yes, the language is slower then C in basically everything and it also almost always doesn’t matter.

    The bottleneck in a console app is not your applications ability to process, it’s your ability to read and type, you will have the same experience in any language.

    The same is true with GUI apps, python GUI apps are generally just bindings to toolkits written in other languages like pyqt is a python wrapper around a C++ toolkit.

    In actual gamedev, something like Pygame is using SDL which is a C library.

    YouTube is a python web app.

    Yes, python is slow, and generally it doesn’t matter, if it’s slow then it’s usually a PEBCAK problem. Python is primarily used as an easy to write language that is gluing together more complicated things written in faster languages.

    Like bash, but readable by humans!




  • I still feel like it should apply, this is the first term of the gpl:

    This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The “Program”, below, refers to any such program or work, and a “work based on the Program” means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language

    “I rewrote it in another language as a library instead of an exe” is still covered under this term isn’t it?


  • I feel like rewriting a GPL thing based on the GPL version should require the GPL licence. After all, you’ve built something on top of GPL code which means it’s also GPL right?

    If I go and build my own implimentation of GTK, how do I even prove that I made it entirely without looking at GTK because that’s what’s required to relicense right?

    Solely from the fact that I’m telling you I made my own implementation of GTK, I’m admitting It’s not clean room right?



  • I mean, this sounds like less of a headache then my latest attempt to setup rust in native windows (hello linker errors).

    That being said, “the tool chain is a pain in the ass to setup” is a real problem IMO. MSVC makes me want to jump out the window every time I’m forced to use it at work.

    If you’re going to cause me more of a headache then go/python/zig to setup (which is basically none) I’m very quickly going to look for an excuse to stop using you.




  • So sick of this doomer BS. I went and had a look at Linus’ “FoSS vibe coded project” that everyone’s been flipping their shit over.

    1. It’s only the python UI
    2. It’s gluing together matlib and pandas
    3. It’s written like a crazy person and I would absolutely reject that if it was a PR.

    Like, it apparently worked for Linus and he also doesn’t care to learn python at all. But I was under the impression that these things are supposed to be good at python.

    This was completely unhinged garbage that I’m shocked even worked. It created the same function twice one after the other. We have nested python functions.

    We have these unhinged guard conditions where if navigation is true we return. THEN we immediately set it to be true and at the end of the function we set it to false again. I thought I was high reading that code. If you legitimately think these things are better at writing code then you are, you suck at writing code.



  • Nah, I recently had to create a program that turned a bunch of extracted CSV files into an XML file for government reporting. I also had to parse some provided government XML files to add things into my output.

    This was going to be run by non-technical people on any OS so I went for python because “install python, download this file and click on it” was easy. Python has a big standard library so I could do everything I needed in it. I was considering using Go but asking people to open the terminal and build something was probably a bridge too far.