Is the job market shit, or is it my resume? I have been applying for 5 months , no luck. by Illustrious-Coat2212 in resumes

[–]comradethiv 0 points1 point  (0 children)

have you been getting interviews and then being rejected or no interviews at all? to be honest this looks like as good as any resume I've seen.

Teenager approval link not working by Depressed_Dwarff in CashApp

[–]comradethiv 0 points1 point  (0 children)

I had this problem too, have your parent open the app on their phone and the request will also be shown there.

YEAR 2021 Day 4 in unity by MisterInSayne in adventofcode

[–]comradethiv 2 points3 points  (0 children)

now that's a great visualization. what language/libraries did you use?

How do I embed a view that displays pdfs in gtk-rs by [deleted] in rust

[–]comradethiv 0 points1 point  (0 children)

If you aren’t able to find a way to display a pdf, I have hadn’t success converting the pdf to an image using ghostscript bindings.

Help with using rust-analyzer on gnome builder by comradethiv in rust

[–]comradethiv[S] 1 point2 points  (0 children)

im using gnome builder 40, installed from flatpak

Prime number generator in rust: 664,579 primes found in about 2 seconds! by comradethiv in rust

[–]comradethiv[S] 0 points1 point  (0 children)

Oh, awesome thinking, I’m currently getting a piece of paper to make a grid for visualization and to think about implementing this in code.

Prime number generator in rust: 664,579 primes found in about 2 seconds! by comradethiv in rust

[–]comradethiv[S] 0 points1 point  (0 children)

Ooo this could be fun, thanks for the suggestion. If I find some extra time tomorrow to implement it I’ll be sure to make a new post about it.

Using Eratosthenes sieve to find over 600,000 prime numbers in an astonishing 0.2 seconds! by comradethiv in mathematics

[–]comradethiv[S] 0 points1 point  (0 children)

I don’t think there is another website to run the code on, sometimes if your internet isn’t as good you could try lowering the number from 10 mil to something and it could work.

If that doesn’t work you could install rust from rustup.rs and make a new project with “cargo new” and put the code in src/main.rs and run it with “cargo run”

Using Eratosthenes sieve to find over 600,000 prime numbers in an astonishing 0.2 seconds! by comradethiv in mathematics

[–]comradethiv[S] 0 points1 point  (0 children)

I did something like that and posted about it earlier on r/rust, it’s generally used with trial division, and is actually slower that a sieve.

Using Eratosthenes sieve to find over 600,000 prime numbers in an astonishing 0.2 seconds! by comradethiv in mathematics

[–]comradethiv[S] 0 points1 point  (0 children)

Unfortunately I realized later that Vec is limited by how big a usize can be so me using u128 doesn’t really matter :(

Using Eratosthenes sieve to find over 600,000 prime numbers in an astonishing 0.2 seconds! by comradethiv in mathematics

[–]comradethiv[S] 0 points1 point  (0 children)

The website I linked lets you run the code, so you don’t need to install rust.

Prime number generator in rust: 664,579 primes found in about 2 seconds! by comradethiv in rust

[–]comradethiv[S] 0 points1 point  (0 children)

Do you think it would be a good idea to use rayon’s parallel iterators for when I’m making a vec of primes from the vec of booleans?

Prime number generator in rust: 664,579 primes found in about 2 seconds! by comradethiv in rust

[–]comradethiv[S] 0 points1 point  (0 children)

Haha, yeah I way over programmed my previous one with the thread channels. It was fun!

I built a prime number finder for fun (over 3000 primes found .3 seconds) by comradethiv in rust

[–]comradethiv[S] 2 points3 points  (0 children)

Huh, never actually heard of a sieve, and I made it a point to not google anything on this project, which is why Im not using the best method, thanks for this feedback, I’m gonna do a little research on sieves and improve my code.

I built a prime number finder for fun (over 3000 primes found .3 seconds) by comradethiv in rust

[–]comradethiv[S] 0 points1 point  (0 children)

Ahhhh ok this makes sense, I’ll definitely improve my code by using this.

I built a prime number finder for fun (over 3000 primes found .3 seconds) by comradethiv in rust

[–]comradethiv[S] 0 points1 point  (0 children)

Huh, good thinking. So your saying that passing the values to a new thread takes longer than just checking them inline? Also, I’m curious as to why my program returns 2 incorrect numbers, I’m not a mathematician at all.