[–] -2 points 11 months ago* (3 children)

Maybe it's a bug, but my false flag alarm bells are ringing loudly here. Although to be fair, they always do that whenever they get a whiff of anything from the modern security theater industry.

Or maybe my mind is wrongly biased towards applying a "Problem - Reaction - Solution" reading to many "commercial" moves.

  • source
  • [–] 4 points 11 months ago (2 children)

    In this way, we can avoid relying on subprocesses and instead use threads (or, technically, asynchronous tasks) in Rust. Threads/tasks are much easier to manage

    I believe, in their case cancelling a sync operation will not be a problem because they will not forever block on executing user-provided code, but cancelling a synchronous thread is not easy, afaik

  • source
  • [–] 12 points 11 months ago

    Apparently, Wikifunctions is a place to define e.g. mathematical formulas, so that they can be executed ad-hoc to provide insights about common questions.

    Certainly makes sense to run those functions sandboxed in WebAssembly, since the function code is user-provided.
    And then, yeah, I can imagine the process management making up a good amount of the complexity of their backend code...

  • source
  • [–] 10 points 11 months ago (1 child)

    To be fair pattern recognition is a pretty decent use of AI. And spelling is pretty much a pattern.

    Don't get me wrong I'm not a fan of the chatbots and other LLM's, but any advanced spellchecker is probably using some form of 'machine learning'

  • source
  • parent
  • context
  • [–] 1 point 11 months ago

    I get that you are feeling slint is not GPL, but I do not understand where that feeling comes from.

    I think it's because the for-profit nature of the company may not create an actual community of FOSS enthusiasts around it. So if something were to happen to the business side of Slint-the-company, there would not be a strong community with known leaders and vision to save the situation. It's not like this is guaranteed for FOSS projects, but it's much more likely there. Single-person FOSS projects are scary to me for this reason as well.

    That is the biggest factor for me. (There are other important factors, too.)

  • source
  • parent
  • context
  • [–] 2 points 11 months ago

    Interesting, do tell us how its going. Django's appeal to me is mostly with the ecosystem and readily available plugins and at the very least the admin. This just saves soo much time. Maybe rust based packages accelerating django is the way to go for me.

  • source
  • [–] 3 points 11 months ago

    No, the attribute is unsafe. An unsafe function is marked unsafe fn.

    Also, unsafe by itself just means there are invariants that must me manually upheld to avoid unsound behavior. If those invariants are upheld, then it doesn't matter if it's unsafe.

  • source
  • parent
  • context
  • [–] 2 points 11 months ago (2 children)
    #[unsafe(export_name = "my_super_duper_function")]
    pub fn foo() {}
    

    I would recommend reading up some materials on FFI in Rust if you're interested. Calling functions in Rust from C and in C from Rust (or even languages other than C) is both extremely common and a primary usecase of the language.

  • source
  • parent
  • context
  • [–] 1 point 11 months ago (5 children)

    It would be cool if there was an option to tell compiler how to name the object in the end. A strength of C mangling (or rather lack of it) is that you can take the object file and know beforehand the names. With mangling that will always depend on the version of the compiler. In practice, while mangled names are kind of stable, mangled C++ names are not really reliable in the real world

    If we could tell the compiler "in the end name/alias this function as prefix_or_name_of_cargo_my_super_duper_function", we could then easily call it in an assembler/pure C/etc
    It could even be a separate wrapper. only for exposing stable function names in the object files

  • source
  • view more: ‹ prev next ›