News for hackers. Stuff that matters.

mgt19937

Re:Acrobat is intrusive, slow and non-customizable on Thursday October 16, 2025 @11:46AM (#45606849)
Thank you for the information!
Re:Acrobat is intrusive, slow and non-customizable on Thursday October 16, 2025 @01:37AM (#45601785)
There is a pure rust library for rendering pdfs to png(or bitmap) and svg: https://github.com/LaurenzV/hayro. It is used by typst for pdf image[1]. Although it might not be as mature as mupdf.

[1]: https://github.com/typst/typst/pull/6623

Cool project! I like the idea of easily sharing LaTeX formulas. It's impressive how smooth it works right in the browser.

I've always thought compiling LaTeX in WebAssembly would be a tough nut to crack, so I was curious if that's what you'd done here. Turns out you're using KaTeX.

Have you considered any WebAssembly approaches?

Re:DuckDB Isn't Just Fast on Tuesday June 11, 2024 @05:26AM (#40644206)
Sounds interesting. Is there a open issue for this? I found https://github.com/duckdb/duckdb/issues/8505 but it seems that that specific issue is closed.
Re:DuckDB 1.0.0 on Monday June 03, 2024 @10:25AM (#40562933)
One cool feature of duckdb is that you can directly run sql against a pandas dataframe/arrow table.[1] The seamless integration is amazing.

[1]: https://duckdb.org/docs/api/python/overview.html#dataframes

Re:cuDF – GPU DataFrame Library on Monday June 03, 2024 @05:28AM (#40560809)
How does this compare to duckdb/polars? I wonder if GPU based compute engine is a good idea. GPU memory is expensive and limited. The bandwidth between GPU and main memory isn't very much either.
Re:Writing an NVMe Driver in Rust [pdf] on Thursday May 30, 2024 @10:10AM (#40523926)
I used to think read is always faster than write in ssd. But in figure 5.3 and figure 5.4, it looks like in ssd, read iops is lower than write iops.

When queue depth is low(like qd=1), random 4k read iops is far more less(14.5 kiops vs 128 kiops) than 4k random write iops. When queue depth is high, like qd=32, the read iops and write iops becomes similar. But read iops is still less than write iops.(436 kiops vs 608 kiops)

I wonder why read is slower than write? Is it because ssd has a fast write cache, and it will finish the write request once the data is written into cache? Or it simply report that the data is written and actually write them in batch in background?

Not really. I think the wasm file is only translated once and most time is spent on executing it.
It remind me of typst, which use wasmi as its wasm plugin executor.

- https://typst.app/docs/reference/foundations/plugin/

Re:Show HN: htmldocs - Typeset and Generate PDFs with HTML/CSS on Wednesday January 17, 2024 @10:05PM (#39037140)