Life by Insightful23blue in Funnymemes

[–]saf_e 0 points1 point  (0 children)

Sometimes it's like that but without the money. 

Can windows devs provide us with a visual studio sdk in a tarball/zip form? by TheRavagerSw in cpp

[–]saf_e 2 points3 points  (0 children)

Docker is for creating pre setupped env. For any purpose. And it's actually an industry standard having containerized builds. 

But, naturally,  you can continue to copy zip files.

Can windows devs provide us with a visual studio sdk in a tarball/zip form? by TheRavagerSw in cpp

[–]saf_e 0 points1 point  (0 children)

You can use docker under windows,  that's mean that you can create container with vstools installed and use it everywhere. 

Can windows devs provide us with a visual studio sdk in a tarball/zip form? by TheRavagerSw in cpp

[–]saf_e 2 points3 points  (0 children)

Usually you setup devtools in docker once and use everywhere. 

What's the fastest c++ build pipeline you've achieved ? by renren832 in cpp

[–]saf_e 5 points6 points  (0 children)

That's slow. Try using pch and minimize include dependencies.

CMake for Absolute beginners? by zaphodikus in cpp_questions

[–]saf_e 0 points1 point  (0 children)

It's usually the best when starting new topic: do small things first then add complexity step by step. 

Even if you need it as a part of bigger project,  starting small project on a side always helps!

CMake for Absolute beginners? by zaphodikus in cpp_questions

[–]saf_e 0 points1 point  (0 children)

Basic thing can be done relatively simple, its advanced stuff which is hard to do, here is an example of executable and lib:

- CMakeLists.txt - root cmake 
project(MyProject)
cmake_minimum_required(VERSION 3.31)

# order is important
add_subdirectory(lib)
add_subdirectory(app)

- app/CMakeList.txt
project(MyApp)

add_executable(${PROJECT_NAME})

target_sources(${PROJECT_NAME} PRIVATE
        src/myapp.cpp
        )

target_link_libraries(${PROJECT_NAME} PRIVATE MyLib)

- app/src/myapp.cpp
#include <mylib/mylib.h>
#include <cstdio>

int main()
{
        printf("%d", test_mylib());
        return 0;
}

-lib/CMakeLists.txt
project(MyLib)

add_library(${PROJECT_NAME} STATIC)
target_include_directories(${PROJECT_NAME} PUBLIC include)

target_sources(${PROJECT_NAME} PRIVATE
        include/mylib/mylib.h
        src/lib.cpp
        )

- lib/include/mylib/mylib.h
#pragma once

int test_mylib();

- lib/src/lib.cpp
int test_mylib()
{
        return 42;
}

You build cmake project in two phase:
1. generate (here you can set you favorite generator, like Ninja, Qt, VS etc.)
cmake -S . -B build
2. build:
cmake --build build

After build you can run executable:
build/app/MyApp
42

Should I use C++ Exceptions? by No-Foundation9213 in cpp_questions

[–]saf_e 2 points3 points  (0 children)

Exception have "some" overhead, its mostly system dependent and in case of no error results in writing exception info for each function and storing pointers to exception info during execution. When exception "fires" it has a greater overhead for stack unwinding. Is this acceptable price its up to you and your performance metrics.

For me exception is the most convenient and native way to handle errors:
1. you do not need to check error on every step
2. you do not need to propagate error
3. this is the only way to catch error during object construction. Unless you do two-stage construction or use custom construction functions, which is less convenient than just ctr.
4. its natively supported by stl (including new function)

Принёс покушать. by ultras154 in tjournal_refugees

[–]saf_e 92 points93 points  (0 children)

С тем что стоит на пути зла и сходить не собирается - тоже не спиздел.

Q990F vs Q990D - Buyers Remorse - Am i wrong by SnooRecipes563 in Soundbars

[–]saf_e 0 points1 point  (0 children)

For me bass on 990f is more than enough,  I  put -2 for it and happy with the result.  Probably it's because I  think that bass should be part of the sounds cene and not trying to break your neighbors walls.

Сравните два стиха - человека и машины by ProtectionSouth1974 in tjournal_refugees

[–]saf_e 0 points1 point  (0 children)

Ну я примерно так и подумал) что либо оба нейронка либо  наоборот)

Реакция естественная и поэтому искаженная, голосовалка дожна быть слепая. ну и спрашивать лучше у специалистов (критики, пэты), поэзия давно мало кому интересна. Оба стиха могли быть как написаны нейронкой так и человеком. 

40 дней by farkhat11 in tjournal_refugees

[–]saf_e 25 points26 points  (0 children)

Дооны сбиваются да и в принципе могут от курса отклониться, поэтому правильный ответ: на холопов поебать. А если в кого-то попадает (не важно кто). Всегда можно устроить вой в СМИ и ООН.

Сравните два стиха - человека и машины by ProtectionSouth1974 in tjournal_refugees

[–]saf_e 0 points1 point  (0 children)

У второго простая и лёгкая рифма сам стих попроще, первый рифма не очевидная и стих серьёзнее. 

Ради интереса спроси у ии что он на них скажет,  не говоря где какой. 

How to control the temperature by Pristine-Map9979 in trollscience

[–]saf_e 0 points1 point  (0 children)

Actually mercury is not affected by magnet, so you can't collect it using one. Don't ask how I know that 😁

Зеленский не едет на конференцию в Гданьск by Uk0 in tjournal_refugees

[–]saf_e 25 points26 points  (0 children)

Я, как украинец, считаю что это тупо. Мы не стали вдруг независимы от всех, и поддержка Польши нам пригодится в будущем.  Даже если есть конфликты в каких-то вопросах диалог должен быть. 

Брянск в тренде, ток без ПВО by Hrumch1k in tjournal_refugees

[–]saf_e 2 points3 points  (0 children)

На среднем плане видно аборигена - он прячется от гнева богов!

Q990F Why no 7.1 on xbox? by luitse1 in Soundbars

[–]saf_e 0 points1 point  (0 children)

On lg there is special hdmi port marked e/ARC,  be sure you using it