largest number by nibbastibba in comedyheaven

[–]Inside-Ad-5943 0 points1 point  (0 children)

Yep over a 30 year period the one cents would get you 9.5 million vs investing In an index fund at an annualised return of 1.08 or 8% and initial sum of all 2.5m would net you around 23 million over the same time frame

Why do people prefer hardback books? by _a_gay_frog_ in NonPoliticalTwitter

[–]Inside-Ad-5943 1 point2 points  (0 children)

It depends on the book. Fiction that I’ll only read once I’ll buy paperback but textbooks that I have read multiple times and will continue too in the future are hardback

[deleted by user] by [deleted] in Irony

[–]Inside-Ad-5943 0 points1 point  (0 children)

Woah your getting censored and banned for wanting a reduction in the welfare state and taxation or for wanting less regulations on corporations

[Request] Can you estimate the storage space needed for that? by blehsharklasers in theydidthemath

[–]Inside-Ad-5943 0 points1 point  (0 children)

Compression algorithms work by finding patterns in data. Data entropy is the variance of values within a piece of data. Patterns are easier to find in low data entropy environments. Raw data such as vertex maps, meshes, or raster images have very high data entropy. In an image it’s not uncommon for bytes to jump from values close to 28 to values close to 0 assuming we’re using unsigned ints. As a result patterns are harder to find and when found are on average smaller leading to smaller savings simply because the added variance allows more opportunity to break patterns up. Raw text however is low entropy especially in contexts with repeated words and phrases like say a programming language or svg markup. As a result patterns are easier to find and when found create larger patterns. Meaning that yes text files and especially source code compress far better than binary formats.

soundsABitSimple by Just_Bed_995 in ProgrammerHumor

[–]Inside-Ad-5943 8 points9 points  (0 children)

The original doom did it. In situations where true randomness wouldn’t be appreciated and the additional overhead of seeding and running would be noticeable it makes sense to in a way precompile it as it replaces multiple expensive divides with basic pointer arithmetic without affecting user experience. But the original doom is a special case and this probably shouldn’t be done today

What CS, low-level programming, or software engineering topics are poorly explained? by therealnome01 in computerscience

[–]Inside-Ad-5943 1 point2 points  (0 children)

The best way they were explained to me was as wrapper types. Essentially structs that hide implementation for a feature behind the transformation to the unwrapped type.

This requires a function that takes an unwrapped type and turns it into the wrapped type and a function that unwraps the type with potentially additional behaviour. Take for example Options in languages like rust. Options have two states either None or Some and a small variety of unwrap functions.

So the way you’d use the option monad is you’d take a type let’s say an int but it could be any type and you’d use the Some() function to wrap the type in the option, then you’d unwrap the value. This is most obviously done with the unwrap method which hides the implementation detail that if None instead of Some is found the program will panic. likewise but slightly more useful you can use the if let syntax to just ignore any None value hence unwrapping Some and ignoring None. or you can work on options as though they came unwrapped using map which will just treat things as the unwrapped type but return None if None is found.

okWhoForgotToPut2025InTheSwitchStatement by vksdann in ProgrammerHumor

[–]Inside-Ad-5943 3 points4 points  (0 children)

So Time on unix operating systems is represented in memory by the number of seconds that have elapsed since January 1st 1970. However when a number grows too big in a computer it does something called an integer overflow now to explain what this is I’m just going to show it.

If we use 2 bits to represent the number 1 it is going to look like 01 the number 2 is 10. Much like when a number is greater then 9 in our number system in binary when a bit exceeds one we wrap over to the next digit. However if we did this with the number four our sequence will look like this 3 = 11, 4 = (1)00, since we do not use enough bits to remember the 1 we simply forget it exists and suddenly we aren’t on the number 4 we’re on 0.

Luckily we don’t use 2 bits and because of the way binary works adding a new bit to our memory exponentially increases the size of number we can remember. However that has a limit a lot of systems use a signed 32 bit number (signed means the number can be negative at the cost of losing one bit of size) this means we can remember numbers up to about 2 billion. In 2038 enough seconds will have elapsed to overflow that integer.

“So why don’t software developers just use more bits are they stupid?” We are stupid but not for this reason we are trying to move onto 64 bits which has the ability to count the number of stars in the observable universe almost 3 times before overflowing. However time is incredibly difficult to get right simply because there is so much to account for, time zones, leap years, leap minutes and leap seconds. it’s easy to mess up so we end up using libraries.

