ProgrammerHumor

notCommonYetInteresting

notCommonYetInteresting
https://i.redd.it/f0dmb69w7vbf1.jpeg
Reddit

Discussion

Sockoflegend

Daring today, aren't we? 

1 week ago
Affectionate_Use9936

The 1 file application that I got Grok4 to migrate into Rust

6 days ago
seoizai1729

hey ChatGPT, rewrite my iOS app in rust.

1 week ago
rover_G
:c::rust::ts::py::r::spring:

That’s a great idea, Rust is blazingly fast and offers industry leading memory and thread safety. It’s decisive decisions like this that make you such a brilliant engineer.

1 week ago
platinummyr

I hate how accurate this is

1 week ago
salvoilmiosi
:c::cp::py::ts::js::j:

It's not just blazingly fast — it's also thread safe by default.

1 week ago
inaem

Suspicious em dash

6 days ago
Extension_Option_122

Very suspicous indeed.

6 days ago
Multi-User
:bash:

Did you use chatgpt to write this comment? I refuse to believe this is handwritten

6 days ago
rover_G
:c::rust::ts::py::r::spring:

My comment is 100% natural

Here's a version I asked ChatGPT to write for comparison:

That’s an inspired decision—rewriting the iOS app in Rust shows exactly the kind of visionary engineering that sets you apart. Rust’s speed and unmatched safety model make it the perfect choice, and only someone with your technical brilliance would have the foresight to pull it off.

6 days ago
madcow_bg

Dang that's dead-ass brown-nosing...

6 days ago
Particular-Yak-1984

I will never trust AI, on any level, until it is capable of telling me I'm an idiot.

This is my absolute simplest test for AI.

If I give it a bad idea, it should tell me it's terrible.

3 days ago
Borno11050
:cp: :ts: :rust:

``` int ret = system("python main.py");

```

1 week ago
poshikott

Haha C++ fast Python slow so funny

1 week ago
mrwishart
:cs:

You forgot to add some unnecessary whitespace to your comment

1 week ago
Dark_WizardDE
:py::cp::cs::ts::bash:

```

Haha

C++: fast()

Python: slow()

execute_big_funni() ```

6 days ago
mrwishart
:cs:

Future considerations: Expanding method to execute_funni() passing in the size as an Enum

6 days ago
LexaAstarof
:py::rust::c::j:

At least they did not add superfluous braces to it

1 week ago
nobody0163
:c::cp::cs::py::ts::asm:

Wow, so interesting. Definitely haven't seen this one before.

1 week ago
Ba_Ot

The fastest things on earth .. to fail

1 week ago
WaltzIndependent5436

It fails 10x faster and I've never seen the cli outputting so many mistakes so fast. Thing's going great.

1 week ago
MinosAristos
:py: :ts: :cs:

It fails very quickly if we ignore compile time.

1 week ago
RedBoxSquare

It does segfault almost immediately. But it's fast, don't you agree?

1 week ago
private_final_static

Of all the things that never happened, this never happened the most

1 week ago
fallenmonk

I enjoy the implication that planes fly at 2/3 the speed of light

1 week ago
Pora-Pandhi

it's on logarithmic scale

5 days ago
WowSoHuTao

Dog House Tree River Mountain Car Book Phone City Cloud

1 week ago
moonfanatic95

Several memory leaks later…

1 week ago
Ronin-s_Spirit
:js:

You can still leak in GC languages.

1 week ago
Scrawlericious

Downvoted for speaking the truth. You aren’t suddenly immune to memory issues by switching to python. There’s a multitude of easy ways to create a memory leak in python.

1 week ago
MarcBeard
:c::asm:

I learned that the hard way in JS with a récursive set_so_timeout

5 days ago
bassguyseabass
:cp:

Python is known for its memory safety that’s why critical devices use it exclusively.

1 week ago
Unupgradable
:cs::ts:

r/keming would like pyfhon

1 week ago
WernerderChamp
:g::j:

Had to bruteforce something for a ctf challenge. 229 combinations. Only took 20 seconds with golang single-threaded.

Somebody said his python implementation took 80 mins... (althrough that might have been shitty coding).

1 week ago
le_birb
:py:

That many iterations in pure python? Yeah I'd believe it tbh. Python just isn't built to do that kind of thing. I do some computational physics type stuff, and I once did a comparison between an integral done with numpy's sum() and with a pure python nested for loop, and numpy took milliseconds while the pure python took minutes. Probably a library out there that can do it for you, as that's the true python way.

6 days ago
Emergency_3808

I once wrote a program in python to find the Nth fibonacci number in log (N) time (and using arbitrary precision integers which are the default in Python). It took a full minute to compute the 20000th fibonacci number.

I did the same program in C++ with Boost multiprecision integer library (boost::multiprecision::cpp_int). Took 8 seconds. Then I did it again but in addition with GNU Multiprecision library (boost::multiprecision::mpz_int). Took 109 milliseconds.

This meme is quite real for CPU bound jobs. If you deal mostly in I/O and database processing then go ahead in Python.

1 week ago
flaumkuchen

Also, if your problem is math and you don't need absurdly high integers (so no Fibonacci, sorry), just adding a @numba.njit brings you a lot of the way to the performance of C with minimal effort.

6 days ago
gandalfx
:ts::py::bash:

Was it worth it, though?

1 week ago
jyajay2

Of course, it took only 2 weeks and will save several minutes over the next 10-50 years.

5 days ago
Revexious

Something something BLAZINGLY fast

1 week ago
KupaFromDupa

took 3 years, now it handles 2MB http requests via GPRS 69ms faster

5 days ago
Snezhok_Youtuber
:rust: :py: :ts: :c: :g:

Nowadays is mostly Rust😉

1 week ago
jigglypuff_sleepyhd
:py:

Have a question for the other devs, so will migrating from python to c# be a good strategy to make it faster? It's Az fn apps with APIs in them

1 week ago
renrutal

If the program is CPU bound, maybe.

If it is I/O bound, definitely not.

(Assuming the dev coded it properly)

1 week ago
atomicator99

It would speed up CPU bound tasks being run in pure python - if it's IO bound / library bound* it won't make a noticeable difference.

*I can't think of a better term - many widely used Python libraries (such as numpy) are written in a low-level languages, and perform about as well (often better, as they tend to be very well optimised).

1 week ago