- भाषा में बदलाव
- Go 1.24 अब generic type aliases को पूरी तरह सपोर्ट करता है। Type aliases अब defined types की तरह parameters ले सकते हैं।
- परफ़ॉर्मेंस सुधार
- runtime में कई performance improvements किए गए हैं, जिससे प्रतिनिधि benchmarks में औसतन 2-3% CPU overhead कम हुआ है।
- इसमें नया built-in map implementation, छोटे objects के लिए memory allocation efficiency में सुधार, और runtime के अंदर नए mutex implementation शामिल हैं।
- टूलिंग सुधार
go command अब module की tool dependencies को track करने का mechanism देता है। go get -tool का उपयोग करके मौजूदा module में tool directives जोड़े जा सकते हैं।
go vet subcommand का नया test analyzer test package के tests, fuzzers, benchmarks, और example declarations में होने वाली आम गलतियों की रिपोर्ट करता है।
- standard library में जोड़
- standard library में अब FIPS 140-3 compliance के लिए नया mechanism शामिल है, और approved algorithms का उपयोग करने के लिए source code changes की ज़रूरत नहीं है।
- पहले x/crypto module में मौजूद कई packages अब standard library में उपलब्ध हैं।
- benchmarks अब अधिक तेज़ और कम error-prone
testing.B.Loop method का उपयोग कर सकते हैं।
- नया
os.Root type किसी विशेष directory के नीचे file system operations करने की क्षमता देता है।
- runtime अब
runtime.AddCleanup नाम का नया cleanup mechanism देता है, जो runtime.SetFinalizer की तुलना में अधिक flexible, efficient, और कम error-prone है।
- WebAssembly सपोर्ट में सुधार
- Go 1.24 में
go:wasmexport directive जोड़ा गया है, जिससे Go programs WebAssembly host को functions export कर सकते हैं, और यह Go programs को WASI reactor/library के रूप में build करने का भी समर्थन करता है।
1 टिप्पणियां
Hacker News राय
text/templateमें अब function types के support से संतुष्ट हूँrangeपेश किया गया था, लेकिन अब जाकर यह Go templates में काम करने लगा हैgo install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@latestइस्तेमाल कियाos.Rootका use case क्या हैChrootका इस्तेमाल नहीं करता, इसलिए लगता है कि आखिरकार कोई न कोई Root से बाहर निकलने का तरीका ढूंढ़ सकता हैtools.goहटाया जा सकेगाGODEBUG=fips140=onlyइस्तेमाल करने पर, जो cryptographic algorithms FIPS 140-3 के अनुरूप नहीं हैं वे error या panic लौटाते हैंGOAUTHकी वजह से कर रहा थाgo help goauthदेखकर बहुत ज़्यादा उम्मीद नहीं बंधती