Is there any point to rust when garbage collected C and soon garbage collected C++ exists?
No
>MISRA C>SPARKyou do not need rust
>>107269245can someone explain the point of fil-c to me? is it supposed to be a replacement c compiler that you just use at all times and eat the memory/performance cost or is it something you just run for early production to find memory bugs during runtime and then switch to a regular compiler?
>>107269368You can do both. If you don't need ALL the performance of C, you can ship the fil-C build, it'll be possibly slower than a normal C program, but also as safe as an higher-level garbage collected language.If you need performance, you can build with fil-C in your debug builds and in CI runs, and ship the gcc/clang build. In this case it acts as a valgrind/fsanitize replacement, but possibly faster(?)
>>107269368The purpose of eating off the ground is to be a replacement for the grapes you cannot intellectually reach, and you are sure they are sour anyway
>>107269368It's not to find memory bugs, asan/valgrind/etc exist for that. You are supposed to use it for real software that you release. Its optimized better for running than asan/valgrind/etc is while also being safer.
>Garbage Collected C
>>107269245writing C/C++ sucks once you tried Rust. There is just a lot of better design decisions they learned from all the mistakes C and co. did. Thats not to say C is a bad language just not as expressive I would argue.
>>107269245>what if we were to defeat the whole purpose of C by tanking its performance with garbage collection You get Python.
>>107273017>writing C/C++ sucks once you tried Rust.can confirm. there are very few niche things you can do in C++ you can't do in Rust, but the practical reality is it doesn't matter.
>>107273017express this you, filthy casual>inb4 muh intrinsicstheres more going on than meets the eye.the code is (slightly) optimized towards instruction level parallelism and out of order operationsyou cant do that in rust bc everything is ab stracted away.MAAAAYBE if you write "c in rust" you could attempt to ado something of the sortbut that completely defeats the purpose of using rust to begin with
>>107273064>express this you, filthy casual>atoi>period>decimalwtf?either way, in Rust this is just:>> "1234.4324".parse::<f64>()Ok(1234.4324)
>> "1234.4324".parse::<f64>()Ok(1234.4324)
>>107273064maybe if you didn't post a blurry screenshot I could
>>107273075kek. no.heres the full code if you wanna run benchmarkshttps://files.catbox.moe/1zq8zw.c>inb4 you cheatofc i do. thats why i use C(tm)
>>107273106>>107273119hfmake sure to post the equivalent in rust so we can have a look
>>107273119>>107273129also sorry in advance for being a filthy pig but it is what it is. its a working version, with even a crucial part of the code deactivated for debugging purposesyou need -mavx2 and -mbmi in your compiler flags to compile it
>>107273119>>107273129>>107273142schizo retard reply got one shotted with one line of code and starts schizoing out. what is this mental illness called?
>>107273177you got your share of attentionnow go back to your legos, the grown ups are talking
>>107273057And then you want some performance back, so you write a bunch of C libraries for it.
up btwi still wait for the translation of this code into the oh so expressive rustgiven theres no replyi take it that its another instance where C btfoes rustwithout survivors whatsoevertotal trainwreck, dont bother first responders kind of disasterheres the code if you wanna take a jab at thisbut at least you could have said->ok, u won>>107273119admitting defeat is class.recognize your limitations, be proud when you win,do better when you lose
>>107269245Rust is not garbage collected, and garbage collected C would delete itself.
>Garbage Collected CHopefully it collects itself
>>107269531You're wrong but undebatable. I believe your argument stems from the mortal sin of pride.
>>107273064Normal people>+>->>Cniles>vector_atouf_maths_128_hadd_float>_mm256_sub_epi8>_mm256_cmpgt_epi8
>>107269245Literally yesterday /g/ was saying that it's unacceptable that cloudflare's rust program crashed when finding itself in an invalid state. And today's story is that you don't really need compile time zero cost memory safety, because you can just add on a pile of code that significantly slows down your program and CRASHES THE WHOLE PROGRAM if it detects a memory safety violation.Lmao! They really aren't sending their best. Looking forward to tomorrow's cope.
>>107275568i would have done everything in paiton if i couldi work on the same project since three years, so i ended up learning stuffits numbercrunching, outside of the maths that are usually used.i really cannot "just use pytorch" and call it a day...
>still nothing>big silenceyea.and im not even the final bossim actually the tutorial. theres subtelties i dont master yetand you cant compete even with this
>>107269245>oh, you dropped some packet on my queue>brb, just collecting my garbage>..... rx_missed_error>I'm back, all cleaned up! Anon?>...>Anon?