MatrixDevFunnyVideosMusicBooksProjectsAncapsTechEconomicsPrivacyGIFSCringeAnarchyFilmPicsThemesIdeas4MatrixAskMatrixHelpTop Subs
9

Comment preview

[-]RickSanchez4(+3|0)

I forgot my programming skills because I haven't used them in a while. Once I work on code, my memory will improve.

[-]x0x72(+1|0)

Try your hand at the fib challenge. What language did you write it back when you were active?

[-]RickSanchez3(+2|0)

Here it is: https://github.com/generalram/learnc/blob/master/fibb.c I'm going to have to modernize it to modern C to handle the powers of ten.

[-]x0x73(+2|0)

Yeah, that and get it setup to read a file. But to get the larger powers of ten you basically need to use a BigInt library. For C that's usually GNU's GMP.

[-]RickSanchez2(+1|0)

https://gmplib.org/ is that it?

[-]x0x71(0|0)

Yep. That's it.

[-]RickSanchez2(+1|0)

I figured a long wouldn't cut it, maybe a floating-point double, but I'll try the BigInt library.

[-]x0x73(+2|0)

The problem with floating point is floating points are basically vibe numbers. I wonder how accurate it could be using it. It won't give you the exact answer.

But it would be kind of cool to run it with both.

[-]RickSanchez2(+1|0)

Yeah, scientific notation isn't accurate. I'll have to use GMP, and on the AMD Zen 5, it burns them out. So I have to be careful. https://gmplib.org/

[-]RickSanchez2(+1|0)

For learning GMP/BigNum, they have a tutorial here: https://home.cs.colorado.edu/~srirams/courses/csci2824-spr14/gmpTutorial.html This is for other programmers who want to use BigNum in ANSI C.

[-]x0x71(0|0)

You can always avoid computing them really high. I can run the heavy run on my machine. If that helps.

[-]RickSanchez3(+2|0)

Microsoft Quick C. 1987.

[-]JasonCarswell
4(+3|0)

I want all the knowledge and skills. I'm incorrigibly insatiable. But I have limits and distractions and priorities. What's an autodidact to do?

[-]RickSanchez4(+3|0)

You are hungry for knowledge and skills, that is good, keep learning something new every day. For me, that's a good day if I learn something new.