Go just got better

preview_player
Показать описание
Go 1.24 is here, and it finally makes the language better. This update brings key improvements that fix long-standing issues and make Go even better for developers.

Go 1.24 Release notes:

SwissTable design:

Check out PFGLabs to learn how to write Go:

### Twitch
I stream live on Twitch every weekend
Join the amazing community on Discord
I post memes and host Twitter Tech Spaces

SUBSCRIBE OR GET LAID OFF
╔═╦╗╔╦╗╔═╦═╦╦╦╦╗╔═╗
║╚╣║║║╚╣╚╣╔╣╔╣║╚╣═╣
╠╗║╚╝║║╠╗║╚╣║║║║║═╣
╚═╩══╩═╩═╩═╩╝╚╩═╩═╝

Go is officially back
Why does everyone love Go 1.24?

#coding #neovim #typescript #programming #vim #softwareengineering #codinglife #webdesign #webdevelopment #webdev #javascript #rustlang #rust #twitch #twitchstreamer #programmerhumor #codinghumor #software #softwareengineer #softwaredeveloper #softwaredevelopment #gymbro #gym #programmerhumor #programming #coding #golang #go #golanguage #php #laravel
Рекомендации по теме
Комментарии
Автор

From a cybersecurity perspective, the Root object should prevent directory traversal attacks. So if the user is somehow able to control the path to a resource they cant just spam "../../../../../" a bunch of times in the path.

gradycdenton
Автор

Swiss Tables in map in Go are a real performance boots, especially for large data structures. I wonder what other optimizations are waiting for us in the future! Thanks for the review!!!

Zmey
Автор

Another pretty neat thing is that applications in general should become faster, as map is ubiquitous in the standard library.

mikaelfrosthage
Автор

Go is already such a great language and I always wonder what would even they update here : Then there comes more good stuff.

sideone
Автор

I learned a new thing about swiss tables! The different between chaining and Linear Probing!

bigbraino-bm
Автор

sync-Map is my favorite way to work with data in memory and swiss tables make Redis just that much more obsolete. Sure I can't prefork the app, but it doesn't matter when memory operations are that much faster. Then I simply use SQLite to persist writes from the map for loading on app init.

OldKing
Автор

I am liking everything about Go 1.24. Also, the nuanced directory-scoped filesystem access feature is also very helpful for creating backend APIs which require you to store a filename after uploading a file. Now, using this feature, we won't have to check if the filename is a path or not to prevent security vulnerabilities.

arijit..
Автор

Coming here from Rust!🦀 Go is my favorite language now!

OregonEatsAndTales
Автор

1.24 released MLKEM algorithm which is quantum-resistant asymmetric encryption

asnafix
Автор

Could you increase the font size? It would be better to present the code.

AdamFiregate
Автор

Funny, I bumped go to version 1.23.6 just a couple days ago. Guess I'm upgrading again today :) Nothing out of the ordinary in this release, but a solid one.

mikaelfrosthage
Автор

Have they finally fixed error handling?

pablog
Автор

i wish they add watch feature inbuilt that is my main issue with go build / go run

jazzdestructor
Автор

just yesterday i got bruised by the fact that indexing a string returns a byte, but ranging over it returns a rune. sad

andreichicu
Автор

omitzero still feels like it will miss a lot at json encoding/decoding. null is a meaningful value, as are zero values. If your API or db can accept null, or your users need to know about zero values and null, and if you need to know when a field is missing vs when it is null, you are still gonna have to use pointers.

I like Go, but JSON is a rough spot for it if you want to use structs instead of just using maps everywhere.

FlanderJam
Автор

now add Enums and we're ready to Go!!

devrodox
Автор

What do you mean by "finally"? -_-

shinebayar
Автор

I wish for a ternary operator... I know that may never came lmao.

laurosantana
Автор

This generic type alias would have helped me enjoy my last job so much more

Patrickdaawsome
Автор

Can we please have the link to the article .

LielAlmog