{"id":311127,"date":"2021-01-14T11:24:53","date_gmt":"2021-01-14T03:24:53","guid":{"rendered":"http:\/\/4563.org\/?p=311127"},"modified":"2021-01-14T11:24:53","modified_gmt":"2021-01-14T03:24:53","slug":"golang-%e9%87%8c%e9%9d%a2%e4%b8%ba%e4%bb%80%e4%b9%88%e8%a6%81%e8%ae%be%e8%ae%a1-int-%e8%bf%99%e6%a0%b7%e4%b8%80%e4%b8%aa%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=311127","title":{"rendered":"golang \u91cc\u9762\u4e3a\u4ec0\u4e48\u8981\u8bbe\u8ba1 int \u8fd9\u6837\u4e00\u4e2a\u6570\u636e\u7c7b\u578b\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  golang \u91cc\u9762\u4e3a\u4ec0\u4e48\u8981\u8bbe\u8ba1 int \u8fd9\u6837\u4e00\u4e2a\u6570\u636e\u7c7b\u578b\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jiangwei2222 <\/span>  <span><i><\/i> 10<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5728 golang \u91cc\u9762\uff0c\u6709 int64,int32,int \u8fd9 3 \u79cd\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<p>int64: \u5360 64 \u4f4d\u7684\u6574\u6570\u6570\u636e\u7c7b\u578b<\/p>\n<p>int32: \u5360 32 \u4f4d\u7684\u6574\u6570\u6570\u636e\u7c7b\u578b<\/p>\n<p>int: \u5728 64 \u4f4d\u5904\u7406\u5668\u4e0a\u5360 64 \u4f4d\uff0c\u5728 32 \u4f4d\u5904\u7406\u5668\u4e0a\u9762\u5360 32 \u4f4d<\/p>\n<p>\u4e8e\u662f\u6211\u5c31\u7eb3\u95f7\u4e86\uff0cint \u8fd9\u4e2a\u6570\u636e\u7c7b\u578b\u4e0d\u662f\u57cb\u5751\u5417\uff1f\u4e0d\u540c\u7684\u5904\u7406\u5668\u4e0a\u9762\u53ef\u80fd\u5bfc\u81f4\u4e0d\u540c\u7684\u8fd0\u884c\u7ed3\u679c\uff0c\u90a3\u8bbe\u8ba1\u8fd9\u4e2a\u6570\u636e\u7c7b\u578b\u7684\u610f\u4e49\u662f\u5565\u5462\uff1f\u4e3a\u5565\u4e0d\u53ea\u4fdd\u7559 int64 \u548c int32\uff0c\u7531\u7a0b\u5e8f\u5458\u6307\u5b9a\u957f\u5ea6\uff0c\u4fdd\u8bc1\u8fd0\u884c\u7ed3\u679c\u7684\u4e00\u81f4\u6027<\/p>\n<p>\u6211 google \u67e5\u4e86\u5f88\u4e45\uff0c\u6ca1\u627e\u5230\u76f8\u5173\u7684\u8d44\u6599\uff0c\u8fd8\u671b\u4e86\u89e3\u7684\u8001\u54e5\u8d50\u6559<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>19<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4968295\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuanbg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u56e0\u4e3a\u7a0b\u5e8f\u5458\u5f80\u5f80\u4e0d\u80fd\u9884\u77e5\u4ed6\u5199\u7684\u4ee3\u7801\u4f1a\u5728\u4ec0\u4e48\u73af\u5883\u4e0b\u8fd0\u884c\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968296\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wudicgi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8001\u54e5\u6ca1\u89c1\u8fc7 C \u8bed\u8a00\u91cc\u7684 int, int32_t, int64_t ?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968297\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : jiangwei2222 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xuanbg #1 \u5c31\u56e0\u4e3a\u4e0d\u80fd\u9884\u77e5\uff0c\u6240\u6709\u6307\u5b9a\u4f7f\u7528 int64 \u6216\u8005 int32 \u4e0d\u66f4\u52a0\u4fdd\u9669\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968298\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u4e00\u4e2a\u53ef\u80fd\u6027\u662f\u4e3a\u4e86\u6548\u7387\uff0c\u5728 64 \u4f4d\u4e0a\u4e3a\u4e86 int32 \u9700\u8981 runtime \u624b\u52a8\u9650\u5236\u53ea\u4f7f\u7528\u4f4e 32 \u4f4d\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u8c03\u6574\u6ea2\u51fa flag \uff1f<br \/>32 \u4f4d\u4e0a int64 \u662f\u5fc5\u7136\u9700\u8981\u6a21\u62df\u7684\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968299\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ruyu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5728\u4e0d care \u6700\u5927\u503c\u7684\u65f6\u5019\u4f7f\u7528 int, \u8ba9\u6240\u6709\u7684 CPU \u90fd\u5f00\u5fc3.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968300\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u8bf4\u4f60\u80af\u5b9a\u8be5\u6570\u8fdc\u8fdc\u8fbe\u4e0d\u5230 int32 \u548c int64 \uff08\u6bd4\u5982\u4e00\u4e2a flag\uff0c\u53ea\u80fd\u53d6 012\uff0c\u5176\u4ed6\u5747\u89c6\u4e3a\u672a\u5b9a\u4e49\u884c\u4e3a\uff09\uff0c\u90a3\u4e48\u8fd9\u4e2a overhead \u5c31\u6bd4\u8f83\u660e\u663e\u4e86\u3002<br \/>\u800c\u5982\u679c\u4f60\u6709\u4e00\u767e\u4e07\u4e2a\u8fd9\u6837\u7684\u6570\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968301\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zoharSoul <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e5f\u633a\u7eb3\u95f7\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968302\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : icexin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             int \u8ddf\u673a\u5668\u5b57\u957f\u4e00\u81f4\uff0c\u8fd9\u6837\u53ef\u4ee5\u83b7\u53d6\u6700\u5927\u7684\u6267\u884c\u6548\u7387\u3002\u5728\u4e0d\u5173\u5fc3\u6570\u503c\u8303\u56f4\u7684\u573a\u666f\u4e0b int \u8db3\u591f\u4e86\uff0c\u6bd4\u5982\u6570\u7ec4\u4e0b\u6807\u3002\u76f8\u53cd\u5982\u679c\u4f60\u5728 32 \u4f4d\u673a\u5668\u4e0a\u4f7f\u7528 int64\uff0c\u672c\u6765\u4e00\u6761\u6307\u4ee4\u7684\u4e8b\u60c5\u8981\u53d8\u6210\u591a\u6761\u6307\u4ee4\u3002<br \/>int32 \u548c int64 \u8fd9\u4e9b\u4e00\u822c\u7528\u4e8e\u7f16\u89e3\u7801\u3001\u5e95\u5c42\u786c\u4ef6\u76f8\u5173\uff0c\u6216\u8005\u662f\u6570\u503c\u8303\u56f4\u654f\u611f\u7684\u573a\u666f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968303\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuanbg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @jiangwei2222 \u5982\u679c\u4f60\u6307\u5b9a x64\uff0c\u5728 x86 \u5e73\u53f0\u4e0a\u5c31\u8dd1\u4e0d\u8d77\u6765\u5566\u3002\u6307\u5b9a x86\uff0cx64 \u5e73\u53f0\u5012\u662f\u80fd\u8dd1\uff0c\u4f46\u6027\u80fd\u5c31\u6d6a\u8d39\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968304\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : eason1874 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7684\u7406\u89e3\u76f8\u53cd\uff0cint \u662f\u5e73\u53f0\u539f\u751f\uff0cint32 int64 \u624d\u662f\u6709\u610f\u8bbe\u8ba1\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968305\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LANB0 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5728 golang \u91cc\u9762\uff0c\u6709 int64,int32,int \u8fd9 3 \u79cd\u6570\u636e\u7c7b\u578b\u3002<br \/>int64: \u5360 64 \u4f4d\u7684\u6574\u6570\u6570\u636e\u7c7b\u578b<\/p>\n<p>int32: \u5360 32 \u4f4d\u7684\u6574\u6570\u6570\u636e\u7c7b\u578b<\/p>\n<p>int: \u5728 64 \u4f4d\u5904\u7406\u5668\u4e0a\u5360 64 \u4f4d\uff0c\u5728 32 \u4f4d\u5904\u7406\u5668\u4e0a\u9762\u5360 32 \u4f4d<\/p>\n<p>\u5728 c\/c++ \u91cc\u9762\uff0c\u6709 long long int,int,long int \u8fd9 3 \u79cd\u6570\u636e\u7c7b\u578b\u3002<br \/>long long int: \u5360 64 \u4f4d\u7684\u6574\u6570\u6570\u636e\u7c7b\u578b<\/p>\n<p>int: \u5360 32 \u4f4d\u7684\u6574\u6570\u6570\u636e\u7c7b\u578b(32 \u4f4d\u53ca 64 \u4f4d\u5e73\u53f0\uff0c8 \u4f4d\u548c 16 \u4f4d\u4e0d\u8003\u8651\u4e86)<\/p>\n<p>long int: \u5728 64 \u4f4d\u5904\u7406\u5668\u4e0a\u5360 64 \u4f4d\uff0c\u5728 32 \u4f4d\u5904\u7406\u5668\u4e0a\u9762\u5360 32 \u4f4d<\/p>\n<p>\u5b9e\u9645\u4e0a\uff0c\u5728\u4e0d\u9700\u8981\u505a\u5b58\u50a8\u548c\u901a\u8baf\u534f\u8bae\u6570\u636e\u5bf9\u9f50\u7684\u573a\u666f\u4e0b\uff0clong int \u662f\u5728\u8de8\u5e73\u53f0\u60c5\u51b5\u4e0b\u6548\u7387\u6700\u9ad8\u7684\u3002<br \/>\u8de8\u5e73\u53f0\u5b58\u50a8\u548c\u901a\u8baf\u534f\u8bae\u6570\u636e\u5bf9\u9f50\u573a\u666f\u4e0b\uff0c4 \u5b57\u8282\u5c31\u56fa\u5b9a int32\uff0c8 \u5b57\u8282\u5c31\u56fa\u5b9a int64                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968306\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : teawithlife <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u5230 C99\/C++11 \u7684\u8fd9\u4e9b\uff0c\u4f60\u4f1a\u66f4\u7eb3\u95f7\u7684<br \/>en.cppreference.com\/w\/c\/types\/integer<br \/>\u5176\u5b9e\u539f\u56e0\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u4e3a\u4e86\u6267\u884c\u6548\u7387\uff0c\u4e00\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5e76\u4e0d\u5173\u5fc3 int \u5230\u5e95\u662f 32 \u4f4d\u8fd8\u662f 64 \u4f4d\u7684\uff0c\u53cd\u6b63\u90fd\u591f\u7528\uff0c\u8fd9\u65f6\u5019\u5c31\u6ca1\u5fc5\u8981\u5f3a\u5236\u6307\u5b9a\u4f4d\u6570\uff0c\u800c\u662f\u8ba9\u7f16\u8bd1\u5668\u81ea\u5df1\u53bb\u81ea\u884c\u9009\u62e9\u6548\u7387\u6700\u9ad8\u7684\u4f4d\u6570                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968307\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : secondwtq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4ec5\u5c31 x86 \u800c\u8a00\uff0cint64 \u8fd8\u771f\u4e0d\u4e00\u5b9a\u6bd4 int32 \u5feb<br \/>\u201c\u5feb\u4e0d\u5feb\u201d\u4e0d\u4ec5\u4ec5\u662f\u6307\u4ee4\u652f\u6301\u7684\u95ee\u9898\uff0c\u6570\u636e\u5bbd\u4e86\u4e00\u500d\uff0c\u5360\u7528\u7684\u7f13\u5b58\u7a7a\u95f4\u3001\u5185\u5b58\u5e26\u5bbd\u90fd\u52a0\u4e86\u4e00\u500d\u3002\u5982\u679c\u771f\u6709\u4e00\u767e\u4e07\u4e2a\u8fd9\u6837\u7684\u6570\uff0c\u53ef\u80fd\u8fd8\u771f\u662f 32 \u4f4d\u597d\u4e00\u70b9\uff0c\u7279\u522b\u518d\u8003\u8651\u5230 SIMD \u7684\u60c5\u51b5\u4e0b<\/p>\n<p>\u5982\u679c\u8fd9\u8d27\u7684\u884c\u4e3a\u771f\u7684\u50cf\u4e3b\u8bf4\u7684\u4e00\u6837\u201c\u5728 64 \u4f4d\u5904\u7406\u5668\u4e0a\u5360 64 \u4f4d\uff0c\u5728 32 \u4f4d\u5904\u7406\u5668\u4e0a\u9762\u5360 32 \u4f4d\u201d\u7684\u8bdd\uff0c\u90a3\u4e48\u770b C\/C++ \u662f\u6b63\u89e3\uff0c\u4e0d\u8fc7\u9274\u4e8e\u5927\u9053\u81f3\u7b80\u7684 Go \u76ee\u6807\u4e4b\u4e00\u5c31\u662f\u5e72\u6b7b C++\uff0c\u4f30\u8ba1\u6ca1\u4eba\u4f1a\u53bb\u770b\u7684\u3002<\/p>\n<p>C \u91cc\u9762\u6709\u4e00\u4e2a\u7c7b\u578b\u53eb size_t\uff0c\u76f8\u5f53\u4e8e Go \u7684 uint\uff0c\u8fd8\u6709\u4e2a ptrdiff_t\uff0c\u76f8\u5f53\u4e8e Go \u91cc\u7684 int \uff08\u5047\u8bbe\u4e3b\u8bf4\u7684\u884c\u4e3a\u662f\u5bf9\u7684\uff09<br \/>size_t \u987e\u540d\u601d\u4e49\uff0c\u53ef\u4ee5\u88c5\u4e0b\u4efb\u4f55\u5bf9\u8c61\u7684\u201c\u5927\u5c0f\u201d\uff0c\u6bd4\u5982\u5728 32 \u4f4d\u73af\u5883\u4e0b\uff0c\u5730\u5740\u7a7a\u95f4\u4e2d\u4e0d\u53ef\u80fd\u5b58\u5728\u591a\u4e8e 2^32 \u4e2a\u552f\u4e00\u7684\u5bf9\u8c61\uff0c\u4e00\u4e2a\u5bf9\u8c61\u7684\u5927\u5c0f\u4e5f\u4e0d\u53ef\u80fd\u8d85\u8fc7 2^32 \u5b57\u8282\uff0c\u6240\u4ee5 size_t \u505a\u6210 uint32_t \u5c31\u53ef\u4ee5\u3002\u9700\u8981\u5b58\u5927\u5c0f\u3001\u6570\u91cf\u65f6\u5c31\u7528\u8fd9\u8d27\u3002<br \/>ptrdiff_t \u987e\u540d\u601d\u4e49\uff0c\u53ef\u4ee5\u88c5\u4e0b\u4efb\u610f\u4e24\u4e2a\u6307\u9488\u76f8\u51cf\u7684\u7ed3\u679c\uff0c\u9700\u8981\u5b58\u504f\u79fb\u65f6\u5c31\u7528\u8fd9\u8d27\u3002\uff08\u4e0d\u8fc7 C \u6807\u51c6\u91cc\u9762\u8c8c\u4f3c\u6ca1\u6709\u4fdd\u8bc1\uff0c\u6bd5\u7adf\u771f\u6b63\u5b58\u5dee\u503c\u9700\u8981 wordsize+1 \u4f4d &#8230;\uff09<br \/>\u6bd5\u7adf\u5982\u679c\u662f 32 \u4f4d\u73af\u5883\uff0c\u7528 64 \u4f4d\u6570\u5b58\u6570\u7ec4\u6709\u591a\u5c11\u4e2a\u5143\u7d20\u5b9e\u5728\u592a\u8fc7\u5962\u4f88\u4e86\uff0c\u8fd9\u65f6\u5019\u6839\u636e\u5927\u9053\u81f3\u7b80\u7684\u539f\u5219\uff0c\u5c31\u53ef\u4ee5\u52a0\u4e00\u4e2a\u7c7b\u578b\u53eb int \u3002<\/p>\n<p>\u8fd9\u53ea\u662f\u4e00\u4e2a\u731c\u60f3\uff0c\u56e0\u4e3a Go \u7684\u6240\u8c13 spec \u5b9e\u5728\u592a\u5927\u9053\u81f3\u7b80\u4e86\uff1a<br \/>&gt; uint either 32 or 64 bits<br \/>&gt; int same size as uint<br \/>\u53cd\u6b63\u5728\u8fd9\u4e24\u53e5\u8bdd\u6211\u662f\u6ca1\u627e\u7740\u201c\u5728 64 \u4f4d\u5904\u7406\u5668\u4e0a\u5360 64 \u4f4d\uff0c\u5728 32 \u4f4d\u5904\u7406\u5668\u4e0a\u9762\u5360 32 \u4f4d\u201d\u7684\u4fdd\u8bc1\u3002\u56e0\u4e3a\u4ed6\u628a\u8fd9\u73a9\u610f\u5199\u5728\u540e\u9762 builtin functions \u90e8\u5206\u4e86\uff1a\u201cThe built-in functions len and cap take arguments of various types and return a result of type int. The implementation guarantees that the result always fits into an int.\u201d\uff0c\u7136\u540e\u5c31\u6709\u4e86\u8fd9\u4e2a https:\/\/yourbasic.org\/golang\/int-vs-int64\/ \u3002\u4e5f\u5c31\u662f\u8bf4\u8fd9\u4e2a\u7c7b\u578b\u548c\u5b83\u7684\u89d2\u8272\u5e76\u4e0d\u76f4\u63a5\u5173\u8054\uff0c\u53ef\u80fd\u672c\u6765\u8bbe\u8ba1\u8005\u7684\u60f3\u6cd5\u5c31\u662f\u4ece C \u91cc\u9762\u968f\u4fbf\u6363\u9f13\u6765\u7684 &#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968308\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : secondwtq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5662\u5bf9\u4e86\u8865\u5145\u4e0b\uff0c\u6211\u77e5\u9053\u505a\u4f18\u5316\u7684\u65f6\u5019\u6709\u81f3\u5c11\u4e00\u79cd\u60c5\u51b5\u4f1a\u628a 32 \u4f4d\u6570\u6545\u610f widen \u6210 64 \u4f4d\uff0c\u5c31\u662f\u9891\u7e41\u8f6c\u6362\u7684\u65f6\u5019\u3002<br \/>\u5177\u4f53\u6765\u8bf4\uff0c\u662f\u4e00\u4e2a\u5faa\u73af\u7684 induction variable \uff08 https:\/\/en.wikipedia.org\/wiki\/Induction_variable \uff09\u88ab\u5b9a\u4e49\u4e3a 32 \u4f4d\uff0c\u4f46\u662f\u4f7f\u7528\u65f6\u603b\u662f\u5148 cast \u6210 64 \u4f4d\u518d\u4f7f\u7528\uff0c\u8fd9\u79cd\u60c5\u51b5\u7528 64 \u4f4d\u6570\u4ee3\u66ff\u539f\u6765\u7684 induction variable \u53ef\u4ee5\u7701\u53bb\u8f6c\u6362\u7684\u5f00\u9500\uff0c\u5e76\u4e14\u5c31\u4e00\u4e24\u4e2a\u53d8\u91cf\u4e00\u822c\u90fd\u653e\u5bc4\u5b58\u5668\u91cc\u9762\uff0c\u505a\u8d77\u6765\u624d\u503c\u5f97\u3002<br \/>\uff08\u561b\u4e0d\u8fc7\u6211\u53ea\u662f\u89c2\u5bdf\u5230\u8fd9\u4e48\u4e00\u79cd\u884c\u4e3a\uff0c\u5e76\u6ca1\u6709\u627e\u5230\u5bf9\u5e94\u7684\u53c2\u8003\uff0c\u4e5f\u6ca1\u6709\u4ed4\u7ec6\u770b\u76f8\u5173\u7684\u4ee3\u7801 &#8230;\uff09                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968309\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : douyacun <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u81ea 2008 \u5e74 1 \u6708\u8d77\uff0cKen Thompson \u5c31\u5f00\u59cb\u7814\u53d1\u4e00\u6b3e\u4ee5 C \u8bed\u8a00\u4e3a\u76ee\u6807\u7ed3\u679c\u7684\u7f16\u8bd1\u5668\u6765\u62d3\u5c55 Go \u8bed\u8a00\u7684\u8bbe\u8ba1\u601d\u60f3\u3002<\/p>\n<p>c \u6709 go \u5c31\u6709\u4e86\uff0c\u56e0\u4e3a\u987a\u624b\uff5e<\/p>\n<p>grpc \u5c31\u679c\u65ad\u629b\u5f03\u4e86 int                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968310\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : jiangwei2222 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @secondwtq \u591a\u8c22\u5927\u4f6c\u89e3\u91ca                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968311\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : INCerry <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90a3\u4f60\u53ef\u4ee5\u7528 C# C#\u5728 64 \u4f4d\u6216\u8005 32 \u4f4d\u7cfb\u7edf\u4e2d int \u90fd\u662f Int32                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968312\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : binlearn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u6211\u6ca1\u6709\u731c\u9519\uff0c\u8fd9\u5e94\u8be5\u662f\u4e0d\u540c\u5e73\u53f0\u201c\u5b57\u8282\u5bf9\u9f50\u201d\u7684\u539f\u56e0\u3002\u7528 int \u80fd\u4fdd\u8bc1\u5b57\u8282\u5bf9\u9f50                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4968313\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : coolesting <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7c7b\u578b\u7ec6\u5206\u5316\uff0c\u6309\u9700\u5206\u914d\u5185\u5b58\uff0c\u5de5\u4f5c\u66f4\u6548\u7387\uff0c\u548c rust \u7684\u8bbe\u8ba1\u540c\u51fa\u4e00\u7b56\uff0c\u6240\u4ee5\u8fd9\u4e24\u95e8\u8bed\u8a00\u5728\u672a\u6765\u80af\u5b9a\u4f1a\u79f0\u9738\u4e00\u65b9\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>golang \u91cc\u9762\u4e3a\u4ec0\u4e48\u8981\u8bbe\u8ba1 i&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\/311127"}],"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=311127"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/311127\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=311127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=311127"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=311127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}