mjibson

New York, NY

mattjibson.com

Developer at Stack Exchange.

Twitter: @mjibson

1d
awarded Yearling
2d
revised Unmarshal an ISO-8859-1 XML input in Go
added 53 characters in body
Apr
8
comment Go: convert unsafe.Pointer to function pointer and vice versa
Not sure how new it is, but you can open network sockets and files, too, due to the NaCl sandbox: blog.golang.org/playground
Apr
8
answered Go: convert unsafe.Pointer to function pointer and vice versa
Apr
4
awarded Nice Answer
Apr
3
awarded Notable Question
Mar
25
awarded Popular Question
Mar
1
revised How to query parent entity from child entity in Google App Engine (Python) NDB/Datastore?
No parens after .key, see: https://developers.google.com/appengine/docs/python/ndb/modelclass#Model_key
Feb
28
comment COM call from go has its data collected by GC, zeroing used memory
I was already doing that (github.com/StackExchange/wmi/blob/…). A go routine locked itself to a thread, init'd COM, and then sent all WMI queries through that thread. Check my new comment on the question for some progress. This is looking like there are no references to the COM data, so they get GCd, but are being used still.
Feb
28
revised COM call from go has its data collected by GC, zeroing used memory
edited tags
Feb
28
comment COM call from go has its data collected by GC, zeroing used memory
This now appears to be a problem with Go not keeping around pointers to objects returned from COM, as some of you have suggested. I've updated the github issue with the latest research: github.com/mattn/go-ole/issues/13#issuecomment-36314577
Feb
27
comment COM call from go has its data collected by GC, zeroing used memory
Ref counting does not appear to be the problem. After removing the Release calls and then adding AddRef calls the problem remains unchanged.
Feb
27
revised COM call from go has its data collected by GC, zeroing used memory
added 3 characters in body
Feb
27
comment COM call from go has its data collected by GC, zeroing used memory
I will test the ref counting to see if it's the problem. I'm skeptical that it is the reason, though, because if I disable the go GC (or compile and run as a 32-bit go app) then everything works correctly.
Feb
27
asked COM call from go has its data collected by GC, zeroing used memory
Feb
27
revised Query WMI from Go
edited tags
Jan
27
revised How do I delete all blobs in app engine on Go?
added 24 characters in body
Jan
26
revised How do I delete all blobs in app engine on Go?
note about cursors
Jan
26
asked How do I delete all blobs in app engine on Go?
Jan
26
answered How do I delete all blobs in app engine on Go?
1 2 3 4 5