Go 語言新版的迭代器是怎麼個事
很多流行的編程語言中都以某種方式提供迭代器,其中包括 C++、Java、Javascript、Python 和 Rust。Go 語言現在也加入了迭代器。iter 包是 Go 1.23 新增的標準庫,提供了迭代器的基本定義和相關操作。爲什麼需要迭代器——–在 Go 1.18 引入泛型之後,便可以很方便的定義一些泛型容器類型來提升編碼效率。例如我們可以基於 map 類型定義了一個集合類型—— ⌘ Read more
Extending my Komoot export script
I’ve taken another look at my export script for Komoot (original post), now that Bending Spoons has acquired Komoot. I’ve extended the script to also download cover images and, if available, an image of the map – I found that in the API responses. ⌘ Read more
Pokemon Go, the Surveillance Game Financed by the CIA, now Owned by Saudi Arabia
Pokemon Go has been 3D mapping your homes for years, and now it is owned by the Wife-Beating, Jeff Bezos Hacking, Journalist Murdering Crown Prince of Saudi Arabia. ⌘ Read more
Ten Place Names You’ve Been Mispronouncing Your Entire Life
You might think that city and town names you’ve been seeing on maps and street signs for your entire life are pronounced one way—but you’ve been wrong! While plenty of towns and cities have simple pronunciations (New York, Denver, Dallas, Seattle, the list goes on…), the United States is also chock-full of weird towns with […]
The post [Ten Place Names You’ve Been Mispronouncing Your Entire Life](https://listverse … ⌘ Read more
Power outages throughout south east queensland (map)
Power outages throughout south east queensland ( map)
⌘ Read more
Why fastDOOM is fast
How much faster is fastDOOM than regular Doom on a decked-out 486 from 1993? 30% faster without cutting any features! On a demanding map like doom2’s demo1, the gain is even higher, from 16.8 fps to 24.9 fps. That is 48% faster! I did not suspect that DOOM had left that much on the table. Obviously shipping within one year left little time to optimize. I had to understand how this magic trick happened. ↫ Fabien Sanglard What follows is an incredibly detailed exploration of why, exactly, fa … ⌘ Read more
golang 每日一庫之 concurrent-map
概述orcaman/concurrent-map/v2 是一個 Go 語言的高性能併發安全哈希表實現。它通過分片鎖(shard locking)策略減少鎖競爭,適用於高併發讀寫場景。與標準庫的 sync.Map 不同,該庫針對通用鍵值類型優化,提供更靈活的 API 和更高性能。項目地址GitHub 倉庫 : https://github.com/orcaman/concurrent- ⌘ Read more
❤️ 🎶: Burning the Map by Ye Ram
Fun: Name Your Own Gulf Map for Gulf of America / Mexico
WARNING: My name is Jamie, and I have a sense of humor. This post is for fun and the aforementioned humor. Before proceeding any further, let’s understand what “humor” means so that any potential outrage addicts don’t have a meltdown. Here’s what the Apple Dictionary app defines Humor as; “the quality of being amusing” Now, … Read More ⌘ Read more
I’m going to bed. I left them a 1 Star rating and full Review on Google Maps 🤣
I’m going to bed. I left them a 1 Star rating and full Review on Google Maps 🤣 ⌘ Read more
golang 每日一庫之 iancoleman-orderedmap
github.com/iancoleman/orderedmap 是一個 Go 語言庫,提供了一個有序字典(OrderedMap)實現,區別於 Go 語言內建的 map 類型,內建的 map 是無序的。該庫的 OrderedMap 能夠保持元素的插入順序,因此適用於需要按插入順序遍歷元素的場景。主要特點:有序性:OrderedMap 保證元素的插入順序,和內建的 map 類型不同, ⌘ Read more
After submitting a correction for Apple Maps when they got the name of the Gulf of Mexico wrong, I wrote a letter to Investor Relations: http://a.9srv.net/b/investor_relations
Kaidan: Kaidan 0.11.0: Qt 6
Kaidan supports Qt 6 now!
In addition, this release improves the user interface and fixes some bugs.
Have a look at the changelog for more details.
Features:
- Highlight public XMPP provider titles while card is expanded (melvo)
- Round corners of cards and buttons (melvo)
- Add fading in/out hover effect to map previews (melvo)
- Collapse contact profiles by default if they have more than 3 entries (melvo)
- Show colored check mark for … ⌘ Read more
KDE Plasma 6.3 brings drawing tablet improvements
Speaking of KDE, Plasma 6.3 has been released. It brings with it a ton of improvements aimed at digital artists, such as much improved management and configuration of drawing tablets. You can now map an area of the tablet’s surface to a part of the screen, change the functions of stylus buttons, customise the pressure curve and range of a stylus, and much more. The entire settings panel for drawing tablets has also been redesigned t … ⌘ Read more
Go 併發控制:sync-Map 詳解
我們知道,Go 中的 map 類型是非併發安全的,所以 Go 就在 sync 包中提供了 map 的併發原語 sync.Map,允許併發操作,本文就帶大家詳細解讀下 sync.Map 的原理。使用示例sync.Map 提供了基礎類型 map 的常用功能,使用示例如下:package mainimport (“fmt”“sync”)func main() {var s sync.Map// 存儲鍵值 ⌘ Read more
Google Maps is run by cowards
Google, on its Google Maps naming policy, back in 2008: By saying “common”, we mean to include names which are in widespread daily use, rather than giving immediate recognition to any arbitrary governmental re-naming. In other words, if a ruler announced that henceforth the Pacific Ocean would be named after her mother, we would not add that placemark unless and until the name came into common usage. Google, today, in 2025: Google has confirmed that Google Maps will soon … ⌘ Read more
golang 每日一庫之 jinzhu-copier
這都 2025 年了,你還在一個一個手動複製字段嗎?jinzhu/copier 是一個 Go 語言庫,用於深度複製結構體(struct)及其字段,支持嵌套結構體、切片、數組等的複製。這個庫的主要目標是通過簡單的 API 提供高效、易用的對象複製功能,避免手動編寫複製邏輯。核心特性:深度複製支持深度複製結構體及其嵌套字段,包括切片、數組、映射(map)等。 對象的字段會遞歸地被複制到目標對象中 ⌘ Read more
Ten Times Google Maps Solved the Case
In these ten cases, everything from Street View snapshots to Google Earth satellite imagery played a key role in uncovering crazy truths, finding missing persons, and piecing together unsolved mysteries. Some of these crimes are bizarre, some are tragic, and others are almost too coincidental to believe. But they all share one thing in common: […]
The post [Ten Times Google Maps Solved the Case](https://listverse.com/2025/01/18/ten-times-google-maps-solved … ⌘ Read more
Platform journey map: shape your platform strategy
Member post originally published on the Mia-Platform blog by Graziano Casto, DevRel Engineer, Mia-Platform TLDR: After years of helping people adopt digital platforms, we created the Platform Journey Map, a visual game that sparks meaningful discussions on… ⌘ Read more
Computer Timescales Mapped onto Human Timescales - Computerphile ⌘ Read more
Go 語言中嘗試延遲執行一個函數
Go 編程語言提供了豐富的特性,使得像 Google 這樣的大型公司能夠高效地進行軟件開發。它爲許多雲服務提供商和分佈式服務的底層基礎設施提供支持,同時保持了簡單易學的特點。在 Go 中,我們可以根據需要使用指針類型和值類型。在本文中,我們將探討一個有趣的使用場景。函數調用中的切片和映射傳遞————-通常,在 Go 中調用函數時,切片(slice)和映射(map)並不是通過指針傳遞 ⌘ Read more
HeapMap: 一個混合功能的數據結構 Go 語言實現
今天在準備《祕而不宣》系列下一篇文章時,思緒飄散了,突然想到使用 Heap 的功能再加 HashTable (Map) 的功能,可以構造一種新的數據結構,然後把我聚合程序中的數據聚合數據結構替換掉,總之思緒翩翩。然後在網上搜了一下,這種數據結構其實早就有了,名字叫 HeapMap。HeapMap (也叫做 PriorityMap) 是一種結合了堆和哈希映射的數據結構,常用於需要按鍵排序並進行高效查 ⌘ Read more
The Pokemon Go Spying Conspiracy Theory? Yeah. It’s Verified.
Pokemon Go using your phone camera to build a CIA-backed 3D Map AI system. ⌘ Read more
Kissimmee - Long run: 7.25 miles, 00:09:55 average pace, 01:11:52 duration
fun long run while we were at universal studios for a friends birthday. google maps thought there were some cut-throughs but was obviously wrong so just kind of winged it. was able to run around some of the “pioneer village” which was a good change in scenery.
#running
Go 邏輯分支優化實戰
TL;DR通過函數式編程和 map 結構可以優化複雜的 if-else 邏輯 提前返回可以避免不必要的資源消耗,防止全表掃描等問題 避免在循環中使用 defer 語句,可能導致資源泄露 使用 for 循環對相同邏輯進行壓縮,提高代碼的簡潔性和可擴展性 代碼的世界,將自然語言的需求轉換成執行的邏輯。如何轉化成代碼之後仍然儘可能接近自然語言的可理解性,是我們一直探求的內容。 ⌘ Read more
揭祕 Go sync-Map 設計與實現
什麼是 sync.Map————我們都知道在 Go 語言中,普通的 Map 是非併發安全,併發讀寫時會 panic,sync.Map 則是官方庫提供的一種特殊的併發安全的映射類型,能保較高的性能的同時,還能保證併發安全。sync.Map 有以下幾個特點:sync.Map 特點併發安全: sync.Map 無需額外的鎖機制即可在多個 goroutine 中安全地進行讀寫操作。這對於高 ⌘ Read more
Using Docker AI Tools for Devs to Provide Context for Better Code Fixes
Learn how to map your codebase in order to provide context for creating better AI-generated code fixes. ⌘ Read more
Bad Map Projection: The United Stralia
⌘ Read more
Bad Map Projection: The United Stralia
⌘ Read more
Engineering leaders continue focus on TestOps – operational strategies
Community post by Saqib Jan As technologies become more advanced year on year, the complexity of software testing increases, too. When building a testing strategy, companies typically map their operations into three segments: the people, the process, and… ⌘ Read more
Better coffee on the cards as researchers crack arabica’s genetic code
Your morning cup of coffee could soon get even better, thanks to scientists who have mapped the genome of the arabica plant. ⌘ Read more
函數類型的 Range - Go 編程語言
簡介 —–這是我在 2024 年 GopherCon 大會上演講的博客文章版本。函數類型的 range 是 Go 1.23 版本中的一個新語言特性。這篇博文將解釋爲什麼我們要添加這個新特性, 它究竟是什麼, 以及如何使用它。爲什麼?—-自 Go 1.18 以來, 我們已經能夠在 Go 中編寫新的泛型容器類型。例如, 讓我們考慮這個非常簡單的Set類型, 一個基於 map 實現的泛型類型 ⌘ Read more
《黑神话:悟空》都有哪些隐藏道具、Boss、剧情、地图?
来做个我所知的,全部的隐藏地图+boss+剧情梳理
目前一周目通关,刚开二周目,成就70/81。
另外,我会使用游民星空制作的互动地图进行截图,感兴趣的也可以直接去看。
黑神话悟空全收集互动地图_提供黑悟空全土地庙、妖王BOSS等点位信息
一、第一章·黑风山 1、隐藏地图黑风山有一张隐藏地图:隐·观音禅院。
开启方式是敲响地图上的三口钟,分别在“广智”、“广谋”、“白衣秀士”三个boss附近,具体如图。
等同于程序文件的,因为最终拟游戏运行还是要依赖于这些数据的。
你可以思考一个问题——如果你是一个unity项目,在项目中自己建立了一个,我们比如说地图数据表,它使用C#写的,比如你的目录结构中有一个Assets/DesignerData/Maps/下面都是CityOrgrimmar.cs,BattleFieldWarSongLumberCamp.cs这些,它们因为会被unity工程编译,所以他们就不是配置文件了吗?
是否是配置文件,不取决于他是编译时还是运行时,而是取决于它的内容干了什么。所以在题主的问题里,判断一个lua是程序代码的一部分,还是一个配置文件,取决于这个lua干 … ⌘ Read more
Leveraging technology on the frontlines of emergency: How communities of developers are taking action
From sending emergency alerts about nearby fires to mapping services in refugee camps, developers are taking action to solve global problems.
The post [Leveraging technology on the frontlines of emergency: How communities of developers are taking action](https://github.blog/2024-06-12-leveraging-technology-on-the-frontlines-of-emergenc … ⌘ Read more
New underwater drones helping map shipwrecks off WA coast
New underwater drones are helping map shipwrecks off the WA coast. ⌘ Read more
探索併發安全的 Go 語言 Map - 深入理解 cmap
在 Go 語言中,內建的map類型並不是線程安全的。也就是說,如果您在沒有任何併發控制的狀態下,在多個 goroutine 中對同一個map同時進行讀寫操作,那麼會出現競態條件(race condition),進而導致不可預見的結果。針對這一問題,地裏特(lrita)開發了cmap(concurrent-map),一個用於提供併發訪問的線程安全的map類型,它可以讓您在 Go 語言中更加方便地進行 ⌘ Read more
Blogroll Network Map
Robert Alexander built a pretty cool Blogroll Network Map. Based on scraped blogrolls, it builds and visualizes a map of blogs. It contains almost 500 feeds, a lot to explore for boring days! ⌘ Read more
Eclipse Path Maps
⌘ Read more
Eclipse Path Maps
⌘ Read more
Game Bytes · March 2024
Game Bytes is our monthly series taking a peek at the world of gamedev on GitHub—featuring game engine updates, game jam details, open source games, mods, maps, and more. Game on!
The post Game Bytes · March 2024 appeared first on The GitHub Blog. ⌘ Read more
使用 mapstructure 高效解析 Go 語言中的動態數據結構
在處理數據流(如 JSON、Gob 等)過程中,我們可能不知道底層數據的結構,這時mapstructure庫就能大顯身手了。這款 Go 語言庫可以將通用 map 值解碼爲 Go 本地結構,也可執行反向操作,並提供有用的錯誤處理功能。今天,我們就深入瞭解這個庫,並列舉一些豐富的示例來幫助你掌握它的使用方法。簡介–mapstructure是一款 Go 庫,允許開發者將map[string]inter ⌘ Read more
爲什麼 Golang Fasthttp 選擇使用 slice 而非 map 存儲請求數據
Fasthttp 是一個高性能的 Golang HTTP 框架,它在設計上做了許多優化以提高性能。其中一個顯著的設計選擇是使用 slice 而非 map 來存儲數據,尤其是在處理 HTTP headers 時。爲什麼呢?本文將從簡單到複雜,逐步剖析爲什麼 Fasthttp 選擇使用 slice 而非 map,並通過代碼示例解釋這一選擇背後高性能的原因Slice vs Map:基本概念——- ⌘ Read more