I want friends through Rust

Hello @tuxmain!

Is your work related to cryptocurrency? I'm not familiar with cryptocurrency, so I want to know about it :pleading_face:

What did PHP do to you!

By the way, I also want friends to talk about javelin. Because I'm trying to implement a HLS function on it.
Please let me know when you've checked javelin :grin:

I'm a student, not a professional. This cryptocurrency is only developed by volunteers.

Like JS, you never know what type is a variable: e.g. "0" is considered as a number or an empty string, and '0e1234' == '0' is true.

Because it's not compiled, you only see an error when it happens, and some errors are ignored so the script continues with bugs.

I maintain a website run by PHP since 3 years (with a lot of interactions with database and uploaded files), it has always been a hell to fix a bug or add a feature. Sometimes something breaks and we just don't know why.

1 Like

You are a very high-level student for me... Students I know don't have such high skill.

That would make you tired... I've never maintained any services for 3 years, but I can imagine it is hard.

I have a paradox in my mind.

On the one hand Javascript is near the top of the list of my favorite languages because it is so extremely dynamic. Not having to clutter ones source with type specifications and and such makes it so nice to knock up a quick prototype. There is lots of other syntactic noise you don't need in JS compared to something like Rust or C++ or even C. JS has all those nice features like first class functions, closures the event driven programming model etc etc without any syntactic junk. Brendan Eich did a great piece of work with JS, it is masterpiece of language design. Don't let anyone tell you otherwise.

On the other hand I love Rust because it is so anal about types and reference aliases, the borrow checker and the rest. It can be frustrating in the extreme to get Rust to agree to compile ones code. But there is great confidence that when it does things are going to work. More importantly there is great confidence that when you come to make changes sometime later Rust won't let you accidentally break your program.

PHP on the other hand. Worked with it at the turn of the century. Horrible. Put me off having anything to do with web development for about two decades.


I agree with that! Sometimes I got unexpected error on using kotlin. (because of short of my skill tbh)
Rust makes me feel comfortable when I finished writing a code and compiling it.

I'm not a very good programmer though, Rust would be a nice friend of my coding life :smiley:

That is true.

I quite enjoy a good chat with the compiler. Despite being amazingly strict and fussy (with good reason) the error messages must be the best I have seen from any compiler ever. And it offers helpful advice along the way. But be warned, that advice can lead you down a rabbit hole if you take it too seriously sometimes.

For the last 4 days I have been trying to put together some code involving socket and serial port communications. I decided to have a go at making it async, as is the modern fad, using tokio. So there was a lot to figure out. It was a very long conversation with the compiler...

I ran it for the first time today. Works fine :slight_smile:

1 Like

Right! I sometimes get confused with what I should do for resolving an error, and it takes much my time.

I hope your rust life will be great :laughing:
What do you usually do with rust?

Whilst not as old as Iggy Pop I still have Rust For Life: https://www.youtube.com/watch?v=_lJqBsrShys :slight_smile:

I'm not sure I have used Rust enough to say "usually". Just now I'm working on a project that:

  1. Pulls data from traffic radars and forwards it to our "cloud" using NATS: https://nats.io/

  2. In the cloud that NATS stream of proprietary binary protocol is parsed and decoded into object detections. Which are forwarded back to NATS as messages in JSON format.

  3. Another process pulls those detected objects from NATS again, does some statistical analysis on them and pushes that to our Cockroach database: https://www.cockroachlabs.com/

  4. A Rust Rocket webserver provides an REST API customer interface to that database.

Basically Rust has taken the almost every place we would have used node.js before.

Now if only I could get my partner on this project off of Python...

1 Like

Hi there,

Strictly speaking, rust is my first programming language in the real working life.
I was a test engineer in the last company for five years. I didn't need to program too much at work, I just wrote python stuff, but not that good at it, and know some basic knowledge on c/c++, I didn't think I'm a programmer.
I quitted that job, and I spent over 1.5 years to stay with my family. During this time, I began to learn rust now and then. At the beginning, it was really tough for me. After few months, I found I was still getting stuck in learning syntax stuff, no efficiency at all.
So I changed the way I learn rust. I collected some really small ideas that I understand them quite well, so I could focus on how to implement them instead of knowing the ideas in advance. At least, it worked for me.
Definitely, it's a good habit to talk the people who're from the community.

Now I'm in a startup for one year, and rust is my main language at work, but there're still lots of knowledge to learn in rust.
I really enjoy learning rust and coding with it!
BTW, I'm from China(we're relatively close), my english might be weird as well.

1 Like

Rust for life! :joy:
Your work looks so fun! It feels creative, and I want to work like that :smile_cat:


I think it is great that you did not give up learning! I would give up learning Rust by myself if I were you :sweat_smile: That's really great.

I think so, too. I want to learn loads of things throughout the community.

Wow! What do you do with rust at your work?

Cool, I like Chinese people who writes codes. :grin: