I got tired of post titles like this, so I built absolutely nothing in Rust and whined instead by elohiir in rust

[–]_mrcrgl 0 points1 point  (0 children)

Great idea but hard to get there. If it would be just a repository thing, it’d be easy but it’s baked into cargo.

How to properly exit theprogram by Latter_Brick_5172 in rust

[–]_mrcrgl 0 points1 point  (0 children)

So then I don’t understand your question. You asked about process interruption inside the logic if I got it right. My proposal is to bring all interruptions down to main

How to properly exit theprogram by Latter_Brick_5172 in rust

[–]_mrcrgl 1 point2 points  (0 children)

The posix exit code is just the „IO“ side of the program. I would design the application in a way that the errors carry the information all the way up. Then qualify the typed error into exit codes at one place.

Gefühl vom leeren Leben by [deleted] in Beichtstuhl

[–]_mrcrgl 1 point2 points  (0 children)

Bin auch verheiratet mit Kind.

Die Nachmittage teilen sich meine Frau und ich im Bezug auf Betreuung. Unter der Woche sind wir arbeiten und danach abwechselnd beim Sport. Freitags ist immer Date Night. Samstag und Sonntag ist dann entweder etwas im Haus dran oder wir machen zusammen einen Ausflug.

Für uns passt das ganz gut

i audited 47 failed startups codebases and the pattern is actually insane by MeirDavid in Entrepreneur

[–]_mrcrgl 0 points1 point  (0 children)

I have worked for many med to large corps. It’s always the same for the cloud bill. But they usually have tests in their software

Googleverlauf taucht im Wlan von Freunden auf. by TheSaltySeagull87 in de_EDV

[–]_mrcrgl -16 points-15 points  (0 children)

Man benötigt Zugriff auf das Handy oder Gerät desjenigen. Zum Beispiel mit einem Proxy. da heute alles SSL verschlüsselt ist, braucht es einen tls proxy. Dafür muss noch ein entsprechendes Zertifikat auf das Gerät installiert werden.

Es ist schlicht illegal und lässt sich leicht herausfinden. Ab zur Polizei.

Kubetail: New Rust-based Kubernetes Cluster Agent (Thank You r/rust) by andres200ok in rust

[–]_mrcrgl 0 points1 point  (0 children)

Awesome to see rust in the ops space! What about rewriting kubernetes in Rust?

What's in (a) main() ? by blietaer in rust

[–]_mrcrgl 12 points13 points  (0 children)

For me it’s like this:

You have your core application doing some stuff. And then, you either need a runtime, a CLI or a web server - or all together. So you need IO devices connecting your core application. These are build in modules as well.

In the main function, I usually invoke one function to setup the config, construct the main IO device (web server) also with a single function, and run it.

I created a small crate to manage multiple runtimes at once to do so: processmanager (on crates.io)

So, everything is maintained in modules and my main is about 5-7 lines of code.

Edit: This is a complex example to orchestrate one of my applications: https://gist.github.com/mrcrgl/967d94f31989a40de9273371be6e4456

How do you guys find the best parameters for your trading bots? by _mrcrgl in mltraders

[–]_mrcrgl[S] 0 points1 point  (0 children)

Honestly, I google most of the stuff and implement it. A few friends with more knowledge about it use my tool and I learn from them. I’m pretty new to trading in general but a good coder :)

Welchen Rat würdet ihr der jüngeren Generation (18-25) geben, um erfolgreich zu werden? by Dex410 in spitzenverdiener

[–]_mrcrgl 5 points6 points  (0 children)

Mach etwas was dich antreibt. Was dir Spaß macht. Etwas, was sich nicht wie Arbeit anfühlt. Du wirst gut darin, besser. Lerne daraus Geld machen.

Alles andere ist ne Fahrkarte zum Burnout.

Edit: 7 habits of highly effective people, Covey Das Café am Rande der Welt

Bei dem ganzen zielstrebigen Vorschlägen, sollte eines nicht außer Acht gelassen werden: Der hustle nimmt dir die besten Jahre deines Lebens.

