{"id":16035,"date":"2016-10-12T15:37:07","date_gmt":"2016-10-12T19:37:07","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=16035"},"modified":"2016-10-12T15:37:26","modified_gmt":"2016-10-12T19:37:26","slug":"binutils-for-swift","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/10\/12\/binutils-for-swift\/","title":{"rendered":"BinUtils for Swift"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/nst\/BinUtils\">Nicolas Seriot<\/a> reimplemented parts of the handy Python <a href=\"https:\/\/docs.python.org\/2\/library\/binascii.html\">binascii<\/a> and <a href=\"https:\/\/docs.python.org\/2\/library\/struct.html\">struct<\/a> modules in Swift:<\/p>\n<blockquote cite=\"https:\/\/github.com\/nst\/BinUtils\"><pre>let d = pack(\"&lt;h2I3sf\", [1, 2, 3, \"asd\", 0.5])\nassert(d == unhexlify(\"0100 02000000 03000000 617364 0000003f\"))<\/pre><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Nicolas Seriot reimplemented parts of the handy Python binascii and struct modules in Swift: let d = pack(\"&lt;h2I3sf\", [1, 2, 3, \"asd\", 0.5]) assert(d == unhexlify(\"0100 02000000 03000000 617364 0000003f\"))<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[74,71,232,901],"class_list":["post-16035","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-opensource","tag-programming","tag-python","tag-swift-programming-language"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/16035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=16035"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/16035\/revisions"}],"predecessor-version":[{"id":16037,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/16035\/revisions\/16037"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=16035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=16035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=16035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}