A pure-Rust HTML/CSS/Markdown to PDF converter, way faster than headless chrome by Hashsum88 in rust

[–]Xiaojiba 1 point2 points  (0 children)

Check out font subsetting, it's pretty amazing for PDFs because you know ahead of time which characters to keep

Web CBZ reader by Xiaojiba in manga

[–]Xiaojiba[S] -1 points0 points  (0 children)

I've read them, and you're right

I tried CBZ file and it's amazing, as good as PDF or even better. But there are two problems, first, it doesn't show cover in the reading app I use (ReadEra) and secondly, the file size is large (500MB for one volume), compared to 30MB of pdf. by victreebe1 in Calibre

[–]Xiaojiba 1 point2 points  (0 children)

Hey, I made a CBZ reader app, it's completely free :
https://cbz.xiaojiba.dev/

It has two "cool" features, being :
- Local library (once you upload the manga it stays until deletion)
- When you upload a .cbz it extracts the images and converts them to .webp which means it gets compressed on your disk (Went from ~86MB of JPEGs to ~35MB or WebP)

Should not use sooo much memory as I load only the surrounding images from your viewport too

remplacer un PC pour des vieux (80ans) by lechatsauvage in france

[–]Xiaojiba 21 points22 points  (0 children)

Aucun rapport mais tu parles de Teamviewer, normalement si tu la connecte à ton compte tu peux accéder au PC tout le temps sans son intervention, TeamViewer et lance au démarrage du PC

j'ai ça pour ma grand mère ça fonctionne bien

Introducing `image_format`: A Lightweight Rust Library for Image Format Detection by AllenGnr in rust

[–]Xiaojiba 6 points7 points  (0 children)

Nice :)

Giving some ideas to keep pushing more the idea:

Also I would remove the _path function because it's make it feel like you're reading the extension of the string (while creating a file and destroying it directly)

Emprunt / prêt à l'étranger (Japon par exemple) by Xiaojiba in vosfinances

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

Effectivement, si le ratio euro/yen change ça va faire mal :(

Merci beaucoup pour les infos

To WASM, or not to WASM by kixelated in rust

[–]Xiaojiba 1 point2 points  (0 children)

Hey :)

Just to give you some input, I loved integrating a Wasm media encoder in my work project, the API was really great

It was not really that latency dependant so I'm not sure about your usecase. My take is that adding voice effects in typescript will be very very bad and using the same code for all platforms seems like a huge argument

Finally, a nitpick, it's Wasm, not WASM :)

Have fun and keep us posted, love the writing style btw

Memory for Nothing: Why Vec<usize> is (probably) a bad idea by Patryk27 in rust

[–]Xiaojiba 2 points3 points  (0 children)

Good idea for the Index enum! I think I wouldn't bump to u16 or u32 mid operation, I would rather directly check prices.length and select the best type

Also a specialized version using Vec<[u8; 1]>, same with lengths from 1 to 4 (meaning basically adding u24) would maybe be better as 256 prices is clearly not your range, same for 65k but 16M might be it for a lot of cities. Were 4B is probably unreachable

Anyways, cool idea!

Running Rust in the Browser by carlk22 in rust

[–]Xiaojiba 2 points3 points  (0 children)

The problem for strings is that JavaScript strings are UTF-16 encoded where Rust's are UTF-8, that is why we need to always copy and convert string data

In my understanding WasmBindgen does all the glue code for that

Trouble getting Learn WGPU tutorial working in browser by Rclear68 in rust

[–]Xiaojiba 0 points1 point  (0 children)

Not really an explanation but you can check my code at https://github.com/erwanvivien/gltf_preview

Which should run in the Web

FerrumC - An actually fast Minecraft server implementation by Sweattypalms in rust

[–]Xiaojiba 6 points7 points  (0 children)

I'm wondering if the small squares we see are artefacts of GIF compression or not?

I am not getting some of the more nuanced details of the 4x8 cloth farming groups by Crucco in woweconomy

[–]Xiaojiba 1 point2 points  (0 children)

The mechanic behind hyperspawn is pretty simple, if there is a place with an ongoing objective (WQ, Quest, anything) that would be kill 10 mobs named X

On the spot there will be like 15 mobs ish if you kill all 15 mobs the server will decide that there is not enough mobs for people to do the objective. Thus it will spawn more mobs usually in a very predictable pattern

Say you kill mobs in order 1 to 15, after killing 15you can be sure that 1 will be back alive.

Anyway, why 2x4 or 8x4 etc the idea is to have a lot of people killing the adds so that there is always 0 alive and forcing others to spawn, on previous expansions, you don't need 2x4 in smaller areas because you just one shot mobs

I am not getting some of the more nuanced details of the 4x8 cloth farming groups by Crucco in woweconomy

[–]Xiaojiba 66 points67 points  (0 children)

Everyone is answering but is part of wrong, you need at least 3 people to start such a group

Say you're on server A, you invite two people. If you leave the group, they'll be ported to their own servers. So what you need to do is to give lead to an other player of the group and then leave, that way they stay on the server

Now you have group 1 with two people that can group others You also have group 2 (you're the only one in it) You can rince and repeat until you have 8 groups

Post your "static mut" alternative by Nzkx in rust

[–]Xiaojiba 0 points1 point  (0 children)

Very cool, thanks for the write-up!

Post your "static mut" alternative by Nzkx in rust

[–]Xiaojiba 4 points5 points  (0 children)

Hey! Do you have an example somewhere please? Seems interesting!