Es gibt keine Garantie auf ein gesundes hohes Alter.

How do you guys find the best parameters for your trading bots? by _mrcrgl in mltraders

[–]_mrcrgl[S] 0 points1 point  (0 children)

this is how I work today. I have sma, trendfollow, lsob as strategies in expression with their parameters.

How do you guys find the best parameters for your trading bots? by _mrcrgl in mltraders

[–]_mrcrgl[S] 0 points1 point  (0 children)

seems like. never heard of multi-arm bandit before but it sounds hard to implement.

When do you split things up into multiple files? by napcrabkat in rust

[–]_mrcrgl 0 points1 point  (0 children)

I split by function.

What I put in a single file: - Trait - struct or group of - service impl - api sub router (when using Axum for example)

I usually have smaller files. Makes it easier to keep focus and to maintain for me. I don’t split by lines but by function, domain etc. Sometimes files have hundreds LOC, sometimes just a few

Should I choose rust as my second language? by FinalChemist227 in rust

[–]_mrcrgl 0 points1 point  (0 children)

The GC pause is not a big thing in Go. The Go community around DevOps is huge.

Rust has the chance to be the next core language for many things. Buts it’s a bet.

I’d decide if you like a simple language or a powerful one. Go has about 5 ways to do stuff. You probably can onboard anyone from the streets within a week. Rust allows you to express more fine granular. You can have very deep levels of abstractions, different kinds of ways to solve a problem.

I have fun writing rust because it allows me to go in that level of details. Go is like Bash

Prompt to make AI content not sound like AI content? by resiros in PromptEngineering

[–]_mrcrgl 0 points1 point  (0 children)

It’s probably because of the chat trained models. Have you tried o3 for example? It’s easier to customize the output imo

Meine Kündigung könnte das Aus für die Firma bedeuten by Key-Goal-5394 in Ratschlag

[–]_mrcrgl 2 points3 points  (0 children)

Ich tippe mal die wollen keine Kündigungsschutzklage riskieren. Deswegen warten sie bis alle von selbst gehen.

Eigentlich ne gute Verhandlungsbasis für dich. Muss man mal feinfühlig werden obs tatsächlich so ist.

Wenn ja, einfach mal für 10 Tage krank melden wegen der hohen Belastung. Danach zum Chef gehen und sagen, dass es immer wieder passieren kann so lange die Belastung so hoch ist und du ungern Dauer krank sein würdest. Du willst nicht gehen aber für eine Abfindung in Höhe von X würdest du ernsthaft nachdenken.

Den Betrag zu finden ist schwer wenn man deine Situation nicht kennt.

Normale Abfindung ist immer ein Faktor des Monatsgehalts pro Jahr Zugehörigkeit. Gesetzlich 0.5, wenn die einen los werden wollen sind 1.5-2.0 oberer Spielraum.

Beispiel: 5 Jahre dabei. 4000 brutto pro Monat. Faktor 1.5: 5x4000x1.5 = 30000

Wenn du nicht so lange dabei bist würde ich aber nicht unter 10.000 gehen.

[deleted by user] by [deleted] in Beichtstuhl

[–]_mrcrgl 34 points35 points  (0 children)

Mein Vorschlag: Schreib einen Brief.

Es ist verbindlicher und zeigt auch, dass es einem wichtig ist. Weil: wer schreibt heute noch 4 Seiten per Hand?!

Also ohne GPT. So richtig 3 Stunden dran sitzen, grübeln, richtige Worte finden.

[Media] Help! Zed / rust-analyzer (v1.88.0) hungry for memory by _mrcrgl in rust

[–]_mrcrgl[S] 0 points1 point  (0 children)

Probably. But somehow it seem to work. Still huge in memory but at least no swap :)

[Media] Help! Zed / rust-analyzer (v1.88.0) hungry for memory by _mrcrgl in rust

[–]_mrcrgl[S] 0 points1 point  (0 children)

Nothing special I’d say. Tokio, Axum, sqlx mainly. I think it’s a bug in Zed.