HNHacker News
TopNewBestAskShowJobs

mgt19937

27 karma · joined December 28, 2023

submissionscomments
mgt19937··on Acrobat is intrusive, slow and non-customizable
Thank you for the information!
mgt19937··on Acrobat is intrusive, slow and non-customizable
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

mgt19937··on Show HN: Latex.to – LaTeX to image converter running in the browser
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?

mgt19937··on DuckDB Isn't Just Fast
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.
mgt19937··on DuckDB 1.0.0
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

mgt19937··on cuDF – GPU DataFrame Library
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.
mgt19937··on Writing an NVMe Driver in Rust [pdf]
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?

mgt19937··on Wasmi v0.32: WebAssembly interpreter is now faster than ever
Not really. I think the wasm file is only translated once and most time is spent on executing it.
mgt19937··on Wasmi v0.32: WebAssembly interpreter is now faster than ever
It remind me of typst, which use wasmi as its wasm plugin executor.

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

mgt19937··on Show HN: Htmldocs – Typeset and generate pdfs with HTML/CSS
It is. repo here: https://github.com/typst/typst