veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

300
active users

#go

27 posts23 participants0 posts today

🌗 在 Go 中解碼 JSON 聯合類型而不會引發恐慌
➤ Go 語言中的聯合類型及其在 JSON 解碼中的應用
nicolashery.com/decoding-json-
在這篇文章中,尼古拉斯·埃裏(Nicolas Hery)探討瞭如何在 Go 中解碼 JSON 的聯合類型以避免運行時恐慌,並介紹了聯合類型的重要性和用法。
+ 這篇文章對於想要深入瞭解 Go 語言中 JSON 解碼技術的讀者來說非常有價值。
+ 作者對聯合類型和 Go 語言的融合方式進行了清晰而深入的探討,使讀者更容易理解相關概念。
#Go 程式語言 #JSON 解碼 #聯合類型

Nicolas Hery · Decoding JSON sum types in Go without panickingThe Go programming language doesn't have native support for sum types, but we'll see how we can emulate them, how to decode and encode them into JSON, and how in some cases they can help avoid runtime panic exceptions.

I'm thinking about starting a Go club. The nearest official one is 3 hours away in Louisville. This would start as just a little get together to learn and play, but if people are interested we could make it official signing up with the AGA and figuring out a proper meeting location instead of just "the park". We'll see, I own two go boards myself.

> Modern languages are not using the zero-character to terminate strings, but C does it a lot.

This is NOT true. Why is everybody confusing C (the language) with the C Standard Library? The C language doesn't know anything about terminating strings with a zero character (0x00) byte. What you referring to is the C Standard Library, not C the language.

youtu.be/5_oqWE9otaE?si=Su31eQ

#C#Rust#Zig

Just published a new blog comparing Rust and Go from my perspective.

After months of working with both, I've found that Go feels like it was designed to be learned in a weekend, while Rust demands your respect and attention.

Which would you choose to learn first?

Check out my full thoughts here: **smsk.dev/2025/03/16/rust-vs-go**

devsimsek's Blog · Rust vs. Go: A Tale of Two Systems Languages - devsimsek's BlogAn honest comparison of Rust vs Go for web developers looking to expand their skills, featuring code examples, performance insights, and...

Why not Rust?

I recently listened to Anders Hejlsberg’s interview on porting TypeScript to Go. So many fascinating insights!

The choice came down to automatic garbage collection: TypeScript relies on it, and Go provides it. Rust, with its strict ownership model and lack of built-in GC, struggled with TypeScript’s heavy use of cyclic data structures, making Go the better fit.

I invite everyone to listen to the interview.

youtube.com/watch?v=10qowKUW82

#typescript#go#rust

Share of programming languages used by #GTK3 / #GTK4 applications (2025-03-16):

28% #Python
21% #Vala
20% #Rust
17% #C
06% #C++ #Cplusplus
06% #gjs #Javascript
04% Other: #Csharp #Go #Lua #Haskell #Swift #Typescript #Crystal #Swift #D #Perl

63% use GTK4 (90% of them use #libadwaita), while still 37% use GTK3

Method: Source [1] lists 543 awesome #gtk (3/4) #opensource applications and their #programminglanguage

[1] github.com/valpackett/awesome-

#GTK #FLOSS #Linux #Programming #Gnome

@GTK @gnome