News for hackers. Stuff that matters.

rhambasan

Re:Clojures in C on Wednesday April 08, 2015 @05:23PM (#9344100)
OP here. This is not actually compliant with the C standard, just a gcc extension.

It is documented at [1] and according to the documentation, the code seems perfectly legal. However, calling it twice add5(2); add5(2);

leads to an "Illegal instruction. Core dumped"

Even stranger, calling it twice but with a different argument leads to a a segfault instead of illegal instruction: add5(5); add5(5);

[1] https://gcc.gnu.org/onlinedocs/gcc/Nested-Functions.html

Re:Human generated semi-random binary stream on Sunday March 08, 2015 @06:06AM (#9165179)
b = $(".zero");

for (i = 0; i < 100000; i++) {

    b.click();

}

Formula search on a million scientific documents

http://arxivsearch.mathweb.org

We, at KWARC, developed a search engine capable of searching arXiv, see [1]. It can search latex-style formulae and CMML formulae. In addition, one can also use "query variables", which means that if I search for, e.g., "?a + ?a" (?a is a query variable), I will get all sums of two equal terms. ?a could be an integral, a fancy function, or just a one-letter variabl

( Read More... | 1 comment | 11 points | on HN )
Re:Search On Math on Wednesday February 18, 2015 @03:37PM (#9070773)
We, at KWARC, developed a search engine capable of searching arXiv, see [1]. It can search latex-style formulae and CMML formulae.

In addition, one can also use "query variables", which means that if I search for, e.g., "?a + ?a" (?a is a query variable), I will get all sums of two equal terms. ?a could be an integral, a fancy function, or just a one-letter variable.

[1] http://arxivsearch.mathweb.org

Re:An Algorithm to Extract Looping GIFs from Videos on Wednesday February 11, 2015 @05:45PM (#9036198)
Do you have Javascript enabled?

(The page is running MathJax to convert MathML to HTML + CSS)