« first day (520 days earlier)      last day (126 days later) » 

14:21
What are languages with good support for enforcing that a piece of code does no allocations?
 
5 hours later…
19:04
0
Q: Analysis of methods to ensure memory safety

Wesley JonesAbstract Ensuring memory safety is a core facet of modern programming language design. Memory safety can be guaranteed in many different ways. For the purposes of this question, I am defining memory safety as the prevention of the following bugs: Note that a language may provide an 'unsafe' worka...

19:22
@NewPosts i honestly dont know what to say to this question
19:48
it kinda makes sense
but there's not much to say
 
1 hour later…
21:19
I am a bit puzzled to see value overflow and underflow identified as memory safety bugs on their own
21:56
true... I didn't even notice. maybe memory safety was confused with C's UB on signed ints
They can definitely contribute to e.g. a buffer overflow, but those were mentioned already
22:24
I'm langdeving, and this struct shall serve as the base type for polymorphism:
struct Object {
    consteval Object() noexcept = default;
    consteval Object(const Object &) noexcept = default;
    consteval Object(Object &&) noexcept = default;
    virtual consteval Object &operator = (const Object &) noexcept = default;
    virtual consteval Object &operator = (Object &&) noexcept = default;
    virtual constexpr ~Object() noexcept = 0;
};
Yuck. I cannot rant more for bloatedness of C++.
 
1 hour later…
23:25
> consteval
Doesn't that require (rather than allow) compile-time evaluation?
Why do you need all of these things to be consteval? And also, I thought virtual constexpr was illegal

« first day (520 days earlier)      last day (126 days later) »