News for hackers. Stuff that matters.

saltcookie

Re:Ask HN: I hate JavaScript on Saturday October 04, 2014 @10:14PM (#8411247)
its just javascript, its so error prone, it can take hella long to write simple algorithms, because of some undefined error.

compare that to golang, even though u make errors, the compiler is so awesome at pointing those out. And u can get so much done

Re:Ask HN: I hate JavaScript on Saturday October 04, 2014 @10:08PM (#8411237)
just a week ago, i made a test for myself, i decided to write merge sort in golang and javascript.

My golang program was complete in like 10min, but javascript program took 2 hrs. I dont know if its just me, but i tend to make small errors while programing, like making sure a variable is not undefined and stuff. Even though my logic was perfect its just very difficult to debug algorithms in javascript, let alone any lint for ide thats reliable.

the golang compiler is really good at catching errors, and makes programing more fun for me atleaset

Re:Ask HN: I hate JavaScript on Saturday October 04, 2014 @10:04PM (#8411228)
i read about a project that converts llvm byte code to javascript, do any of u know about it
http://readwrite.com/2011/06/06/cpp-go-java-scala-performanc...

this is the real artical, which just points to the pdf

That is true, i don't understand y some one changed the tittle

Write all solutions for a^3 + b^3 = c^3 + d^3

this runs the fastest without memory overheadint Search(){ int MAX = 10000000; for(int a = 0; a < MAX; a++){ int a3 = a * a * a; if(a3 > MAX) break; for(int b = a; b < MAX; b ++){ int b3 = b * b * b; if(a3 + b3 > MAX)break; for(int c = 0; c < a; c++){ int c3 = ccc; int m = a3 - c3; int d = b+1; ...

( Read More... | 2 comments | 2 points | on HN )

Older »