今天粗浅地学习和应用了任务队列和 Server-Sent Events,GitHub Copilot 说我写的程序有严重的时序竞争 bug,但是我测试了十几遍都跑的没问题,我赢了 ✌️
(可能确实有 bug,但是我的标准是能跑就行)
今天粗浅地学习和应用了任务队列和 Server-Sent Events,GitHub Copilot 说我写的程序有严重的时序竞争 bug,但是我测试了十几遍都跑的没问题,我赢了 ✌️
(可能确实有 bug,但是我的标准是能跑就行)
GitHub Copilot 堪称本年度到目前为止最值消费,一年 $100 相当于给自己雇了个编程老师 + 服务器运维,哪里不会问哪里,答案基本八九不离十,偶尔还能给我提供情绪价值,夸夸我 👍。
我现在只要看到了很尬的比喻,就会下意识的怀疑是 deepseek 写的
哥白尼剥夺了人类在宇宙中的特殊地位,达尔文剥夺了人类在自然界中的特殊地位,而人工智能正在动摇人类最后的骄傲——智慧。
After watching GitHub Universe 2024 presentations, I decided to explore and test some of the new features. While it works great in VSCode, I wanted to dig deeper into its background. Specifically, I aimed to explore whether I could enhance its context capabilities without relying on additional plugins or programs. In this post, I’ll share my somewhat scattered notes on experimenting with the context of GitHub Copilot in VSCode.
Environment Setup:
In VSCode, I frequently use the @workspace symbol while working with Copilot. This allows Copilot to index all files within the workspace (except those ignored in .gitignore).
What Happens When You Ask a Question?
This approach is known as Retrieval-Augmented Generation (RAG).
Join Medium for free to get updates from this writer.
Advantages of This Approach:
Notes:
Output: Show Output Channels, then choose GitHub Copilot Chat. You can see more logs by clicking the settings button in the top right corner and selecting Trace..gitignore or removing a directory from the workspace.Build local workspace index in the command palette (⇧⌘P) might return: “Could not build local workspace index. @workspace’s indexing currently is limited to 2000 files. Found 2504 potential files to index in the workspace. A sparse local index will be used to answer questions instead.”getAutoIndexFileCap and getManualIndexFileCap functions in the extension file, /Users/{computerUserName}/.vscode/extensions/github.copilot-chat-{version}/dist/extension.js by replacing their contents with return 3000 and return 4e3. The value 2e3 is in scientific notation, equating to 2000.C:\Users\\{computerUserName}\\.vscode\extensions\github.copilot-chat-{version}\dist\extension.js[js-beautify](https://github.com/beautifier/js-beautify) can improve readability when inspecting the code.console.log() at places in the extension code I wanted to monitor. Open the console with the Toggle Developer Tools command and follow the logs from there.parallelism: 2 to parallelism: 8, but I haven't measured any impact on performance./Users/{computerUserName}/Library/Application Support/Code/User/workspaceStorage/{workspaceId}/GitHub.copilot-chat/workspaceEmbeddingsCache-text-embedding-3-small512.json.max: 5e3 when creating the _embeddingsCache value. I modified it to 20e3.this.shouldSearchTimeout from !0 to !1 in the extension file.cmd+enter to submit questions without explicitly typing @workspace.I honestly don’t know what caused the removal of these restrictions, I just changed the allowed parts and learned information I didn’t know before. I hope it is useful information for those who read it.
Sources:
我的双 11 购物,腾讯云服务器 199,一本讲 ai 的电子书,99
Reflex 就是一个理所应当的黑箱魔法,诱人但是无法掌握。
人类的大脑只能并发,不能并行。
需要在不可预测的环境中具有大量机动性和灵活性的熟练工,比如管道工或电工。自动化这些工作需要科幻级别的机器人,类似于《星球大战》中的 C-3PO。“这是机器人领域最困难的挑战。我认为这些工作要很长时间后才受到威胁。”福特说。
主流经济学对技术进步后果的回答是,新技术虽然会消灭一部分工作岗位,但也会创造新的产业和就业机会。这会存在一个经济规律自动调节的过程,不必担心。 所谓自动调节在两个方面发挥作用。一个是“补偿”。比如新技术可以降低产品价格、提供更好服务或者创造新的就业岗位,从而增加公司对劳动力的需求。典型例子是自动取款机(ATM)在 1990 年代美国推出后,并没有减少银行柜员数量。相反,它使银行能够开设更多分支机构,柜员数量实际上增加了。 另一个是“互补”。比如人们会学习如何使用新技术,提高自己的工作技能。这也是人类与机器互补、融合或者协同进化的过程。乔布斯曾把个人电脑比作“大脑的自行车”,微软的纳德拉则说 AI 像“大脑的蒸汽机”。 但是,“补偿”或者“互补”都存在缺陷。 “补偿”的缺陷之一是无法保证“需求”调节技术对社会的影响能在短期内完成,别忘记工业革命初期的过渡以三代英国工人为代价。“互补”的缺陷之一是高估每个人的能力。事实上,只有少数人能够顺利掌握新技术,大部分人都会落伍。