News for hackers. Stuff that matters.
Re:Show HN: hazelnut – A pythonic library to parse /proc/mem... by franciscop on Saturday March 12, 2016 @02:40PM (#11274185)
I happened to have hazelnut.io until recently. Unfortunately I let it expire since the original project I was planning on using there was much more complex than anticipated. So now it's parked by someone else [1], otherwise it was yours

[1] http://who.is/whois/hazelnut.io

Re:Show HN: hazelnut – A pythonic library to parse /proc/mem... by mrsmn on Saturday March 12, 2016 @03:04PM (#11274279)
Shame I didn't post this earlier, that TLD would have been awesome.
Re:Show HN: hazelnut – A pythonic library to parse /proc/mem... by Goopplesoft on Saturday March 12, 2016 @07:37PM (#11275508)
The API of this lib is probably surprising for the typical use-cases because a MemInfo object only represents a path and not a reading/snapshot of the file (each subsequent call to get() re-reads the meminfo file).

> https://github.com/mrsmn/hazelnut/blob/master/hazelnut/core....

So usage like:

   snap_pre = MemInfo()
   # Do stuff here
   snap_post = MemInfo()
   snap_pre.get('Mem')
   snap_post.get('Mem')
   snap_post.get('Mem')
   # All three would likely give different values. 
I would suggest caching the read on instantiation or making them top level functions instead of using a class or MemInfoPath()?
Re:Show HN: hazelnut – A pythonic library to parse /proc/mem... by srcmap on Monday March 14, 2016 @12:04AM (#11280993)
You can cross reference of /proc/meminfo output into the kernel source code here:

http://www.srcmap.org/sd_share/7/28338946/Code_Trace_of_Linu...

Re:Show HN: hazelnut – A pythonic library to parse /proc/mem... by tobltobs on Saturday March 12, 2016 @03:29PM (#11274392)
What are those keys in your donate paragraph?
Re:Show HN: hazelnut – A pythonic library to parse /proc/mem... by mrsmn on Saturday March 12, 2016 @03:40PM (#11274442)
Those are Worldcoin, Hobonickels and Dogecoin cryptocurrency addresses.
Re:Show HN: hazelnut – A pythonic library to parse /proc/mem... by ccannon on Saturday March 12, 2016 @04:57PM (#11274795)
How is this different than psutil?
Re:Show HN: hazelnut – A pythonic library to parse /proc/mem... by easytiger on Tuesday March 15, 2016 @05:42AM (#11288482)
this is `cat /proc/meminfo | grep Swap`