Go 服务通信工具 Kun
Go 服务通信工具 Kun ⌘ Read more
What’s new from GitHub Changelog? November 2021 recap
We shipped a ton of updates in November, from the push notification for PR review activities on the go, to an easy way to create Markdown links. ⌘ Read more
GoCN 每日新闻(2021-12-13)
GoCN 每日新闻(2021-12-13)
- 尝鲜 Go 1.18 范型版本的 map 和 slice!https://juejin.cn/post/7040800455349239822
- Go 实现可序列化的 Roaring Bitmapshttps://dgraph.io/blog/post/serialized-roaring-bitmaps-golang/
- Go 使用 Github Actions 做 CI[https://www.alexedwards.net/blog/ci-with-go-and-github-actions](https://www.alexedwards.net/blog/ci-with-go-and-github … ⌘ Read more
Isode: Successfully Managing HF Radio Networks
With the potential for new technologies to cause interference to traditional communications networks and even space itself at the risk of becoming weaponised, it is important to make sure that you always have a backup plan for your communications ready and waiting.
Should the worst happen and your primary network, typically SatCom, go down you need to ensure that you can still communicate with your forces wherever they are, and that c … ⌘ Read more
BigCache 针对 Go 垃圾回收的设计优化
为什么有这篇文章某一天在群里摸鱼的时候,看到群里有人问 go map 的空间回收问题,把截图贴上吧:
其实一位群友发出的问题引起了我注意,他的问题是: go 的 map 的值调用了 delete 函数是不是不会立即删除?当然这个问题如果研究过或者深入 go 的内存分� … ⌘ Read more
高性能中文分词库 gojieba
gojieba 是什么?gojieba 是 Python 知名分词库结巴 jieba 的 Go 语言实现版本,底层分词算法由 C++ 实现,具备很高的性能; gojieba 解决了在做文本分析,文本搜索相关业务功能时的分词需求。
gojieba 支持多种分词方式:
- 全模式:把文本中所有可能的� … ⌘ Read more
fake english word generation for Go and CLI: [[https://github.com/nwtgck/go-fakelish]] #links
Apache Log4j 2 CVE-2021-44228
We know that many of you are working hard on fixing the new and serious Log4j 2 vulnerability CVE-2021-44228, which has a 10.0 CVSS score. We send our #hugops and best wishes to all of you working on this vulnerability, now going by the name Log4Shell. This vulnerability in Log4j 2, a very common Java […]
The post Apache Log4j 2 CVE-2021-44228 appeared first on Docker Blog. ⌘ Read more
GoCN 每日新闻 (2021-12-11)
- 快速搭建私有云服务 go-btfshttps://gocn.vip/topics/20839
- 基于寄存器调用的软件加速https://gocn.vip/topics/20835
- 详解布隆过滤器的原理和实现https://gocn.vip/topics/20832
- 动手实现一个 localcachehttps://mp.weixin.qq.com/s/ZtSA3J8HK4QarhrJwBQtXw
- Go:不用标准库如何解压 zip 文件?[https://m … ⌘ Read more
快速搭建私有云服务 go-btfs
快速搭建私有云服务 go-btfs 1. go-btfs 是什么?go-btfs go-btfs 是一个去中心化的文件存储平台,无论图片、文件、视频等等各类文件。
每个人都可以在自己电脑上安装部署 BTFS 节点,然后大家的节点相互连接,构成一个整体网络,
网络中某一个节点上传文件,其他节点就像访问本地一样直接下载使用。同时,它还支持冗余备份,使用 reed-solomn … ⌘ Read more
【上海】【米哈游】Golang 研发工程师
职位描述:
1、负责米哈游游戏的官网、活动的开发;
2、负责线上活动和游戏工具的维护和迭代;
3、归纳和封装活动的通用组件和基础服务;
岗位要求:
1、计算机相关专业本科及以上学历,有两年以上后台开发经验;
2、熟悉 Go 语言,有实际使用 Go 语言项目开发经验;
3、对微服务架构有一定程度的研究并有开发经验,在服务治理,服务监 … ⌘ Read more
GoCN 每日新闻 (2021-12-10)
GoCN 每日新闻 (2021-12-10)
- bob 一个从天上掉下来的构建工具https://github.com/benchkram/bob
- hackgo 编译器让 go 添加一个新的关键字https://avi.im/blag/2021/rc-day-24/
- 一个” 自由 “解析 xml 而不是预定义 struct 的工具https://github.com/xrfang/fxml
- 一个真开源的 mongodb 的替代者[https://github.com/FerretDB/FerretDB](https://gi … ⌘ Read more
@lyse@lyse.isobeef.org more often than not, it is! I mean, I try to go over the changes, but soon find myself in a web (not pun!), all entangled. Then say, “screw it!” and to the bin it goes. 🥴
GoCN 每日新闻 (2021-12-09)
GoCN 每日新闻 (2021-12-09)- Hugo v0.90.0 发布https://github.com/gohugoio/hugo/releases/tag/v0.90.0
- Docker 容器中使用 GPUhttps://segmentfault.com/a/1190000041090167
- 我好像发现了一个 Go 的 Bug? https://www.cnblogs.com/zhuochongdashi/p/15660936.html
- Go modules 基础精进,六大核心概念全解析� … ⌘ Read more
Today I learned that there is a new version 2 of Docker Compose. Docker Compose is now no longer a Python app, but a CLI plugin for Docker written in Go. And there is a Compose specification. ⌘ Read more
GoCN 每日新闻(2021-12-07)
- 带你重走 TiDB TPS 提升 1000 倍的性能优化之旅https://gocn.vip/topics/20825
- Go 不需要 Java 风格的 GChttps://itnext.io/go-does-not-need-a-java-style-gc-ac99b8d26c60
- 聊聊 TokenBucket 限流器的基本原理及实现https://gocn.vip/topics/20824
- Go - 如何编写 ProtoBuf 插件 (一)[https://mp.weixin.qq.com/s/yeqeMNsD0W1aOzK7RZcSIw](h … ⌘ Read more
聊聊 TokenBucket 限流器的基本原理及实现
限流器实现之 TokenBucket大家好,我是「Go 学堂」的渔夫子。上篇文章我们讲解了漏桶(LeakyBucket)的实现原理。本文我们介绍另外一种限流器 — 令牌桶(TokenBucket)。
令牌桶(TokenBucket)简介 令牌桶实现的基本思想令牌桶,顾名思�� … ⌘ Read more
GoCN 每日新闻(2021-12-05)
GoCN 每日新闻(2021-12-05)- Go 在 Google:服务于软件工程的语言设计(翻译) https://mp.weixin.qq.com/s/3F9WAcxuCNCs7aNn5gjnew
- 详解布隆过滤器原理与实现https://mp.weixin.qq.com/s/5zHQbDs978OoA3g83NaVmw
- 令人惊叹的软件架构[https://github.com/mehdihadeli/awesome-software-architecture](https://github.com/mehdihadeli/awesome-software-archite … ⌘ Read more
GoCN 每日新闻 (2021-12-04)
- https://mp.weixin.qq.com/s/O-6FdYn2l8hxOfGUUz9CHg grpc context
- https://mp.weixin.qq.com/s/qvXr7300EX7HrB4KlspPGQ 蚂蚁集团大规模 Sigma 集群 ApiServer 优化实践
- https://mp.weixin.qq.com/s/qaDfrlc1UR8_q6SGGaGB0Q Go 操作 Kafka 如何保证无消息丢失
- [https://mp.weixin.qq.com/s/T5Kc8vETz7Dmp0KVQP7YNg](https://mp.weix … ⌘ Read more
更严格的代码格式化工具 gofumpt
前言gofmt 是 golang 自带的代码自动格式化工具,是保证 Go 代码风格一致的大杀器。我们这次要推荐的 gofumpt 在 gofmt 的基础上添加了一系列更加严格的格式化规则,并保证了对 gofmt 的兼容。
gofumpt 有助于进一步提升代码质量,它已经成为 gopls(Go 官方语言服务)中可选的格式化工具以及 golangci-lint 中支持的 linter,正在被越来越多优秀的开源项目(sourcegraph� … ⌘ Read more
Underscores in Imports
Underscores in Imports Underscores in Go serve a few purposes. In U+005F, “_” is a letter (as a string). You may also see them as [ “_” ] in between successive digits and a base prefix. In this case, it’s to improve the readability of the code. You may also see them in function names, e.g., imaginary_lit.
The underscore is quite a versatile tool. They even have their place in defining the kind of action that will take place in a function. ⌘ Read more
New repository: aquilax/go-template-playground - Browser Go Template Playground
Powering Starlink on the go with Tesla Model 3
I’ve had my Tesla Model 3 for more than a year now. It has been an
absolute pleasure so far and I would not trade it for anything else at
any price including Tesla’s other offerings (yes, talking about S
Plaid). Model 3 just has the most beautiful exterior of any other car.
OK, let’s stop here because I can go on forever. But not without a photo
of Tin Can:
“Tin Can” is a r … ⌘ Read more
DS9 is best Star Trek. And that last second half of the last season where they go all out. chef kiss
DS9 is best Star Trek. And that last second half of the last season where they go all out. chef kiss
Advent of Code ‘21
New year, new code advent calendar. This year I’m trying my hand at Advent of Code once again in Go. This time with a little help from the copilot. Let’s see if I make it to the end, or have to give up early again… ⌘ Read more
New repository: aquilax/indexnow - Go package for submitting URLs for crawling using the IndexNow protocol
My November ‘21 in Review
Welcome to my monthly review for November 2021. What was going on this month? ⌘ Read more
New repository: aquilax/cooklang-go - Cooklang parser
No on gitlab. If its self hosted gitea is best in class.
I can see hosting a mirror on github if only for the redundancy/visibility. Some projects will host but then direct contributions on their self host. Like Go does.
I would suggest using a vanity domain that can redirect tools like go get to hosting of choice. And not require rewriting all the packages any time it gets moved.
No on gitlab. If its self hosted gitea is best in class.
I can see hosting a mirror on github if only for the redundancy/visibility. Some projects will host but then direct contributions on their self host. Like Go does.
I would suggest using a vanity domain that can redirect tools like go get to hosting of choice. And not require rewriting all the packages any time it gets moved.
JavaScript : web apps
wut?! 😳 seriously?! 🤦♂️
Python : small tools
Okay 👌
Go: micro services
Umm bad generalization 🤣 – Example yarnd that powers most of Yarn.social 😂
Java: enterprise software
Yes! Oh gawd yes! 🤣 And Java™ needs to die a swift death!
C: crimes
Hmmm? 🤔 I feel this one is going to have some backslash and/or go the way of “Hacker” being misconstrued to mean entirely different/incorrect things as is what’s happening in the media (for various definitions of “media”).
Yep! https://git.mills.io/yarnsocial/yarn/src/branch/master/internal/webmention/webmention.go#L150-L156
Yep! https://git.mills.io/yarnsocial/yarn/src/branch/master/internal/webmention/webmention.go#L150-L156
New theme for yarn is up now at: https://git.mills.io/sorenpeter/darchTheme
Still needs some work, but please have a go with it and hack away
Red Hat to hire less experienced engineers, pay less going forward
The Linux giant plans to keep a “flat budget” while adding 200 employees… by hiring fewer senior programmers ⌘ Read more
Struct Tags with Underscore Before Function Names
In the Go world, an underscore (_) before an expression is called a blank identifier. As you may already know, identifiers—user-defined program components, e.g., name of a function, variable, or package—in Go must be preceded by an underscore or a letter (a-z or A-Z). If they aren’t, you’ll receive the compile- time error which essentially means Go cannot read the syntax of your code (you didn’t write your code correctly … ⌘ Read more
The best part of Pokémon Go is hatching eggs. I just wish I could queue up eggs for the incubators so I didn’t have to check my phone every now and again. Actually, I wish there was a game where you just hatched eggs.
Wirecutter
⌘ Read more
Screaming In the Cloud with Corey Quinn and Docker CEO Scott Johnston
On August 31st, Docker announced updates to our product subscriptions — Docker Personal, Pro, Team and Business. Our CEO Scott Johnston recently joined Corey Quinn on an episode of Screaming in the Cloud to go over all the details and discuss how the changes have been received by businesses and the broader developer community. The […]
The post [Screaming In the Cloud with Corey Quinn and … ⌘ Read more
Now, onto the real question: what to eat? Partner isn’t home, so zero nutritional supplements have been consumed, and I have been lazy enough not to go out to fetch me something. So… hmm, yeah. Going to an eight years old niece birthday “roller scatting” party in an hour, maybe I get lucky with a slice of pizza, or two. 🤣
@movq@www.uninformativ.de
Aha! Cool! Not just deleting, but proceeding as if the twt is going to be send. If I :q! on vi it will add an empty line. If, instead, I go :x like I normally do, it works as you said—and as I wanted it. Thanks!
Is it me, or Gmail’s web interface is going down the drain? Using Safari—my default browser—often takes two, or three clicks to open an email. If it weren’t because its search is amazing, I would never visit its web interface.
@eldersnake@yarn.andrewjvpowell.com
Seems like you need to make your parser smarter. Go tinker! 😋
Now, if there is going to be some sort of price, which for me equals to profit, then I will twt non-stop until I hit it! 🤣
Having used—and still using—1Password (a password manager) for many years, I have gone through a few stages of disliking/frustration with it. The first was when subscriptions were set in place, the second is now, with their approach for auto-filling under iOS. It is, more often than I would like to, telling me to configure it when I did so from day one. My open support ticket isn’t going too far either.
I wish iCloud KeyChain would mimic some of its features, so I can just dump it. KeyChain has improved a lot, now allowing OTP to be saved with a credential, but it is still not quite there yet.
Apple’s event on Monday is bringing, as always, speculation to the table. One thing most outlets seem to agree is the introduction of an “M1X” chip, thought Apple might call it differently. M1X might also mean, M1(we don’t know what comes after, or next generation). Either way, I would really like to see the return of the 27” iMac, but I will not hold my breath. Nevertheless, Monday is going to be an exciting day for many, including me! 🍎
@adi@f.adi.onl Oh boy… we don’t want to go down that route. There is plenty to know about the Taliban, not just from the news but from people who lived—and still lives—under their “governance”; all of which is, I am afraid, much more accurate than your highschool girlfriend story telling.
@prologic@twtxt.net Hopefully this URL change fixes things. Otherwise I am lost; don’t know what’s going on. 😩
or maybe there are no living gargoyles, but whenever they go missing, for those few days, you may be able to pay your tab with stories
We need to talk about not going to war with China | with Allan Behm ⌘ Read more
** How to install Uxn on macOS **
Uxn is an esoteric stack-machine with 32 bit instructions. It exists someplace at the intersection of a GameBoy, 6502 ASM, an Apple II, Forth, RetroForth, the z80, a Sinclair ZX Spectrum, and“what if Nausicaä from Studio Ghibli’s Nausicaä of the Valley of the Wind used a computer?” It is tiny, unlike most anything else around these days, and, once you wrap your head around it, pretty fun.
I won’t go into how to develop for it … ⌘ Read more
I never seem to run out of projects to do. Some slosh around as mere ideas until I decide not to do them for whatever reason, but even so there’s enough to go around and then some.
thinking about a building something in the realm of !gesture that could work alongside !gest. The core principle of gest is line construction using breakpoints and an external clock. This new system, which I think I will call sloop, is more about making lines using slope. It would work by sending it messages: go from here, to there, in some amount of time, and use an external clock. If it reaches there, you have arrived. If a new message arrives before you get there, you are already here, now you have a new there. I think this approach would lend itself well to more open-ended kinds of gestures. #halfbakedideas
You cannot reduce the complexity of your problem by increasing the complexity of your language. Brooks, Wirth and Go. | Fredrik Holmqvist
So tired today, despite going to bed early. Well, I guess it’s just one of those days. It’ll be alright.
In reply to: 1980s computer controls GRPS heat and AC
A Kentwood High School student programmed it when it was installed in the 1980s. Whenever the district has a problem with it, they go back to the original programmer who still lives in the area. ⌘ Read more
people who use kilowatt-hours of something should go f**k themselves
New repository: aquilax/matchpattern - Match Pattern go library
censors will censor complaints about being censored. therefore we should complain about censorship all the time – once those complaints disappear, we know things are going downhill.
setting where uplifted beavers maintain humanity’s hydro plants, beavers go on beaver hajj to visit the Three Gorges Dam, some branch out into solar satellites, others hijack a nanofactory and build the Gibraltar Dam while humanity is distracted
GitHub brings supply chain security features to the Go community ⌘ Read more…
If you must read the rest of this document to understand the behavior of your program, you are being too clever. Don’t be clever. The Go Memory Model - The Go Programming Language
Installing minikube on my Arch Linux. Going to learn kubernetes sometime
Installing minikube on my Arch Linux. Going to learn kubernetes sometime
I think I have found something worth working on relentlessly for the next few days and thats what Im going to do
What’s going on with the Gas-led Sh*tf*ckery | with Lock the Gate ⌘ Read more
New repository: aquilax/temporal-api - Go implementation of ECMAScript’s Temporal API
You need to go to shit-ton of schools to be able to make simple decisions. Otherwise you’ll start to invent all kinds of over-complicated solutions. Clever vs. Insightful Code | Hacker News
When tragedy strikes unexpectedly we cannot just go on as if nothing happened. Our minds need to be given time to deal with the blow. So it is necessary to pause and allow ourselves to process and recover.
A beloved colleague passed away after a terrible car accident a couple of days ago. Thoughts go to her family and colleagues.
Entirely sensible, & no reason for file storage to match the wire format. I’m just really curious what’s going on on macOS! I can test on hfs+ later.
I put my mouse on my Mac on the right side for reasons. My Windows machine always has the mouse on the right. Wanted to go Back on my Mac and…pressed mouse4, just like I’d do on Windows. Muscle-memory prompts are…interesting.
Yes, I can shoehorn interpreting extropianism into every poem by Schiller. This is going to be a regular thing.
Stay frosty: possible test stream on PeerTube and YouTube in a bit
I’m going to probably be doing a test livestream in a bit. Hopefully I fixed the issue in the previous stream with Pulseaudio and buffering.
I’ll probably go live on PeerTube first, test it there, then test it on YouTube. I’m mobile and on limit battery though, so it won’t be a super long stream if everything works out.
PeerTube stream will be at this link: [https://videos.lukesmith.xyz/vi … ⌘ Read more
I had a Pleroma node up for a little bit. It sort of died for some reason a few months later because its resource usage kept going up.
I had a Pleroma node up for a little bit. It sort of died for some reason a few months later because its resource usage kept going up.
[47º09’21”S, 126º43’15”W] Gotta go on
I keep going back ‘n’ forth on whether to experiment with Pleroma on my Pi. :-) A Tildes post on the sad news that Feneas is struggling has rekindled the fire, oddly. I just like knowing, first-hand, what’s involved in running these services; I feel it makes me a better yarn.social advocate. ^⨰^
@lyse@lyse.isobeef.org @adi@twtxt.net @prologic@twtxt.net @movq@www.uninformativ.de Awesome man! Welcome to the Go coding for work club!
@lyse@lyse.isobeef.org @adi@twtxt.net @prologic@twtxt.net @movq@www.uninformativ.de Awesome man! Welcome to the Go coding for work club!
if you’re weird, spending time around non-weird people is not going to make you more normal. but if you spend time with marginally less weird people, you’re probably going to become less weird.
I wish someone would finally start a better revolution than just going outside at night.
Livestream on PeerTube ONLY at 10AM New York time
As the title says, I’ll be livestreaming today on PeerTube only at this link.
I’ll talk about finishing my book reptinting project that you’re going to want to know about and perhaps “recent events” (several weeks late)
for example, on Richard Stallman.
I’ll read donations I get if you want to talk about other things.
If you haven’t already, subscribe to my PeerTube’s RSS feed to get up … ⌘ Read more
Just over a week left to apply to Summer of Code. Plan 9 is in there, and ~200 other good orgs. Go apply and tell students you know. https://summerofcode.withgoogle.com/
Bringing back blog system.
For the benefit of RSS users, I’m going to bring back the blog feature
on my website, which is done with lb,
a minor script I wrote a while ago.
This is where I’ll be posting updates. Old blog entries, while not on the RSS feed
still exist via their permalinks and can be accessed
from lukesmith.xyz/blog. ⌘ Read more
when your work is done, forget it Ask HN: Those who quit their jobs to travel the world, how did it go? | Hacker News
Sure. I think search, if it’s going to exist, should be the client’s responsibility. But I also value the readability of the raw twtxt file a lot more than y’all do.
Bookmarking this to read over a few more times. https://dave.cheney.net/practical-go/presentations/qcon-china.html #practical #GO
Bookmarking this to read over a few more times. https://dave.cheney.net/practical-go/presentations/qcon-china.html #practical #GO
Barriers to entry are invisible. They are invisible to people on the inside and most frequently invisible to people who have a hand in creating those barriers. Go is not an easy language | Hacker News
https://Based.Cooking (non-bloated, non-soydev recipes and more)
Well, I figured that it’d be best and I go ahead and start a recipe site, since it came up. I’ll go ahead and tell you RSS chads.
It’s based.cooking (yes, apparently .cooking is a TLD nowadays).
The site isn’t much of a looker now. Just simple CSS, so feel free to open PRs with elegant improvements.
I don’t have much time today, so I’ll leave it to other people.
I might record a video on the site this evening or tomorr … ⌘ Read more
@niplav@niplav.github.io I wouldn’t disagree with your characterization of people who’re interested in radical life extension, but their messaging, generally, seems to not mention “adding life to your years” at all. “Live to be 150” doesn’t sound all that great if you’re going to have 15 years of being in your 80s, so to speak.
finally go around to completing my !donutmuffins recipe.
@lyse@lyse.isobeef.org (#hut4mnq) I am so sorry for you. I left my Java job for Go. Though through “restructuring” its become a Python job.
@lyse@lyse.isobeef.org (#hut4mnq) I am so sorry for you. I left my Java job for Go. Though through “restructuring” its become a Python job.