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.
but when I do this nothing happens.

Define "nothing." Are you just seeing no terminal output at all, or is there an error of some sort? I don't see why that command shouldn't work.

I really just need the glslang and spirv-cross ones.
In that case, you could just run git clone https://github.com/KhronosGroup/glslang.git and git clone https://github.com/KhronosGroup/SPIRV-Cross.git if you don't need the rest of the project.
 
  • Like
Reactions: Friendly Primarina
Define "nothing." Are you just seeing no terminal output at all, or is there an error of some sort? I don't see why that command shouldn't work.
Nothing as in no terminal output
In that case, you could just run git clone https://github.com/KhronosGroup/glslang.git and git clone https://github.com/KhronosGroup/SPIRV-Cross.git if you don't need the rest of the project.
Yeah I just gave up in the end and added the submodules by hand. Weird that it didn't work, though. Like you said, there's no obvious reason why it shouldn't.
 
Nothing as in no terminal output
Hmm. Well, the && between two shell commands basically means "only run the second command if the first command succeeds," so maybe try running the commands one at a time (if you still care).

I still don't get why you wouldn't get any output, though.
 
Hmm. Well, the && between two shell commands basically means "only run the second command if the first command succeeds," so maybe try running the commands one at a time (if you still care).

I still don't get why you wouldn't get any output, though.
I tried just "git init" and that creates a blank .git project with no submodules added. That's when I had to add them manually with "git submodule add *shit copied from .gitmodule file"
 
Modern day SICP appears to be taught with Python nowadays, as opposed to MIT Scheme.
Yeah MIT has their courses online. It's pretty much all Python. They've finally killed off the Bearded Ones, I guess.

How to Design Programs is the SICP successor. It uses Racket. I don't really recommend bothering with it.

Discovering Modern C++: An Intensive Course for Scientists, Engineers and Programmers is what I recommend for really dedicated learners who want to figure shit out. It's possible for a complete beginner. I think.
 
Yeah MIT has their courses online. It's pretty much all Python. They've finally killed off the Bearded Ones, I guess.

How to Design Programs is the SICP successor. It uses Racket. I don't really recommend bothering with it.

Discovering Modern C++: An Intensive Course for Scientists, Engineers and Programmers is what I recommend for really dedicated learners who want to figure shit out. It's possible for a complete beginner. I think.
If I remember right, The Bearded Ones got disillusioned and stopped teaching their course because the practice of programming itself changed. SICP is from the era when the programmer was also an electrical engineer a lot of the time. Things were started from scratch and everything was quite low level. Nowadays though? Pick libstupidnamify to accomplish your task, read through the documentation, slap it onto the project, done. I don't even know what book teaches you how to do that, I sure could use it. Software design patterns maybe?

I tried just "git init" and that creates a blank .git project with no submodules added. That's when I had to add them manually with "git submodule add *shit copied from .gitmodule file"
Are any of those submodule paths in .gitignore?
 
Nowadays though? Pick libstupidnamify to accomplish your task, read through the documentation, slap it onto the project, done. I don't even know what book teaches you how to do that, I sure could use it. Software design patterns maybe?
To be fair, this was also pretty prevalent at the time. The Lisp world was just retarded because they tried to build massive, complex systems (with GUIs and shit even) instead of straightforward, composable tools. Every Lisp programmer had their own set of DSLs and little hacks that made reuse difficult.

Despite being a Lisp diehard, Stallman decided to copy Unix for this reason.
 
MIT OCW? SCIP? LISP? Something to listen to while you work? Maybe devote a weekend of tinkering and play just to say you gave it a try? Don't mind if I do~ thank you Internet Archive.
Well, I dunno about "listening while you work." The SICP lectures are pretty involved and deal with pretty high-level ideas. They're ideally the sort of thing you watch like you were taking a college course - notebook in hand, textbook available, and doing the problem sets between lectures.
 
  • Agree
Reactions: nah
To be fair, this was also pretty prevalent at the time. The Lisp world was just retarded because they tried to build massive, complex systems (with GUIs and shit even) instead of straightforward, composable tools. Every Lisp programmer had their own set of DSLs and little hacks that made reuse difficult.

Despite being a Lisp diehard, Stallman decided to copy Unix for this reason.
I don't know who told you this, but it's complete nonsense. The reason why GNU went with a Unix-like design is well-documented. https://www.gnu.org/bulletins/bull1.txt
Why a Unix-Like System?

It is necessary to be compatible with some widely used system to give
our system an immediate base of trained users who could switch to it
easily and an immediate base of application software that can run on
it. (Eventually we will provide free replacements for proprietary
application software as well, but that is some years in the future.)

We chose Unix because it is a fairly clean design which is already
known to be portable, yet whose popularity is still rising. The
disadvantages of Unix seem to be things we can fix without removing
what is good in Unix.

Why not imitate MSDOS or CPM? They are more widely used, true, but
they are also very weak systems, designed for tiny machines. [...]

Why not aim for a new, more advanced system, such as a Lisp Machine?
Mainly because that is still more of a research effort; there is a
sizeable chance that the wrong choices will be made and the system
will turn out not very good. In addition, such systems are often tied
to special hardware. Being tied to one manufacturer's machine would
make it hard to remain independent of that manufacturer and get broad
community support.
 
I've decided to stop torturing myself with git for personal projects and am playing around with fossil.

It's fantastic. I had forgotten what it feels like to use version control that works like you expect it to.
Reading the "Fossil vs Git" page, these people get it - what's appropriate and necessary for Linus and the Linux kernel is vastly inappropriate for most other applications. I'm pretty much sold already.
 
I've decided to stop torturing myself with git for personal projects and am playing around with fossil.

It's fantastic. I had forgotten what it feels like to use version control that works like you expect it to.
I really want to play with it at some point, but I already know how to use Git quite well for everything I need it to do, and, well, it just has the network effect - everybody uses Git because everybody uses Git. And software is not developed in isolation anymore; do any package managers or that sort of thing support pulling code from Fossil repos? It's just hard to see anything other than Git achieving its own level of usefulness in the near future.

That said, I generally support alternatives to popular projects (especially ones that aren't GPL licensed), so I hope I'm wrong and it takes over the world somehow.
 
1651427086103.png
Wrote this little puppy in about 10 minutes because I had to rip a bunch of videos off youtube for a thread. Realized multithreading would save me like 90% of the time and it worked
 
Last edited:
Kind of OT but does anyone know how to add directories and move files around in Qt Creator? The cmake QT Widgets template has given me this file structure:
CMakeLists.txt
mainwindow.h
main.cpp
mainwindow.cpp
mainwindow.ui

What I want is this:
CMakeLists.txt
src/mainwindow.h
src/main.cpp
src/mainwindow.cpp
src/mainwindow.ui

I'd like the src directory to show up in the Projects view so I can add new source files to it. You'd think this would be easy to set up but clearly the people who work at Qt disagree.
 
while there is probably a way to do it in-IDE, the first thing that comes to my mind is just creating the folder and editing the cmake files directly to reflect the change

set(CURRENT_SOURCE_DIR src) should do the trick iirc
This worked thanks.
 
Anyone here have experience with CakePHP 4.x? My smoothbrain can't seem to implement the authentication plugin without bricking the entire god damn framework.
 
i've been horrifically unproductive for months and idk what to do about it. I've been waiting on my hands for a bunch of shit to fall through and it's still at least another month out.
 
Back