News for hackers. Stuff that matters.
Re:In praise of Go or "Why I moved from Python and C++ to Go" by stcredzero on Wednesday November 17, 2010 @12:46AM (#1913073)
My idea is that the programmers can add expert knowledge and human intelligence into the mix. They have the ability to just let the VM know: "Okay, in this part these things are always going to be this type and things go like that, so just go to town and optimize the bejesus out of it!"

In other words, a good programmer should be able to just let the VM know ahead of time what's up in critical sections of stable production code. Even better, we should be able to combine datasets from many different runs of many VM instances! This sort of technique would allow us very high degrees of confidence for things like web apps in server farms, where getting 10's of thousands of runtime tracing datasets would be easy to do.

This is where a dynamic language with optional type annotations would really shine.

Re:In praise of Go or "Why I moved from Python and C++ to Go" by xiongchiamiov on Wednesday November 17, 2010 @01:19AM (#1913145)
Sounds like how some people use Cython.

Snippet from [0], which is unfortunately temporarily down (I got to it through Google Cache[1]):

  cpdef double integrate_f(double a, double b, int N):
  	cdef double dx, s
  	cdef int i
  
  	dx = (b-a)/N
  	s = 0
  	for i in range(N):
  		s += f(a+i*dx)
  	return s * dx
[0]: http://www.behnel.de/cython200910/talk.html

[1]: http://webcache.googleusercontent.com/search?q=cache:7NvoUHh...