Searching txt.sour.is

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

Prosodical Thoughts: Prosody 0.11.13 released
We are pleased to announce a new minor release from our stable branch.

This is a(nother!) release for our stable branch to fix a memory leak caused
by the security fix. Deployments using websockets, SQL storage and possibly
other configurations may have noticed increasing memory usage after upgrading
to 0.11.12. This is resolved by this new release.

A summary of changes in this release:

Minor changes

⤋ Read More

从 CPU 角度理解 Go 中的结构体内存对齐
大家好,我是 Go 学堂的渔夫子。今天跟大家聊聊结构体字段内存对齐相关的知识点。

原文链接: https://mp.weixin.qq.com/s/H3399AYE1MjaDRSllhaPrw

大家在写 Go 时有没有注意过,一个 struct 所占的空间不见得等于各个字段加起来的空间之和,甚至有时候把字段的顺序调整一下,struct 的所占空间又有不同的结果。

本文就从 cpu 读取内存的角度来谈谈内存对齐的原理。

01 结构体字段对齐示例

我们先从一个示例开始。T1 结构体,共有 3 个字段,类型分别为 int8,int64,int32。所以变量 t1 所属的类型占用的空间应该是 1+8+4=13 字节。但运行程序后,实际上是 24 字节。和我们计算的 13 字节不一样啊。如果我们把该结构体的字段调整成 T2 那样,结果是 16 字节。但和 13 字节还是不一样。这是为什么呢?

”`
type T1 struct {

f1 int8  // 1 byte
f2 int64 // ... ⌘ [Read more](https://gocn.vip/topics/20967)```

⤋ Read More

他来了,他来了,GopherChina 2022 带着邀请走来了

Image

一年一度的 GopherChina 大会 is coming~

GopherChina 2022 今年举办地依旧选在了我们的首都北京,大会现场还是那个熟悉的地方

Image

,作为 Gopher China 即将举办的第八届大会,我们希望以更有趣好玩的形式呈现给大家,当然内容依然是大会的重重中之重,所以快把你所心仪的选题分享给我们吧,我们已经做好了一个准备住的大动作了

Image

时间:北京市海淀区丰智东路 13 号 (朗丽兹西山花园酒店)
地点:2022.06.11 - 2022.06.12

选址虽然还是那个老地方,但是近几年,Go … ⌘ Read more

⤋ Read More

Netflix Raises Monthly Subscription Prices in US, Canada
Netflix has raised its monthly subscription price by $1 to $2 per month in the United States depending on the plan, the company said on Friday, to help pay for new programming to compete in the crowded streaming TV market. From a report: The standard plan, which allows for two simultaneous streams, now costs $15.49 per month, up from $13.99, in the Unite … ⌘ Read more

⤋ Read More

GoCN 每日新闻(2022-01-14)

  1. 《Go 组件设计与实现》-netpoll 的总结https://www.cnblogs.com/codexiaoyi/p/15798780.html
  2. Uber 對 Golang GC 的調整https://blog.gslin.org/archives/2022/01/13/10503/uber-%e5%b0%8d-golang-gc-%e7%9a%84%e8%aa%bf%e6%95%b4/
  3. 基于 etcd 实现大规模服务治理应用实战https://mp.weixin.qq.com/s/zOZrCNZ9X6IyKxzRMeReWg
  4. 勒索软件正在用 Go 重写,用于联合攻击 Window … ⌘ Read more

⤋ Read More

The Open Source Software Security Summit: securing the world’s code together
My colleague Stormy Peters and I are proud to represent GitHub at the White House’s Open Source Software Security Summit to share how securing open source begins by empowering developers. ⌘ Read more

⤋ Read More

GoCN 每日新闻 (2022-01-13)
GoCN 每日新闻 (2022-01-13)

  1. Golang《基于 MIME 协议的邮件信息解析》部分实现https://gocn.vip/topics/20948
  2. 泛型可以拯救 Golang 笨拙的错误处理吗?https://blog.dnmfarrell.com/post/can-generics-rescue-golangs-clunky-error-handling/
  3. 更多的并行,并不等同更高的性能https://convey.earth/conversation?id=44
  4. 为什么 Go 有两种声明变量的方式,有什么区别,哪种好? [https://mp.weixin.qq.com/s/ADwEhSA1kFOFqzIyWvAqsA](https://mp.weixin.q … ⌘ Read more

⤋ Read More

「央视网」武汉洪山关山哪 sn《手机新浪网》
武汉洪山关山哪 sn[電维√I73-433O-3I64√],更多关于武汉洪山关山哪 sn 资讯如下:
B 集团持有的 2.06 亿股股份将被解禁,解禁市值超 120 亿元。在此之前,“公募一哥” 张坤已于近期大规模减持其股份。
这一减持数据的披露源自于 12 月 14 日苏泊尔发布的 “每股 1 元” 的股权激励计划。按照最新发布数据,截至 12 月 13 日,张坤管理的易方达优质精选已不在苏 … ⌘ Read more

⤋ Read More

「2021 央视新闻」武汉汉口武昌哪家喝茶吧 sn《手机搜狐网》
武汉汉口武昌哪家喝茶吧 sn[十维√I73-433O-3I64√],更多关于武汉汉口武昌哪家喝茶吧 sn 资讯如下:

丰园二期临时核酸采样点。
12 月 16 日,08:00 小区楼下菜市场、家生活超市(长丰园店)。
12 月 17 日,02:00 被管控。
确诊病例 4 张某
12 月 10 日—11 日,偶尔在雁塔区便民菜市场及附近店铺购物。
12 月 12 日,13:30—15:00,文艺路珠�� … ⌘ Read more

⤋ Read More