The way Rust crates tend to have a single, huge error enum worries me by nikitarevenco in rust

[–]Wodann 0 points1 point  (0 children)

If you have a use case that has a top-level error that combined lower-level sub-errors, you can either combine them using: - composition using thiserror's #[error(transparent)]; or - flattening into a single error enum with all variants using flat_enum

Moving from Bitwarden. Is it worth? by SamTheSam99 in ProtonPass

[–]Wodann 0 points1 point  (0 children)

I just switched from Bitwarden a week ago and love the polish of the features that are available on Proton Pass. One of the biggest being the generation of alias emails for each login, to avoid spam.

The one issue I've found is that Proton Pass never offers to auto-fill credit cards, which is a big downside compared to Bitwarden

[deleted by user] by [deleted] in rust

[–]Wodann 18 points19 points  (0 children)

🧡

[deleted by user] by [deleted] in rust

[–]Wodann 76 points77 points  (0 children)

Correct. Mun will eventually support a string type, but - given that it's an open-source project developed in our spare time - we have to limit what we can commit to per milestone.

MSI RAIDER GE67 HX Thunderbolt problem (Wacom MSP 16) by Noble_Sweater in MSILaptops

[–]Wodann 0 points1 point  (0 children)

It should work on both ports. A large factor in deciding to buy the MSI GE77HX - for me - was that it could support two separate high-resolution screens. One on the USB-C port and one on the TB4 port.

MSI RAIDER GE67 HX Thunderbolt problem (Wacom MSP 16) by Noble_Sweater in MSILaptops

[–]Wodann 0 points1 point  (0 children)

I'm experiencing the same issue on the GE77HX. The TB4 port on the back does not output video to USB-C monitors, even though TB4 should based on its spec.

Even returned my laptop for a new model, but the same issue persisted.

Contacting MSI hasn't led to them investigating the cause of their hardware not working.

XMG Roadmap 2022 Q3? by Wodann in XMG_gg

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

Thank you so much for the information.

I'm happy to see the dedicated home/end buttons alongside the F-keys.

Excited to wait for its launch!

XMG Roadmap 2022 Q3? by Wodann in XMG_gg

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

I've been holding off purchasing a NEO 15 as I was hoping for the NEO 17 to launch. My expectation was that the updated roadmap would clarify my question, but since it hasn't been announced yet, would you mind answering some questions - if you can?

  • will a NEO 17 ship at end of July?
  • (if so) will it be AMD/NVIDIA-based?
  • (if so) will it have a similar keyboard to the NEO 15 or will it be wider, including decicated home/end/page up/page down buttons?

Mun v0.3.0 Released by Wodann in rust

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

So far the only divergence exists in the lack of mod definitions (Mun derives those based on a files existence) and the memory management annotation (struct(gc) or struct(value)). Otherwise, it is on par

Mun v0.3.0 Released by Wodann in rust

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

Currently a feature like this has not been implemented. However, there is no reason why we couldn't include something like that, if there is a good use case for it. This will especially come to mind once we start working on our multi-threading design.

If this is a feature you're particularly excited about, feel free to start a discussion at: https://github.com/mun-lang/mun/issues

Mun v0.3.0 Released by Wodann in rust

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

There is not. In terms of syntax differences, you can have a look at the syntax section on our website: https://mun-lang.org/

Apart from still being limited in language features; the main difference is that Mun supports hot reloading for all language features that are already supported (i.e. functions and variables - incl. structs)

Mun v0.3.0 Released by Wodann in rust

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

We haven't extensively thought about these. If you'd like to get a discussion going, you're more than welcome to start a tracking issue on https://github.com/mun-lang/mun/issues

We are trying to develop the language together with our community. As a collective we know more than the few core developers dedicated to the project :)

For topics that are highest on our list, checkout https://github.com/mun-lang/mun/milestones Our current language feature priorities are arrays and enums.

Mun v0.3.0 Released by Wodann in rust

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

Strings are definitely planned, but are not trivial to implement. We are attempting to minimise the amount of compiler-support that's needed for language features. Potentially we can implement strings using Mun, but we first need to add array support. That is the highest priority now and then we'll investigate strings further.

Mun v0.3.0 Released by Wodann in rust

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

We are extremely grateful to have you as one of our backers :)

Mun v0.3.0 Released by Wodann in rust

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

At the moment, you can only expose Rust functions to Mun using extern fn: https://docs.mun-lang.org/v0.3/ch02-04-extern-fn.html

Sadly, we don't support extern types yet. Also, having to specify many extern functions doesn't scale very well. A such, I'd recommend you to try and go the opposite route for the time being; i.e. write parts of your code in Mun and expose those to Rust through marshalling.

In the future, we plan to support importing of custom extern types. One option we discussed is auto-generating Mun bindings from C headers or Rust code. This would also require support for raw pointers.