{"id":149349,"date":"2020-08-22T17:37:43","date_gmt":"2020-08-22T09:37:43","guid":{"rendered":"http:\/\/4563.org\/?p=149349"},"modified":"2020-08-22T17:37:43","modified_gmt":"2020-08-22T09:37:43","slug":"%e5%88%9a%e5%ad%a6-golang%ef%bc%8c%e5%86%99%e4%ba%86%e4%b8%aa%e5%91%bd%e4%bb%a4%e8%a1%8c%e7%bf%bb%e8%af%91%e5%b7%a5%e5%85%b7","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=149349","title":{"rendered":"\u521a\u5b66 golang\uff0c\u5199\u4e86\u4e2a\u547d\u4ee4\u884c\u7ffb\u8bd1\u5de5\u5177"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u521a\u5b66 golang\uff0c\u5199\u4e86\u4e2a\u547d\u4ee4\u884c\u7ffb\u8bd1\u5de5\u5177               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fazero <\/span>  <span><i><\/i> 9<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u56e0\u4e3a\u7ecf\u5e38\u4f7f\u7528\u7ec8\u7aef\uff0c\u4e4b\u524d\u4e00\u76f4\u7528\u504f\u53f3\u5199\u7684node \u7248\u672c\u7684\uff0c\u5b66\u4e86\u70b9 golang\uff0c\u7528 golang \u6765\u5b9e\u73b0\u4e00\u4e0b\uff0c\u7ec3\u4e00\u4e0b\u624b\uff0cgolang \u7684\u4ea4\u53c9\u7f16\u8bd1\u771f\u7684\u65b9\u4fbf\u554a\uff0c\u5199\u70b9\u547d\u4ee4\u884c\u5de5\u5177\u4e5f\u65b9\u4fbf\uff0c\u4e0d\u4f9d\u8d56\u73af\u5883\uff0c\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u8dd1\u8d77\u6765\u5c31\u662f\u723d\u3002<\/p>\n<p>mac \u5b89\u88c5\u4f53\u9a8c\uff1a<code>brew install sakz\/tap\/fanyi<\/code><\/p>\n<p>linux \u5b89\u88c5\u4f53\u9a8c\uff1a<code>source &lt;(curl -sL https:\/\/git.io\/fanyi-install)<\/code><\/p>\n<p>\u9879\u76ee\u5730\u5740\uff1ahttps:\/\/github.com\/sakz\/fanyi<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/09\/20200905_5f538771b0325.jpg\" alt=\"\u521a\u5b66 golang\uff0c\u5199\u4e86\u4e2a\u547d\u4ee4\u884c\u7ffb\u8bd1\u5de5\u5177\" \/><\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>18<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3120224\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : PHSix <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u811a\u672c\u4e0d\u652f\u6301 Arch                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120225\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Juszoe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e5f\u5f88\u559c\u6b22 go \u7684\u4ea4\u53c9\uff0c\u4f46\u662f\u6bcf\u6b21\u770b\u5230 go \u7684\u8bed\u6cd5\u6211\u5c31\u4e0d\u60f3\u5b66\u4e86&#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120226\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Rwing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Juszoe \u8003\u8651\u4e0b C#\uff0c\u4e5f\u53ef\u4ee5\u5199\u547d\u4ee4\u884c\u5de5\u5177\u5440                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120227\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fazero <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @PHSix \u73b0\u5728\u5e94\u8be5\u53ef\u4ee5\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120228\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AlisaDestiny <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u60f3\u7528\u547d\u4ee4\u884c\u7ffb\u8bd1\u4e0d\u5982\u770b\u770b\u8fd9\u4e2a\u6210\u719f\u7684 https:\/\/github.com\/soimort\/translate-shell                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120229\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hwdef <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u76f4\u63a5 go get ?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120230\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Juszoe #2 go \u7684\u4ea4\u53c9\uff1f \u5f88\u591a\u5e93\u90fd\u4e0d\u662f\u8de8\u5e73\u53f0\u7684.. go \u76ee\u524d\u5e94\u7528\u6bd4\u8f83\u5e7f\u7684\u5c31\u662f\u670d\u52a1\u7aef\u4e86.. \u5d4c\u5165\u5f0f\u73af\u5883\u7531\u4e8e\u786c\u4ef6\u4ea7\u4e1a\u6b7b\u8111\u7b4b\uff0c\u4e07\u5e74 4M ROM \u7684\u8bbe\u5907 + C \u8bed\u8a00\u641e\u5f97\u98de\u8d77\uff0cgo \u4ea4\u53c9\u7f16\u8bd1\u7684 mips \u7248\u672c \u57fa\u672c\u4e0a\u5c31\u662f\u4e2a\u534a\u6b8b\u5e9f.. \u5e02\u9762\u4e0a\u5927\u90e8\u5206\u80fd\u4e70\u5230\u7684 mips \u67b6\u6784\u7684\u8def\u7531\u5668 rom \u5c31\u6ca1\u51e0\u4e2a\u5927\u5230\u80fd\u88c5\u4e0b golang \u865a\u62df\u673a\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120231\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Juszoe <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lewis89 #7 \u611f\u8c22\u79d1\u666e\uff0c\u8fd8\u4ee5\u4e3a go \u5e94\u8be5\u5bf9 mips \u652f\u6301\u633a\u597d\u7684&#8230;\u60f3\u7740\u5230\u65f6\u5019\u7528 go \u7ed9\u8def\u7531\u5668\u5199\u70b9\u4e1c\u897f\uff0c\u8fd8\u662f\u5f97\u8f6c\u6295 C                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120232\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Juszoe #8 \u4e0d\u5b58\u5728\u7684\uff0cgolang 2.0 \u4e4b\u524d\u8c8c\u4f3c\u6ca1\u6709\u5bf9\u4f53\u79ef\u4f18\u5316\u7684\u8fdb\u5ea6\u8868\uff0c\u4e3b\u8981\u662f\u8fd9\u73a9\u610f\u8bbe\u8ba1\u7684\u65f6\u5019\u5c31\u6ca1\u8003\u8651\u8fc7\u4e2d\u56fd\u7684\u5d4c\u5165\u5f0f\u73af\u5883\uff0c\u53e6\u5916\u4e2d\u56fd\u5d4c\u5165\u5f0f\u8fd9\u4e2a\u884c\u4e1a \u53c8\u6bd4\u8f83\u6b7b\u8111\u7b4b \u7279\u522b\u5c01\u95ed\uff0c\u8ddf\u5176\u5b83\u7684 IT \u6280\u672f\u5708\u5b50\u57fa\u672c\u4e0a\u6ca1\u4ec0\u4e48\u4ea4\u6d41\u8ddf\u6c9f\u901a\uff0c\u90fd 0202 \u5e74\u4e86\uff0c\u8fd8\u5728\u90a3\u91cc\u7528\u6b7b\u6263\u95e8\u7684\u786c\u4ef6+\u7237\u7237\u8f88\u7684\u6280\u672f C\/C++\uff0c\u5b9e\u9645\u4e0a\u8fd9\u4e24\u4e2a\u4e1c\u897f\u9664\u4e86\u9ad8\u6027\u80fd\u7684\u5e95\u5c42\u90e8\u5206\u9700\u8981\uff0c\u5199\u5e94\u7528\u5c42\u7528\u8fd9\u4e9b\u7b80\u76f4\u5c31\u662f\u6d6a\u8d39\u4eba\u7684\u8111\u7ec6\u80de\uff0c\u53e6\u4e00\u65b9\u9762\u662f\u51fa\u8d27\u91cf\u5927\u7684\u8bdd\uff0crom \u5c0f\u4e00\u70b9\u786e\u5b9e\u80fd\u8282\u7701\u4e0d\u5c11\u94b1\uff0c\u4f46\u662f\u8bdd\u53c8\u8bf4\u56de\u6765\u4e86\uff0c\u7528\u4ee5\u524d\u90a3\u5957\u73a9\u610f\u641e\uff0c\u8fd8\u4e0d\u5982\u7528\u65b0\u7684\u6280\u672f\u641e\uff0c\u62db\u4eba\u4e5f\u65b9\u4fbf\uff0c\u4e0d\u8fc7\u4ee5\u524d\u641e\u5d4c\u5165\u5f0f\u7684\u4eba\u90fd\u5360\u7740\u8305\u5751\uff0c\u81ea\u7136\u5e02\u573a\u4e0a\u7684\u4ea7\u54c1\u4e5f\u662f\u90a3\u8001\u4e00\u5957\u7684\u601d\u7ef4\uff0c\u53e6\u5916\u4e2d\u56fd\u4eba\u529b\u6210\u672c\u4e0d\u503c\u94b1\uff0c\u5176\u5b9e\u786c\u4ef6\u8282\u7701\u7684\u90a3\u70b9\u94b1\u6839\u672c\u7b97\u4e0d\u4e86\u4ec0\u4e48\uff0c\u7528\u65b0\u6280\u672f python golang java \u6765\u641e\u7684\u8bdd\uff0c\u4ece\u5e02\u9762\u4e0a\u62db\u4eba\u80fd\u7701\u5f88\u591a\u94b1\uff0c\u5f00\u53d1\u8d77\u6765\u901f\u5ea6\u4e5f\u5feb\uff0c\u4f46\u662f\u5948\u4f55\u4eba\u529b\u6210\u672c\u6446\u5728\u90a3\u91cc\uff0c\u6839\u672c\u4e0d\u7b97\u4ec0\u4e48\uff0c\u6240\u4ee5\u6b7b\u6263\u786c\u4ef6\u8fd8\u662f\u80fd\u7701\u51fa\u4e0d\u5c11\u94b1\u7684\uff0c\u4f46\u662f\u73b0\u5728\u5f88\u591a\u5c0f\u516c\u53f8\u505a\u5d4c\u5165\u5f0f\u786c\u4ef6\u5c31\u5f00\u59cb\u6162\u6162\u7528\u65b0\u6280\u672f \/\u786c\u4ef6\u4e86\uff0c\u56e0\u4e3a\u4ed6\u4eec\u5f88\u591a\u65f6\u5019\u62db\u4e0d\u5230\u5408\u9002\u7684\u4eba\uff0c\u4f60\u8981\u7528 QT GTK \u6765\u753b UI\uff0c\u4f60\u53ef\u80fd\u73af\u5883\u8fd8\u6ca1\u642d\u597d\uff0c\u4eba\u5bb6\u8fd9\u8fb9\u7528 vue+\u524d\u7aef\u628a\u6d3b\u90fd\u5e72\u5b8c\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120233\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MrTreasure <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             go \u7684\u76ee\u6807\u672c\u6765\u5c31\u4e0d\u662f\u5d4c\u5165\u5f0f\uff0c\u5b9a\u4f4d\u5c31\u662f\u670d\u52a1\u5668\u7aef\u5f00\u53d1\u8bed\u8a00\u3002\u670d\u52a1\u5668\u4e0a\u7684\u4ea4\u53c9\u7f16\u8bd1 windows mac linux \u505a\u7684\u8fd8\u662f\u5f88\u597d\u7684\u3002<\/p>\n<p>\u8bed\u6cd5\u4e2a\u4eba\u89c9\u5f97\u633a\u597d\u7684\uff0c\u89c4\u5219\u5b9a\u7684\u5f88\u6b7b\uff0c\u4e5f\u4e0d\u4f1a\u51fa\u73b0 1000 \u4e2a\u5f00\u53d1 1000 \u4e2a\u89c4\u8303\u4e86<\/p>\n<p>go \u7684\u5f00\u53d1\u6548\u7387\u8fd8\u662f\u5f88\u9ad8\u7684\uff0c\u548c\u811a\u672c\u8bed\u8a00\u6709\u4e00\u62fc\u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120234\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @MrTreasure #10 \u5e02\u9762\u4e0a\u9ad8\u6027\u80fd\u8ba1\u7b97\u5e73\u53f0\u4e4b\u95f4\u7684 \u4ea4\u53c9\u7f16\u8bd1\u5c31\u662f\u4e2a\u4f2a\u547d\u9898.. \u4ea4\u53c9\u7f16\u8bd1\u672c\u6765\u5c31\u662f\u7528\u6765\u7ed9\u4f4e\u6027\u80fd\u5d4c\u5165\u5f0f\u8bbe\u5907\u7f16\u8bd1\u4e8c\u8fdb\u5236\u4ee3\u7801\u7528\u7684.. \u5982\u679c\u4f60\u7684\u76ee\u6807\u8bbe\u5907 \u5728\u5e02\u9762\u4e0a\u5927\u9762\u79ef\u90fd\u80fd\u4e70\u5230\uff0c\u800c\u4e14\u6027\u80fd\u8db3\u591f\u7f16\u8bd1..\u90a3\u4e48\u4f55\u5fc5\u5728 linux \u4e0b\u7f16\u8bd1 windows \u7684\u4e8c\u8fdb\u5236\u5305\uff0c\u5728 windows \u4e0b\u7f16\u8bd1 linux \u7684\u4e8c\u8fdb\u5236\u5305.. \u4e0d\u662f\u8111\u5b50\u6709\u75c5\uff1f\u800c\u4e14\u73b0\u5728\u4e91\u5316 deploy \u4e00\u4e2a linux macos windows \u6709\u8fd9\u4e48\u96be\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120235\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MrTreasure <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lewis89 <\/p>\n<p>&gt; Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.<\/p>\n<p>\u6211\u89c9\u5f97\u4f60\u8bf4\u7684\u573a\u666f\u90fd\u662f\u5f88\u9ad8\u5927\u4e0a\uff0c\u73b0\u5b9e\u4e2d\u6211\u7684\u670d\u52a1\u5668\u7a0b\u5e8f\u90fd\u662f\u672c\u5730 \u7528 windows \u7f16\u8bd1\u6210 linux \u5305\uff0c\u7136\u540e\u53d1\u5e03\u5230 linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u3002\u4e3a\u4ec0\u4e48\u4e0d\u641e docker \u670d\u52a1\u5668\u7aef\u6784\u5efa\u3002\u61d2\u3001\u9ebb\u70e6\uff0c\u5f88\u591a\u7528\u6237\u4e5f\u5e94\u8be5\u662f\u8fd9\u6837\u7528 go \u5199\u4e00\u4e9b\u73a9\u5177\u3002\u8fd9\u79cd\u60c5\u51b5\u4e0b\u4ea4\u53c9\u7f16\u8bd1\u5f88\u9999                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120236\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fenglangjuxu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90a3\u4e9b key \u4f1a\u8fc7\u671f\u4e48 \u7528\u4e86\u4e00\u4e2a \u611f\u89c9 appid Appsecret \u8fc7\u671f\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120237\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qwertyssp <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lewis89 Go \u6709\u865a\u62df\u673a\u5417 \u4e0d\u662f\u76f4\u63a5\u7f16\u8bd1\u4e8c\u8fdb\u5236\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120238\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @qwertyssp #14 \u6709\u865a\u62df\u673a\u7684\uff0c\u5185\u5b58\u56de\u6536 \u4e8c\u8fdb\u5236\u7cfb\u7edf ABI \u63a5\u53e3 \u90fd\u662f\u9760\u865a\u62df\u673a\u5b9e\u73b0\u7684\uff0c\u5f53\u7136\u4e0d\u662f\u4f20\u7edf\u610f\u4e49\u4e0a\u7684\u90a3\u79cd \u8fd0\u884c\u65f6\u5bf9\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1\u6210\u4e8c\u8fdb\u5236\u7684\u8fd9\u79cd\u65b9\u5f0f..                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120239\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @qwertyssp #14 \u53e6\u5916\u865a\u62df\u673a\u8fd9\u4e2a\u6982\u5ff5\u592a\u7b3c\u7edf\uff0c\u56e0\u4e3a golang \u5e76\u4e0d\u662f\u5b8c\u5168\u7684\u6309\u4f60\u5199\u7684\u4ee3\u7801\u53bb\u7f16\u8bd1\u4e8c\u8fdb\u5236\u4ee3\u7801\u7684\uff0c\u4e2d\u95f4\u4f1a\u63d2\u5165\u5f88\u591a\u4ee3\u7801 \u4f5c\u4e3a\u8fd0\u884c\u65f6\u7684 GC \u8fd8\u6709 goroutine \u7528\u7684\uff0c\u636e\u6211\u4e4b\u524d\u67e5\u7684\u8d44\u6599\u7ed3\u5408\u6211\u5bf9\u7cfb\u7edf IO \u7684\u7406\u89e3\uff0c\u5728\u5e94\u7528\u5c42\u9762\u5b9e\u73b0\u534f\u7a0b\uff0cgolang \u662f\u628a\u6240\u6709\u540c\u6b65\u7cfb\u7edf\u8c03\u7528\u63a5\u53e3\u5168\u90e8\u5728\u5185\u90e8\u6539\u6210\u4e86\u5f02\u6b65\u5b9e\u73b0\u4e86 \u8fd9\u6837\u5c31\u53ef\u4ee5\u5229\u7528\u64cd\u4f5c\u7cfb\u7edf\u7684 epoll \u8ddf select \u8c03\u7528 \u5b9e\u73b0 IO \u591a\u8def\u590d\u7528\uff0c\u8fd9\u6837\u53ef\u4ee5\u4f7f\u7528\u8f83\u5c11\u7684\u7cfb\u7edf\u7ebf\u7a0b\u53bb\u5b9e\u73b0 golang \u8bed\u8a00\u5c42\u9762\u7684\u534f\u7a0b\uff0c\u56e0\u4e3a\u5728\u5f15\u7528\u5c42\u9762\u7684\u534f\u7a0b\u8c03\u5ea6\uff0c\u5176\u5b9e\u53ea\u6709\u4ee3\u7801\u8d70\u5230\u7cfb\u7edf\u8c03\u7528\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u6539\u53d8\u534f\u7a0b\u7684\u72b6\u6001\uff0c\u6b64\u65f6\u7ebf\u7a0b\u53ef\u4ee5\u4ea4\u7ed9\u53e6\u5916\u4e00\u4e2a\u534f\u7a0b\u53bb run\uff0c\u7b49 epoll \u8c03\u7528\u8fd4\u56de\u7684\u65f6\u5019\uff0c\u7136\u540e\u518d\u4f7f\u7528\u8c03\u5ea6\u5668\u8ba9\u4e4b\u524d\u89e6\u53d1\u7cfb\u7edf\u8c03\u7528\u7684\u534f\u7a0b run \u8d77\u6765\u5c31\u597d\u4e86\uff0c\u8fd9\u672c\u8eab\u5e76\u4e0d\u662f\u4e00\u4ef6\u5f88\u96be\u7684\u4e8b\u60c5\uff0c\u5728 c\/c++\u91cc\u9762\u90fd\u6709\u7c7b\u4f3c\u7684\u534f\u7a0b\u5b9e\u73b0\uff0c\u4f46\u662f\u5934\u75bc\u7684\u662f\u9009\u62e9\u8c03\u5ea6\u7b97\u6cd5\uff0c\u50cf Java \u53cd\u6b63\u8bed\u8a00\u5c42\u9762\u53d7\u9650\uff0c\u6240\u4ee5\u5e72\u8106\u62ff\u7ebf\u7a0b\u6c60\u6b7b\u625b\u5c31\u662f\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120240\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @qwertyssp #14 <\/p>\n<p>\u4f20\u7edf\u7684\u7ebf\u7a0b\u6c60\u5e76\u53d1\u6a21\u578b\u6709\u4e00\u4e2a\u7f3a\u70b9\u5c31\u662f\u7ebf\u7a0b\u7684\u5f00\u9500\u592a\u9ad8\uff0c\u800c\u4e14\u7531\u64cd\u4f5c\u7cfb\u7edf\u638c\u63a7\uff0c\u53e6\u5916\u7ebf\u7a0b\u7531 CPU \u7684 ring3 \u6743\u9650\u5207\u6362\u5230 ring0 \u6743\u9650\uff0c\u9700\u8981\u5207\u6362 MMU \u7684\u5185\u5b58\u9875\u8868\uff0c\u53ef\u80fd\u8fd8\u4e0d\u80fd\u5229\u7528\u4e0a L0 L1 \u7f13\u5b58\uff0cCPU L0 L1 \u4e3b\u5b58\u4e4b\u95f4\u5206\u522b\u8bfb\u53d6\u6570\u636e\u7684\u65f6\u95f4\u5dee\u8ddd\u662f\u6307\u6570\u7ea7\u522b\u7684\uff0c\u8fd9\u4e9b\u4e5f\u5c31\u662f\u901a\u5e38\u7f51\u4e0a\u4fd7\u79f0\u7684\u5185\u6838\u6001\u5207\u6362\u5f00\u9500\uff0c\u5982\u679c\u7528\u4e00\u4e2a\u7ebf\u7a0b\u4e13\u95e8\u53bb\u5904\u7406\u5176\u5b83\u7ebf\u7a0b\u7684 IO \u8c03\u7528\uff0c\u4f8b\u5982 epoll \u5173\u952e\u5b57\u5c31\u53ef\u4ee5\u5927\u5e45\u5ea6\u964d\u4f4e CPU \u5728\u5185\u6838\u6001\u8ddf\u5e94\u7528\u6001\u7684\u5207\u6362\u5f00\u9500\uff0c\u800c\u4e14\u539f\u672c\u56e0\u4e3a\u7cfb\u7edf\u8c03\u7528\u800c\u8fdb\u5165\u963b\u585e\u7684\u7ebf\u7a0b \u5c31\u4e0d\u7528\u518d\u963b\u585e\u4e86\uff0c\u53ea\u8981\u8ba9\u5176\u5b83\u7684\u534f\u7a0b\u4ee3\u7801\u7ee7\u7eed\u5728\u8fd9\u4e2a\u7ebf\u7a0b\u4e0a\u8dd1\u8d77\u6765\u5373\u53ef\uff0c\u8fd9\u6837\u53ef\u4ee5\u8282\u7701\u5f88\u591a\u5f00\u9500\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3120241\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @qwertyssp #14 \u6211\u4e2a\u4eba\u5bf9\u4e8c\u8fdb\u5236\u7f16\u8bd1 \u53ef\u80fd\u8ba4\u77e5\u662f C\/C++\u8fd9\u79cd\u76f4\u63a5\u5c55\u5f00\u6210 IR\uff0c\u7136\u540e\u57fa\u672c\u4e0a\u53ef\u4ee5\u5c06\u9ad8\u7ea7\u8bed\u8a00\u8ddf\u6c47\u7f16\u76f4\u63a5\u5bf9\u5e94\u8d77\u6765\u7684\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f46\u662f golang \u5e76\u4e0d\u662f\u5982\u6b64\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u521a\u5b66 golang\uff0c\u5199\u4e86\u4e2a\u547d\u4ee4\u884c\u7ffb&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/149349"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=149349"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/149349\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=149349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=149349"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=149349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}