Searching txt.sour.is

Twts matching #GO
Sort by: Newest, Oldest, Most Relevant

GoCN 每日新闻(2021-12-13)
GoCN 每日新闻(2021-12-13)

  1. 尝鲜 Go 1.18 范型版本的 map 和 slice!https://juejin.cn/post/7040800455349239822
  2. Go 实现可序列化的 Roaring Bitmapshttps://dgraph.io/blog/post/serialized-roaring-bitmaps-golang/
  3. 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

⤋ 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

⤋ Read More

BigCache 针对 Go 垃圾回收的设计优化

为什么有这篇文章

某一天在群里摸鱼的时候,看到群里有人问 go map 的空间回收问题,把截图贴上吧:

Image

其实一位群友发出的问题引起了我注意,他的问题是: gomap 的值调用了 delete 函数是不是不会立即删除?当然这个问题如果研究过或者深入 go 的内存分� … ⌘ Read more

⤋ Read More

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

⤋ Read More

快速搭建私有云服务 go-btfs

快速搭建私有云服务 go-btfs 1. go-btfs 是什么?

go-btfs go-btfs 是一个去中心化的文件存储平台,无论图片、文件、视频等等各类文件。
每个人都可以在自己电脑上安装部署 BTFS 节点,然后大家的节点相互连接,构成一个整体网络,
网络中某一个节点上传文件,其他节点就像访问本地一样直接下载使用。同时,它还支持冗余备份,使用 reed-solomn … ⌘ Read more

⤋ Read More

【上海】【米哈游】Golang 研发工程师
职位描述:

1、负责米哈游游戏的官网、活动的开发;

2、负责线上活动和游戏工具的维护和迭代;

3、归纳和封装活动的通用组件和基础服务;

岗位要求:

1、计算机相关专业本科及以上学历,有两年以上后台开发经验;

2、熟悉 Go 语言,有实际使用 Go 语言项目开发经验;

3、对微服务架构有一定程度的研究并有开发经验,在服务治理,服务监 … ⌘ Read more

⤋ Read More

GoCN 每日新闻 (2021-12-10)
GoCN 每日新闻 (2021-12-10)

  1. bob 一个从天上掉下来的构建工具https://github.com/benchkram/bob
  2. hackgo 编译器让 go 添加一个新的关键字https://avi.im/blag/2021/rc-day-24/
  3. 一个” 自由 “解析 xml 而不是预定义 struct 的工具https://github.com/xrfang/fxml
  4. 一个真开源的 mongodb 的替代者[https://github.com/FerretDB/FerretDB](https://gi … ⌘ Read more

⤋ Read More

聊聊 TokenBucket 限流器的基本原理及实现

限流器实现之 TokenBucket

大家好,我是「Go 学堂」的渔夫子。上篇文章我们讲解了漏桶(LeakyBucket)的实现原理。本文我们介绍另外一种限流器 — 令牌桶(TokenBucket)。

Image

令牌桶(TokenBucket)简介 令牌桶实现的基本思想

令牌桶,顾名思�� … ⌘ Read more

⤋ Read More

GoCN 每日新闻(2021-12-05)

GoCN 每日新闻(2021-12-05)
  1. Go 在 Google:服务于软件工程的语言设计(翻译) https://mp.weixin.qq.com/s/3F9WAcxuCNCs7aNn5gjnew
  2. 详解布隆过滤器原理与实现https://mp.weixin.qq.com/s/5zHQbDs978OoA3g83NaVmw
  3. 令人惊叹的软件架构[https://github.com/mehdihadeli/awesome-software-architecture](https://github.com/mehdihadeli/awesome-software-archite … ⌘ Read more

⤋ Read More

更严格的代码格式化工具 gofumpt

前言

gofmt 是 golang 自带的代码自动格式化工具,是保证 Go 代码风格一致的大杀器。我们这次要推荐的 gofumptgofmt 的基础上添加了一系列更加严格的格式化规则,并保证了对 gofmt 的兼容。

gofumpt 有助于进一步提升代码质量,它已经成为 gopls(Go 官方语言服务)中可选的格式化工具以及 golangci-lint 中支持的 linter,正在被越来越多优秀的开源项目(sourcegraph� … ⌘ Read more

⤋ 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

⤋ Read More

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:

Image

“Tin Can” is a r … ⌘ Read more

⤋ Read More
In-reply-to » Extraordinary that I've managed to avoid DS9 spoilers for twenty years. Really enjoying this final season, so far.

DS9 is best Star Trek. And that last second half of the last season where they go all out. chef kiss

⤋ Read More
In-reply-to » Extraordinary that I've managed to avoid DS9 spoilers for twenty years. Really enjoying this final season, so far.

DS9 is best Star Trek. And that last second half of the last season where they go all out. chef kiss

⤋ Read More

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

⤋ Read More
In-reply-to » 🤔 👋 Reconsidering moving Yarn.social's development back to Github: Speaking of which (I do not forget); @fastidious and I were discussing over a video call two nights ago, as well as @lyse who joined a bit later, about the the whole moved of all of my projects and their source code off of Github. Whilst some folks do understand and appreciate my utter disgust over what Microsoft and Copilot did by blatantly scraping open source software's codebases without even so much as any attempt at attribution or respecting the licenes of many (if not all?) open source projects.

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.

⤋ Read More
In-reply-to » 🤔 👋 Reconsidering moving Yarn.social's development back to Github: Speaking of which (I do not forget); @fastidious and I were discussing over a video call two nights ago, as well as @lyse who joined a bit later, about the the whole moved of all of my projects and their source code off of Github. Whilst some folks do understand and appreciate my utter disgust over what Microsoft and Copilot did by blatantly scraping open source software's codebases without even so much as any attempt at attribution or respecting the licenes of many (if not all?) open source projects.

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.

⤋ Read More
In-reply-to » Use C do crime! https://cdn.masto.host/pdxsocial/media_attachments/files/107/294/565/215/390/680/original/1d29c85c0aa4c9a5.png

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”).

⤋ 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

⤋ 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.

⤋ 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

⤋ 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. 🤣

⤋ Read More
In-reply-to » @movq OK, I am on request/question asking mode today. 😋 How do you cancel a twt, or a reply to a twt? Say I hit my reply, and then I change my mind? Right now, even exiting vi is creating an empty line on my twtxt.txt. Is there an obvious way to cancel a twt, reply, or fork that I am missing?

@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!

⤋ Read More

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.

⤋ Read More

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.

⤋ Read More

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! 🍎

⤋ Read More

@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.

⤋ 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

⤋ 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.

⤋ Read More

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

⤋ Read More

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.

⤋ Read More

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

⤋ Read More

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.

⤋ Read More

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.

⤋ Read More

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.

⤋ Read More

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

⤋ Read More
In-reply-to » 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. ^⨰^

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.

⤋ Read More
In-reply-to » 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. ^⨰^

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.

⤋ Read More

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.

⤋ Read More

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

⤋ Read More

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

⤋ Read More

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.

⤋ Read More

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

⤋ Read More