Viewing profile — hsfzxjy
hsfzxjy
HN member- Joined
- Tue, Feb 09, 2021, 4:45 PM UTC
- HN karma
- 193
- Public activity
- 74 items
- HN profile
- View on Hacker News ↗
About hsfzxjy
Recent public activity
-
comment
Comment #44450809
To derive "The XOR trick" I think both *associativity* and communitativity are needed. That is, one should also prove a ^ (b ^ c) = (a ^ b) ^ c. Instinctive, but non-trivial.
-
story
Show HN: VSCode-remote-glibc-patch – Patch legacy Linux to use VSCode Remote
This project provides pre-built artifacts to patch glibc on legacy Linux systems, enabling compatibility with the latest VSCode Remote extension.
-
comment
Comment #43663283
Looks cursed to me. But TIL dollar sign $ is also valid character for identifiers.
- story
- story
-
comment
Comment #42114697
I'm with you. Sometimes the symbols are ambiguous and totally unreadable. An example is >>=, which is "inplace shr" in some languages, but "monad bind" in others. A unified ligatur…
-
comment
Comment #42106819
> CJK line breaking is awful It's not true for Chinese. Chinese allows line breaks after any characters.
-
comment
Comment #42103553
I wonder whether it's relevant to this https://news.ycombinator.com/item?id=42102506
-
comment
Comment #41971510
Meanwhile, another trend among Chinese teenagers is the use of Pinyin initials to replace Chinese words. For example, 永远的神 (pinyin: Yǒngyuǎn de shén), a meme used to praise somethi…
-
comment
Comment #41705834
You may self-host a vaultwarden to serve TOTP and install a website extension. To login you just click the extension for code and no need for any mobile app.
-
comment
Comment #41634941
Truly. But at first sight I couldn't parse the comma as anything else except a delimiter :(
-
comment
Comment #41634657
I mistakenly think the guy took over a year to boot Linux/4004 due to the comma in the post title. (I was aware that comma represents decimal point in some regions, just didn't get…
-
comment
Comment #41610506
Hexo for generation and hosted on Github Pages. https://i.hsfzxjy.site
-
comment
Comment #41326090
> `break rust;` causing the Rust compiler to emit an internal compiler error Is this real?
-
comment
Comment #41317494
You can run the demo locally following the Usage part. Currently the WASM shaper feature is not enabled in any browser, so the demo won't work in web pages.
-
comment
Comment #41316290
The handwriting in fact consists of multiple "tiny black box" glyphs, similar to pixels in traditional rendering. The program takes the text (e.g., "Hello world") as input, and wor…
-
comment
Comment #41316270
I didn't train the model myself. A pretrained model is adopted from another repo [0]. [0]: https://github.com/X-rayLaser/pytorch-handwriting-synthesis-...
-
comment
Comment #41310871
The answer is "no why", just for fun :) Though I learned a lot about how to stuff an NN model in a WASM binary and some tricks to optimize performance.
-
comment
Comment #41310775
The project must be tested in an application linked against libharfbuzz with WASM shaper enabled. Since it's not easy to build a library like this, I make a Docker image which cont…
-
comment
Comment #41310742
Yes. The program actually includes an ONNX runtime, which uses SIMD to accelerate NN inference.
-
comment
Comment #41310712
You can't test it in a browser, since no browser at present is linked against libharfbuzz with WASM shaper. Instead, one can test it with a modified local program such as gedit in …
-
comment
Comment #41310628
This is just a project for fun, like llama.ttf. WASM shaper is still experimental and not yet shipped in and products, not before more limitation carried out as I think. So I'm not…
-
comment
Comment #41310513
wasm has SIMD extension https://github.com/WebAssembly/simd/blob/master/proposals/si... . You can use them even in browsers (e.g. Chrome >= 91)
-
story
Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
During the hype of llama.ttf months ago, I was speculating the potential of WASM shaper for even crazier purpose, one that fitter to a font shaper's duty -- to synthesize font at r…
-
comment
Comment #41287714
So both versions of log crate manage their own internal states within the same process? Would this lead to surprising results?