News for hackers. Stuff that matters.

adsofhoads

Re:Big-O notation explained by a self-taught programmer on Saturday October 29, 2016 @11:12AM (#12824269)
Extensively incorrect.
Re:Talking to C Programmers about C++ [video] on Sunday September 25, 2016 @11:28AM (#12575715)
I was referring to the use of generic functions (ie. with an argument with type-specifier auto) which is not C++14. Your copy of g++ may accept it as an extension.
Re:Talking to C Programmers about C++ [video] on Sunday September 25, 2016 @10:22AM (#12575432)
There are templates: for example

    void print1(auto x){std::cout<< x;}
is a function template

    template <class T>
    void print1(T x){std::cout<< x;}
This is not valid C++14 however, so it doesn't compile. If you replace these, you'll probably still get a stack overflow while expanding the templates because there are almost 7000 arguments to a single function call.
Re:Japanese writing system basics on Saturday August 20, 2016 @11:04AM (#12326896)
It's actually just the "shina". The "gawa" is 川, river.
Re:Why does Haskell, in your opinion, suck? on Sunday April 17, 2016 @10:53AM (#11514688)
What's with capturing large predators? My book on complex analysis euphemizes building a descending sequence of sets which converge to a point by

> If R is the continent of Africa and we select R_n as that subregion which contains the biggest lion in Africa, we have an algorithm for capturing a big lion—we simply build a cage around point z_0.

Re:Chocolatey – package manager for Windows on Monday March 14, 2016 @10:40PM (#11287079)
I can't use Chocolately to install zlib or libpng or SDL or libcurl or GMP or really any of the packages that I would never have to think about installing on Linux, because they were pulled as dependencies long ago. The method for obtaining these on Windows is, as best as I have ever been able to tell, to navigate to each of their webpages and look for Windows releases, which you then download and install yourself, a task I find so daunting that I essentially never write or build programs that have any dependencies whatsoever on my Windows box. This situation is obviously ridiculous so I have to conclude I am doing something very, very wrong.

So, Windows programmers, how do get by without a package manager?

Re:Hello, World on Monday May 18, 2015 @01:05AM (#9562932)
The only information each person has it their own coin, so their strategy is a pair of functions (f,g) from bits to bits, where either fx=y or gy=x (or both) for any bits x and y. There are only four possibilities for f, so picking, at random, f=id, gives g immediately.
Re:Turning Japanese: Coping with stasis on Thursday March 19, 2015 @07:50PM (#9235405)
I think they meant that http://thelongandshort.org/issues/season-three/images/DeskHe... has the 系 but then the translation the article gives below it is missing the "kei".
I found the date on the RSS feed (2015-3-5 21:54).