[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


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 53017171.jpg (26 KB, 460x460)
26 KB
26 KB JPG
>makes constructors and exceptions depend on each other
What was his endgame?
>>
>>106960028
It was to upset you. I don't mean "you" in general, I mean you specifically, OP. He succeeded and he will sit at the left hand of God for his work; Terry at the right.
>>
>>106960028
>makes constructors and exceptions depend on each other
ok, and?
>>
>>106960028
how do exceptions depend on constructors?
>>
>>106960176
How do you construct an exception?
>>
>>106960179
throw 0;

where's the constructor?
>>
>>106960028
just another stupid hack by Bjarne to try and make C++ appear usable
https://www.youtube.com/watch?v=OP_w_oEU1Wk
C++ is broken by design and best practices are just managing its inherently bad design
>>
>>106960310
it's invisible, like every fucked up thing in C++
>>
>>106960344
and this
https://www.youtube.com/watch?v=xt1KNDmOYqA
>>
>>106960350
>it's invisible
it's not. there's no constructor here.
>>
>>106960119
POTD
>>
>>106960493
kek
>>
>>106960179
throw new YourMomException();

what do you think this code does on c# or java? how do you expect to make an exception object without calling its constructor?
>>
>>106961084
Neither C# nor Java claim to have ”zero cost abstractions".
>>
>>106961295
where does c++ make that claim?
>>
>>106961374
https://www.stroustrup.com/ETAPS-corrected-draft.pdf
>Foundations of C++ by Bjarne Stroustrup
>Page 1-2:
>The aim of C++ is to [...] allow a programmer to work at the highest feasible level of abstraction by providing: zero-overhead abstraction mechanisms
>>
>>106961407
>The aim of C++ is to help in classical systems programming tasks. It supports the use of light weight abstraction for resource-constrained and often mission-critical infrastructure applications.
>By “light-weight abstraction,” I mean abstractions that do not impose space or time overheads in excess of what would be imposed by careful hand coding of a particular example of the abstraction.
from your own source.
also the wording from what you quoted implies it provides zero-overhead abstractions, not that all abstractions it provides are zero-overhead
>>
>>106960785
>no argument
laugh away, retard
>>106961084
>what do you think this code does on c# or java?
what do I care? we're talking C++ here and C++ primitives don't have constructors.
>>
>>106961461
>implies it provides zero-overhead abstractions
doesn't imply, it's literally what's written
and what's written is that it "supports use of light weight abstraction" and aims to "provide zero-overhead abstraction"
the written claim is that the standard should be zero cost and that you can roll out your own abstractions with minimal overhead
>>
>>106960028
>What was his endgame?
To minimize orthogonality between features and make a programming language that reflects the nature of reality itself.
>>
>>106961494
>>106961507
retards
>>
>>106961507
That's your misinterpretation.
>>
Java and C# obsoleted C++ for most kinds of programming decades ago. There's literally no reason to still be using it in 2025 unless you're working on an operating system kernel or device driver or something.
>>
>>106961534
And that's your disinterpretation.
>>
>>106961461
Exceptions have overhead even if you never use them.
>>
>>106961575
Exceptions and RTTI make Sepples infeasible for thosr domains as well.
>>
File: 1759464874553019.png (244 KB, 900x600)
244 KB
244 KB PNG
>>106960028
Unhatted Tim Pool??!
>>
>>106961755
they don't have any measurable overhead in modern compilers. it's not 2005 anymore, gramps.
>>
>>106961781
barney troutsoup
>>
>>106962391
so he is father of Tim Pool?
>>
>>106961896
Neither do actual high level languages.

If you don't care about performance, why are you using Sepples?
>>
>>106962555
>If you don't care about performance
I do. it just has nothing to do with exceptions.
>>
>>106962772
You don't care about performance. You pretend to, but you never measure it nor do you look at the generated assembly.
>>
>>106960119
Hi, I'm the guy in the picture. You're right, that's the exact reason I did that shit. Have a good day!
>>
>>106960028
circular dependencies, yay.
>>
>>106960028
Why do people assume he has a high IQ?
>>
>>106964196
>no arguments
>in desperation attempts psychic powers
kek



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