Better HN
topnewbestaskshowjobs
Log inSign up

mgt19937

27 karma · joined Dec 28, 2023 (2y ago) · 13 submissions

Submissions

comment 1y ago · link · parent

Thank you for the information!

comment 1y ago · link · parent

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

3.

DeepSeek-V3(github.com ↗)

125 points · by mgt19937 · 1y ago · 40 comments

comment 2y ago · link · parent

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?

5.

DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code(github.com ↗)

9 points · by mgt19937 · 2y ago · 1 comment

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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?

comment 2y ago · link · parent

Not really. I think the wasm file is only translated once and most time is spent on executing it.

comment 2y ago · link · parent

It remind me of typst, which use wasmi as its wasm plugin executor.

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

comment 2y ago · link · parent

It is. repo here: https://github.com/typst/typst