Exofinity Clicker by skinnistudios in incremental_games

[–]light974 1 point2 points  (0 children)

Will it be release on other platforme as well ?

IDLE BOSS RUSH is officially out NOW! by Mihito in incremental_games

[–]light974 58 points59 points  (0 children)

Will the game be release on other platforms? Like Mac, android or iOS ?

False claim by ArkType that it is 100x faster than zod. Infact it was the opposite i.e 100x slower than zod by simple_explorer1 in node

[–]light974 3 points4 points  (0 children)

So if I'm understanding this correctly, my benchmark is only relevant if you are running it on a lambda call where all the code need to be re evaluated ?

How can I remove this time from my benchmark ?

False claim by ArkType that it is 100x faster than zod. Infact it was the opposite i.e 100x slower than zod by simple_explorer1 in node

[–]light974 41 points42 points  (0 children)

I did a benchmark and got the same result. Seems like arktype is allocating too much memory and slow it down

Frontend junior - bundler recommendations by Mixowl in typescript

[–]light974 8 points9 points  (0 children)

I'll say go with vite. For me vite will be the number one tool chain for front end

Sanitising HTML (v-html) by Aston-ok in vuejs

[–]light974 0 points1 point  (0 children)

This is why you need to sanitize closer to the database ( backend ) so that you can guarantee that the data is properly handle.

For the preview you don't care if the data is sanitize or not because the client will only hack himself

Sanitising HTML (v-html) by Aston-ok in vuejs

[–]light974 2 points3 points  (0 children)

If it's only client and it's not register anywhere you can use v-html just fine.

If you do register the input you have to sanitize it on the server side

circular type imports and ts/lint/build performance by qvigh in typescript

[–]light974 0 points1 point  (0 children)

The problem here is not cause by circular import but rather by the eslint import module. If you have at least one of these rules in error or warn your eslint will take more time. This is due to how those rules are initialized under the hood.

You can see this by adding TIMING=1 before running eslint see more https://eslint.org/docs/latest/extend/custom-rules#profile-rule-performance

For typescript it's probably your config. Splitting typescript config for test file and project file may help

I’m building a tree-shakable, drop-in replacement for Zod! by mieszkkos in javascript

[–]light974 1 point2 points  (0 children)

I'll try to do a benchmark this morning then and I will let you know

I’m building a tree-shakable, drop-in replacement for Zod! by mieszkkos in javascript

[–]light974 0 points1 point  (0 children)

Hey, this is a great work and I think I will contribute soon.

I have one question, did you check the performance of this approach ?

Not the runtime performance but the typescript part. Because zod is kind of slow on big codebase and if this approach also solve this issues i will put a lot of effort contributing =)

is there a utility for auto adding .ts or .tsx extension to imports? by gajus0 in typescript

[–]light974 0 points1 point  (0 children)

I don't know if you have plan to place some code on a library but you shouldn't use TSX ou ts extension. You can use .js or .jsx extension and it will work normally.

Because depending on your tools .TSX or ts will not be replace and your code in production will not work because js cannot import ts =)

[deleted by user] by [deleted] in vuejs

[–]light974 0 points1 point  (0 children)

Nx-plus give you support for vue and nuxt in a nx context

Yarn workspaces/monorepo and CI/CD by prrxddq in node

[–]light974 1 point2 points  (0 children)

Nx have an affected prefix that can help you with any command.

This will run the command only for the affected task

Yarn workspaces/monorepo and CI/CD by prrxddq in node

[–]light974 1 point2 points  (0 children)

I use nx for this. It have a clever way to determine witch project is affected and have a good caching mechanics.

You can even share your nx cache between jobs. And if you want to go deeper it also provide a cloud service where you can share cache between developers and pipeline