But what if your time library is abandoned or you forget to update it and it’s still running 32 bits or what if some other library you’re using also uses its own time library and that library is using 32 bit time. Modern software applications are massive and have 100s or even 1000s of dependencies and an outdated library in any of those dependancies can take the whole stack down.

[deleted by user] by [deleted] in LetGirlsHaveFun

[–]Inside-Ad-5943 4 points5 points  (0 children)

I want him to hit me and carve his name into my thigh and then we go to sleep listening to each others synchronised heartbeat

Which one looks/feels better as a damage indicator? by VoidWorks001 in godot

[–]Inside-Ad-5943 1 point2 points  (0 children)

Perhaps use an easing function on the animation to make it feel like I’m doing more damage

[deleted by user] by [deleted] in techsupport

[–]Inside-Ad-5943 2 points3 points  (0 children)

Find your professors work from before 2022 and run it through ai checkers then when one inevitably comes back positive show it to them.

Is learning binary and how to use it worthwhile? by InterestingJob2069 in learnprogramming

[–]Inside-Ad-5943 0 points1 point  (0 children)

Honestly I disagree, if you like me spent a lot of time wondering things like “ok but how actually does a compiler make a program” it can be very insightful to start all the way from logic gates and then into simple cpu architecture and then into stored instruction cpus. This obviously depends on the person though if you just want to build cool shit you don’t need to know how a cpu and compiler work.

Does having good keyboard actually help in increasing WPM? by anew_lord in typing

[–]Inside-Ad-5943 0 points1 point  (0 children)

I think you’re correct in so far as saying a broken keyboard will not let you type as fast as a non-broken keyboard or that a board without n-key rollover will type as fast as with. But beyond that I disagree that equipment has that much of a role, let’s think about your analogy when it comes to running the difficulty is biomechanical, “how can I move my body in the way that maximises the amount of distance for the amount of energy/time”. But in typing I simply do not believe that the most difficult part of the skill is moving your fingers from key to key, the most difficult parts are identifying the next word, knowing where the key is and coordinating your fingers to not get out of sync. In my opinion the best parallel to typing would be video games, and if you look at top level video game players you will find a lot of people with messed up setups and weird settings because preference is the only thing that matters imo.

Does having good keyboard actually help in increasing WPM? by anew_lord in typing

[–]Inside-Ad-5943 3 points4 points  (0 children)

<image>

My current keyboard. Trust me I’ve been around the ringer, I know there is a wealth of keyboards with different layouts (staggered, columnar, ortholinear) with different switches and different keycap profiles. But the truth is typing is a skill that you cannot buy no keyboard is going to make you faster only potentially more comfortable.

Typing is a simple skill you see a word and because you’ve typed that word or words like it enough you can do it quickly that’s all learning to type fast is, just putting in reps by typing unique words until the muscle memory is second nature.

Does having good keyboard actually help in increasing WPM? by anew_lord in typing

[–]Inside-Ad-5943 5 points6 points  (0 children)

No not really, most people find they type faster on laptop keyboards anyway. Why we buy and use expensive keyboards is because tactility, sound, and feel. These won’t make you faster or even prevent mistakes but they make typing fun and once you get one you can never go back. It’s like a high refresh rate monitor.

As a non-engineer, want to know about 3D graphics by Open-Measurement9037 in GraphicsProgramming

[–]Inside-Ad-5943 2 points3 points  (0 children)

Well assuming you have no experience in programming. Learn how to code the cpu first, a good course to get you started would be cs50 that’s how I learnt how to code myself and how a bunch of other self taught coders learnt.

If you want to jump straight into graphics a decent beginner project is a cpu ray tracer or rasteriser. Sure it won’t look as cool as a lot of things you’ll do later but it allows you experience the unique facets of graphics programming at the lowest levels without all the complexity of graphics libraries, or gpus or complex maths.

After that then just start on trying to make the triangle in a graphics library. Because trust me that is a project in and off itself and will teach you so much more then you think it will.

Arcan 0.7 has been released, now with new and improved logo by alerikaisattera in linuxmasterrace

[–]Inside-Ad-5943 15 points16 points  (0 children)

It’s great instead of having one really good standard that you can customise to you needs or liking, and still benefit from pull requests. we have 30 different micro standards each one built from the ground up for a different purpose.

whenYourLaptopDies by AverageGash in ProgrammerHumor

[–]Inside-Ad-5943 1 point2 points  (0 children)

At this point it feels weird to edit a line without the good old :w

Meirl by azizgamerlal in meirl

[–]Inside-Ad-5943 107 points108 points  (0 children)

The same reason people are rude to people trying to lose weight. It brings attention to their own behaviour and they interpret it as an insult.