Komunitas
feddit.de
Naja, die Implementierunsgsprache ist zwar auch wichtig, aber das Design von Protokollen, Datenstrukturen, Code/Concurrency und Infrastruktur ist gar nicht so sehr abhängig davon. Das ist mir schon oft in der OOP-Welt aufgefallen. Nur weil etwas in einer objektorientierten Sprache implementiert ist, hat es nicht automatisch ein gutes bzw. gut skalierbares Design. Ähnliches gilt auch für Rust oder Golang, obwohl beide natürlich spezielle Stärken haben wie memory safety und concurrency.
Komunitas
programming.dev
Google: It’s a three-pronged attack: sub-liminal, liminal and super-liminal. Lisa: Superliminal? Google: I’ll show you. (leans out of window) Hey, you! Code in Golang! Carl: Uh, yeah, all right. Lenny: I’m in.
Komunitas
programming.dev
My least favorite part of Go, by far, is the capitalization as struct member visibility thing. That and the not super great json encoding annotations. Here’s a sample: type Change struct { Path string `json:"path"` Category string `json:"category"` // change, append, create, delete Position int64 `json:"position"` Size int64 `json:"size"` OriginalChecksum string `json:"original_checksum"` UpdatedChecksum string `json:"updated_checksum"` UnixTimestamp int64 `json:"unix_timestamp"` Data []byte `json:"data"` MatchedRules []Rule `json:"matched_rules"` } I would take explicit public declarators any day
Komunitas
programming.dev
I went and read Rob Pike’s comments in the thread linked (I’m not a Go person so don’t see anything he normally says). It’s crazy that this person is listing his comments as a pro, or that he gets any reverence whatsoever. he seems absolutely insufferable.
Komunitas
beehaw.org
EDITL Lemmy-UI deleted my !@#$#% links because I used the standard Markdown of less than and greater than symbols for a link. 1.) https://overengineer.dev/blog/2019/01/13/activitypub-final-thoughts-one-year-later.html https://gist.github.com/jdarcy/60107fe4e653819138396257df302eef 2.) https://beehaw.org/comment/1178543 https://beehaw.org/post/7278522 https://beehaw.org/post/980868 https://beehaw.org/post/7776438 ::: spoiler My comment on a deleted post These are my opinions, probably not shared with others and surely not the end all be all to ‘why not Rust?’ Rust is hard. Rust is slow to iterate with and compile. Here’s a highlevel overview of the things you’d need to learn to effectively understand Rust code; not even speaking to learning enough of that to write it. Rust gets touted as secure, and it is more secure than other low level languages like C/C++. That does not make it invulnerable to exploits. It gives a false sense of security to developers who think My app can’t be hacked, it’s written in Rust!!. While Rust is better at memory management and protecting against run time errors related to memory issues, that doesn’t make it 100% safe. That removes almost one class of potential exploits, not all of them, and can’t protect the developer against other developer created issues. Rust code is still written by people. People still write insecure code even in Rust. Computers are dumb as hell; but fast. People are smart as hell, but SLOW. Combine the two and you get stupid things faster; not smarter things better. Rust development is hard, hard to learn, very hard to do right Rust is not suited for a web application. Would you tell someone to go write the web application and web page in C/C++? Nope. There’s a reason for that. Not suited to it. Square peg, round hole There’s always exploits being discovered. Rust handles some things better, but uhhh… Go look at some Lemmy Rust code. Definitely still has vulnerabilities; Rust won’t save you from yourself. Something like Golang is much better choice for development of a web service that has sane API handling. By the time to add in more error handling, more type checking, more passing around of this function or that data, and more checking it on the sender and receiver side…etc. By the time you’re writing Rust safely and correctly; it is much slower than what you may be lead to believe. Go is primarily designed for speed of development (including compilation times), rather than speed of execution. Go programmers tend to value clear code over fast code. Why does a microsecond longer matter for a website? Maybe in some backend PLC land there’s a damn good use for that performance. For a networked web application; it’s a pointless metric. That is not going to be your bottleneck. Rust is hard to understand just reading it let alone determine why it’s doing something. Rust fn does_what(n: u64) -> bool { match n { 0...1 => false, _ => !(2..n).any(|d| n % d == 0), } } Golang func doesWhat(value int) bool { for i := 2; i <= int(math.Floor(float64(value)/2)); i++ { if value %i == 0 { return false } } return value > 1 } Not talking about the functionality merits of the two, but in comparing the _code itself. One of those is much easier to determine what’s going on and what it should be doing versus the other. I don’t feel like fighting my code. Programming is a tool to help. If it takes more work to use the tool to achieve your goal, it’s the wrong tool. Rust is the wrong tool for web development. :::
Komunitas
lemmy.ml
on the other hand, and other side of the so-called “proxy” service, it’s a shame that the golang community has so far mostly acquiesced to the situation where the language’s tooling by default relies on making numerous connections to google’s servers.
Komunitas
startrek.website
I had to install Golang and build it myself to make it work with my version of glibc. But in the end the themes aren’t rendered properly. In other words, proper Linux experience.
Komunitas
discuss.tchncs.de
Try Meson first, it should support compiling GNU assembly via the C compiler from what I can find. I’ve been using CMake for years because it is more powerful (finally trying out Meson though for a new project) but in contrary to Meson it is easy to use the wrong way if you don’t know what you’re doing. Meson is very clean in comparison, and also very easy to get started with. (And both these are absolutely better than autotools) (If only c++ build systems caught up to Golang lol) Terrible bait
Komunitas
beehaw.org
r/homeassistant r/houseplants r/ebikes r/surfing r/golang
Komunitas
lemmy.ml
Lihat kiriman asli pada platform media sosial terkait.
Komunitas
lemmy.ml
Lihat kiriman asli pada platform media sosial terkait.
Komunitas
lemmy.ml
Lihat kiriman asli pada platform media sosial terkait.
Komunitas
lemmy.ml
Lihat kiriman asli pada platform media sosial terkait.
Komunitas
lemmy.ml
Lihat kiriman asli pada platform media sosial terkait.
Komunitas
lemmy.ml
Lihat kiriman asli pada platform media sosial terkait.
Komunitas
lemmy.ml
Lihat kiriman asli pada platform media sosial terkait.
Komunitas
lemmy.ml
Lihat kiriman asli pada platform media sosial terkait.
Komunitas
lemmy.ml
Lihat kiriman asli pada platform media sosial terkait.
Komunitas
lemm.ee
I agree that golang is being dumb when you don’t even have the option to tell it that this is a testing env or something. But the thing about syntax highlighting is not the same. One is about handholding the developer so much that it makes it even more difficult to develop, and the other is a completely optional feature that is so uselful and non intrusive that even wizardly editors like emacs use it.
Komunitas
lemmy.ml
Lihat kiriman asli pada platform media sosial terkait.