calloc is just a multiplication followed by malloc followed by memset. Is it really worth creating a new binding for that? It always seemed like a bit of a silly API to me to begin with.<br><br><div class="gmail_quote">On Fri, Apr 22, 2011 at 12:08 PM, Jason Dagit <span dir="ltr"><<a href="mailto:dagitj@gmail.com">dagitj@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br><br><div class="gmail_quote"><div class="im">On Fri, Apr 22, 2011 at 8:59 AM, Ian Lynagh <span dir="ltr"><<a href="mailto:igloo@earth.li" target="_blank">igloo@earth.li</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Fri, Apr 22, 2011 at 07:20:55AM -0700, Jason Dagit wrote:<br>
><br>
> That wiki page doesn't say how long the discussion period should be or give<br>
> advice on how to determine the size. What would you recommend for this<br>
> patch?<br>
<br>
</div>I just updated the page to recommend 2 weeks, which I think is the<br>
status quo.<br>
<div><br>
> So it sounds like the things I missed were:<br>
> * putting "Proposal:" in the subject line<br>
> * setting a discussion period<br>
> * attaching my patch to the trac instance (can I send a pull request on<br>
> github instead?)<br>
<br>
</div>You don't need to make a trac ticket for it until the proposal has been<br>
accepted.<br></blockquote><div><br></div></div><div>Right, I did understand that.</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Anything that means we see that the patch needs to be applied is OK.<br>
Currently pull requests don't get sent to the mailing list though, and<br>
there doesn't seem to be an easy way to set that up.<br></blockquote><div><br></div></div><div>Good to know.</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
I also didn't notice a rationale for the change. The type signatures<br>
looked the same as for the malloc functions, so I don't know what the<br>
difference is.<br></blockquote><div><br></div></div><div>The difference is that calloc will initialize the allocated memory to zeros. Some C libraries assume this, at least freetype2 does, and since I want to use that library from Haskell I needed a binding to calloc. I assume others will run into this need eventually as well. When I send a "proposal:..." email, hopefully this weekend, I'll definitely make the rationale clear.</div>
<div><br></div><div>Thanks,</div><div>Jason</div></div>
<br>_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/libraries" target="_blank">http://www.haskell.org/mailman/listinfo/libraries</a><br>
<br></blockquote></div><br>