Share your repls and programming experiences

← Back to all posts
Calculating π ... C++ Style :·)
h
StudentFires (327)

So, surely you've all seen #LizFoster's attempts at calculating π, I'm here to do the exact some thing.

I take great honor in introducing to you, one of the most powerful coding languages:

C++

Without a doubt, this is designed wholly with the intent to compete with #LizFoster, I am going to attempt to apply my post on memoization, to this project. After I make another tutorial, soon. Update, it's done: C++ Variadic Lambdas For Beginners

C++ is compiled, and the compiler can be set to create different binary outputs depending on the preference of the programmer. You have to weigh compile time against run time; I prefer longer compile time and faster run times.

To modify it's output and compile speeds, you have to manually set compiler flags when running the compiler. I'm using the optimization flags not normally activated by Repl, which Python doesn't have access to, as Python is an interpreted language. Compiled > interpreted

Running a binary without recompiling it is incredibly fast, by default, Repl always recompiles code when clicking "Run."

Try it out, I've set it to not recompile, so it has an extremely fast startup speed!

Also, I've attached some JavaScript variants, they're significantly slower. I use a browser JavaScript Repl when I want to quickly get a theory or idea into code, then I transfer to C++ or Node JS.

I will annotate my code later for readability and understanding. Most of it was done with the intent of high speed, but I still need help with the competitive input and output, the only thing that came to mind was desyncing stdio.

Here's a few Repl's I threw together after heavy optimization and graphing:

Cough cough... D is better than C++

Here's some of the graphs I had made in order to get here:




If I figure out how to use an if statement in Bash, I'll put all of these into 1 Repl.

Commentshotnewtop
LizFoster (592)

"Not very accurate, nor very fast."

It is true though, I am not really going for speed with my approximations.

CodingCactus (2435)

@LizFoster erm I'm confused how this really has anything to do with sexism???

CodingCactus (2435)

@LizFoster I'm pretty sure I won the competition anyway, mine is most accurate and fast :). And I'm a cactus!

LizFoster (592)

@CodingCactus You are setting higher and higher standards for cactus-kind!

CodingCactus (2435)

@LizFoster lol, I just want to represent what we are capable of, we have been pushed down and undervalued for a long time :)

LizFoster (592)

@CodingCactus Cactus lives matter!wwwwww

<3

CodingCactus (2435)

@LizFoster exactly

    _    ____          _    ____          _    ____         
   | |  /    \        | |  /    \        | |  /    \        
   | | |      |  _    | | |      |  _    | | |      |  _    
   | | |      | | |   | | |      | | |   | | |      | | |   
   | |_|      | | |   | |_|      | | |   | |_|      | | |   
   |___       | | |   |___       | | |   |___       | | |   
       |      |_| |       |      |_| |       |      |_| |   
       |       ___|       |       ___|       |       ___|   
       |      |           |      |           |      |       
     __|______|__       __|______|__       __|______|__     
     \          /       \          /       \          /     
      \________/         \________/         \________/      
CodingCactus (2435)

@LizFoster its the title page of my 500 cycles post (its a game (kinda))

CodingCactus (2435)

@LizFoster lol, it's a really bad game

CodingCactus (2435)

