/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
The C++ standard for the F-35 Fighter Jet [video]
(www.youtube.com)
327 points
AareyBaba
| 1 comments |
07 Dec 25 18:07 UTC
|
HN request time: 0s
|
source
PDF:
https://www.stroustrup.com/JSF-AV-rules.pdf
Show context
mwkaufma
◴[
07 Dec 25 18:15 UTC
]
No.
46183728
[source]
▶
>>46183657 (OP)
#
TL;DR
- no exceptions
- no recursion
- no malloc()/free() in the inner-loop
replies(9):
>>46183820
#
>>46183900
#
>>46184073
#
>>46184113
#
>>46184198
#
>>46184398
#
>>46184472
#
>>46184588
#
>>46185500
#
jandrewrogers
◴[
07 Dec 25 18:26 UTC
]
No.
46183820
[source]
▶
>>46183728
#
i.e. standard practice for every C++ code base I've ever worked on
replies(1):
>>46183866
#
DashAnimal
◴[
07 Dec 25 18:32 UTC
]
No.
46183866
[source]
▶
>>46183820
#
What industry do you work in? Modern RAII practices are pretty prevalent
replies(2):
>>46183904
#
>>46184092
#
jandrewrogers
◴[
07 Dec 25 18:36 UTC
]
No.
46183904
[source]
▶
>>46183866
#
What does RAII have to do with any of the above?
replies(4):
>>46183995
#
>>46184069
#
>>46184097
#
>>46184150
#
WD-42
◴[
07 Dec 25 18:47 UTC
]
No.
46183995
[source]
▶
>>46183904
#
0 allocations after the program initializes.
replies(4):
>>46184066
#
>>46184067
#
>>46184129
#
>>46184331
#
jjmarr
◴[
07 Dec 25 19:29 UTC
]
No.
46184331
[source]
▶
>>46183995
#
Stack "allocations" are basically free.
replies(1):
>>46189939
#
1.
grougnax
◴[
08 Dec 25 08:49 UTC
]
No.
46189939
[source]
▶
>>46184331
#
No. And they're unsafe. Avoid them at all costs.
ID:
GO
↑