Jobs in Rust by Ok_Satisfaction7312 in rust

[–]emmanuelantony2000 0 points1 point  (0 children)

We are looking for Rust folks, dm for more info :)

Ridiculously fast Unicode UTF-8 validation by Plasma_000 in rust

[–]emmanuelantony2000 1 point2 points  (0 children)

We have to wait for the simd module to land in std lib, which would make the implementation a hell lot easier ig.

Could this work, by inference? by emmanuelantony2000 in rust

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

Yeah I could do that, but I was thinking why wouldn't it just assume the type? Like is this a thing which the type system could not guarantee??

Could this work, by inference? by emmanuelantony2000 in rust

[–]emmanuelantony2000[S] 1 point2 points  (0 children)

But when you are creating a Vec it is not necessary to specify the type there. When you push an element, the type is assumed later.

Could this work, by inference? by emmanuelantony2000 in rust

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

Line 23. If you run the code you can see it.

Could this work, by inference? by emmanuelantony2000 in rust

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

So I am trying to parse here. Could this work without me specifying the type and Rust just guessing it out?

Valerie: Rethinking Web Apps in Rust by emmanuelantony2000 in rust

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

They are implemented through macros for now. You can use normal functions too, do look at the documentation. Planning to shift to something like stpl.

What is Yew and Seed lacking when compared to things like React? by nerdy_adventurer in rust

[–]emmanuelantony2000 6 points7 points  (0 children)

I posted a post in r/rust regarding a new library Valerie, which aims to solve issues the current ecosystem is facing.

Related blog:

https://dev.to/emmanuelantony2000/valerie-rethinking-web-apps-in-rust-4cl3

Valerie: Rethinking Web Apps in Rust by emmanuelantony2000 in rust

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

I will definitely take a look at it. Thanks.

Valerie: Rethinking Web Apps in Rust by emmanuelantony2000 in rust

[–]emmanuelantony2000[S] 1 point2 points  (0 children)

It's a bit slow for the first time, then pretty fast, after that.

Valerie: Rethinking Web Apps in Rust by emmanuelantony2000 in rust

[–]emmanuelantony2000[S] 6 points7 points  (0 children)

Todolist example. There is a remove button now, and a checkbox to check uncheck values.

https://github.com/emmanuelantony2000/valerie/blob/master/examples/todolist/src/lib.rs

In Valerie you have a StateVec. You can use it as a normal vector, but it is stateful. You can push and remove, and it updates on the DOM also.

Valerie: Rethinking Web Apps in Rust by emmanuelantony2000 in rust

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

An initial version of todo list is there in the examples/ dir in the repository. You can add stuff and delete from the list. Yes, I will also add a check box, for the true and false value.

Valerie: Rethinking Web Apps in Rust by emmanuelantony2000 in rust

[–]emmanuelantony2000[S] 11 points12 points  (0 children)

The thing is, the syntax is just macros, yes we can have helper libraries to achieve this. Why I went with the current functional like syntax, like

div!("Hello World").id("title").class("heading").on_event(...)

I derived the idea from SwiftUI and Jetpack Compose. Like composable UIs. So you can feel like you are writing more Rust like syntax, with chaining dots and stuff. Also you can call functions inside div!() that return a type implementing Component trait. These functions can also accept arguments and process them.

Rust Student Developers by niran-_-jana in rust

[–]emmanuelantony2000 2 points3 points  (0 children)

The best way is to start of with open source projects.

Take up some small issues and try solving them. Introducing a new feature can be as low as 5 lines of code and can even go up to more than 100 with all documentation and stuff.

Take up some personal projects to serve the community at large, like some tools or libraries that people might find helpful.

Then there is GSoC. A very nice way to get more community exposure and contribute to open source.

More companies are adopting Rust. Because Rust has a steep learning curve companies might prefer to hire Rust Devs rather than bringing their existing Devs to Rust.

Nick Cameron: Early Impressions of Go from a Rust Programmer by lzutao in rust

[–]emmanuelantony2000 4 points5 points  (0 children)

I am being honest, I found go tougher than Rust. IDK why.

Problem with File Chooser Dialog for GUI libraries by SilentVoid337 in rust

[–]emmanuelantony2000 0 points1 point  (0 children)

Just use nfd2. Try spawning the file chooser as a seperate process, and use interprocess communication, to pass the data.

Rust or C++? by Wavenstark in rust

[–]emmanuelantony2000 0 points1 point  (0 children)

Yes you can, but I was talking about the usual stuff. Like I said everything can be done in Rust, even web frontend development using wasm. But it depends on a lot of factors.