• 0 Posts
  • 12 Comments
Joined 1 year ago
cake
Cake day: June 16th, 2023

help-circle

  • To do quick and simple explanations:

    var test int = 0
    

    assign an int, var = let in rust land

    := 
    

    This is basically an inferred assignment e.g.

    a := "hello world"
    

    The compiler will know this is a string without me explicitly saying

    func (u User) hi() {}
    

    To return to rust land this is a function that implements User. In OOP land we would say that this function belongs to the user class. In Go, just like in rust we don’t say if a function returns void so this function is for User objects and doesn’t return anything:

    func (u User) hi(s string) string {}
    

    If it took in a string and returned a string it would look like this.

    map[string] int {}
    

    I will give you that this syntax is a bit odd but this is just a hashmap/dictionary where the key is a string and the value is an int





  • It looks like it’s 3x faster than the previous cpython wasm compilation. Recall that most of the performance improvements in python have been done in the last ~2 releases.

    My distro is debian based so it’s still on 3.10 which I would guess this new wasm implementation is much closer to in performance.

    Compiling to wasm also means that you can distribute a binary rather than needing people to have python installed.





  • Most GUI libraries in rust are in some version of 0.x. this isn’t like flutter or Avalonia where our GUI libraries are mature. Wasn’t Iced basically a one man show before system 76 started using it for their desktop environment and made huge contributions to it?

    I think for now your best bet is probably a webview framework like tauri or dioxus. I’m sure things like iced will get there. But by using webview these frameworks have offloaded a lot of dev work. They’ve made painting pixels on the screen someone else’s job