Without going into too much detail, my thesis was criticised for developing a web service with C++. I It was questioned why I didn't use #NodeJS or #Java for the web service. "It's not performance critical" said the professor.
Dude, have you used the internet lately?
EVERYTHING is performance critical!
This sort of teaching explains why most aps/websites run like absolute dogshit.
@setebos@fell@folkerschamel If your job is to call a bunch of API functions from external libraries (usually implemented in one of the system languages) that do the heavy lifting, then any language will do (COBOL anyone?). It's only familiarity (and hence velocity) that matters then. And cost of operations.
@folkerschamel@fell I agree with this. In my experience, people asume that something is slow just because it’s written in #python and usually it turns out that it’s because of developer oversight. In cases where Python is indeed a problem, I managed to solve most of my performance issues with caching, or simple code tweeks.
This is hilarious. A #Google engineer invented #zx to make command line scripting easier with #NodeJS, because at a certain point #shell scripts get too complicated and you need a Real #Programming Language.
This is exactly #Perl’s use case from thirty-six years ago. But the kids want #JavaScript everywhere and would rather it take more work to convert their ascended #Bash scripts to a vastly different syntax.
@mjgardner In my Unix sysadmin handbook from about 15yrs ago, they make a big point about shell scripts beyond 50 lines really need to become Perl or Python. I am by no means a programmer but I tend to use that as a yardstick. I've seen a tonne of horrendous shell scripts that could use the lesson though.
@Adorable_Sergal Apparently, FORTH is a language for real, well-endowed, manly men, not wimpy cucks with micropenises. Only those who can hold up a giant block of granite while kneeling on a keyboard key are worthy.
Here's some hard truth about C - It's not going away. It's not that it's perfect, but it is immensely portable and useful. More importantly, no other #programming language has come close to its ubiquity. I'm not saying other languages don't do some things better (they definitely do!), but we're going to be stuck with C for a while yet.
Not to even mention how many other more "modern" #programming languages still depend on C in some very big ways because of the operating system APIs, native database drivers, or the language itself is written in it (PHP, CPython).
@aeva@ELLIOTTCABLE Checking and… god damn it Microsoft really did something nasty to us when they decided to have the C# VM specification technically be named the "CLI"
When you've spent hours writing a lot of code, and you figure out that most of it doesn't work they way you'd though together with the rest of the code base, so you revert most of it and are left with a small chunk of useful stuff ...
in the books, but I don't think it would've worked as a show.
This took on a far more personal approach to the story. It's great, and impactful, but I really don't know where things are going.
I have some gripes with the show: one is that the vault feels too powerful; the other is that I did not enjoy the Tellem arc; but assuming the rest will play out well - they are minor.
And the Demerzel finale is so strong. I absolutely love what they did with her character. Pulling so much emotion from a character that is portrayed as so cold and calculating. Fantastic work.
@nixCraft flask user-generated content handling. things like replacing the \n’s with <br>’s without breaking the safety defaults. haven’t quite figured it out yet.
@Em0nM4stodon I don't know if there is a name for it, but I imagine that for anyone who has been bitten by dependency hell in some form or another, the pendulum has swung in that direction: "I can add library XYZ, and who knows when that is going to bite me, because it's no longer maintained, has a security vulnerability in some unrelated part, etc, or I can write just what I need in 10-50 lines of code.”
Okay Fediverse, as funding is not happening at the levels necessary to sustain me working full-time on the Fediverse (whether that's on trust & safety or on Mastodon), I'm now looking for part-time or contract positions.
Most recently I worked for Sir Tim Berners-Lee's company Inrupt.
@lproven@dekkzz76 I usually work with signal processing, image processing, radar, etc. I don't mean to trample the grounds outside my domain.
And I take your pointed objections about my choice of terminology. I was using those terms to describe the reinvention of old technologies in the Web stack, so I couldn't have avoided their use.
I've been working a lot with #glsl for a while now, writing complex code. Overall, I feel like the single improvement that would make the most difference for the language would be support for pass-by-reference instead of copy in/copy out syntax, as suggested here https://github.com/KhronosGroup/GLSL/issues/84
This would make it possible to do a lot of things that are either not possible or ridiculously inefficient to compile, including object oriented programming.
Also one thing that should be easier to do (I imagine) if pass by reference exists, is to accept arbitrary length arrays as parameters.
Right now you can declare a local array and iterate on it with a for loop on its .length(), but you can't move that for loop to a common function that accepts various array sizes as input. The only way to avoid repeating the code is using macros, which sucks.
Again for a language that inlines everything this seems like a strange omission.
And it also has a no aliasing restriction; you can't have two names for the same variable memory and have a RW, WR, or WW hazard in the same function. https://www.w3.org/TR/WGSL/#alias-analysis
And with all that our compiler does call site specialization until it boils those pointer params away. It's convenient for the programmer but can bloat code size (hopefully no more than hand rolling it yourself)
For MLK day here in the US, I'm going to be doing some equity #mapping work with #OpenStreetMap#OpenTripPlanner#QGIS and mabe some #Nodejs and posting some updates throughout the day in this thread. If that's your jam, follow along.
Otherwise, you may want to mute me for 24 hours, because this may get noisy. 🧵
Why build a ped bridge if it's not going to connect anywhere useful, or safely? "Pedestrian Bridges of North Texas" captures the vibe of how our government often uses pedestrian bridges to solve transportation problems. https://www.youtube.com/watch?v=mu5JqkufLtE
What are the benefits of using C over C++ for greenfield projects, setting aside build times and such.
In other words, is there anything that can be done in C that cannot be done at least equally well in C++? Is there something that can be done in C that just can't be done in C++? What are the dealbreakers?
(No language wars please.)
Boosts appreciated: my sphere of influence is quite small. 🙏
@smurthys
if C23 is ratified and while C++ is not yet based on it, you get assert(...) as a variadic macro in C23 but not in C++23:-) (I am guilty and working on it. )