[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] [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

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: maxresdefault(1).jpg (74 KB, 1280x720)
74 KB
74 KB JPG
>keeps out-of-order designated initializers out of sepples to make constructors seem useful (they have been present in c since c99)
What eas his endgame
>>
>>106971061
He's coding C++ compilers in C# + AOT
>look what they did to my boy
>>
>meme arrows
>"sepples"
>"endgame"
either be serious or go full meme bait.
never do half measures.
enjoy your dead thread.
>>
>>106971061
C++ is the least shitty shit if you have to build complex systems with performance in mind.
Yeah I hate C++ but it's still the best option.
But of course for random small apps C# is ten times more comfy.
>>
>>106971061
>language designed by european
>it's a mess
lol
>>
>>106971737
>C++ is the least shitty shit if you have to build complex systems with performance in mind.
Rust exists today.
>>
>>106971737
>C# is ten times more comfy
honestly? how? it just looks like OO java garbage. all the examples I see just look much worse than Rust even, which is surprising since C# is supposed to be a GC'd VM language.
>>
>>106971881
and to be concrete, even premeir shit like ASP.NET Core just looks assy.

Handling multipart in Axum:
https://github.com/tokio-rs/axum/blob/main/examples/stream-to-file/src/main.rs#L88

Handling multipart in ASP.NET Core based on the M$ examples:
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/mvc/models/file-uploads/samples/9.x/FileManagerSample/Program.cs#L29

why do you even need to get the MIME boundary? like what? and all the stupid _private name vars and everything? really?
>>
>>106971881
>it just looks like OO java garbage.
Most of the code I write in C# is functional code.
And what's wrong with OOP? It's just an optional tool for safe state management. It has it's own place.

I bet you think that you have to include every language construct you've ever read about in your code.
>>
>>106971861
>Rust exists today.
They recreated all the problems C++ has.
>>
>>106971953
>Most of the code I write in C# is functional code.
ok, so show me some snippets or something. I just don't believe you. when people say "muh functional" and they show me F#, Ocaml or babby's first anonymous function use I just immediately scowl and walk away.
>>
>>106971960
Async is shit - true.
But I bet async in C++ is unmanageable hell, knowing even the very basics are fucked up in this disaster of a lang "designed" by a (committee of) retard(s).
>>
>>106971964
Watch the videos of this Chad:
https://www.youtube.com/@zoran-horvat/videos
>>
>>106972014
>Async is shit - true.
it's literally one of the best, cross-platform abstractions possible though. there really was no other way to do it. not sure why people seethe about it.

C++ coroutines are a meme.
>>
>>106972021
can you just link to one? ffs. I ain't clicking random videos.
>>
>>106972025
Extremely poor orthogonality.
It doesn't fit well with the other language features.
It fits so poorly they literally had to develop a workaround (pinning) to the key feature of the language - its move semantics - to make it work at all.
>>
>>106971061
>What eas his endgame
cashing "committee" checks until he dies. and it's not an endgame, it's the whole game.
>>106971737
seepeepee was and will always be the most shit option.
the choices were:
C (-> Pascal) -> C++
now it's:
Rust -> C -> C++
in three years, it will be:
Rust -> Zig/C -> Carbon -> C++
and after that, something better than Rust may emerge, and seepeepee will drop off the list completely. it is already dead as a "new project" language in many fields already, thankfully.
>>
>>106972071
>1% of types cannot be moved in memory, that means it's over
>even though self: to all the appropriate trait impls can just be Pin<&mut Self> and the hardest you have to think about it is projecting pin on members correctly.
like, I don't get it. are people still really seething about Pin? you're going to have hard problems no matter what approach you take and move by default was objectively correct for 99% of cases, and even without it, you'd still have problems of specifying things that shall not be molested.
>>
>>106972089
Try to write something more complicated than your school projects!
>>
>>106972089
>C (-> Pascal) -> C++
man, I still deal with Pascal stuff. It's not that good either.
>>
>>106972143
this is hilarious because "school projects" and "blog posts" represents 99.9% of /g/eets's experience with programming (if any).
>>106972129
you're conversing with a /g/eet (possible llm) who web-scraps for "rust problems" and spam them endlessly. "it" doesn't actually comprehend anything.
>>
>>106972149
system languages don't have to be very "good" vs. C++, because no matter what. they will have infinitely less layers of shit than C++.
no one can catch a language that isn't designed, but rather had a committee with the sole incentive to keep adding shit to it for decades.
>>
>>106972089
>rust
>performance
errr, no.
just no.
its decently fast but its way slower than c
unless you write c. in rust. which completely defeats the purpose of the language.

to be fair it may find a use in osshit and servers, if you have to deal with a constant personnel churn.
i wouldnt use it as it is now, but theoretically rust could bring new stuff to the table.
still, its not a solution desirable to any degree when performance is your chief concern

seriously
why the fuck would i bother with safety mechanisms only to promptly ignore them?
why would i care about a standard library if im gonna reimplement everything myself anyways?
makes negative sense. also bc if you min max into memory retention by learning everything there is under the sun, well, you minmaxed into memory retention.
at the cost of your problem solving.
>>
>>106972089
nothing useful and actually real is done in rust, only toy showcase projects and virtual signaling endeavors inside big companies that will get dropped when they realize what a waste of time it was to build an inferior version of something that already existed.
meanwhile c++ powers the world's most important and relevant projects and that alone will keep the demand for it alive.
>>
>>106972555
well at least the "branchless" dot finding retard finally moved on to simd intrinsics.
>>
>>106972752
>t. seething at superior skills
kek. best compliment you could have given me
>>
File: fast-boi.png (56 KB, 331x679)
56 KB
56 KB PNG
>>106972752
btw
this IS branchless
while in the past two years or so i graduated from poor mans sse to full blown simd
you still didnt even learn the basics
>>
>>106972089
Thing is every time I check on these memelangs, they don't have the same kind of libraries C++ does.
>>
>>106973507
you're still on that. what kind of one-trick-pony tardation is that.
i think you disappeared before when this was linked:
https://docs.rs/memchr/latest/memchr/
>>
>>106972660
what do you use for OTP
>>
C++ is so bad at organizing code even python is better
>>
>>106973550
>they don't have the same kind of libraries C++ does.
At least you can use them in Rust, C++ has atrocious package and dependency management.
>>
>>106973909
i had to reimplement an atoi/f/l and i dont have the fast boi code on my machine anymore
so instead of retyping half of an inferior solution based on a screenshot i just implemented it properly with my current level of skills
>memchr
you use sized strings.
i overallocate
we just arent the same

the practical difference is that i deal with everything using simd intrinsics only.
i dont have a tail end i have to iterate through, everything is treated as a 16/32 byte long vector
its a wholly different beast mr branchless
diffreent constraints, different solutions



[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.