[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: ziggy.png (359 KB, 915x638)
359 KB
359 KB PNG
High performance Rust is probably 100% harder than high performance C++.

C is a great language.

I'm not 100% convinced Rust is easier to maintain than C++.

Allowing Rust in the Linux kernel was a mistake IMO.

-- tpt 2024

https://www.youtube.com/watch?v=DucriSA8ukw

What is our move Rust sisters?
>>
>new language has feature that is just Pascal local variable declaration with extra steps
HAHAHAHA

Fuck rustrannies.
Fuck ziggers.
>>
>>100363589
Please call me when Zig is no longer in alpha and real companies start to use it.
>>
>>100364038
Please call me when Rust has a formal reference (program correctness must be proven with mathematics) and real non-homosexual companies are using it.
>>
Rust is being pushed by the state to make hiring third worlders easier for those who lobby. C++ isn't perfect but the government hasnt made anything better.
>>
>YouTuber *not convinced*.
>IT'S OVER!
>>
>>100363589
>Quoting a "content creator" who only ever worked at joke-stack company, and likely was a "managerial" type there
>>
Can't this faggot not make a retarded face for his thumbnail for once?
>>
buy an ad
>>
Who? Why do I care? At least technology connections shill isn't pure clickbait garbage.
>>
Thanks but I'm still sticking with Odin. It's similar to Go as in it gets out of the programmers way unlike Rust which is just intellectual masturbation. If I want intellectual masturbation I'll use Haskell instead.
Go and Odin get work done meanwhile rust troons can rewrite yet another cli utility.
>>
Don't like rust. C++ works. Simple as
>>
>>100363589
>Allowing Rust in the Linux kernel was a mistake IMO.
---tpt
i had to hear it to believe it
but yeah...
btfo no survivors
>>
>>100363589
>poeple tend to forget how good c is
(7:31)

>(about vulnerbilities)
>dont get caught by skill issues
(9.10)

uh ohh
rustxisters, i dont feel so good...
>>
>video reacting to 5 min total
>react video 40min total
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>play video
>pause video
>screeching voice
>>
>>100369078
kek
>>
>>100363589
i don't use it because it's pointlessly hard to work with. How can someone say it's easier than C is beyond me.
>>
>>100370341
It's easier than serious C, not freshman script-sized C.
>>
>>100363589
Zig is the first actual step forward we've had in system's programming since C. If it ever actually releases (in about 30 years, of course), it will replace C because it is superior to C in every way for every possible scenario. It is even better than C for arbitrary byte sizes.
>>
>>100371162
serious C? What is serious C. Btw i am talking about rust not zig, I never used zig.
>>
>>100371339
const std = @import("std");

pub fn main() !void {
const stdout = std.io.getStdOut().writer();
try stdout.print("Hello, {s}!\n", .{"world"});
}


I wonder why nobody uses it
>>
>>100364024
There are so many good, fast languages out there like Pascal and Linus fucking chooses Rust. The mind boggles.
>>
>>100363589
ping me when it's as memory safe as rust
>>
I'm excited for Zig and/or Jai, fast compilation is a huge deal and might be enough to make me switch. If they also get somewhere with the hot reloading stuff, I will switch 100%.
But I will still wait until they have a solution that actually just works for cross platform windows and rendering. There's basically no advantage in using a better language if you're still stuck dealing with 15 different terrible platform apis.
>>
File: IMG_4127.jpg (292 KB, 540x689)
292 KB
292 KB JPG
He comes
>>
>>100372176
>serious C? What is serious C.
As in non-trivial important C code that will be used by others, and has to meet some certain quality and safety thresholds.
>Btw i am talking about rust not zig, I never used zig.
Yes. And I'm talking about Rust.
I used to write serious C code. And now I mostly write Rust (personal C projects are maintenance-only).
Rust was the answer to many pain points serious C coders had, and where C++ is/was not the answer (it's not the answer to any non-retarded question anyway).
It's no accident that in fields like kernel development and multimedia, where C is king, and C++ (especially with "modern" features) is a big joke, Rust found a lot of buy-in.
And yes, coming from a serious C background, writing Rust is easy. It's like writing in easy mode, except the code is actually better/superior.
>>
>>100372492
rust is c++ with all the bloat turned to 11 doe
>>
>>100372525
thank you no-coder for your generic take.
>>
>>100363589
>e-celeb impressions bait thread
>>100369078
best post and /thread
>>
>>100372550
>ad homonem
i accept your utter concession, crab.
you can mince away now
>>
>>100372607
>>>ad homonem
Yeah, fair point. I should have just wrote
>Hitchens's razor
without mentioning your no-coding disability.
>>
>>100372784
>Hitchens's razor
wtf is even that?
tell me quick. i will be gentler this way
>>
>>100372824
>small dick energy
>>
>>100372784
>Hitchens’s razor is a philosophical concept that states “what can be asserted without evidence can be dismissed without evidence.”
think about it and how it relates to calling me a nocoder, crab (aka sea cockroach).
and then despair from being irrevocably sub 80 iq
>>
>>100372784
btw
imagine giving names to such banalities
->and then imagine memorizing this retarded shit only to *appear smart
fucking hell anon
close this window and go introspect post haste
you got the ego of a 5 year old
>>
To be fair, you have to have a very high IQ to apprectiate Rust.
>>
File: pepe-laugh.png (120 KB, 300x300)
120 KB
120 KB PNG
>>100372939
he still does.
he just said zig is *better. (and c. and that rust shouldnt be in the kernel. hhhhhh btfo no survivors, crab. i guess yopu will be learning zig now)
>>
>>100372241
Who the fuck uses pascal? Btw I love it's syntax. Only way it lost to C is because C was the default for unix. Another case of wrong side winning the history
>>
>>100373024
How to earn money with PASCAL
>>
>>100373155
Find a company with corporate GUI software from the early 90's.
Some probably still exist, but don't ask me for proof.
>>
Why do people even care what he has to say about systems programming? On his go vs rust video he got filtered by mutexes, made me lose all respect for him.
>>
>>100367997
why would I use Odin though when jailang comes out at some point? Also mainly: I hate :: proc syntax
>>
>>100365686
this, kys OP
>>
>>100373525
You should lose some respect of yourself for even recognizing such self-whoring no-doers.
Why do people even watch shit like this on YouTube?
Are you all kindergarten-age and need the video format to learn stuff?
>>
>>100363589
High performance rust is definitely easier than high performance c++ just because built-in support for async, great libraries and that since proper multithreading is easier a lot of people do it.

For simple functions it compile to the same things anyway and can even generate better machine code because it is more expressive.

In real world use it isn't easily beaten by cpp.
>>
>>100364268
It already has, there is prusti and coc rust.
You can fully verify rust programs now.
>>
>>100364268
>program correctness must be proven with mathematics
Call me when one C program falls into this.
>b-but muh se-
Doesn't meet the bar. Their verification toolchain is ass broken.
>>
>>100373024
>Who the fuck uses pascal?
CheatEngine
>>
>>100373552
>when jailang comes out
Jai isn't a language as much as it is JoBlow edging for 12 years.
>>
>>100372196
that's almost as ugly as rust
>>
>>100363589
I'm not your sister
>>
>>100363589
>40 minute video of some faggot watching a 9 minute video
nobody actually watches this söyslop trash, right?
>>
File: smirking_chud.png (12 KB, 640x734)
12 KB
12 KB PNG
>>100373024
>Another case of wrong side winning the history
Another?
>>
I only trust languages made by real software engineers that did real job, like ex bell labs workers. I trust Go.
>>
>>100373838
>High performance rust is definitely easier than high performance c++ just because built-in support for async
Are you fucking stupid? Async is about concurrency (not parallelism) and not performance.
>>
How come when I learn Rust its full of friendly helpful people, but when I tried to learn C it was full of the most gatekeeping weirdos who saw anyone learning the language as competition so they would barely help you or lead in a wrong direction so you give up.
>>
>>100363589
>>100371339
>first actual step forward we've had in system's programming since C
No, it's C with Go's defer and a much uglier syntax.
Just look at it >>100372196, why the fuck do I have to get a standard out writer?
Why is it "trying" to print, does it panic if print fails?
And what is even this .{"world"} syntax, why can't it just take the string arguments directly like any normal language?
>>
>>100372307
Will never be, Andrew doesn't want "hidden control flow" which is necessary for automatic RAII to work.
Smart pointers can't exist in Zig without RAII.
And you forgot a single defer? Oops, your memory leaked.
>>
>>100373838
>high performance
>async
no
>>
>>100372241
>and Linus fucking chooses Rust
he didn't. you can write kernel drivers in rust now, that's it. you could also write them ceeplusplus, nothing special about it.
no one is rewriting the linux kernel in rust.
>>
>>100363589
>Allowing Rust in the Linux kernel was a mistake IMO.
Obviously, but allowing Zig would be another mistake. LLVM-based languages shouldn't be allowed in any production-level kernel.
>>
>>100363589

>I'm not 100% convinced Rust is easier to maintain than C++.
It's easier to maintain. Not easier to write the first time around. Good Rust development practice does not involve using the same design patterns you are used to in other languages. You have to actually not be retarded.
>>
>>100380815
>choosing to misunderstand on purpose this hard
retard
>>
>>100372928
Underage
>>
>>100381575
>You have to actually not be retarded.
Stop discriminating against 23 year old freshman cniles
>>
>>100372196
Because it's 0.12

>>100380641
>it's C with Go's defer and a much uglier syntax.
It isn't, you're just another case of "retard who knows nothing about X has a strong opinion on X". Many such cases around here.
>why the fuck do I have to get a standard out writer?
Zig has a fraction of C's runtime. You don't pay for what you don't use.
>Why is it "trying" to print, does it panic if print fails?
Printing can fail, try just tells zig to return the error value out of the function. Nothing panics if you don't do that, you just ignore the error.
>And what is even this .{"world"} syntax
It's essentially a compile time tuple. I don't like the syntax, but you almost never see it either, but I also can't really think of a much better alternative. It's just variable arguments. And yes, it's better than varargs in every way, but I look forward to reading your cope on that, because I already know that's a hill you'd absolutely die on.

>>100380854
Zig is actively pushing to get rid of llvm. Rust uses LLVM at its core, zig is using it as a starting point. Why would you be discussing adding a language which is like 10 years away from 1.0 to the linux kernel?
>>
File: sticking_with_nim.png (83 KB, 1024x1024)
83 KB
83 KB PNG
>>100363589
Yeah thanks but no thanks. All I need are
>Invisible stack-managed unique pointers for dynamic types by default
>RC otherwise
>Heap references are explicit
>Parameters and returns are immutable unless explicitly otherwise
Wow, it turns out with these simple features you can write giant applications with 99.9% pure business logic and absolutely no memory bullshit.
>yes that's my job idiots
>>
>>100379563
That's how i know you don't know rust.
If you spawn multiple task with spawn they will be dispatched with a threadpool.
It will effectively be multithreaded in term of compute.

But even then, if you want to use actual threads, the requirement for an async task is basically the same as a multithreaded one.
>>
>>100379563
Also fun how you decided to cut my reply midsentence to distort what i was saying and only keep the async part.
>>
>>100373853
Doesn't count. It's not a complete denotational semantics bootstrapped from fundamental axioms.
>>
>>100369078
kekistan
>>
>>100375424
that's because zig is influenced by rust.

>>100381931
hello, bruce. how's the child porn collecting going? and why don't you use your gay tripname any more? is it because everyone has filtered you?
>>
>>100363589
>tpt
Isnt he the guy who created a terminal coffee ordering startup and got data breached within a month? Why the fuck should I care what he thinks?
>>
>>100380777
elaborate
>>
>>100379593
and by "learn Rust" you mean you spread your cheeks and the rustroons are very friendly using your anus, whereas C people encourage you to gatekeep your anus.
>>
>>100381931
I don't care about making programming easier for retarded people.
I care about making it so retarded people can't fuck up the project.
Rust accomplishes this by making it so retards either give up entirely because they can't use the same design patterns they're used to, or they struggle repeatedly until they shit out something that technically works.

Intelligent programmers who know how to adapt their designs to the tool will find Rust quite refreshing.
>>
>>100373838
yea bro Arc<Mutex>> on everything is so cheap bro and performant
>>
>>100363589
Odin will descend from the heavens to kill Crabs and Gophers. Odin already won. Look where Odin is being used. It's used to create high quality VFX in production. Your Rust shit will never be used in production.
Keep on rewriting more coreutils though.
>>
>>100373155
There's this one product that is used in my company from the early 2000's and it's written in Pascal. Only 1 guy maintains all that shit. He probably gets paid a lot to do that.
>>
>>100372413
Any fucking day now. Do it JonBlow. So that we can rewrite everything in jai soon
>>
File: norm.jpg (106 KB, 1024x601)
106 KB
106 KB JPG
>>100373024
>>100377992
>>
>>100379593
>Rust its full of friendly helpful people
You haven't met the unsafe guys, who think unsafe is basically the devil. They harassed that actix developer when he used unsafe in a lot of places to gain performance.
>>
>>100385516
Did he try calling them a faggot publicly and then ignoring all further communication? Because that's how you're supposed to deal with someone harassing you over your code.
>>
>>100385475
pascal is a beginner's language
>>
>>100385678
but bad architecture and coupling will fuck you up
>>
I swear to fuck the syntax on most languages are just shit
It’s like you bring out the specific special case syntax for everything instead of having implied meaning with the ability to become more specific

bitch I don’t wanna have to hold shift or reach some weird way to hit the token I don’t wanna read butt ugly tokens
I want minimalism and ease to type why do always dork it all up

No normal person wants to have complex controls to control something, when that operation covers over 80% of usages



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.