Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hsfzxjy
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
hsfzxjy
1y ago
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.
2.
▲
Show HN: VSCode-remote-glibc-patch – Patch legacy Linux to use VSCode Remote
(github.com)
5 points
by
hsfzxjy
1y ago
|
1 comments
3.
▲
by
hsfzxjy
1y ago
Looks cursed to me. But TIL dollar sign $ is also valid character for identifiers.
4.
▲
Cohesive Digests for Ints and Floats
(i.hsfzxjy.site)
2 points
by
hsfzxjy
2y ago
|
0 comments
5.
▲
Why does str implement AsRef<OsStr>?
(old.reddit.com)
1 points
by
hsfzxjy
2y ago
|
0 comments
6.
▲
by
hsfzxjy
2y ago
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 ligature for >>= really confus
7.
▲
by
hsfzxjy
2y ago
> CJK line breaking is awful It's not true for Chinese. Chinese allows line breaks after any characters.
8.
▲
by
hsfzxjy
2y ago
I wonder whether it's relevant to this https://news.ycombinator.com/item?id=42102506
9.
▲
by
hsfzxjy
2y ago
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 something, is often written as "yyds." These teens have b
10.
▲
by
hsfzxjy
2y ago
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.
11.
▲
by
hsfzxjy
2y ago
Truly. But at first sight I couldn't parse the comma as anything else except a delimiter :(
12.
▲
by
hsfzxjy
2y ago
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 this in the first place.)
13.
▲
by
hsfzxjy
2y ago
Hexo for generation and hosted on Github Pages. https://i.hsfzxjy.site
14.
▲
by
hsfzxjy
2y ago
> `break rust;` causing the Rust compiler to emit an internal compiler error Is this real?
15.
▲
by
hsfzxjy
2y ago
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.
16.
▲
by
hsfzxjy
2y ago
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 works out the (x, y) locations of these blo
17.
▲
by
hsfzxjy
2y ago
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-...
18.
▲
by
hsfzxjy
2y ago
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.
19.
▲
by
hsfzxjy
2y ago
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 contains both the ttf file and a modified gedit, so that an
20.
▲
by
hsfzxjy
2y ago
Yes. The program actually includes an ONNX runtime, which uses SIMD to accelerate NN inference.
21.
▲
by
hsfzxjy
2y ago
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 the demo. As convenience, I built a Docker image that p
22.
▲
by
hsfzxjy
2y ago
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 too worried about it.
23.
▲
by
hsfzxjy
2y ago
wasm has SIMD extension https://github.com/WebAssembly/simd/blob/master/proposals/si... . You can use them even in browsers (e.g. Chrome >= 91)
24.
▲
Show HN: Handwriter.ttf – Handwriting Synthesis with Harfbuzz WASM
(github.com)
191 points
by
hsfzxjy
2y ago
|
53 comments
25.
▲
by
hsfzxjy
2y ago
So both versions of log crate manage their own internal states within the same process? Would this lead to surprising results?
26.
▲
by
hsfzxjy
2y ago
It's not "enforced by law", but recommended.
27.
▲
by
hsfzxjy
2y ago
Would like to see a Harfbuzz WASM implementation for this :)
28.
▲
by
hsfzxjy
2y ago
The quoted sentence still holds for Arabics, as RTL language has different concept of "first" than LTR ones. :-)
29.
▲
by
hsfzxjy
2y ago
VSCode extension marketplace is also unaccessible
30.
▲
Show HN: Learnware – Sharing, Exploring and Reusing ML Models for Developers
(github.com)
2 points
by
hsfzxjy
2y ago
|
0 comments
More ›