@LizFoster well, we'll see. my cycles really slowed up so it'll take longer to get 500 cycles than I thought :(

StudentFires (327)

@LizFoster #CactusLivesMatter Coding Cactus is the representative of the cacti kind.

StudentFires (327)

@CodingCactus Did her initial comment mention sexism?

LizFoster (592)

@StudentFires yeah wwwwww

It was a little joke

StudentFires (327)

@LizFoster Wow, sexist.

It's okay, I'm sexist too though, lol.

LizFoster (592)

@StudentFires What! But I wasn't being sexist! >~<

LizFoster (592)

@StudentFires Oh dear.. At least you aren't rude to me! ^ ^

My joke was that your comment about my methods being slow was sexist, that is all.

StudentFires (327)

@LizFoster Did you see any of the other comments I made mentioning you on this post?

StudentFires (327)

@LizFoster Just making sure.
I'm probably going to start posting tutorials on website development (XHTML), C++, and JavaScript.

If you're interested you can look at them when they come.

LizFoster (592)

@StudentFires Nice! Please tag me in them then!

StudentFires (327)

@LizFoster I'll try to remember to tag everyone who wants to learn them! For now my tutorials are advanced coding and syntax, you'd be lost if you read them. Give it a week (or month more likely) of learning C++, then check out post: C++ Variadic Lambdas For Beginners.

Oh, and btw, totally unrelated, Repl supports HTML (you know what HTML is right?), but Repl doesn't support XHTML, can go to the link in my bio and upvote the language request? Hopefully this isn't too much for you; thanks!

LizFoster (592)

@StudentFires Alright. I'll see what I can do

CodingCactus (2435)

@StudentFires yea, and i was confuzled why (to the question that you sent a while ago that mentioned me)

AmazingMech2418 (655)

Can I join the competition? (well, it's not really much of a competition since @LizFoster wasn't even going for speed anyways and also doesn't know any lower-level languages yet (she has expressed some interest in learning C++)) So, what is faster than C++? How about C? First, triangle sums: https://repl.it/@AmazingMech2418/p-in-C and second, the Nilakantha Series: https://repl.it/@AmazingMech2418/p-in-C-2 The first is slower between iterations, but is more accurate and the second is faster between iterations, but less accurate.

AmazingMech2418 (655)

@LizFoster Okay... I'm still a little confused though... What does "TwT" mean?

LizFoster (592)

@AmazingMech2418 It is a face!

T T for crying eyes

w for mouth!

I'll do a regular face, here :'3

AmazingMech2418 (655)

@LizFoster Okay. Why crying eyes though?

LizFoster (592)

@AmazingMech2418 LOL

Because my approximations are slow!

AmazingMech2418 (655)

@LizFoster Well, that's because you use Python... The algorithm I used for the triangular sums is just as fast as your algorithm for Riemann Sums (although a little more accurate). It's just that I wrote mine in C and you wrote yours in Python. (Also, JavaScript is faster than Python too)

LizFoster (592)

@AmazingMech2418 Yeah, you're right. Like I said, I'm not really going for speed anyways. I just love seeing that it works period!

AmazingMech2418 (655)

@LizFoster Yeah... But, if you do ever want to make it faster, you could always learn C... Also, it's good to have knowledge of a variety of programming languages and C also opens the door to C++, Java, JavaScript, C#, and other C-family languages.

AmazingMech2418 (655)

@LizFoster Also, honestly, your approximations are actually more accurate than @StudentFires 's approximation in this repl... And faster too... With π approximations, algorithm choice is everything.

AmazingMech2418 (655)

@LizFoster So, which language do you want to learn the most? C or C++? (C is faster and lower-level, opening doors to more programming languages while C++ is easier to learn than C while still faster than higher-level languages like Python and JavaScript) I could create a multiplayer repl to teach you if you would like (and anyone else who wants to learn the language you choose). Seriously, you need some variety in programming languages! Python can't do everything, but C++ and C are close (unfortunately, Assembly is not in Repl.it yet).

LizFoster (592)

@AmazingMech2418 I think my favorite game is written in C++, so probably that one ^ ^

AmazingMech2418 (655)

@LizFoster So, would you like me to create a multiplayer repl to teach you the basics of C++?

AmazingMech2418 (655)

@LizFoster Actually, I'm just going to go ahead and invite you.

LizFoster (592)

@AmazingMech2418 I am a little busy at the second, sorry....

AmazingMech2418 (655)

@LizFoster It's fine! You can join the multiplayer repl whenever you want. Just please let me know when you join if it is more than an hour from now. Any time before then, I should still have it open in another tab.

AmazingMech2418 (655)

@StudentFires I said yet for a reason in the first post of this thread... Check out @LizFoster 's newest post to see what I mean.

StudentFires (327)

@AmazingMech2418 They're more accurate? How so?
Also, this post was just an attempt at getting cycles; like, if Liz could do it, I can, right?.

I'm going to break down my recent post into smaller posts for readability. C++ Variadic Lambdas For Beginners It's practically a small book because it's so long.

@LizFoster if and when you learn C++ to a sufficient degree, you ought to look at it.

StudentFires (327)

@LizFoster
Liz:

I just love seeing that it works period!

SF, in the post:

I use a browser JavaScript Repl when I want to quickly get a theory or idea into code, then I transfer to C++ or Node JS.

JavaScript is a relatively easy coding language to learn, especially coming from a C family language like C++, as I had.

JavaScript is run quickly, almost without delay after pressing "Run", but this was in JavaScript Repls. JavaScript Repls were officially removed from Repl.it, but... they still exist.

I use them to see if something works and whether or not my ideas are on the right track. When I have working code I transfer it to a better language entirely. The underlying concepts remain the same though.

This allows quick development speed and a consumer quality product.

Not everyone can easily switch between languages, some have a harder time than others.

AmazingMech2418 (655)

@StudentFires It looks like you just copied everything, golfed it, and then replaced printf with cout and also broke the second one (was my first) when trying to golf it. Yeah, π is 3.14..., not 3.57... What even is the point of changing it to C++? You can program in C++ with C and it takes very few changes to program in C with C++.

AmazingMech2418 (655)

[Replying to comment before C++ remakes of my C pi approximations] @StudentFires Well, yours takes a while to get the same number of digits... I honestly don't even know if it can because I didn't wait that long. However, with @LizFoster 's, it takes much less time to get to the same number of correct digits. Of course the zeta(2) method is not the most accurate or the fastest, but it is still actually faster and more accurate than whatever method you used.

Also, what do you mean by an attempt at getting cycles? It is her post anyways so there is no way I even can get cycles from it. I was just trying to help her add some variety to her knowledge of programming and C++ is great for that since it has the same syntax as many other higher-level languages such as JavaScript, Java, and C# (although, of course, there are some differences). Also, part of it was honestly that I can be pretty competitive and wanted to prove you wrong and let's just say you being rude to @LizFoster made me want to prove you wrong even more. I mean, I know that all you might see is just an account on Repl.it, but there is an actual person behind that account and it is not okay to just downplay people like you have been with @LizFoster . It was honestly either report or compete and I think you are happier with my choice as well. Because, as the Repl.it Talk guidelines say, there is zero tolerance for bullying. Also, with this comment I'm replying to right now, there is another bullying issue. Just reread your comment and see what I mean.

AmazingMech2418 (655)

@Highwayman If only Repl.it supported it...

Highwayman (1299)

@AmazingMech2418 sorry that last comment was way to cryptic. It’s the command you use to assemble a file.

Highwayman (1299)

@AmazingMech2418 you could also just install a different assembler

AmazingMech2418 (655)

@Highwayman Oh. So, you'd just create a bash repl and use the as command to assemble it? It's kind of hard to know what commands are included in Repl.it since you can't use apt (install-pkg is boring. It doesn't have super cow powers...) due to there being no root privileges.

Highwayman (1299)

@AmazingMech2418 ye, or you could make a polygott repl, which is my favorite repl type! XP
I spend basically all my time exploring repl.it’s environment so I kinda know a bit by now XD

AmazingMech2418 (655)

@Highwayman Recently, however, I tried to use a bash repl terminal to figure out all the other repl types that aren't actually labeled in Repl.it by using dirbuster, but it wouldn't install... Like for example, I saw someone with a Perl repl.

Highwayman (1299)

@AmazingMech2418 hm Perl? Maybe it was a git import...? That’s interesting, maybe.. well actually how much data was it downloading? Is it a Debian package? How did you install it?

AmazingMech2418 (655)

@Highwayman Well, I tried using import-pkg, but it didn't work. It is Debian though... It is normally for Kali Linux which is based on Debian. I'm trying DIRB right now.

AmazingMech2418 (655)

@Highwayman DIRB didn't work. The wordlist won't load.

AmazingMech2418 (655)

@Highwayman Well, I have Kali on WSL (1, not 2 (the update is coming...)), so I'm trying dirb on there now. It seems to be working.

Highwayman (1299)

@AmazingMech2418 maybe you could just try implementing something yourself...? What does dirbuster or dirB do exactly?

AmazingMech2418 (655)

@Highwayman Directory brute forcing. Basically, it will try everything possible for repl.it/languages/* and then return any results.

Highwayman (1299)

@AmazingMech2418 lol just do something like ls -a -R / | grep "repl.it/languages/*" or something

Highwayman (1299)

@AmazingMech2418 also the languages are generally under their normal namo or prybar-something I’m pretty sure

AmazingMech2418 (655)

@Highwayman I don't know. However, DIRB is working on WSL.

Highwayman (1299)

@AmazingMech2418 🤷‍♂️ Any said it just isn’t installing right? Idk... :/

AmazingMech2418 (655)

@Highwayman Well, DIRB installed, it just wouldn't load the wordlist. I think because of no root privileges.

AmazingMech2418 (655)

@Highwayman It found bash, BASIC, and C now. It goes in alphabetical order. No Assembly though...

Highwayman (1299)

@AmazingMech2418 Assembly itself is not a language, but more a common name for several different languages, yes? So the assemblers are all called stuf like nasm and yasm and fasm. You can look for *asm later maybe? 🤷‍♂️

AmazingMech2418 (655)

@Highwayman Okay. It found C++ and django now.

AmazingMech2418 (655)

@Highwayman Do you know what flow is? I've never heard of it, but it's there. However, it skipped Dart for some reason. I guess it is not in the wordlist...

Highwayman (1299)

@AmazingMech2418 never heard of it.. or actually maybe like once but not enough times to remember well. Huh. Maybe it)s under a diff name for what ever reason? Magybe flow is dart?

AmazingMech2418 (655)

@Highwayman I think it might be a Node.js framework for math. repl.it/languages/flow

AmazingMech2418 (655)

@Highwayman Well, there is math.js as a file in it.

Highwayman (1299)

@AmazingMech2418 yeah, I just realized it was a link XD

AmazingMech2418 (655)

@Highwayman The website says "FLOW IS A STATIC TYPE CHECKER FOR JAVASCRIPT"

Highwayman (1299)

@AmazingMech2418 hum. So then what...? deep seated confusion XD js is so dynamic it hurts sometimes why does it have a type checker of all th8ngs?maXd

AmazingMech2418 (655)

@Highwayman There is a sitemap... Why didn't I think of this first? https://repl.it/languages/sitemap.xml However, it doesn't have everything that Repl.it has. Perl6 isn't there.

AmazingMech2418 (655)

@Highwayman Ever heard of static? It's clearly new. How about Tcl?

Highwayman (1299)

@AmazingMech2418 naw I know of like three language’s existence it seems :/

AmazingMech2418 (655)

@Highwayman Here is a screenshot with the list of everything I found so far...

Highwayman (1299)

@AmazingMech2418 maybe static is like another piece of a diff Lang like flow is?

Highwayman (1299)

@AmazingMech2418 java with the two different versions XD

AmazingMech2418 (655)

@Highwayman No. It for some reason only comes with a makefile.

Highwayman (1299)

@AmazingMech2418 hm that might be polygott then?

AmazingMech2418 (655)

@Highwayman DIRB thinks everything is case-sensitive...

AmazingMech2418 (655)

@Highwayman Trying again with a different wordlist... This one will take a little longer but should actually work.

Highwayman (1299)

@AmazingMech2418 ohhh oof XD there’s no flag to turn that off?

Highwayman (1299)

@AmazingMech2418 what are the word lists anyways?

AmazingMech2418 (655)

@Highwayman Literally lists of words that make up common directory names. Some wordlists are also for passwords though... DIRB is a pen-testing tool if you didn't notice.

AmazingMech2418 (655)

@Highwayman

I said it would take a while...

AmazingMech2418 (655)

@Highwayman It's stored in a Gzip file because it is so large.

Highwayman (1299)

@AmazingMech2418 o.O oh. I was just about to ask why it was generating it lol yeesh

AmazingMech2418 (655)

@Highwayman Yeah. I just switched to the dirbuster medium lowercase list...

AmazingMech2418 (655)

@Highwayman Actually small. Medium was taking too long.

Highwayman (1299)

@AmazingMech2418 hum are you a hacker? I mean hacker plan

AmazingMech2418 (655)

@Highwayman You know I have the hacker plan... Remember?

Highwayman (1299)

@AmazingMech2418 oh yeah lol I’m dumb XD. You could run two of the programs
At once since you have 2 cpu now, so you could have medium in the back ground being piped to a file and small running to keep you busy..

AmazingMech2418 (655)

@Highwayman I have to do it with WSL. The wordlists won't write on Repl.it.

AmazingMech2418 (655)

@Highwayman It's doing pretty well so far...

Highwayman (1299)

@AmazingMech2418
1) oh :/
2) hm all the same things tho..

AmazingMech2418 (655)

@Highwayman Yeah. This one is not in alphabetical order though.

AmazingMech2418 (655)

@Highwayman I started up the medium wordlist in the background now. Luckily, my computer has dual-core.

Highwayman (1299)

@AmazingMech2418 ayyeee XD what is però like anyways?

AmazingMech2418 (655)

@Highwayman This is one of the samples from Perl.

react {
    whenever IO::Socket::Async.listen('0.0.0.0', 8080) -> $conn {
        whenever $conn.Supply.lines -> $line {
            $conn.print: "HTTP/1.0 200 OK\r\nContent-Type: text/plain; charset=UTF-8\r\n\r\nHello, World!\r\n";
            $conn.close;
        }
    }
}
AmazingMech2418 (655)

@Highwayman I don't know. I just copied and pasted the sample.

Highwayman (1299)

@AmazingMech2418 heh lol me. Where’d you get that example? It was kinda interesting the first thing you get is implementing http XD

AmazingMech2418 (655)

@Highwayman Well, in an empty repl, it asks if you want to try one of the examples.

Highwayman (1299)

@AmazingMech2418 it used to be a "language", but since it8s not actually they just made it a template. That’s the old" language" probably.

AmazingMech2418 (655)

@Highwayman Though why the memory hog we call Express of all things?

Highwayman (1299)

@AmazingMech2418 idk 🤷‍♂️ I guess bc it’s such a popular framework. Also you used to officially have unlimited space for free before so space wasn’t a problem,

AmazingMech2418 (655)

@Highwayman Medium is now running officially. The wordlist is generated.

AmazingMech2418 (655)

@Highwayman I just messed up something... Both are restarting now...

Highwayman (1299)

@AmazingMech2418 nuuuuuu ;-; medium just started DX dam.

AmazingMech2418 (655)

@Highwayman Yeah... Apparently, WSL doesn't like it when you resize the window for the command line...

AmazingMech2418 (655)

@Highwayman Well, the small word list has now found up to Python.

Highwayman (1299)

@AmazingMech2418
abcdefghijklmnop hm that’s pretty far at least.

AmazingMech2418 (655)

@Highwayman Not alphabetical order though...

AmazingMech2418 (655)

@Highwayman dirbuster wordlists go in order of how common the words are. DIRB wordlists go in alphabetical order. I am using DIRB with dirbuster wordlists.

Highwayman (1299)

@AmazingMech2418 oh ok. That makes things faster then?

AmazingMech2418 (655)

@Highwayman Not quite. DIRB wordlists are faster because they are smaller. dirbuster wordlists just have more and the earlier the common ones are, the faster it will get some results.

AmazingMech2418 (655)

@Highwayman That's something it is testing. It shows the different things it is testing at that time and that is one of the words in the wordlist.

AmazingMech2418 (655)

@Highwayman This is what the medium wordlist got. There was an error, so I'm restarting it now.

Highwayman (1299)

@AmazingMech2418 hum... maybe it’s bc of the multiprocessing? Doesn’t make much sense though...

AmazingMech2418 (655)

@Highwayman No. A network issue. It was trying to go too fast and then a small issue with the network caused the errors.

AmazingMech2418 (655)

@Highwayman That one was going at least twice as fast as the other.

AmazingMech2418 (655)

@Highwayman Do you know what the babel programming language is?

Highwayman (1299)

@AmazingMech2418 I’m pretty sure thwt’s another js framework

AmazingMech2418 (655)

@Highwayman It found Perl now. And flow too.

AmazingMech2418 (655)

@Highwayman
This time, with the small wordlist.

Highwayman (1299)

@AmazingMech2418 is there any way to slow it maybe?

AmazingMech2418 (655)

@Highwayman I don't think so. This is the new result from the medium wordlist after it crashed again:

Highwayman (1299)

@AmazingMech2418 hum at least it got past python. Barely.

AmazingMech2418 (655)

@Highwayman Well, python3, you mean. "python" refers to Python 2 and "python3" is for Python 3.

StudentFires (327)

@AmazingMech2418 Well... what are the consequences? Guess it's only a few days until this account is deleted.

AmazingMech2418 (655)

@StudentFires I think the maximum is probably just being banned from talk, not a fully deleted account.

StudentFires (327)

@AmazingMech2418

broke the second one

Actually I realized that after, then I attempted to restart and caught my error, I wasn't modifying f, I had since fixed it, but I didn't post it.

StudentFires (327)

@AmazingMech2418

Also, what do you mean by an attempt at getting cycles?

I actually meant the other post on Pi I did, sorry that was an err on my side.

StudentFires (327)

@AmazingMech2418 Do you think I'll be able to stay if I just apologize and stop this behavior?

AmazingMech2418 (655)

@StudentFires Maybe. If you do get banned, you can always try an appeal. I honestly have no idea how they go about punishing people for breaking the guidelines.

AmazingMech2418 (655)

@StudentFires That was for the other comment.

StudentFires (327)

@AmazingMech2418 Looking at your C code, was that algorithm using summation?

AmazingMech2418 (655)

@StudentFires Yes. It was a trapezoidal sum instead of a Riemann Sum, so it finds areas of trapezoids instead of rectangles.

StudentFires (327)

@AmazingMech2418 I modified the math you used in one of your Repls when I initially converted your Repl into C++, on this one: p-C-2, so I didn't just copy and paste it to C++.

Do you know why desyncing with stdio is breaking this Repl: p-in-C-1?

Also, who does measuring the areas of trapezoids calculate PI?

AmazingMech2418 (655)

@StudentFires Okay. It doesn't break it. Trapezoidal sums work just like Riemann Sums in calculating π. In this one, it takes a quarter of a unit circle and splits it up with trapezoids of equal width and then finds the area of that quarter of the circle using the sum of those trapezoids. Then, it multiplies by 4 since the area of a quarter of a unit circle is π/4 to get π. However, it is multiplied by 2 at the end since the area of a trapezoid is h(b1+b2)/2 and you can just remove the "/2" and divide the 4 by 2 so you only have to multiply by 2 at the end.

JoeyRueff (19)

I approve the use of desmos.

StudentFires (327)

@JoeyRueff Thank you! Desmos is almost perfect! I recommend Wolfram Alpha though, it can graph 3D and complex numbers.

JoeyRueff (19)

okay, thanks! That might help with some math I was trying to get desmos to do, but it was 'too' complex.

StudentFires (327)

@JoeyRueff If I were on my normal computer, I'd give you the exact link to their graph. Unfortunately, I cannot.

StudentFires (327)

@JoeyRueff Can you graph all of this for me on Wolfram using proper (+-) square roots, etc, and post it here? I'll attach 'em to the post and give you credit for the Wolfram images. I'm currently writing another post, you should see it under "learn" in less than 36 hours.

Twentyone21 (2)

@StudentFires which side of the war do you support?

Twentyone21 (2)

@StudentFires I'm sure @AmazingMech2418 would know what im talking about ehehehee

StudentFires (327)

@Twentyone21 I was never pinged that you sent this message, I supported Tau over Pi.

MrEconomical (2195)

not 1004 digits its a scam

StudentFires (327)

@MrEconomical Where does (or did) it say it would print 1004 digits?

TheForArkLD (607)

Hi,This is very

𝑪𝒐𝒐𝒍!

(And I maked my language,can you code my language?)

TheForArkLD (607)

@StudentFires DefLang,I invite you to “deflbybash”

LizFoster (592)

I love those graphs, too!!

StudentFires (327)

@Highwayman It's done, @LizFoster, the competition has begun, @DynamicSquid... gimme an upvote and help w/ competitive output?

CodingCactus (2435)

@StudentFires lol, can you make it tell you how many iterations it has left to do?

StudentFires (327)

@CodingCactus Well... I linked 5 different Repls... so, which one? The one I have linked as the main Repl is getting an error right now.

Outputting the iterations left to do would slow it down significantly.
Also, I can't, it's currently a pure, tail recursive function, output isn't allowed.

Oh just found out it's a bit slow at or past 10^10. Better than Liz though.

CodingCactus (2435)

@StudentFires I was just talking about the one in the actual post :)

StudentFires (327)

@CodingCactus I can redesign it tomorrow to use summation instead of recursion. It should end up being slower.

What numbers are you trying to use in it? Out of curiosity.

StudentFires (327)

@CodingCactus That only takes like a minute, that's 10^10-1.

StudentFires (327)

@CodingCactus Don't forget to try out the other 4 Repls I attached too!

CodingCactus (2435)

@StudentFires oh yeah, i think i did more like 9999999999999999

StudentFires (327)

@CodingCactus Umm, try to stay below 10^10 for this one.

StudentFires (327)

@CodingCactus School is over. I'm bored out of my mind.

So, I started writing more tutorials: C++ Variadic Lambdas For Beginners

StudentFires (327)

@CodingCactus Try out the JS2, that one can get all the way to your 999999999999!

StudentFires (327)

@CodingCactus It's 2 after midnight here, I'ma get off and get some sleep. Bye!

Has your school not closed down yet?

CodingCactus (2435)

@StudentFires yeah, it has but we use Microsoft teams to do our lessons now, so we still have lessons, just at home

DynamicSquid (1968)

@StudentFires You could also calculate PI the Monte Carlo way... but it's nowhere near as fast a your's or @LizFoster's way.

LizFoster (592)

@StudentFires Wait, what competition? 0~0

StudentFires (327)

@LizFoster I just wanted to see what's happen if I tried to say my way was better.

StudentFires (327)

@DynamicSquid But you already did that, I commented on the post, why would I copy you?

DynamicSquid (1968)

@StudentFires Oh no, I didn't mean that you should do that, I was just advertising it pointing it out

StudentFires (327)

@DynamicSquid Ha! Since you recommended it, I should be able to do it then... right? It's not plagiarism anymore.

DynamicSquid (1968)

@StudentFires Yeah I'm fine with that. But perhaps mention my post? :)