IT

 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 

 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 

 

 

 






 







 


IT

 

 

AI  

 

 






 







 


 

 

 

 

 

 

 






 







 


 

 

 

 

 

 

 

 






 







 


 

Web  

 

 

PlayStation  

 

YouTuber  

 





 

 





 

 

 












malloc() and free() are a bad API  

4users  
www.foonathan.net  


If you need to allocate dynamic memory in C, you use malloc() and free(). The API is very old, and while you might want to switch to a different implementation, be it jemalloc, tcmalloc, or mimalloc, they mostly copy the interface. It makes sense that they do that  they want to be a mostly drop-in replacement, but its still unfortunate because malloc() and free() are a bad API for memory allocat



 

2022/09/01 06:02
 



















Carbon's most exciting feature is its calling convention  

4users  
www.foonathan.net  


Last week, Chandler Carruth announced Carbon, a potential C++ replacement theyve been working on for the past two years. It has the usual cool features you expect from a modern language: useful generics, compile-time interfaces/traits/concepts, modules, etc.  but the thing Im most excited about is a tiny detail about the way parameters are passed there. Its something Ive been thinking about i




 

2022/07/31 17:00
 













Nifty Fold Expression Tricks  

5users  
www.foonathan.net  


template <typename H, typename ... T> auto add(H head, T... tail) { return (head + ... + tail); // expands to: head + tail[0] + tail[1] + ... } If were willing to abuse operator evaluation rules and fold expressions, we can do a lot more. This blog posts collects useful tricks. Whenever possible, we should process a parameter pack with fold expression instead of using recursion: It is less code t




 

2020/05/06 18:15
 



 



































 

www.foonathan.net  

 



j

k

l

e

o
 
 
















 









 

















 









 









 







Pro



 




 






App Storeからダウンロード
Google Playで手に入れよう


Copyright © 2005-2024 Hatena. All Rights Reserved.
 





x