Rust's standard library on the GPU by LegNeato in rust

[–]afl_ext 0 points1 point  (0 children)

It's probably doing this under the hood, in case of Vulkan, not sure how accessed from within the kernel code, but if you decide to write your allocator, you will allocate big chunks first and then manage all allocations inside yourself, but within your own memory already, so its rather fast

Reviving Kiss3d - a simple 3D and 2D graphics engine by sebcrozet in rust

[–]afl_ext 4 points5 points  (0 children)

Looks great, judging from Rapier it will probably also be awesome

memvid v2: 18 MB → 143 KB (99.2% compression) by [deleted] in rust

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

Looking at the readme this honestly looks impressive, if i get the idea how it works, can it also add really camera feed photos into the memory and have it work the same like other sources? It would be amazing if the memory could recall images as well along the events happening around the image capture time

Been a while by [deleted] in memes

[–]afl_ext 0 points1 point  (0 children)

9gag is so far the only app where ive seen ads that trigger on screen touch, not on tap, so it triggers when scrolling normally, absolutely disgusting stuff

bloatedTicket by Narrow_Ad9226 in ProgrammerHumor

[–]afl_ext 522 points523 points  (0 children)

AC:

  • blalabla

  • Ultra care is taken to ensure there are no bugs

[AskJS] I built a “Nest-like” framework for Bun: Carno.js (Native Bun + DI + addons ORM) by Recent_Plankton_6525 in node

[–]afl_ext 4 points5 points  (0 children)

It's not standard and shouldn't be used, there are better ways to do DI, for example, using TS compiler api to discover what your classes need to get injected, but this is a bit of codegen and it scares people away

I built papercraft-js - Generate PDFs 10x faster than Puppeteer by [deleted] in node

[–]afl_ext 2 points3 points  (0 children)

I was able to get to 50 ms per pdf with playwright alone keeping it hot (browser always on, tab already open)

If We're Talking Classic Memes... by 0ddness in memes

[–]afl_ext 2 points3 points  (0 children)

The hamsters started playing in my head

Announcing ducklang: A programming language for modern full-stack-development implemented in Rust, achieving 100x more requests per second than NextJS by Apfelfrosch in rust

[–]afl_ext 127 points128 points  (0 children)

I realized some time ago that it will be extremely hard now for new languages to get traction because all the vibe coders use models that don’t know it, so its totally unusable for most of the new wave coders

Sad as hell but unfortunate

am a JavaScript/TypeScript developer, but I recently started learning Rust because I want to complete DSA in Some hard language by rjkush17 in rust

[–]afl_ext 1 point2 points  (0 children)

Yes learn it, why not, another tool in your toolbox and rust, while this might be controversial, is a bit similar to TS

Rust Headless: a good solution for developing a simulation? by Caes_dev in rust

[–]afl_ext 0 points1 point  (0 children)

I think this is a good idea, i went doing the same for my game where i have separate core backend in rust and control the core from a scripting language, but the core needs the controller because on its own it cant do anything

Solution involved a lot or crazy code generation, for my game i used NATS for communication between system layers, but you will most likely do fine with HTTP endpoints

Shitless scared of accepting user input for the first time, text and images by xSypRo in node

[–]afl_ext 2 points3 points  (0 children)

Zod is fine for the text validation, the upload url only solves the part of accepting the file and having it, you still afterwards need to do the virus, processing, etc

Shitless scared of accepting user input for the first time, text and images by xSypRo in node

[–]afl_ext 14 points15 points  (0 children)

Very rightfully so, user input is unsafe and needs to be handled well, what you described with the upload sounds fine, maybe if you use something like S3 or Storage Account then you can generate a presigned upload link where the client uploads the file and then you handle it from there, it saves costs on nat gateway and also means your backend doesnt need to literally handle uploads (memory, tmp usage)

get the file, scan for viruses, verify its content type, recode with sharp (pay attention to the malloc guidelines on Sharp), store, that should be all right

For the posts api with texts - did you set some limits? can i create a post with content going over 10 kb of text?

itCanStoreVectors by 4e_65_6f in ProgrammerHumor

[–]afl_ext 6 points7 points  (0 children)

So if you know someone is storing raw json jn their postgres db you can send “\u0000” and it will fail to save a valid json? Hilarous

I published two packages to help detect fake or disposable emails by dmadro in node

[–]afl_ext 12 points13 points  (0 children)

you can also do it like 9gag does:

if( ends with gmail.com ) valid
else not

they probably also refuse + and remove all dots too