前提 大家應該都跟我一樣,經常使用 ChatGPT 來協助一些 coding 上的問題。尤其是對於 Regular Expression 的問題。最近在處理上發現,需要透過「正向表列」,而非跟他講哪些不可以的方向比較容易成功。也應該說, Regular Expression 本來就要透過正向表來才對。 原本: // AddLineBreaksAroundURLs takes a string as input, finds URLs, // and inserts a newline character before and after each URL. // It returns the modified string. func AddLineBreaksAroundURLs(input string) string { re := regexp.MustCompile(`(https?:\/\/[^\s\p{Han}]+)`) return re.ReplaceAllString(input, "\n$1\n") } 發現無法處理: https://voyager.minedojo.org/。 當我發現我一直跟 ChatGPT 講要排除 ` https://voyager.minedojo.org/。` 這個案例的時候,往往會一直卡住無法向前。 但是寫多個測試案例倒是真的蠻好的。 Unit Testing code func TestAddLineBreaksAroundURLs(t *testing.T) { tests := []struct { input string expected string }{ { input: "Check out this website https://example.com and this one http://another-example.com", expected: "Check out this website \nhttps://example.com\n and this one \nhttp://another-example.com\n", }, { input: "Here is an URL with dot at the end https://voyager.minedojo.org/。", expected: "Here is an URL with dot at the end \nhttps://voyager.minedojo.org/\n。", }, { input: "This is another test 可在https://voyager.minedojo.org/上訪問。", expected: "This is another test 可在\nhttps://voyager.minedojo.org/\n上訪問。", }, // Add more test cases here as needed } for _, tt := range...
我如何看待 WWDC23 ?
身為技術研討會主辦人,我看的是:
整體錄影方式與收音技巧
每一個講者的職稱(可以看出內部分工與架構)
平台想要規劃出的生態圈
職稱相關
應該跟許多公司一樣:
Engineering Progam Manager - 技術專案經理
Engineering Manage - 技術開發的經理
職稱其實也代表部門的多寡,對外部而言很嶄新的 visionOS 部門卻有那麼多清楚分工,而且能演講的人還蠻多的。不愧是 Apple 。
硬體相關
New Mac Studio 可以有六顆螢幕(原來之前的不行啊?!)
iOS 17 帶來軟體開發新變化
Name Drop 近場溝通新應用
取代掉所有名片應用 (LINE OA 其實有類似做法)
不知道會用到哪個 SDK ,應該會開放給其他 App 使用。
更智能的鍵盤輸入
可能是使用 local 「In-line predictive text API」
TV OS 相關變革
透過 iPhone 直接在 Apple TV 開會
走 Continuity Camera API
Vision Pro 帶來的軟體開發變化
(要接線~~~~~ Orz)
果然要另外接電池
Apple Vision Pro 帶來新的生物識別系統「Optic ID」
可能帶來影響:
虹膜辨識會變成是基本 OAuth 的認證設備(搭配 Passkey (a.k.a. FiDO2)
比起 WorldCoin 可能因為 AirDrop 產生盜用 ,但是 Vision Pro 更可以取得更多人的虹膜資訊。
雖然依照 Apple 的個性,不可能有任何取得方式。但是代表 Optic ID 可以更加的準確, Passkey 的未來更令人期待。
iOS SDK
Accessibility SDK
Privacy API
影片:
(官方直播,可能會下架)
Plugin 會是新世代的 Fontend
前一天 CTO Kevin Scott 在 “The era of the AI Copilot”
關於 IDE 對於 Plugin 開發的支持
Web IDE 支援很快速建立 Copilot Plugin
這裡有個 Jira Copilot Plugin 案例
商業用語部分 - Syntex Plugin
Docu sign flow with Copilot
Copilot 總結
關於 Plugin - Developer Success
Productivity:
完整的說明,有相關的 “Team Toolkit”
有個人化體驗
可以很方便開發跟 Deploy
Dev Home: 快速建置開發者的相關環境
透過帳號登入
相關設置都有
今天有 Preview 版本在 Windows Store
Build and maintain your company Copilot with Azure ML and GPT-4 | BRK211H
整個流程相當清楚,又能完整呈現 Azure Copilot 與 Azure ML 的強大。
先建立一個情境,幫生意擴展找客戶挑選 TA
透過 Copilot 給予相關的信件:
這裡想要給予更多更貼近 TA 的資訊,尋找過去信件與相關資料。
這一屆有很多重要消息:
Windows Copilot (Windows 內建 chatgpt)
ChatGPT with Bing Search (include free tier)
Azure AI Studio
Dev Home : 登入帳號直接連接 github (windows 相關)
Microsoft Fabric : all-in-one BI platform
同步也分享一下,不論是 MSFT CEO 跟 CTO 都有強調關於 Plugin 生態圈的重要。以後微軟許多環境,應該都有 GPT 的存在。 但是又開放許多 3rd Party 開發 Plugin 系統。 來客製化自己的搜尋體驗。這就再次呼應到「生態系競爭策略」這本書。