What's new with Go, from @googledevs IO
#golang
www.youtube.com/watch?v=kj8...
What's new with Go, from @googledevs IO
#golang
www.youtube.com/watch?v=kj8...
Something advanced for the Sunday?
Cross-compiling C and Go via cgo with Bazel
#golang
popovicu.com/posts/cross...
Completely convinced the software engineering discipline required to write #rustlang is higher than that required to write #golang which is higher than that required to write #python.
#rustlang www.feldera.com/blog/cutting...
It's a trap! Don't listen to him!
OK #golang experts! Without running this code, how many of these modify their parent's data value?
Playground: go.dev/play/p/FThEw...
Mutability of the caller's data is soo important, which is why #rustlang has a `mut` keyword. Without it, and without interior mutability, you can't.
#footgun
π¦ Pitfalls of Safe Rust
βMatthias Endler
#rust #rustlang #memorysafety
buggy golang code snippet
So many #golang #footgun code snippets, so little time. Quick! What does this print?
Playground: go.dev/play/p/cw_HO...
Many C developers won't like this #KubeCon keynote.
Greg Kroah-Hartman pitching moving to #Rust programming language in the #Linux OS kernel.
I like that he highlights the benefits not for programming but for reviewing and maintaining the #opensource codebase.
@linuxfoundation.org @cncf.io #rustlang
Because they are based on Tag Unions or Enume.
For ex, fn4 returns an error Fn4Err.Fn3Err.Fn2Err.Fn1Err.JsonParserError.
This can benefit the software architecture and even protect the code from an accidental change. I wrote everything here rm4n0s.github.io/posts/6-cant...
Jai can't be the C/C++ killer because it does not have Typed Stack Traces like Odin and Rust
nuage.quimerch.com/-/ewen/artic...
I haven't tried copilot as I don't trust AI, but if it can minimize googling then I will try it
Let's say you need to open a file and read it's data with tokio.
use tokio::fs::File
In the code, after opening a file to a variable, then you create a new line to read the file.
However, the variable doesn't show any method to read the file until you google for examples and discover AsyncReadExt
Yes, in crates that are dependencies but not yet used in code. Such a tool would reduce my googling 60% for examples.
Yes the list is growing, but I wish there was an auto complete on VSCode to give me the possible methods of an instance from extensions that I haven't import. This makes me google more for examples than I usually do.
As a golang developer, I am moving to rust only for three reasons:
- memory leaks in Go are a pain, especially when playing with gstreamers, GUI etc
- enums and 'thiserror' crate helps me write Typed Stack Traces (which Go can't do that)
- I can write code for everything
Simplicity
When you see Pattern Matching on it's finest π¦
#rust #rustlang
enjoy this post from niko; I like the framing of "foundational software" much better than "systems programming" #rustlang smallcultfollowing.com/babysteps/bl...
No it is not. The travel propaganda has influenced your opinion about Greece.
Just because you saw a beach, does not mean that whole country is beautiful.
Just compare Moscow, Berlin and Athens, and tell me which you like.
Lord Byron died from fever and not from a caliphate
No it is not.
First you look at beautiful Germany, and you say this is how they live in the rest of Europe, but it is not true. Come to Greece
Secondly, Russia has been sanctioned, and for that reason the wages are miserable.
If USA sanction EU, it will start look like Russia.
So you saying no country is really free, it is always manipulated by neighbors.
Even USA is manipulated by its closet neighbors.
So the question is, why allow a government manipulated by Germany, stop the participation of a party, manipulated by Russia, in the elections?
Like the current free Syria?
So you prefer ISIS Chechnya over the current dictator that knees to Russia?
Romania is a Slavic country and it looks like Russia. So I don't understand how they could see the difference between EU and Russia plutocracy
What is the difference between Chechnya and Turkey?
So why Romania should choose EU's plutocracy over Russia's plutocracy?
Ok let me give you an example.
Greece is Turkey's neighbor.
Turkey threatens Greece all the time with war.
Ukraine wants Turkey in EU.
Ukraine was never against Turkey for invading Cyprus to "protect" Turkish minorities.
With that info, should Greeks support Ukraine?
ALL countries have plutocracies!
Do you know a country that does not have plutocracy?