[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: LINQ Simple Sentence.png (29 KB, 1770x21)
29 KB
29 KB PNG
How many pages of code your peasant, non-C# language would need to write that one sentence?
>muh rules of bullshit
That's the natural way to "speak" if you come from a mathematical background. It's also a fantastic weapon against the deadly temptations of early optimization. It's the future of coding.
>>
>>101558345
>It's also a fantastic weapon against the deadly temptations of early optimization
because proper optimization is just not possible
>>
File: reaction-laugh-6.gif (2.21 MB, 498x278)
2.21 MB
2.21 MB GIF
>>101558345
>screenshot instead of code tags
>1770x21
>future of coding
>>
>>101558390
>Python 75 times slower than C
Are you high? Source of gtfo
>>
>>101558485
i think you dont realize just how fast C/slow python is
also these are completely different classes of languages
python goes through a parser as it runs.
every line of code is read and transfromed into instructions as they happen (barring compiled python and such)

gime 5 mins
>>
>>101558485
here
https://www.researchgate.net/figure/Normalized-global-results-for-Energy-Time-and-Memory_tbl2_320436353
>>
>>101558485
I'm geting 20x slower using just ints, i'd imagine using classes and dicts would make it even worse
>>
>>101558530
>>101558564
This is an old article that seems to exaggerate the discrepancies. Here is better and recent data.
>>
>>101558916
26 seconds vs 26 minutes is 60x slower
>>
>>101558979
Sure, but I was alluding to the C / C++ vs. C# discrepancy. I never used Python in a professional setting and didn't know it was THAT slow.
>>
File: 1691104091013741.png (85 KB, 702x582)
85 KB
85 KB PNG
>>101558916
>Here is better and recent data
I always laugh when retards post benchmarksgame
>>
File: 1694545518630402.png (59 KB, 625x579)
59 KB
59 KB PNG
Here's a good one
>>
File: LinuxPepe.jpg (38 KB, 385x390)
38 KB
38 KB JPG
>>101559128
>No! You can't be using .NET namespaces in C#! You can't do that!
>>
>>101558345
SELECT DISTINCT c.* FROM controlled_prov c JOIN edges e ON (c.id = e.prov_id) JOIN tiles t ON (t.id = CASE WHEN @clockwise THEN e.left_tile ELSE e.right_tile END) WHERE e.is_littoral = 1 AND t.capital = 1
>>
File: WojakDINGDING.jpg (23 KB, 326x294)
23 KB
23 KB JPG
>My 124 lines DING DING of code are 25,7 % faster than DING DING your one line of code!
>>
>>101559128
What exactly is the problem
>>
>>101559538
No one writes C# like that. Cool that it's possible, but it doesn't really say anything about the language.
>>
>>101559538
There is none. That moron thinks C and C++ have the monopoly on all low level and unsafe code. That namespace was introduced in C# 7.2 in 2018, and he linked to an article from 2017.
>>101559690
That's cope. I can't count the number of times I've used pointers, shifting operators in C#, etc. Things that many C++ dwarfs (the size of the .NET library dwarves that of C++) think don't exist in C#.
>>
>>101558345
it's basically the same in any language with map
>>
>>101559780
>I can't count the number of times I've used pointers, shifting operators in C#, etc.
And you're equating that with using architecture specific intrinsics?
>>
>>101558345
i can do that in beef, allocation free and just as fast as plain iteration.
>>
>>101559848
You referred to "a specific way of writing in C#" that excluded that namespace, and I assume, all use of unsafe code altogether. Truth is that I write safe code 98 % of time, and the remaining 2 % are when performance is critical. These 2 % are no less part of the language. Which produces significant time gains compared to C, C++ or Rust. A language is exactly defined by what it allows you to do and what it restricts you from doing.
>>
>>101559690
Yes if you work in a crud application then sure, you won’t see that. But you won’t see C or C++ there either. But if you’re in something more time sensitive like high frequency trading, graphics, emulation etc… then you’ll see this. The C# scene has had an emergence of “low level C#” there’s things like Bflat (go like compiler) or Zerosharp, that demonstrates the growing desire for low level c#
>>
File: Intrinsics.png (100 KB, 713x535)
100 KB
100 KB PNG
>No, no, no! Delete this!
Also, spans not being used or known, lmfao.



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