Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Bernie (codewiz@mstdn.io)'s status on Sunday, 04-Sep-2022 05:03:40 UTC Bernie Bernie

    I'm following this tutorial to re-learn #WebAssembly programming in #Rust using the latest coolness of wasm-bindgen, wasm-pack, and... NO emscripten! 😎

    https://rustwasm.github.io/book/game-of-life/hello-world.html

    In conversation Sunday, 04-Sep-2022 05:03:40 UTC from mstdn.io permalink

    Attachments

    1. Hello, World! - Rust and WebAssembly
    • Bernie (codewiz@mstdn.io)'s status on Sunday, 04-Sep-2022 05:51:49 UTC Bernie Bernie
      in reply to

      Of course, my brand new hello world app starts off with 8 high severity vulnerabilities 😂

      In conversation Sunday, 04-Sep-2022 05:51:49 UTC permalink

      Attachments


      1. https://media.mstdn.io/mstdn-media/media_attachments/files/108/938/566/852/817/012/original/d10e25461010f7e9.png
    • Bernie (codewiz@mstdn.io)'s status on Sunday, 04-Sep-2022 06:16:12 UTC Bernie Bernie
      in reply to

      After an `npm audit fix --force`, I'm left with only 6 high vulns 👍

      In conversation Sunday, 04-Sep-2022 06:16:12 UTC permalink

      Attachments


      1. https://media.mstdn.io/mstdn-media/media_attachments/files/108/938/662/446/558/612/original/805f9054a5b304f6.png
    • Bernie (codewiz@mstdn.io)'s status on Sunday, 04-Sep-2022 06:24:21 UTC Bernie Bernie
      in reply to

      ...and it broke my development setup. I can't test my #rust "hello world" any more 😟

      Is #npm really so bad, or I'm having bad luck?

      In conversation Sunday, 04-Sep-2022 06:24:21 UTC permalink

      Attachments


      1. https://media.mstdn.io/mstdn-media/media_attachments/files/108/938/685/644/530/893/original/3029bf6516394473.png
    • Bernie (codewiz@mstdn.io)'s status on Sunday, 04-Sep-2022 06:53:34 UTC Bernie Bernie
      in reply to

      After manually updating all the devDependencies in package.json. the webpack-dev-server starts again, but now it's refusing to load my #wasm code due to a BREAKING CHANGE.

      Is npm a new type of DLL hell?? Luckily, there are clear instructions to solve the problem...

      In conversation Sunday, 04-Sep-2022 06:53:34 UTC permalink
    • Bernie (codewiz@mstdn.io)'s status on Sunday, 04-Sep-2022 07:13:01 UTC Bernie Bernie
      in reply to

      All right, my hello-wasm works!

      Time spent writing WebAssembly code in Rust: 1 min
      Time spent fighting npm: 1 hour

      #npm #Rust #WebAssembly #javascript #programming #webdev

      In conversation Sunday, 04-Sep-2022 07:13:01 UTC permalink
    • Peter Bjørn ☯️🌗 (neglesaks@mstdn.io)'s status on Sunday, 04-Sep-2022 07:17:37 UTC Peter Bjørn  ☯️🌗 Peter Bjørn ☯️🌗
      in reply to

      @codewiz WELCOME TO THE HELLO WORLD RANSOMWARE!!! 😂

      In conversation Sunday, 04-Sep-2022 07:17:37 UTC permalink
    • Bernie (codewiz@mstdn.io)'s status on Sunday, 04-Sep-2022 07:32:58 UTC Bernie Bernie
      in reply to
      • Peter Bjørn ☯️🌗

      @neglesaks Oh yeah,

      42 packages are looking for funding
      run `npm fund` for details

      ...or else someone might slip a dozen high vulnerabilities and BREAKING CHANGEs in deps you didn't even know existed...

      In conversation Sunday, 04-Sep-2022 07:32:58 UTC permalink

      Attachments


      1. https://media.mstdn.io/mstdn-media/media_attachments/files/108/938/964/320/715/352/original/34f334ec1310180f.png
    • Bernie (codewiz@mstdn.io)'s status on Thursday, 08-Sep-2022 08:00:58 UTC Bernie Bernie
      in reply to
      • AkhIL

      @akhil Yeah, I switched to wasm-pack a couple of days ago.

      For local http serving I've been using this thing, but it's very limited (no way to customize the html):
      https://github.com/rukai/cargo-run-wasm

      I see that trunk has a built-in dev server, I'll give it a try when I find some time.

      Thanks for the tips!

      In conversation Thursday, 08-Sep-2022 08:00:58 UTC permalink

      Attachments


    • AkhIL (akhil@mastodon.ml)'s status on Thursday, 08-Sep-2022 08:01:00 UTC AkhIL AkhIL
      in reply to

      @codewiz
      You may like https://crates.io/crates/wasm-pack and/or https://crates.io/crates/trunk to build wasm apps without node and npm.

      In conversation Thursday, 08-Sep-2022 08:01:00 UTC permalink

      Attachments



    • Bernie (codewiz@mstdn.io)'s status on Thursday, 08-Sep-2022 08:05:25 UTC Bernie Bernie
      in reply to
      • AkhIL

      @akhil Also found this alternative which seems useful:
      https://github.com/rustminded/xtask-wasm

      In conversation Thursday, 08-Sep-2022 08:05:25 UTC permalink

      Attachments

      1. GitHub - rustminded/xtask-wasm: Customizable subcommands to build your Wasm projects using xtask.
        Customizable subcommands to build your Wasm projects using xtask. - GitHub - rustminded/xtask-wasm: Customizable subcommands to build your Wasm projects using xtask.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.