News for hackers. Stuff that matters.

pedroo

Re:Duktape: an embeddable JavaScript engine on Friday December 05, 2014 @01:42PM (#8706052)
> (tail call elimination is different than proper tail calls).

I'm not sure I follow. What is the distinction here?

Re:Please grow your buffers exponentially on Tuesday November 04, 2014 @05:11PM (#8559369)
Take a look here: https://en.wikipedia.org/wiki/Memory_management#DYNAMIC.

No one is really hanging on to previously freed space (except for the allocator, or if you're using a custom object pool allocation scheme) specifically for new versions of the array.

But if you're allocations look like this:

  array = malloc(<capacity>);
  // do stuff with array
  free(array);
  ...
  array = malloc(<new capacity>);
  // do stuff with array
  free(array);
with no other allocations in between then it is possible that the allocator might reuse previously freed array space.
Was just going to comment prior to your edit, but we really should compare rates of occurrance rather than population size.
> It's equivalent to the SQL JOIN...

Don't you mean GROUP BY?

Re:The Patriot Missile Failure on Monday March 24, 2014 @10:08PM (#7463309)
This sounds similar to the technique used in the integer-only version of bresenham's line drawing algorithm.
Re:Ask HN: Successful one-person online businesses? on Sunday March 09, 2014 @01:01AM (#7367645)
Sounds like an amazing journey. Congrats on all the hard work.
Re:World on Sunday September 15, 2013 @08:11PM (#6390881)
It's spinning in the right direction. We're just inside the earth :).
Re:Setting up Sublime Text 2 on Tuesday April 09, 2013 @08:06PM (#5522337)
Just delete the line. It should revert back to the default theme.
Re:Firefox Nightly Gets New Baseline JIT Compiler on Friday April 05, 2013 @05:48PM (#5501276)
How much worse peformance-wise would generating PIC be to address this?