DarkAri
@DarkAri@lemmy.blahaj.zone
- Comment on Oh no my harvest is too bountiful 9 hours ago:
I think bragging about how much money or education you have is very low class. I also think this is how you end up with a golddigger wife. Better to hide your wealth.
- Comment on Fear their power 9 hours ago:
Most plants are both genders, they produce male and female parts.
- Comment on Oh no my harvest is too bountiful 10 hours ago:
Maybe don’t brag about your job.
- Comment on If websites are slow for you, this is why, AWS is breaking everything 10 hours ago:
Hmm maybe idk, I still think they are probably one of the better American companies but that’s not really saying much.
- Comment on If websites are slow for you, this is why, AWS is breaking everything 13 hours ago:
I don’t believe that he would make people piss in bottles. I think that was probably a hit piece or something. Also replacing laborers with robots is good although capitalism and pseudo feudalism isn’t going to survive it but that’s also a good thing.
- Comment on life purpose 16 hours ago:
Cool better than some I suspect.
- Comment on If websites are slow for you, this is why, AWS is breaking everything 16 hours ago:
I don’t think they killed local bookstores. I think your average person is just lazy, and publishers were too greedy to allow the audiobook to be included with the purchase of a book.
The fact that they employ a million people is insane, I didn’t realize they were that large. I think laying off half the workforce to replace with robotics is not in acceptable but good. I have been working my entire life and it’s a huge waste of my life, and I look forward to robotic automation.
The thing is, you can’t stop progress just because you miss the way things were. Things are always going to progress. The future can be cool as well.
As far as benzos and stuff, maybe the Democrats shouldn’t be so shitty to everyone who is slightly different from they are. Running a business is something most people just don’t understand. The standard isn’t what you wish were true so much as it’s what you have to do in order to compete. Capitalism is a race to the bottom, the victory of the ruthless, it’s a bad game. Until we get a better economic system, we are kind of stuck with mega corporations. It’s not a choice. It’s what people vote for along with mass surveillance, and many other terrible laws. If you want to hate someone, go hate groups like focus on the family because they are the ones who ruin your society more than anyone and distract people from economic issues by getting these assholes elected who despise the idea of a social culture.
- Comment on If websites are slow for you, this is why, AWS is breaking everything 16 hours ago:
If you are going to hate someone at least hate them for a good reason. I’m not saying he is an angel or anything, just that he is nice and has less shitty views than many of the billionaires now.
- Comment on If websites are slow for you, this is why, AWS is breaking everything 1 day ago:
I think evil is too strong a word for Amazon, I think benzos is one of the nicer billionaires but I have heard the horror stories from Amazon warehouses.
- Comment on life purpose 1 day ago:
So unhygienic!
- Comment on life purpose 1 day ago:
Some people really undervalue the idea of having workers not feel pressured and having some privacy. You might get 10-20% more productivity out of them in the short term, but it raises stress a ton, destroys their mental health, and you probably lose that extra efficiency in burn out and depressed workers anyways, I er the long term it taints everything the company touches. It destroys morale, makes every interaction with a customer slightly worse, makes every work they do worse.
Open layouts are terrible, humans are not designed to exist in an environment where they are constantly monitored. People have to take breaks sometimes, people have bad days sometimes. The way you deal with this from a management perspective is you look at their average efficiency over longer periods of time and judge their worth based on that, but while preserving their humanity and autonomy. Humans are not meant to be drones, and good workers come from having happy and healthy workers.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 1 day ago:
I think it depends a lot on what you are doing. For game dev, there is really nothing else but C++. Also most bad code can be good code if someone is intelligent about it, and use good names and comments. Also if they know how to search through the code and trace things. For massive group projects I can kind of see your point. Being ina. Rush makes it very difficult to write good code, something that is laid out well, is interfacable and modular which makes it easier to understand. I personally try to write all my code to where it’s mostly an API to anyone else wanting to use it. Something where they don’t necessarily have to dig through tons of esoteric and confusing code, but I like to have everything wrapped in nice little function calls, that handle all the edge cases within and have a little description.
I understand rushing makes this hard but that’s more so a failure of the team leadership prioritizing the wrong things. If you are going to write code that’s going to be used for 20 years, it’s actually a much better use of your time to just write really clean and easy to understand and adapt code up front, and save yourself so much time in the future. The only time other people should really have to dig beyond the API layer of your code is when they need to debug or modify the functionality of your code. So to me it seems like you want to write the most abstract and stable and simple interfaces code when working on long term projects with multiple people, even if it takes 4x as long, and for little personal projects and stuff that will only be compiled once, you may just want to through 100k lines of code in a file and compile it and then forget about it.
Other things I do is wrap things and simplify things myself. I create my own libraries which I know that you as a professional programmer hate to hear, but I do believe in the power of simplicity and abstract compression if you really want readable code. Libraries have to be maintained if they are to be used in production, but inlining some of your own code into every project you do is very useful and doesn’t rely on external libraries and can greatly simplify the code you need to write. I wrapped many C std lib stuff in my own code for this reason. It cuts my code in half often times, makes the code very readable and descriptive, and I can just add it to all my projects as a header instead of link libraries and stuff. Idk. Maybe sometimes you just have to weigh the upfront development time and cost with later reliability and simplicity, which I’m sure you do, but your managers might be wise to consider that as well. Having bad code isn’t just bad for developers, it makes people using your product dislike the products. There are many reasons to just take the time to write better code and use better techniques at the cost of time, and to truly be successful you have to look beyond the next quarterly report and stock price and do everything in view of the long term. Efficiencies are often small by themselves and not worth it, but overtime efficiencies and good habits snowball into massive permanent buffs.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 1 day ago:
I have several reasons for not liking java. One is that it uses a garbage collector but another the real reason, besides that it’s often slower than C to write in because it puts many constraints on you like forcing you into an object oriented paradigm. Python I don’t like because it forces you to format your code in a certain way which I don’t really like. I like the freedom of C. It has basically everything I like in a language, it’s fast, one of the fastest, it not safe. I hate safety, my trigger finger is my safety, and it has wide support and examples to draw from, but my favorite thing is probably how powerful and feature complete it is. You can do nearly anything with C. I have been using it since before I was a teenager and I still don’t know how many of its features work because I’ve never had a use for them. Things like templates and stuff. Also sometimes it’s just really useful to do things like create your own data types and stuff. Cast different types as strings or something. I like being able to write functional code as well as Op code along side each other. I like to build up most of my systems from scratch for performance reasons, like file handling because I do game programming usually. I understand many people dislike these things about C but I always rather have freedom and power and maturity for the types of things I like to do.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 1 day ago:
This is why I don’t run corporate software if I can help it. Ain’t nobody got time nor the battery capacity for that.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 1 day ago:
Interpreted languages are very optimized these days, and get much closer to native C performance.
Also thanks internet stranger. <3
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 1 day ago:
Python has come a long way in recent years, I remember when android switched to an ahead of time compiler for its java.
I really like lemmy. I usually learn something everyday. Thxs for that.
My current project is trying to create a cool fork of mobian for the pinephone with overclocks and some other stuff, right now I’m editing the debt trees to get about 50% more performance for roughly the same battery life, out of the pinephone.
With some other things, a bigger battery, and a custom modem firmware that can downclock the CPU in it, I’m getting 2% battery drain per hour with the screen off.
- Comment on celibate discussion 2 days ago:
Hmm I don’t know much but it’s meant to convey humanness in a nonhuman way, like humanoid. A passoid for example sort of implies someone passes but isn’t really human anymore in quite the same way others are because reality has sort of eaten away at them.
There is more dark explanations from dark Ari if anyone has any questions…
- Comment on Is there any way the average American can insulate themselves from the AI bubble bursting? 2 days ago:
You could put a portion of your retirement in assets, things like gold, property if the taxes aren’t crazy. Silver gold and copper can be a good asset if you can get it at market price and protect it from theft. Other things you can buy are used guns, collectables that you know will have more value that is higher than inflation in the future.
- Comment on Well do you? 2 days ago:
Hamburger helper girl is a rubber girl.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 2 days ago:
Perfect assembly is marginally faster than perfect C, but perfect C is way faster than perfect python. You have many valid points though. Also C can be very safe if you don’t use the standard string libraries and stuff. It depends on what you are trying to do. Sometimes it’s worth giving up safety to have a better program.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 2 days ago:
I actually do try to do a good job, but it is hard.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 2 days ago:
Maybe it’s sort of a tragedy of the commons thing. Maybe new standards should have support for limiting the resource use of stuff and the defaults would be low enough that it would force companies to allow time to write good code or it will be unusable on 90% of machines. This might actually fix the issue. Companies could force programmers to just churn out terrible code as fast as possible but would have to actually allow time to optimize and clean up. Idk. I just deal with it by avoiding all that stuff because I actually have enough willpower to stop using something even when it’s more convenient out of principle, which I realize is rare. Most people just want their tik tok OS and they don’t care if they have to pay $1000 for a device that’s a glorified streaming media player. I’m glad Linux exists and it’s still written in C. I’m going to release a game some day and Im going to target Linux as the native client and I don’t care if I lose 80% of my customers. I want to be part of the solution and not the problem, but I understand survival and keeping a job is important to someone like you. Anyways good talk, and windows XP and 7 were much better then any modern operating system ever will be. Linux is catching up fast and we will probably all be on Linux running C code before long.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 2 days ago:
I’m on mobile so it’s hard to memorize all the things you wrote. Maybe I’ll clarify a few points that bothered me. You are obviously very knowledgeable in these things, even more than me in many areas. I am a hobbies not professional programmer but I have been programming since I was 12 or so and I’m in my 30s now, and also have always been a white hat hacker.
I don’t mean you can literally understand everything about a computer, just that you can understand everything you need to in order to do 99% of things and this isn’t some crazy thing. You would obviously use openGL or vulkan or direct X to access the GPU instead of writing binaries.
Modern machines do use several hundred watts just doing regular things. Not idle sure I less you have tons of junk running in the background, but even basic tasks on modern machines which utilize code written in languages like Python and Java and electron and web stuff, will absolutely use much of your systems hardware for simple tasks.
Managing memory in C++ is easy but you have to not be stupid. C++ isn’t stupid proof. It’s also not a good fit for some things because people make mistakes or just take advantage of the fact that C is low level and has direct access to exploit things. The issue is really that if you aren’t on a certain level of programming then c++ can be really unsafe. You need to understand concepts like creating your own node graph with inheritance to make managing memory easy. It is easy once you understand these things. Garbage collectors are not a good solution for many things. I would argue most things. It’s easy sure, but also buggy and breaks the idea of just having smooth running software. You should be freeing your memory just as you called it in an organized and thoughtful way.
By memory bus I mean the front side bus, which if you have programs running at uncapped speeds is bad. Again this is just basic knowledge that any programmer should know without even being taught really. There is no reason to have programs bottleneck your machine when we live in an era of multitasking.
- Comment on Manic Stew 2 days ago:
Schizoredbull
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 2 days ago:
I actually pay for software but I run Linux, I’m not paying for windows because it’s bad. I prefer to pay then have ads. I value my time.
What you are saying is somewhat true. There are hundreds of thousands of programmers these days if not millions. The quality of the person who writes software just isn’t what it used to be. Not that they don’t work hard, but just that they aren’t capable of writing C.
You also can understand everything in a system, at least some people can. I understand those people are rare and expensive to hire.
One thing C really lacks is modern libraries to do these things. It’s not a limitation of C itself it’s just that most modern tools are targeted towards other languages. I understand that writing webapps in C isn’t the best idea because you don’t want web stuff running on hardware directly most of the time if you care about security anyways, but it’s really just a trend where the industry moved away from C with all of its frameworks and stuff which has not been good for the users.
Windows 98 was really good if you knew how it worked. I never had any issues really with stuff like XP. It always worked, it was always fast, it was always stable. I used XP for probably 10 years and never had any issues with instability and stuff and I was constantly modifying stuff, overclocking, patching drivers, modding bios, doing weird stuff that others didn’t do coming up with my own solutions. It worked really well. It’s modern windows that’s a buggy mess that crashes all the time.
To get back to the other point though, to move away from C was a mistake. It’s not that much more complicated than using other languages. Most of the complexity was just in setting up the environment which was admittedly terrible under C. Trying to link libraries and stuff. The actual code itself is not really that much more difficult than say python, but it’s a different paradigm. You are getting closer to the hardware, and it’s not automatic that your code is going to be cross platform unless you use platform agnostic libraries. It’s entirely possible to write multiplatform code in C and most programs could be written in a multiplatform way if users use libraries that target multiplatform development and let users compile them ahead of time. It’s just that companies like Microsoft created proprietary junk like .net and direct X which made writing multiplatform code much harder if you didn’t start with libraries like it or gtk, and openGL. Again, this was never a fault of C. You could even have a standard in CPUs that would run any code to bootstrap a compiler and you could have platform agnostic binaries, which is just something that never happened because there was not really a point to it since so much code was written in lockdown .net and directx.
Interpreted language were intended to solve those issues. Making platform agnostic code, and to make code that was safe to run from websites without compromising the integrity of the users root filesystem, but these are terrible solutions. Especially as interpreted languages moved beyond web stuff and small simple apps to being used everywhere and integrated into every part of the system.
Python is a scripting language. It’s best used to call C libraries or to write very lightweight apps that don’t depend on low level hardware access. Java is like C but worse. JavaScript is like the worst of all worlds, strongly typed, verbose, picky about syntax, slow, interpreted, insecure, bloated, but it is cross platform which was originally probably why it was so popular. That should have just been added to C however. When you have code that runs 10x-10,000 times slower and you have bad programmers who don’t know how to write code that doesn’t destroy the bus, or use 100% of your system resources for no benefit, you end up in this mess we have today, for every app that uses 100% of your memory bandwidth, that halves the speed of the next program. If you have 3 programs running that peg then Emory bus, that means your next program is going to run at 0.25 the speed roughly. This is not how software should be written.
Python can also be great for prototyping algorithms and stuff, automating things that run once, not in loops. However once you figure it out, it should be written in C. All of these libraries that are written for the modern web should have been written to target C.
The cool thing about C is you can use it like basic if you really want. With a bit more syntax, but you don’t have to use it with classes. You can just allocate memory on stack and heap and then delete all of it with like one class if you really want to. Everything that’s cool about other languages mostly just already exists in C.
It’s kind of amazing to see the difference between a Linux smartphone and an android smartphone these days. A Linux smartphone running terrible hardware by today’s standard is just instant. 32 GBs of storage is enough to add everything you want to the operating systems because binaries are like 2 MB. Then that all goes away as soon as you open a web browser. A single website just kills it. Then you sit down on a modern windows machine and everything is slow and buggy as shit. It draws 500w of power on a 2nm process node. It’s a real issue. No amount of computer power will ever overcome interpreted languages because people will always do the minimum possible work to get it to run at an unstable 30 FPS and call it good.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 2 days ago:
Python is really that much slower. It has actually come a long way in the past few years but it’s still a interpreted, strongly typed language. You can use libraries that are written in C or rust or something to make python run much faster but anything you write in actual Python is extremely slow. It can be okay for scripting, like basically bash, but it’s not really good for a programing language and writing applications in it is not good unless it’s a small project made by one programmer that does a specific useful thing.
Software really is getting terrible. We are hitting a wall in terms of refining process nodes further because we are at 2 nm and it’s really difficult to keep going. There is already way too much terrible code out there just destroying really powerful systems. We are evolving backwards, boot times in the early 2000s on low end hardware were a few seconds for windows XP. When I clicked an application, it either opened nearly instantly or within a couple seconds. It was a much better operating system than windows 10 ever will be.
The issue is having even a single piece of python or java or electron can just completely saturate your memory bus and halve the speed of every operation you do. i had a PC that had spotty thermal paste but long ago and opening discord would overheat it lol.
All I’m saying is that writing this type of code for production shouldn’t really be acceptable. It would be nice if we actually benefited from advancing computer technology and new hardware wasn’t just an excuse to write worse software. I think operating systems should warn the users when running terrible code, that this program is low quality and will slow down the system or is taking as much resources as it can. We are in the age of 1000w computers with billions of transitions being taken out by webpages and OS spyware. The standards are just far too low. There is too much terrible software being written because companies are desperate to hire people who have no idea how to program in real languages instead of paying for real programmers or helping people learn to code in those languages and many of these companies are billion dollar companies.
Like I said, it’s bad for the user, it’s bad for the environment, it bad for your hardrives, and it’s bad for the economy. Not to go full terry Davis on you but computers should boot in under a second these days.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 2 days ago:
Interpreted languages are languages that are compiled at run time. Compiled languages are compiled into binary by a compiler and then distributed as binaries.
Basically with interpreted languages, there is huge overhead because the code has to be compiled (turned into machine code) as the program is running. This is why games and operating systems are written in C but people learn how to write Python and Java in their college classes. Interpreted languages are often much easier to learn then C and cross platform, but C is fast and powerful.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 3 days ago:
Assembly isn’t really faster than C in many cases, although it is in some cases, C actually compiles to assembly basically. The speed ups you get from assembly come from the fact that you can hand optimize some things that compilers miss, and it can be useful sometimes, like when writing a very high performance part of software like a game rendering loop or something.
Python uses 10x the memory but probably 100x-1000x the CPU cycles to do the same thing. Also using libraries written for interpreted languages is going to bloat your memory footprint where c libraries are tiny and efficient.
Memory leaks are an issue with all programming languages, although some use what’s called a garbage collector to handle memory which can be okay with some things but terrible in other things like real time software, operating systems, video games, or just anything you don’t want to hitch and lag and run like a turd. Garbage collectors aren’t some magic fix to memory management, if so they would be a part of C. There are huge tradeoffs to not managing your own memory. If you are using c with objects, then you are pretty safe. The object oriented nature of the language makes it very easy to manage memory. That’s mostly what it’s there for besides reducing the amount of redundant code, if you are using inheritance like you are supposed to. This is called a node graph. You store your data under objects so when you want to remove your data you just call a recursive free function on the highest parent object.
The difference really is that C code is efficient, in the sense that it doesn’t waste anything. Every thing that seems low level about C is there for a reason. It came from a time where it was important to write code efficiently. Where every MB and cycle counted. Where having a garbage collector freeing and potentially crashing your operating system was unacceptable as well as extremely slow. It’s still slow btw, because programs have scaled with the ability of hardware to run it, so garbage collectors are still mostly as terrible as they always have been.
C is only low level in the sense that it actually runs on the hardware. There isn’t layers of stuff in-between it and the hardware. There is no good reason to do so, outside of maybe security in some context. You don’t want web resources running on your hardware directly.
All the other stuff that comes with modern languages is mostly nonsense. Type checking is for lazy programmers. It multiplies the time needed to do an operation. There is no good reason for it to exist other than programmers being bad at their job. C is loosely typed btw. It checks types in the compiler where it belongs. If your android phone was written in c++, your battery would last for days, and you could play games on it for hours, and everything would be extremely fast, nearly instant loading of stuff. The reason we pages were written in JiT languages was mainly just for comparability across many different types of hardware and browsers. They were also relatively small programs. Scripting can be useful sometimes, garbage collectors can be useful for script kitty stuff. It has no place in mainstream software and definitely not in operating systems. Google went from “Don’t be evil” to let’s build an entire operating system out of java and spyware. It’s not good. At this rate we aren’t even going to have guis anymore in 10 years because no hardware will be able to run it without destroying itself, and needing to be plugged in constantly, and $1000 worth of ram.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 3 days ago:
Python is okay for some things. It’s just that software in general has become terrible because there is so much wasted power being used because people have access to fast hardware. In the 90s your entire environment would use a few MBs of ram. I know with high res images some of this stuff would increase but people are so wasteful with how they write stuff these days. We are evolving backwards because we spend hundreds or thousands on amazing hardware only to have it run like trash in a world where everything is written in java and python and electron. No longer do developers optimize. They just get their webpage to run at a inconsistent 30 FPS on your $2000 computer, and collect their 150k salary, on a machine that has more computing power than every computer in the world put together in the 90s.
It’s not just bad for your time and sanity. It’s bad for the environment, it’s bad for the economy, this same rot is working it’s way into operating systems, into game engines. Every game written for UE5 seems to run at 50 FPS regardless of how good your PC hardware is because of these same low quality programmers and terrible tools. Idk Linux to me has been a breath of fresh air in recent times as bad as it can be. It’s mostly C code with tiny binaries that are like 1-3 MB usually. I guess there is a silver lining to it in that all of these evil corporations like Google and meta and apple are dying because of this. Maybe the internet will go back to being centered around user content in a distributed fashion and not just a couple of highly controlled websites that try to brainwash you into supporting your corporate backed government. It already seems like every triple A game studio sucks and all the best games that have come out in the past 15 years have been from small indie studios.
- Comment on The C programming language is like debating a philosopher and Python is like debating someone who ate an edible 3 days ago:
C does one thing really well and that’s everything fast with complete control. Python is cool for people just trying to bang out some scripts or learning to program but interpreted languages have no place in mainstream software. Devices are starting to become slower than computers 30 years ago because there is so much garbage being included in apps written in interpreted java and Python and other nonsense. It’s not just bad for the user but it’s bad for the planet. It shouldn’t take a million times the energy to run a simple program because someone doesn’t know how to write Inca proper language. Python is okay in some things. The world has become too reliant on it though.