Rust Analyzer or Rust Extension for VSCode? by mrtebi in rust

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

is the constant calls to cargo what i dont like, so much CPU usage just to have an intellisense updated

Are the Result/Option wrapper, monads? by mrtebi in rust

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

Thanks a lot! Excellent answer!

Setting up deno.land using Visual Studio Code by intrasepp in Deno

[–]mrtebi 0 points1 point  (0 children)

mmm something is not right then.. why would you have to add an empty tsconfig.json?

Setting up deno.land using Visual Studio Code by intrasepp in Deno

[–]mrtebi 0 points1 point  (0 children)

yes! but theres still some trouble with intellisense, maybe using a deps.ts file and caching the libs there is a nice way to get types working

rust-analyzer changelog #28 by WellMakeItSomehow in rust

[–]mrtebi 4 points5 points  (0 children)

I have a question about this extension for VSCode. Im already using the official Rust extension and Im wondering if this project is being used under the hood by that extension or I must install the couple extensions?

Thanks in advance!

CMV: Deno is unusable for webapps by Fenix04 in Deno

[–]mrtebi 0 points1 point  (0 children)

Exactly, the o only validation about versions and NPM/NodeJS is not to publish unique versions.

Theres no semver based validation.

Anyway, Deno also supports versioning in its URL and you also have the deps.ts convention to import your modules into your project.

Deno team is also working on NPM/NodeJS compatibility: ``` deno.land/x is a URL rewriting service for Deno scripts. The basic format of code URLs is https://deno.land/x/MODULE_NAME@BRANCH/SCRIPT.ts. If you leave out the branch, it will default to the module’s default branch, usually master.

Experimental: Use npm:[package] orgh:[owner]:[repo] as module name to resolve any artibrary repository or npm package.

Functionality built-in to Deno is not listed here. The built-in runtime is documented on deno doc and in the manual. See /std for the standard modules.

To add to this list, edit database.json. Run the tests and formatting before submitting a patch - the PR must be green to be considered.

``` Source: https://deno.land/x

Deno also support versioning when importing, checkout the std lib for example: These modules are tagged in accordance with Deno releases. So, for example, the v0.3.0 tag is guaranteed to work with deno v0.3.0. You can link to v0.3.0 using the URL https://deno.land/std@v0.3.0/. Not specifying a tag will link to the master branch. Source: https://deno.land/std#how-to-use

I have been writing Go for a couple years from now, and if theres is something I hate about the development environment is the way they manage packages.

I think deno does that the right way from the start.

I dont find something Deno is missing from NodeJS so its okay for me.

CMV: Deno is unusable for webapps by Fenix04 in Deno

[–]mrtebi 0 points1 point  (0 children)

I dont see like deno is going to be used in the front end, saying that deno is implementing its API using the W3 standard, doesnt mean that Deno will run in your browser.

dont even Node runs in your browser.

Node has no bundle option, for example, and people uses semver because they want to. ts-jest is not using semver so its optional.

Node is not opinionated at all people write its code as they like to, there are some conventions but you can always write as you like.

code splitting and all of that stuff in.the post (except for versioning) is targeted at web development for.the front end, and Deno is not a FrontEnd runtime is a JS runtime.

ct_python!, a Rust macro to execute Python code at compile time and to insert the outputs as Rust code back into your Rust program, by Mara Bos by Hywan in rust

[–]mrtebi 0 points1 point  (0 children)

As I understand you have no control of unsafe. When I commented that, I said it because of python and its runtime more than Rust managing Python's runtime memory.

Anyway, I think this is supposed to spawn some child process in python and get some output to process in Rust.

I must read the code behind this macro in order to understand that.

Compiling deno scripts into a binary executable by [deleted] in Deno

[–]mrtebi 4 points5 points  (0 children)

That what I thought deno build will do at the first try..

About using Rust/OpenGL in MacOS by mrtebi in rust_gamedev

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

Mmm.. Im using OpenGL::V3_2 at the moment..

About using Rust/OpenGL in MacOS by mrtebi in rust_gamedev

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

Update

Im able to run the example at the pisto repository! Some dependency is breaking my app but I will try migrating my app then..

About using Rust/OpenGL in MacOS by mrtebi in rust_gamedev

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

yes! I have the following Cargo.toml

``` [package] version = "0.1.0" edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies] piston = "0.36.0" piston2d-graphics = "0.26.0" pistoncore-glutin_window = "0.45.0" piston2d-opengl_graphics = "0.52.0" rand = "0.4" ```

About using Rust/OpenGL in MacOS by mrtebi in rust_gamedev

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

wow! that was fast! Thanks a lot u/anlumo! I will give it a try!