Skip Navigation
Jump
Ahh...yes...new "code-free" framework
  • I disagree, Cargo is very simple and easy to use for developers. I agree, binaries are easier for end users. I'm surprised cargo run --release didn't work for you. What was the project and OS?

    8
  • Jump
    STOP DOING ASYNC
  • You cant say async is the fundamentally better model because threading is purposely crippled in the browser.

    The conversation at hand is not "how do io in browser". Its "async is not inherently better than threads"

    2
  • Jump
    STOP DOING ASYNC
  • I assume by performance you mean CPU usage per io request. Each io call should require a switch to the kernel and back. When you do blocking io the switch back is delayed(switch to other threads while waiting), but not more taxing. How could it be possible for there to be a difference?

    2
  • Jump
    STOP DOING ASYNC
  • The only way I have heard threads are expensive, in the context of handling many io requests, is stack usage. You can tell the os to give less memory (statically determined stack size) to the thread when it's spawned, so this is not a fundamental issue to threads.

    Go ahead and spin up a web worker and transfer a bunch of data to it and tell us how long you had to wait.

    Time to transfer data to one thread is related to io speed. Why would this have anything to do with concurrency model?

    -1
  • Jump
    STOP DOING ASYNC
  • The "do something while waiting for something else" is not a reason to use async. That's why blocking system calls and threads exist.

    Threads don't need to be expensive. Max stack usage can be determined statically before choosing the size when spawning a thread.

    Any other reasons?

    -10
  • Jump
    Google Launches Project IDX, A web-based IDE
  • I've had no problem for years.

    Biggest issue I've had was forgetting I committed something on one device before committing on another. Then I had two branches where one had " conflict" in the name. I just deleted all conflict files and everything continued as normal. If your repo is never corrupted before syncing worst case you should be able to find and delete all conflict files.

    Syncthing conflicts include the source of the conflict so you could just choose to delete all files whose conflict is from one device and leave everything from the other.

    If you're worried you could just ignore your '.git' folder in syncthing since you're purposefully not committing during this. Then sync through git when you finally commit your changes on a device.

    2