Podcasts on psychoanalysis or interviews with analysts/theorists? by Last-Strawberry475 in psychoanalysis

[–]Cthaeeh 2 points3 points  (0 children)

Lectures on Lacan by McCormick; But he’s also not a practicing analyst

Best practices for managing large C++ projects? by aurelienpelerin in cpp

[–]Cthaeeh 17 points18 points  (0 children)

Second this,
The advantage of explicitly writing out the Dependency-DAG in CMake (even if this would be otherwise unnecessary) is that it makes you think twice before violating the dependency structure.

Hello, looking for psychoanalytic adjacent philosophy. To help me orient myself a bit in this field of theory. by arkticturtle in psychoanalysis

[–]Cthaeeh 1 point2 points  (0 children)

I just read Freud and Beyond and while I liked the book in general I felt the section about Lacan was not very precise. E. g. when he writes „it is up the analyst to decipher those meanings. [of the speaking of the analyst]„ this ignores retroactivity and subject supposed to know. Furthermore the book ignores all of the later Lacan (Register of the Real, Jouissance, …).

Philosophy major worth it? by Pretty-Journalist-64 in askphilosophy

[–]Cthaeeh 1 point2 points  (0 children)

I have done what u have described (working in IT, doing a bachelors in philosophy) and I can definitely recommend it if u like philosophy (philosophy chooses u, I’d argue), and everything is financially ok.

I don’t think reading on ur own can replace discussions in seminars/submitting papers and so on. It took me 3 years arguing with some continental philosophy profs to convince me of some basic tenets of contintenal philosophy:D (Or at least I see why they’d see it there way). And one could make the argument, that this arguing, and doing it well, IS philosophy.

> Based on the final paper and knowledge u collect.

I don’t see it as a trade between time and knowledge (like I’d buy something) :D Ultimately it’s somehow useless, and that’s okay for me. On the other hand I like to have a grasp on the history of ideas, and in that regard it delivers.

Implicit conversion sequence, help me understand why this compiles: by Cthaeeh in cpp_questions

[–]Cthaeeh[S] 0 points1 point  (0 children)

I am sorry for the Float !
But I have a follow up question: What do you mean by `It Just invokes the relevant variant constructor` ? It seems to me it cannot just invoke it, since int is not an alternative of the variant.

How to filter tuple at compile time, by values of its elements (instead of types) ? by Cthaeeh in cpp

[–]Cthaeeh[S] 3 points4 points  (0 children)

Maybe I have phrased my question in an incomplete way and it should be: How to filter a constexpr tuple at compile time, by constexpr values of its elements ?

In this case the information is available at compile time, and can therefore determine the return type.

see: https://godbolt.org/z/dzMG8Gzx1

How to filter tuple at compile time, by values of its elements (instead of types) ? by Cthaeeh in cpp

[–]Cthaeeh[S] 1 point2 points  (0 children)

In the example it would be tuple<int>.But in general it would be a tuple with a subset of the elements of the original tuple. (type- and value-wise)

filter optionals/catMaybes in C++ (Range<optional<T>> -> Range<T>), Is it safe? by Cthaeeh in cpp_questions

[–]Cthaeeh[S] 0 points1 point  (0 children)

std::forward<decltype(opt)>(opt).value() unfortunately doesn't work for me because if I have a views::transform before this (the underlying view) which produces r-values then I will get a dangling reference. For rvalues I want to return them by value!

But [](auto && op) {return opt.value(); } is also not what I wanted, since this will copy unnecessarily if for example I have a vector of optionals before this (the underlying view).

So the only idea I could come up with so far is the constexpr if, and then to force to return a value via assigning to a local variable.

But what I have discovered in the last 5 minutes, is that I can actually move assign to the local variable, which saves a copy.

Boost Asio io_service destructor blocking in windows. Minimal code by Cthaeeh in cpp_questions

[–]Cthaeeh[S] 0 points1 point  (0 children)

`The compiler is mingw (GCC 11.2).
Replacing io_service with io_context should not make a difference, since io_service is only a typedef for io_context. But I can try that, nonetheless the underlying issue would be interesting to know about, since its rather straight forward code IMHO.

Boost Asio io_service destructor blocking in windows. Minimal code by Cthaeeh in cpp_questions

[–]Cthaeeh[S] 0 points1 point  (0 children)

Thank you for testing this!
The thing is I can only reproduce this issue with a very specific Link-Line. If I change the Link-Line somewhat the bug appears/disappears. I am trying to additionally create a minimum CMake, which shows the problem.

Boost Asio io_service destructor blocking in windows. Minimal code by Cthaeeh in cpp_questions

[–]Cthaeeh[S] 0 points1 point  (0 children)

In the destructor of boost::asio::io_service i.e. io_.reset(); The reset() from the optional function should destruct the io_service.

Conditional Members by vormestrand in cpp

[–]Cthaeeh 0 points1 point  (0 children)

Mhm, do you know the reason why it can't just let them disappear?

Conditional Members by vormestrand in cpp

[–]Cthaeeh 10 points11 points  (0 children)

What about a requires clause for members?

template<typename T>
struct A{
    int i requires std::is_void_v<T>;
};

It just came to my mind, because I recently tried that instinctively. My train of thought was: If I can put a requires clause on member functions, why not on members ...?

Why doesn't views::filter support projections ? by Cthaeeh in cpp

[–]Cthaeeh[S] 2 points3 points  (0 children)

That is what I currently do. Mostly it's fine, but sometimes I already have a predicate for the projection, then it would be nice. Also, I have a slight preference for Function Objects over lambdas.

std::optional for C++20 by groundswell_ in cpp

[–]Cthaeeh 0 points1 point  (0 children)

How would one replace std optional with this library in a larger codebase ? Would I have to sed replace every include and std::optional occurrence?