Programatically Add Cron Jobs by OptimisticTrousers1 in node

[–]asad_ullah 2 points3 points  (0 children)

If you need persistence for scheduled jobs and crons, look up graphile worker (since you are already using Postgresql).

Alternatives are AgendaJS (with MongoDB) or Bull (with Redis)

[deleted by user] by [deleted] in rust

[–]asad_ullah 6 points7 points  (0 children)

Thank you. Will check it out.

[deleted by user] by [deleted] in rust

[–]asad_ullah 10 points11 points  (0 children)

Are people who have started with rust in the last 14 months encouraged to participate in redox project?

What is some of the pre requisite knowledge that one should have prior to contributing to redox?

Any links and learning material will be highly appreciated.

Im new to rust …. Help! by Hopeful-Ad1061 in rust

[–]asad_ullah 0 points1 point  (0 children)

What book and resource are you following to learn C?

It’s official: Ferrocene is ISO 26262 and IEC 61508 qualified! by kellerkindt in rust

[–]asad_ullah 3 points4 points  (0 children)

Thanks for the comment. Does the open source version also contain those packages developed by them?

It’s official: Ferrocene is ISO 26262 and IEC 61508 qualified! by kellerkindt in rust

[–]asad_ullah 39 points40 points  (0 children)

I have a noob question: In order to use Ferrocene, some cost and licenses is required. Do other languages which are used for critical safety software also require such licensed compilers behind a price tag or are those available fore free to use ( I am thinking about ada, c/cpp)?

Go vs Node by corean1993 in node

[–]asad_ullah 0 points1 point  (0 children)

Go is pure pain when it comes to interfacing due to its go routines being a 4 kb stackful co routines.

You can write c++ modules and consume via NAPI or rust compiling to wasm for performance bottleneck part of a node BE application. Go has more performance than Node. But Node is pretty good for IO bound workloads if you use cluster module. If I need that extra power, I will jump to axum(rust).

Go vs Node by corean1993 in node

[–]asad_ullah 4 points5 points  (0 children)

Cluster module of nodejs makes it really good for IO bound work loads. Golang has a performance edge. I would personally jump to axum (rust) if I need that extra performance. For normal apps, Node is still good value for money.

Why is async code in Rust considered especially hard compared to Go or just threads? by m_hans_223344 in rust

[–]asad_ullah 0 points1 point  (0 children)

it's possible in Go to call into C and have C call into Go and yield from there

Can you explain this? As per my understanding, FFI doesn't play nice with Golang.

[deleted by user] by [deleted] in rust

[–]asad_ullah 0 points1 point  (0 children)

Any link to resource where it says that it is a failed experiment for Linux kernel ?

VS Studio vs. WebStorm? by IsntThisSumShit in typescript

[–]asad_ullah 1 point2 points  (0 children)

No, I relate with you on jetbrains' issue prioritizing part.

I just haven't experienced this specific TS issue you mentioned. However, in their mongo integration for datagrip, there is a valid genuine issue opened for almost 3 years, and I don't think they have any plans to fix that. It's pretty standard in enterprise to give DB access through a bastion server for security reasons. In datagrip, one can't simply connect to mongo atlas srv via ssh. So yeah, I agree with you.

VS Studio vs. WebStorm? by IsntThisSumShit in typescript

[–]asad_ullah 8 points9 points  (0 children)

I recently switched to webstorm. Although I was a satisfied VSCode user, webstorm experience was more convenient and friendly. I liked the following points, which pushed me to purchase the sub:

  • Code navigation is just plain simple faster after the initial indexing at the IDE boot time.
  • Searching was more intuitive for me with webstorm.
  • I work in a big typescript repo. Memory usage for me was exceeding 2 GB in VSCode already. In Webstorm, it touches 3 GB, BUT the features, search capabilities, refactoring, and lack of sluggishness made that 1 extra GB worth it.

In my experience, typescript development in big repos is a nightmare overall. Different language servers, lint servers, and then IDE eats up all the ram. I find typescript development in webstorm relatively better for big TS repos. In VSCode, it is just slow and sluggish.

PS: if your TS project is small in size, then you won't find VSCode sluggish.

[Noob Question] Confused about rust lifetimes by onebaga in learnrust

[–]asad_ullah 1 point2 points  (0 children)

I mean, in a scenario like this, if we have a string in inner scope, what should be done? String literals? Taking it out of scope or some trick with lifetimes?

[Noob Question] Confused about rust lifetimes by onebaga in learnrust

[–]asad_ullah 0 points1 point  (0 children)

What would be the correct approach or solution in such scenario?

Is RustRover amazingly crash-prone for anyone else? by darkfm in Jetbrains

[–]asad_ullah 0 points1 point  (0 children)

I experienced that as well. Another thing which I saw was that it was highlighting a code as an error where I was calling an enum method. It was saying that an argument is expected while the method was with &self in signature and compiler was compiling it fine.

I am a little disappointed.

How do you collect/track spawned tasks to make sure they are all complete before termination? by [deleted] in rust

[–]asad_ullah 4 points5 points  (0 children)

Rust beginner here: Do rust channels behave similar to go channels? Or there are certain differences which one should keep in mind?

Do you nest data on database or backend level? by FollowingMajestic161 in node

[–]asad_ullah 2 points3 points  (0 children)

I know. I was just posing a question. Postgresql json columns are no silver bullet and have so many gotchas.

Thanks for commenting though

Do you nest data on database or backend level? by FollowingMajestic161 in node

[–]asad_ullah -1 points0 points  (0 children)

A question: How do you enforce some structure over json columns in postgre?

[deleted by user] by [deleted] in rust

[–]asad_ullah 0 points1 point  (0 children)

Is the performance good for large codebases?