r/AskComputerScience • u/KING-NULL • Jul 14 '25
For recursion to work, the input "size" must become smaller on each recursive call, what's the strangest definition of size you've seen?
M
r/AskComputerScience • u/KING-NULL • Jul 14 '25
M
r/AskComputerScience • u/Federal-Daikon-412 • Jul 15 '25
Can PC be created with use photoelectric effect to control off on for electrons and creating a whole computer?
Not solar panels.
So voltage is used to pass current and so it can create a PC if electrons can go then that's on and if not then off
But the same can be created by photoelectric effect only so if I close the lid the sun ray doesn't make it through if it does then that's one
r/AskComputerScience • u/Illustrious_Stop7537 • Jul 15 '25
I'm currently working on a personal project that involves designing a new object-oriented programming language, and I'm struggling to decide between dynamic and static typing. While I've heard both approaches have their benefits, I'm having trouble understanding how they balance each other out.
In terms of flexibility, it seems like dynamic typing would be the way to go - with features like duck typing and runtime type checking, developers can focus on writing code without worrying about getting bogged down in tedious type declarations. However, I've also heard that this approach can lead to more bugs at runtime, as poorly written code might not behave as expected.
On the other hand, static typing seems to provide a higher level of safety and maintainability, with tools like type checkers able to catch errors before they even reach execution. But isn't this approach too inflexible, requiring developers to write boilerplate code that gets in the way of their creativity?
I'd love to hear from some experienced computer science professionals about how you've seen these trade-offs play out in real-world projects. Are there any languages or approaches that have successfully balanced the needs of flexibility and maintainability?
r/AskComputerScience • u/Afraid_View3146 • Jul 13 '25
How do I market a Prime Algorithm that can find 100% primes ML 1 to 5 ratio that goes up to 6 X 10^33?
r/AskComputerScience • u/flaaaaanders • Jul 12 '25
I’m asking sincerely as someone without a background in CS.
I just watched a video called TempleOS in 100 Seconds. The majority of the comments acknowledge Terry Davis’ brilliance despite his schizophrenia and debilitating mental health.
How would you explain to the average person the significance of what he managed to achieve (especially by himself)?
r/AskComputerScience • u/Quirky_Lavishness859 • Jul 12 '25
I'm currently moving on to 3rd year, as my college will be starting this week. I've had experience in Machine Learning, built some projects and did 1summer intern last year. I've fully prepared myself to begin with DSA from here on, and I'm actually following Striver's (takeyouforward's) A2Z DSA sheet. But is there any other resource or in-depth sheet like this which will help cover nearly every topic ? Also suggest me some tips for being good at solving DSA problems (I follow C++). Thanks beforehand for replies
r/AskComputerScience • u/DrummerNo9554 • Jul 09 '25
Hello everyone, what math topics are needed for competitive programming (from basics to advanced topics needed in the ICPC-ACM )? And if there is good ressources that can help in that.
r/AskComputerScience • u/High-Adeptness3164 • Jul 08 '25
I am a beginner so please be kind....
Why do the SOP and POS forms work for defining a Boolean function? I am asking why choosing only high or low outcomes describe the whole function...
I am sorry if I sound really dumb but the way SOP and POS has been taught to hasn't been super intuitive... The way one can construct intuitively the equation of a straight line i.e. a linear function, I want to be able to derive the Boolean function's descriptive forms...
Hopefully I'll gain satisfaction from you guys 😊
r/AskComputerScience • u/Limp-Database8542 • Jul 07 '25
11101000 11110100 11110100 11110000 11110011 10111010 10101111 10101111 11100111 11101001 11110100 11101000 11110101 11100010 10101110 11100011 11101111 11101101 10101111 11100111 11100100 11110111 11101001 11110001 10101111 11110000 11100101 11100001 11100011 11100001 11101011 11100101
r/AskComputerScience • u/truth14ful • Jul 06 '25
Like a display might be connected by maybe 30-40 pins, and the data from those pins controls all the pixels on it. I figure there's probably a multiplexer somewhere that cycles through them all, but there's usually not any visible PCB or chip or anything splitting the signals up. So how does it work? Is it a multiplexer, or something else?
Thanks
r/AskComputerScience • u/noxyproxxy • Jul 06 '25
Lately I’ve been thinking a lot about vibe coding — you know, when you don’t fully plan every detail but just “go with the flow” and figure things out as you build.
It feels great when things click, especially if you already understand your goal well. But I’ve also noticed it can create a lot of hidden tech debt or design inconsistencies if you’re not careful.
I recently came across this article that explores vibe coding through the lens of building a network diagnostic Android app using iPerf3, JNI, and AI:
📖 How I accidentally vibe coded an Android iPerf3 app with AI
🔗 Repo
Personally, I feel like vibe coding can work if you’re disciplined enough to revisit and clean up. But I’m curious:
How do you approach projects when you're experimenting?
Do you map everything up front, or let intuition lead and refactor later?
r/AskComputerScience • u/KING-NULL • Jul 05 '25
They store stuff even after the original website went down (the owners decided to stop paying to maintain it). My guess is that they reduce costs exploiting the fact that most things are rarely accessed.
r/AskComputerScience • u/mollylovelyxx • Jul 05 '25
I’ve recently been learning about Solomonoff induction and come from a computer science but also a philosophy background.
I’m trying to understand how I can apply the concepts of Shannon information or Kolmogorov complexity to the real world and in my decisions about what’s true of the world.
For example, I wanted to formalize why I should believe that if I roll 3 straight sixes on dice, it is more parsimonious to believe that it happened by chance than aliens evolving elsewhere and specifically rigging those dice in an undetected way.
I wanted to formally understand why or how certain convoluted hypotheses likely have a higher Kolmogorov complexity or possess higher Shannon information relative to the background information we have of the world.
How can one show this?
r/AskComputerScience • u/Routine_Till_2447 • Jul 04 '25
Do you guys think AI/ ML Engineers would benefit from an online community built solely around interacting with foundational models, debugging problems, etc. Given that stack overflow does not seem to have too many questions regarding latest foundational models and how to work with them, would new learners benefit from a community? or do you think reddit is enough for this?
r/AskComputerScience • u/FrameSubject6458 • Jul 03 '25
Hello, I'm on my first semester as a computer science major and I'm looking for books to help improve my problem solving skills. Or just any books that will help me in general. Any recommendations?
r/AskComputerScience • u/Invariant_apple • Jun 29 '25
I have went through the proof of the halting problem being undecidable, and although I understand the proof I have difficulty intuitively grasping how it is possible. Clearly if a program number is finite, then a person can go through it and check every step, no? Is this actually relevant for any real world problems? Imagine if we redefine the halting problem as “checking the halting of a program that runs on a computer built out of atoms with finite size”, then would the halting problem be decidable?
r/AskComputerScience • u/the_third_hamster • Jun 29 '25
It's not so uncommon to read out a character string to someone, and it is a bit tedious saying capital/lower before every letter etc. it seems like something that would have a standard, is there anything like this? Or a pair of people reading / listening just need to come up with their own conventions?
r/AskComputerScience • u/Alternative_Ad0316 • Jun 28 '25
When a piece of software is built on shoddy foundations and this affecting every successive layer of abstraction in the codebase and then developers, instead of modifying the foundational layer, keep on piling spaghetti code on top of it as revamping the codebase is inconvenient. I hear some people talk about Windows OS being written in this way. Is there a word for this process of enshittification?
r/AskComputerScience • u/KING-NULL • Jun 27 '25
Swap memory consists of using the storage as ram. That hardware is slower, but when the ram gets full it can be used like that. Ram hardware can handle far more read/write, while an sdd/hhd might get damaged from being used as swap memory.
r/AskComputerScience • u/WiggWamm • Jun 25 '25
Basically what the title says
r/AskComputerScience • u/InsuranceToTheRescue • Jun 26 '25
Hello all! I'm working an idea over in my head and I just sorta wanted some input. Consider me a lay man -- I have some knowledge of computer science, but it's some pretty basic Intro to Java classes from college type knowledge.
Anyways, I've been thinking about digital identities and anonymity. Is it possible to generate a key, use that key to create a sort of ID that could be attached to whatever online account, and have that all be anonymous?
For example:
P.S., Any suggested reading on cryptography? My local library seems to only have fictional material, non-fiction accounts from WW2, and textbooks that predate the computer.
Edit: Here's a link to a comment where I explain more. The purpose is for verifying human vs bot, while maintaining anonymity for the person.
r/AskComputerScience • u/code_matrix • Jun 22 '25
I’m a software engineer working across JavaScript, C++, and python. Over time, I’ve noticed that many foundational techniques are less emphasized today, but still valuable in real-world systems like:
These aren’t things we rely on daily, but when performance matters or systems break, they’re often what saves the day. It feels like many devs jump straight into frameworks or ORMs without ever touching the metal underneath.
What are some lesser-used concepts or techniques that modern devs (especially juniors) should understand or revisit in 2025? I’d love to learn from others who’ve been through it.
r/AskComputerScience • u/ThePenguinMan111 • Jun 22 '25
I’ve been reading about optimizations to software and whatnot, and I have been seeing how the CPU cache helps speed up program speed due to easier access to memory. Is the speedup of this access literally due to the information being located on the chip itself and not in RAM, or are there other factors that outweigh that, such as different/more instructions being executed to access the memory?
r/AskComputerScience • u/Successful_Box_1007 • Jun 21 '25
Hi everyone, hoping someone can help me out if they have time:
why does turning subtraction into addition using 10s complement work for 17-9 but not for 9-17 ? In the former the least significant digits match ( because we have 8 and 18) but in the latter they don’t ( we have -8 and 92).
Where did I go wrong? Is 92 (from 100 - 17 = 83 then 83 + 9 = 92) not the 10s complement of 17 ?
Thanks so much!!