{"id":313,"date":"2024-10-16T09:17:39","date_gmt":"2024-10-16T09:17:39","guid":{"rendered":"https:\/\/shiri.cyou\/?p=313"},"modified":"2025-07-03T06:09:54","modified_gmt":"2025-07-03T06:09:54","slug":"%e3%80%90%e5%bc%80%e6%ba%90%e7%ae%80%e8%ae%b0%e3%80%91%e7%ac%ac%e4%b8%89%e6%9c%9f","status":"publish","type":"post","link":"https:\/\/shiri.dev\/?p=313","title":{"rendered":"\u3010\u5f00\u6e90\u7b80\u8bb0\u3011\u7b2c\u4e09\u671f"},"content":{"rendered":"<h1><a href=\"https:\/\/github.com\/sunface\/rust-course\">Rust Course<\/a><\/h1>\n<p>Rust\u8bed\u8a00\u5723\u7ecf\uff01<\/p>\n<p>\u5b57\u91cc\u884c\u95f4\u90fd\u80fd\u4f53\u4f1a\u5230\u4f5c\u8005\u7684\u7528\u5fc3\uff0c\u76f8\u4fe1\u770b\u5b8c\u9879\u76ee\u4f5c\u8005\u5bf9Rust\u7684\u63cf\u8ff0\u540e\u4f60\u4e5f\u4f1a\u5bf9\u8fd9\u95e8\u8bed\u8a00\u611f\u5174\u8da3<\/p>\n<blockquote>\n<p>\u4f5c\u8005\u5927\u4f6c\u539f\u8bdd\uff1a<br \/>\n<img decoding=\"async\" src=\"https:\/\/shiri.cyou\/wp-content\/uploads\/2024\/10\/image-1728614311791.png\" alt=\"file\" \/><\/p>\n<\/blockquote>\n<p>\u535a\u4e3b\u8ddf\u9879\u76ee\u4f5c\u8005\u4e00\u6837\u8ba4\u4e3aRust\u4f1a\u8d8a\u6765\u8d8a\u53d7\u9752\u7750\uff0c\u52a0\u4e4bWebAssembly\u6280\u672f\u9010\u6e10\u88ab\u5e94\u7528\u5230\u66f4\u591a\u4f01\u4e1a\u4e2d\uff0cRust\u4f5c\u4e3a\u6027\u80fd\u53ef\u4e0eC\/C++\u6bd4\u80a9\u7684\u8bed\u8a00&#8230;\u5f00\u5b66\u5427<\/p>\n<hr \/>\n<h1><a href=\"https:\/\/github.com\/denoland\/deno\">Deno<\/a><\/h1>\n<p>\u4e00\u4e2aJS\/TS\u8fd0\u884c\u65f6\u73af\u5883\uff0c\u7531\u4e8e\u5176\u73b0\u4ee3\u8bbe\u8ba1\u548c\u539f\u751fTS\u652f\u6301\uff0c\u5438\u5f15\u4e86\u8bb8\u591a\u65b0\u9879\u76ee\u548c\u5f00\u53d1\u8005<\/p>\n<h3>\u4e0eNode.js\u5bf9\u6bd4\uff1a<\/h3>\n<h5>\u5b89\u5168\u6027<\/h5>\n<blockquote>\n<ul>\n<li>Node.js\uff1a<\/li>\n<li>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cNode.js \u6ca1\u6709\u4efb\u4f55\u5b89\u5168\u9650\u5236\uff0c\u4ee3\u7801\u53ef\u4ee5\u8bbf\u95ee\u6587\u4ef6\u7cfb\u7edf\u3001\u7f51\u7edc\u7b49\u6240\u6709\u8d44\u6e90\u3002<\/li>\n<li>\u5b89\u5168\u63a7\u5236\u9700\u8981\u901a\u8fc7\u7f16\u5199\u4ee3\u7801\u6765\u5b9e\u73b0\uff0c\u5f00\u53d1\u8005\u5fc5\u987b\u81ea\u5df1\u5904\u7406\u6743\u9650\u7ba1\u7406\u548c\u5b89\u5168\u95ee\u9898\u3002<\/li>\n<li>Deno\uff1a<\/li>\n<li>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cDeno \u8fd0\u884c\u5728\u4e00\u4e2a\u53d7\u9650\u7684\u73af\u5883\u4e2d\uff0c\u4e0d\u5141\u8bb8\u8bbf\u95ee\u6587\u4ef6\u7cfb\u7edf\u3001\u7f51\u7edc\u3001\u73af\u5883\u53d8\u91cf\u7b49\u8d44\u6e90\uff0c\u9664\u975e\u660e\u786e\u6388\u4e88\u6743\u9650\u3002<\/li>\n<li>\u4f7f\u7528\u547d\u4ee4\u884c\u53c2\u6570\u6765\u6388\u4e88\u6743\u9650\u3002<\/li>\n<\/ul>\n<\/blockquote>\n<h5>\u6a21\u5757\u7cfb\u7edf<\/h5>\n<blockquote>\n<ul>\n<li>Node.js\uff1a<\/li>\n<li>\u4f7f\u7528 CommonJS \u6a21\u5757\u7cfb\u7edf\uff0c\u6a21\u5757\u901a\u8fc7 require() \u8fdb\u884c\u5bfc\u5165\u3002<\/li>\n<li>\u4f9d\u8d56\u7ba1\u7406\u901a\u8fc7 npm\uff08Node Package Manager\uff09\uff0c\u9700\u8981 package.json \u6587\u4ef6\u3002<\/li>\n<li>Deno\uff1a<\/li>\n<li>\u4f7f\u7528\u6807\u51c6\u7684 ES \u6a21\u5757\uff08ESM\uff09\uff0c\u6a21\u5757\u901a\u8fc7 import \u8fdb\u884c\u5bfc\u5165\u3002<\/li>\n<li>\u6ca1\u6709\u4e2d\u592e\u5305\u7ba1\u7406\u5668\uff0c\u4f9d\u8d56\u76f4\u63a5\u901a\u8fc7 URL \u5bfc\u5165\uff0c\u53ef\u4ee5\u4ece\u4efb\u4f55\u5730\u65b9\u52a0\u8f7d\u6a21\u5757\u3002<\/li>\n<\/ul>\n<\/blockquote>\n<h5>TypeScript \u652f\u6301<\/h5>\n<blockquote>\n<ul>\n<li>Node.js\uff1a<\/li>\n<li>\u9ed8\u8ba4\u4e0d\u652f\u6301 TypeScript\uff0c\u9700\u8981\u901a\u8fc7 Babel \u6216 TypeScript \u7f16\u8bd1\u5668\uff08tsc\uff09\u7b49\u5de5\u5177\u8fdb\u884c\u7f16\u8bd1\u3002<\/li>\n<li>\u53ef\u4ee5\u4f7f\u7528 ts-node \u6765\u76f4\u63a5\u8fd0\u884c TypeScript \u6587\u4ef6\u3002<\/li>\n<li>Deno\uff1a<\/li>\n<li>\u539f\u751f\u652f\u6301 TypeScript\uff0c\u65e0\u9700\u989d\u5916\u914d\u7f6e\u6216\u5de5\u5177\uff0c\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c .ts \u6587\u4ef6\u3002<\/li>\n<\/ul>\n<\/blockquote>\n<h5>\u5185\u7f6e\u5de5\u5177\u548c\u5e93<\/h5>\n<blockquote>\n<ul>\n<li>Node.js\uff1a<\/li>\n<li>\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5185\u7f6e\u6a21\u5757\uff0c\u5982 fs\u3001http\u3001net \u7b49\u3002<\/li>\n<li>\u9700\u8981\u989d\u5916\u5b89\u88c5\u4e00\u4e9b\u5e38\u7528\u7684\u5f00\u53d1\u5de5\u5177\uff0c\u5982 linting\uff08ESLint\uff09\u3001\u683c\u5f0f\u5316\u5de5\u5177\uff08Prettier\uff09\u548c\u6d4b\u8bd5\u6846\u67b6\uff08Jest\uff09\u3002<\/li>\n<li>Deno\uff1a<\/li>\n<li>\u5185\u7f6e\u4e86\u4e00\u4e9b\u5e38\u7528\u7684\u5f00\u53d1\u5de5\u5177\uff0c\u5982\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\uff08deno fmt\uff09\u3001\u6d4b\u8bd5\u6846\u67b6\uff08deno test\uff09\u548c\u6587\u6863\u751f\u6210\u5668\uff08deno doc\uff09\u3002<\/li>\n<li>\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5e38\u7528\u7684\u6807\u51c6\u5e93\u3002<\/li>\n<\/ul>\n<\/blockquote>\n<h5>\u6587\u4ef6\u6269\u5c55\u540d<\/h5>\n<blockquote>\n<ul>\n<li>Node.js\uff1a<\/li>\n<li>\u5bf9\u4e8e CommonJS \u6a21\u5757\uff0c\u6587\u4ef6\u6269\u5c55\u540d\u901a\u5e38\u662f .js\u3002\u5bf9\u4e8e TypeScript \u6587\u4ef6\u662f .ts\u3002<\/li>\n<li>Deno\uff1a<\/li>\n<li>\u9700\u8981\u660e\u786e\u6307\u5b9a\u6587\u4ef6\u6269\u5c55\u540d\uff0c\u652f\u6301 .js\u3001.ts \u548c .jsx \u7b49\u3002<\/li>\n<\/ul>\n<\/blockquote>\n<h5>\u793e\u533a\u652f\u6301<\/h5>\n<blockquote>\n<ul>\n<li>Node.js\uff1a<\/li>\n<li>\u62e5\u6709\u4e00\u4e2a\u6210\u719f\u4e14\u5e9e\u5927\u7684\u793e\u533a\uff0cnpm \u5305\u7ba1\u7406\u5668\u63d0\u4f9b\u4e86\u8d85\u8fc7\u4e00\u767e\u4e07\u4e2a\u5305\u3002<\/li>\n<li>\u793e\u533a\u6d3b\u8dc3\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u751f\u4ea7\u73af\u5883\u3002<\/li>\n<li>Deno\uff1a<\/li>\n<li>\u793e\u533a\u76f8\u5bf9\u8f83\u65b0\u4e14\u8f83\u5c0f\uff0c\u4f46\u6b63\u5728\u5feb\u901f\u589e\u957f\u3002<\/li>\n<li>\u7531\u4e8e\u5176\u73b0\u4ee3\u8bbe\u8ba1\u548c\u539f\u751f TypeScript \u652f\u6301\uff0c\u5438\u5f15\u4e86\u8bb8\u591a\u65b0\u9879\u76ee\u548c\u5f00\u53d1\u8005\u3002<\/li>\n<\/ul>\n<\/blockquote>\n<h5>\u914d\u7f6e\u548c\u4f7f\u7528<\/h5>\n<blockquote>\n<ul>\n<li>Node.js\uff1a<\/li>\n<li>\u9700\u8981 package.json \u6587\u4ef6\u6765\u7ba1\u7406\u4f9d\u8d56\u548c\u9879\u76ee\u914d\u7f6e\u3002<\/li>\n<li>\u5e38\u7528\u6784\u5efa\u5de5\u5177\u5982 Webpack \u548c Babel \u9700\u8981\u989d\u5916\u914d\u7f6e\u3002<\/li>\n<li>Deno\uff1a<\/li>\n<li>\u65e0\u9700\u914d\u7f6e\u6587\u4ef6\uff0c\u76f4\u63a5\u8fd0\u884c TypeScript \u548c JavaScript \u6587\u4ef6\u3002<\/li>\n<li>\u5185\u7f6e\u5de5\u5177\u51cf\u5c11\u4e86\u5bf9\u7b2c\u4e09\u65b9\u5de5\u5177\u7684\u4f9d\u8d56\u3002<\/li>\n<\/ul>\n<\/blockquote>\n<p><a href=\"https:\/\/docs.deno.com\/runtime\/\">\u5b98\u65b9\u6587\u6863<\/a><\/p>\n<hr \/>\n<h1><a href=\"https:\/\/github.com\/mfts\/papermark\">Papermark<\/a><\/h1>\n<p>Papermark\u662f\u4e00\u4e2a\u7528\u4e8e\u5206\u4eab\u6587\u6863\u7684\u5de5\u5177\uff0c\u5185\u5d4c\u4e86\u5206\u6790\u5de5\u5177\u4e0e\u9897\u7c92\u5ea6\u8f83\u9ad8\u7684\u6743\u9650\u63a7\u5236\u529f\u80fd<\/p>\n<blockquote>\n<p>\u5b98\u65b9\u8868\u793a\u4ed6\u4eec\u5c06\u4f1a\u7ec8\u7ed3DocSend\u7684\u4e1a\u754c\u5784\u65ad\u5730\u4f4d<\/p>\n<\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/github.com\/mfts\/papermark\/raw\/main\/.github\/images\/papermark-welcome.gif\" alt=\"img\" \/><\/p>\n<blockquote>\n<p>\u7b80\u7ea6\u7684\u98ce\u683c\u975e\u5e38\u8d4f\u5fc3\u60a6\u76ee<\/p>\n<\/blockquote>\n<hr \/>\n<h1><a href=\"https:\/\/github.com\/openai\/swarm\">Swarm<\/a><\/h1>\n<p>\u7531Openai\u56e2\u961f\u5e26\u6765\u7684\u65b0Ai\u5e94\u7528\u6846\u67b6\uff0c\u76ee\u7684\u662f\u5b9e\u73b0\u8f7b\u91cf\u7ea7\u7684\u591a\u7aef\u534f\u4f5c\u548c\u4e92\u52a9\uff0c\u63a2\u7d22\u65b0\u7684ai\u5e94\u7528\u6a21\u5f0f<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/github.com\/openai\/swarm\/raw\/main\/assets\/swarm_diagram.png\" alt=\"img\" \/><\/p>\n<p>\u5b98\u65b9\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">from swarm import Swarm, Agent\n\nclient = Swarm()\n\ndef transfer_to_agent_b():\n    return agent_b\n\nagent_a = Agent(\n    name=&quot;Agent A&quot;,\n    instructions=&quot;You are a helpful agent.&quot;,\n    functions=[transfer_to_agent_b],\n)\n\nagent_b = Agent(\n    name=&quot;Agent B&quot;,\n    instructions=&quot;Only speak in Haikus.&quot;,\n)\n\nresponse = client.run(\n    agent=agent_a,\n    messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;I want to talk to agent B.&quot;}],\n)\n\nprint(response.messages[-1][&quot;content&quot;])\n\n\/*\n* \u8f93\u51fa:\n* Hope glimmers brightly,\n* New paths converge gracefully,\n* What can I assist?\n*\/<\/code><\/pre>\n<blockquote>\n<p>\u5f88\u9002\u5408\u5c0f\u767d\u5b66\u4e60<\/p>\n<p>\u5b98\u65b9\u4e5f\u5efa\u8bae\u4ec5\u4f5c\u4e3a\u5b66\u4e60\u7528\uff0c\u4e0d\u4f1a\u5173\u6ce8\u9879\u76ee\u7684issues\u548cPR<\/p>\n<\/blockquote>\n<hr \/>\n<h1><a href=\"https:\/\/github.com\/RSSNext\/Follow\">Follow<\/a><\/h1>\n<p>\u4e00\u4e2a\u5f88\u6709\u610f\u601d\u7684\u8f6f\u4ef6\uff0c\u53ef\u4ee5\u5c06\u4f60\u7684\u201c\u6536\u85cf\u54c1\u201d\u4eec<code>\u5982\u6700\u7231\u7684\u7f51\u7ad9\u3001\u535a\u5ba2\u3001\u793e\u4ea4\u5a92\u4f53\u8d26\u53f7\u7b49<\/code>\u7684\u65b0\u5185\u5bb9\u5728\u8fd9\u4e2a\u8f6f\u4ef6\u4e2d\u7edf\u4e00\u63a5\u6536\u5e76\u7ba1\u7406<\/p>\n<p>\u8f6f\u4ef6\u4e2d\u8fd8\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u9644\u52a0\u529f\u80fd\uff1aAI\u7ffb\u8bd1\u3001\u603b\u7ed3\u3001\u6bcf\u65e5\u62a5\u544a\u7b49<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/shiri.cyou\/wp-content\/uploads\/2024\/10\/image-1729070208452.png\" alt=\"file\" \/><\/p>\n<blockquote>\n<p>\u8fd9\u5c31\u53bb\u8bd5\u7528\u4e00\u756a<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Rust Course Rust\u8bed\u8a00\u5723\u7ecf\uff01 \u5b57\u91cc\u884c\u95f4\u90fd\u80fd\u4f53\u4f1a\u5230\u4f5c\u8005\u7684\u7528\u5fc3\uff0c\u76f8\u4fe1\u770b\u5b8c\u9879\u76ee\u4f5c\u8005\u5bf9Rust&hellip; <a href=\"https:\/\/shiri.dev\/?p=313\" class=\"more-link read-more\" rel=\"bookmark\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">\u3010\u5f00\u6e90\u7b80\u8bb0\u3011\u7b2c\u4e09\u671f<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":{"0":"post-313","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-opensource_record","7":"h-entry","9":"h-as-article"},"_links":{"self":[{"href":"https:\/\/shiri.dev\/index.php?rest_route=\/wp\/v2\/posts\/313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shiri.dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shiri.dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shiri.dev\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shiri.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=313"}],"version-history":[{"count":10,"href":"https:\/\/shiri.dev\/index.php?rest_route=\/wp\/v2\/posts\/313\/revisions"}],"predecessor-version":[{"id":330,"href":"https:\/\/shiri.dev\/index.php?rest_route=\/wp\/v2\/posts\/313\/revisions\/330"}],"wp:attachment":[{"href":"https:\/\/shiri.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shiri.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shiri.dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}