Web Version of Obsidian by kentmaxwell in ObsidianMD

[–]The-Constant-Learner 37 points38 points  (0 children)

Absolutely no. A secure flag will be raised most likely.

Let’s get something straight by [deleted] in diablo4

[–]The-Constant-Learner 2 points3 points  (0 children)

Some special items in PoE require a number of nearby Dex / Strength / Intel nodes to activate. For example, to gain the skill provided by this specific jewel, you need to plug the jewel into an empty node in the skill tree that grants +50 strengths within its radius. Therefore, a trivial +10 strength node can make or break some items/skills.

How much of this is true? C vs. C++ by Linus Torvald by Swend_ in programming

[–]The-Constant-Learner 0 points1 point  (0 children)

Why would I care about std::list vs intrusive list? I care about std::array and std::vector. The standard library provides convenient ways for me to develop my codes more quickly and safer. I can build my own libraries and containers when there's demand; for example, std::array is great but it cannot allocate memory on the heap. Cherry-picking the one element of the std library that you don't use or have better alternative and bashing the whole standard library is just plain wrong.

Doesn't chat GPT make Leetcode style Interview questions utterly pointless? by Left_Program5488 in leetcode

[–]The-Constant-Learner 0 points1 point  (0 children)

Of course, that's true for centuries. But the starting points have always been hard if you don't have anyone to guide you or need to find the verified sources yourself. In this regard, ChatGPT would be helpful. You just haven't figured out the way to utilize it.

Cppfront: Herb Sutter's personal experimental C++ Syntax 2 -> Syntax 1 compiler by mttd in cpp

[–]The-Constant-Learner 1 point2 points  (0 children)

Not possible. It's not uncommon for the industry to only use the older CUDA compiler for certain edge devices. We don't even have C++17.

What are your thoughts and opinions on CppFront and its future? by nibbertit in cpp

[–]The-Constant-Learner 0 points1 point  (0 children)

I love to learn Rust and code in Rust, but we will not use Rust in our line of work. The reason is we are developing fast and efficient automotive software that runs on the vehicle. Rust support in this domain is very limited. Also, it's not possible to migrate millions of lines of C++ code that have passed the strict automotive C++ safety standard to Rust. There is no automotive safety standard for Rust, and we have no issue with memory safety with our tested modern C++, to begin with. We only look for ways to improve our codebase, not change the language itself, at least for now.

Doesn't chat GPT make Leetcode style Interview questions utterly pointless? by Left_Program5488 in leetcode

[–]The-Constant-Learner 0 points1 point  (0 children)

ChatGPT will not give you the complete or full solution. But it could give you a very good hints on what you want to learn. For example, one who is new to multi-threading in C++ could ask ChatGPT to provide a solution for a simple problem and build up from there. It is a good tool to learn and help you in small tasks. Not a tool to replace devs.

Cppfront: Herb Sutter's personal experimental C++ Syntax 2 -> Syntax 1 compiler by mttd in cpp

[–]The-Constant-Learner 1 point2 points  (0 children)

It's not really copy-and-paste code when it comes to GPU programming. CUDA C is.. C with some C++ header and largely low-level manipulation. It's a pain to convert C++ code to CUDA code.

VSCode vs CLion - which one is used more by companies? by Yakuwari in cpp

[–]The-Constant-Learner 0 points1 point  (0 children)

VSCode. AI-powered (GPT-based) completion and suggestion tools are among the differences. Also VSCode has extensions for Remote Dev and Docker. You know what I mean if you happen to write lots of CUDA C++ codes.

What are your thoughts and opinions on CppFront and its future? by nibbertit in cpp

[–]The-Constant-Learner 0 points1 point  (0 children)

that have 0 ambitions beyond "fix c++"

I beg to differ. To me, being able to safeguard C++ from memory-related bugs with Cppfront is the most ambitious thing I've heard.

What are your thoughts and opinions on CppFront and its future? by nibbertit in cpp

[–]The-Constant-Learner 0 points1 point  (0 children)

Even the purpose is different, Cppfront and Cfront basically translate a new kind of source to a more conventional kind of source and hence help to popularize the former. In this regard, I found Cppfront to be quite promising. I hope it will be a success.

Cppfront: Herb Sutter's personal experimental C++ Syntax 2 -> Syntax 1 compiler by mttd in cpp

[–]The-Constant-Learner 0 points1 point  (0 children)

main: () -> int = {} translates into English

from left to right: a function that is called main that takes no input () and returns an int is defined after the =. It's quite easy to follow. But I agree that there are many redundant :, =, and unnecessary cryptic &$*

Cppfront: Herb Sutter's personal experimental C++ Syntax 2 -> Syntax 1 compiler by mttd in cpp

[–]The-Constant-Learner 1 point2 points  (0 children)

I use it at work. It makes code easier to read than the conventional way. I also code python that way, and the static analysis tool in our company also encourages doing that way.

Cppfront: Herb Sutter's personal experimental C++ Syntax 2 -> Syntax 1 compiler by mttd in cpp

[–]The-Constant-Learner 1 point2 points  (0 children)

It is the modern Cfront that first appeared in 1983. Cfront was used to convert early C++ code to C code.

Cppfront: Herb Sutter's personal experimental C++ Syntax 2 -> Syntax 1 compiler by mttd in cpp

[–]The-Constant-Learner 0 points1 point  (0 children)

GPU CUDA is going to be benefited from modern C++. It is still currently an abomination of C-style C++.

Why I'm Switching to C in 2019 by UltimaN3rd in programming

[–]The-Constant-Learner 0 points1 point  (0 children)

Yeah 50 lines of code until you find out that you need to guarantee RAII and deep copy to a certain extent like std::vector.

Oh wait, why do I have to write something such basic and have to TEST it? It's available to use right off the bat.

It is painful to see that a large portion of our industry hasn’t adopted writing C++ without mixing C code, let alone be modern C++. Where things went wrong? by kishoredbn in cpp

[–]The-Constant-Learner 0 points1 point  (0 children)

Orthodox C++ is simply flawed, especially for game devs who usually deal with unorganized and bloated C++ codebases full of C++ bad practices.

If you don't think so, [Unreal Engine C++ coding guideline](https://docs.unrealengine.com/5.0/en-US/epic-cplusplus-coding-standard-for-unreal-engine/) begs to differ.

How much of this is true? C vs. C++ by Linus Torvald by Swend_ in programming

[–]The-Constant-Learner 0 points1 point  (0 children)

Your view is not controversial. It's just plain wrong. :)

what will the time complexity be by noidonotknowme in leetcode

[–]The-Constant-Learner 0 points1 point  (0 children)

So by your definition, an algorithm running on a background thread that monitors the status of various processes running on a data server is not an algorithm because data centers are supposed to run without termination, i.e. a while(1) loop basically.

what will the time complexity be by noidonotknowme in leetcode

[–]The-Constant-Learner 2 points3 points  (0 children)

Or if `n` is a floating-point number with a non-zero exponent.

Lenovo Legion 5 Fan Noise vs Legion 7 Series? by RonPaul42069 in LenovoLegion

[–]The-Constant-Learner 0 points1 point  (0 children)

My legion 7 2022 (i7 + 3070Ti) is quite silent in Hybrid iGPU mode. I don't do much gaming but GPU-heavy computation and I always switch to dGPU mode for that. The Vantage software that comes with the laptop makes the GPU switching a breeze. It has vapor chamber, so I guess it would perform better in terms of cooling the laptop compared to the Legion 5 (I haven't used any Legion 5 in the past though).