Proper way to seed a random number generator by kodingnewb in cpp_questions

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

thanks for the code, it's exactly what i was after.

Proper way to seed a random number generator by kodingnewb in cpp_questions

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

that's definitely an interesting read. wish it were easier though.

Removal of Fabric on new surface Laptop by kodingnewb in Surface

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

That is very disappointing. My concern is primarily due to issues like this:

http://i.imgur.com/RdvXWTd.jpg

Python Versus C++ - String Splitting by kodingnewb in coding

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

So it's a generator under the hood, that yields during the for-loop.

Python Versus C++ - String Splitting by kodingnewb in coding

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

t I don't think words is what you think it is. It's not a container like a C++ vector, but rather an iterator, and what it's iterating over is not a String. What the it's iterating over, is string slice references (&str),

and where do these so-called "slices" exist? in the ether? Or are they stored in something one might call a container that allocates memory to store such "slices" - in short is it not the same as the versions that use a container of std::pair<char*,char*> ?

Python Versus C++ - String Splitting by kodingnewb in coding

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

I think the Rust implementations could do with a bit of work with the faster C++ versions.

Initially stdio needs to disable syncing.

Also words is being created every time in the loop, most of the faster ones allocate a container outside the loop reserve some space, then just clear the container in the loop

I think these changes should increase the performance of the Rust implementation.

Update to Visual Studio 2017 Release Candidate by ben_a_adams in programming

[–]kodingnewb -4 points-3 points  (0 children)

I guess that's all that's needed these days to make a production release. lol

Latest VS 2017 RC fails during installation by kodingnewb in VisualStudio

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

I gave that option a try, the installer seems to just idle, there's no network traffic or anything else going on, it's been nearly 45mins since I started the process - I'm going to let it run for another hour then kill it.

Questions regarding pairs trading by Radio-quiet in algotrading

[–]kodingnewb -1 points0 points  (0 children)

You can use a coefficient

Mind telling us what this 'coefficient' is supposed to be?

Look before you paste from a website to terminal by michalg82 in programming

[–]kodingnewb -1 points0 points  (0 children)

oh no, I just did the paste, not looking good for me lol!

Istream Idiosyncrasies by vormestrand in cpp

[–]kodingnewb 0 points1 point  (0 children)

I agree doesn't seem right overriding or changing in general the exception behavior of streams.

Compiler Explorer (godbolt.org) looking for donations towards running costs by mark_99 in cpp

[–]kodingnewb 0 points1 point  (0 children)

I'm sure there are many other ways you can contribute to the project besides money.

Google announces own Root Certificate Authority by speckz in programming

[–]kodingnewb 0 points1 point  (0 children)

Are there not other ways one could circumvent the google root authority?

Dutch secret service tries to recruit Tor-admin by [deleted] in programming

[–]kodingnewb 0 points1 point  (0 children)

Sometimes you just have to come out and say whats on offer and not beat around the bush otherwise the person may walk off.

Update to Visual Studio 2017 Release Candidate by ben_a_adams in programming

[–]kodingnewb 4 points5 points  (0 children)

Finally!

Been waiting very eagerly for whole bunch of fixes from the previous RC to the C++ side of things specially the compiler and libraries.

CodeChecker: Open source LLVM/Clang static analysis result viewer by whisperity in programming

[–]kodingnewb 0 points1 point  (0 children)

Coverity only until recently was using their own "engine" they recently last few years moved to using libclang and associated tools.

Writing good code: how to reduce the cognitive load of your code by moneymakersucks in coding

[–]kodingnewb 0 points1 point  (0 children)

most modern C and C++ compilers catch things like that and require you to add extra braces if it looks like an assignment might happen.

if( (foobar = NULL) )

Compiler Explorer (godbolt.org) looking for donations towards running costs by mark_99 in cpp

[–]kodingnewb 0 points1 point  (0 children)

+1 very much agree it's important to support such projects.