News for hackers. Stuff that matters.
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...

There are no comments on this comment yet.