Sekitar 20 hasil (1.97 detik)
Komunitas beehaw.org

*Permanently Deleted*

I had a bunch of stuff typed here (probably too much), clicked a damn icon on this UI and POOF when my entire comment… 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.world

Google is ‘crooked’ and a bully, CEO of Fortnite-maker Epic Games testifies in Play Store trial

Actually Google wasn’t that bad in the past. They did a lot of good, open sourced a lot of projects, made a lot of Linux contributions, gave us AOSP, Kubernetes, Golang, Tensor Flow, etc. They even had a moonshot program, working on a lot of emerging technologies, and were in general pretty cool. I think things started to go downhill when they announced Alphabet, back then they started to optimize their operations by minimising the costs and maximizing their profits. In general this made their shareholders pretty happy and the rest pretty sour.

Komunitas beehaw.org

Beehaw on Lemmy: The long-term conundrum of staying here

There exists ActivityPub library implementations in golang, just sayin’. It’s a big lift to start anew but at least the low end protocol is there and golang is a good mature language for productivity and security. DB is going to be to bottleneck and I’d build on ScyllaDB (or Cassandra) in a heartbeat. ScyllaDB on a single node is quite well behaved and auto-tuning, but from there these two can scale globally with scaled writes everywhere. I always architect with active/active in mind because at some point for some reason you need multiple sites even for just disaster recovery.

Komunitas lemmy.world

azorius 0.1

Just tried it there it is blazingly fast and from the stats it seems super light on resources too. It also works great without js and cookies at least to browse. Looks like it is coded in golang and is using sqlite for the back end. It has an old school web vibe to it.

Komunitas lemmy.ml

What open source project(s) are you working on?

Not a good programmer, but I’ve been writing documentation improvements for a few projects I use in my free time. I’m doing it for kopia currently as the documentation for that project is not great at the moment. Kopia is a deduplicating backup application similar to BorgBackup and Restic, written in Golang by a former google engineer. It creates infinite incremental backups, has encryption and compression, and works with S3, B2, SSH, or a local filesystem.

Komunitas lemmy.ca

Hundreds of code libraries posted to NPM try to install malware on dev machines

I don’t know much about NPM (having avoided JS as much as possible for my entire life), but golang seems to have a good solution: ‘vendoring’. One can choose to lock all external dependencies to local snapshots brought into a project, with no automatic updating, but with the option to manually update them when desired.

Komunitas programming.dev

Dsci runner migrated to golang

Hey everyone! After week of work finally rewrote dsci runner on golang. git clone https://github.com/melezhik/dsci-runner.git cd dsci-runner go mod tidy go build -o dsci_runner main.go ./dsci_runner That means just a single binary install Check it out ! ) Forgejo integrations details are here - http://deadsimpleci.sparrowhub.io/doc/forgejo-setup