Better HN
topnewbestaskshowjobs
Log inSign up

letmutex

55 karma · joined May 6, 2024 (2y ago) · 13 submissions

Submissions

1.

Show HN: A native Compose Desktop host for macOS(github.com ↗)

1 points · by letmutex · 7mo ago · discuss

2.

Gitas – A tool for Git account switching(github.com ↗)

69 points · by letmutex · 9mo ago · 46 comments

3.

The Line Girl effect recreated by Gemini 3 Pro(github.com ↗)

2 points · by letmutex · 11mo ago · discuss

comment 2y ago · link · parent

Author here, I'm working on making it faster.

Currently, for the test page https://github.com/letmutex/htmd/blob/main/examples/page-to-..., the debug build is slower than turndown.js (~750ms vs ~670ms on my machine), the release build brings that down to ~170ms. It can definitely be faster, at least the debug build shouldn't be slower than turndown.js.

I haven't checked which parts can be improved, so I'm not sure how much time we can save after optimization.

comment 2y ago · link · parent

Thanks for the information! This is really helpful, glad to know these resources for improving it.

6.

Htmd: A turndown.js inspired HTML-to-Markdown converter for Rust(github.com ↗)

96 points · by letmutex · 2y ago · 28 comments

comment 2y ago · link · parent

Yes, combining characters and ZWJ emojis require additional processing, just like other languages (JavaScript, Java, etc.).

https://doc.rust-lang.org/std/primitive.str.html#method.char... https://github.com/letmutex/rust-substring/blob/992b826797a5...

comment 2y ago · link · parent

It's 'effective' in the title, I stole it from some book names. But in the content, it should be 'efficient', thanks for pointing it out.

comment 2y ago · link · parent

Thanks for pointing that out, str slice is surely better. I returned String in all versions just because collect() returns A String and I want to reuse the same test function. Will update this later.

10.

Effective substring in Rust(letmutex.com ↗)

12 points · by letmutex · 2y ago · 10 comments

11.

Free Gemini 1.5 for Discord(peky.app ↗)

2 points · by letmutex · 2y ago · discuss