Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
arthurtw
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
1.
▲
A Proposal for Rich Interactive Content Hypertext (RICH)
(twincl.com)
2 points
by
arthurtw
10y ago
|
0 comments
2.
▲
A Concise RESTful API Design Guide
(twincl.com)
1 points
by
arthurtw
10y ago
|
0 comments
3.
▲
Show HN: Twincl Notes – a free Markdown notes web app
(twincl.com)
2 points
by
arthurtw
10y ago
|
0 comments
4.
▲
by
arthurtw
10y ago
Those terms are for the site, not for the text editor. :-) I might open source the editor when I have time.
5.
▲
by
arthurtw
10y ago
Not yet. I might do that later, but it requires some cleanup work. The code has three parts: Markdown to HTML text, HTML DOM to Markdown, and the editor. The total size is about 30KB uncompressed (27KB JS + 3KB CSS). It didn't use any
6.
▲
by
arthurtw
10y ago
Wow, that's fun. No wonder few applications use "/" for hotkey combination. Maybe I should use a different key, say, ".".
7.
▲
by
arthurtw
10y ago
Yes, its HTML editing is pretty basic. I did not intend to make a full-blown HTML editor. There are already many ones. My goal is to make Markdown and HTML editors working together. I want to support Markdown because it's very producti
8.
▲
by
arthurtw
10y ago
Yes it follows CommonMark, but is stricter for safety consideration (e.g. does not allow scripts).
9.
▲
by
arthurtw
10y ago
It does not force you to use mouse click on GUI elements. You can use `⌘`+`/` (or `Alt`+`/` on Windows) to switch between WYSIWYG/Markdown modes. Actually it's the preferred way unless you are on mobile devices. The defa
10.
▲
Show HN: Twincl Editor – A WYSIWYG/Markdown dual-mode editor
(twincl.com)
55 points
by
arthurtw
10y ago
|
26 comments
11.
▲
by
arthurtw
10y ago
I believe OP means a WYSIWYG editor is much better than Markdown. In terms of a markup language in pure text, I think Markdown is your best bet. Folks in CommonMark.org tries to "standardize" Markdown. Our implementation in Twin
12.
▲
by
arthurtw
10y ago
Didn't you use existing rich text editors like TinyMCE or CKEditor?
13.
▲
by
arthurtw
10y ago
At least you must be careful when using multiple Facebook accounts from the same computer. It might cause your main Facebook account locked, and take you a while to have Facebook unlock it for you.
14.
▲
by
arthurtw
10y ago
Forum anonymity (or more precisely, disposable account) is the source of moderation pain and the reason of suboptimal forum content quality. It's one of the main issues I want to address from day 1. If FB account puts a lot of people o
15.
▲
by
arthurtw
10y ago
Exactly. That's why we did not use Google identity service. Google accounts are disposable, while Facebook enforces one-account-per-person policy.
16.
▲
by
arthurtw
10y ago
Maybe you are right. But Reddit uses Markdown, too, and people seem OK with that? Most redditors are not developers.
17.
▲
by
arthurtw
10y ago
You can use a verified Facebook account to join Twincl site for free. Ideally, we should use our own SMS verification process to prevent disposable accounts - maybe when we have money. Since Facebook does a decent job of fraud account preve
18.
▲
Show HN: Twincl – A New Attempt at “Rich Forum”
(twincl.com)
45 points
by
arthurtw
10y ago
|
28 comments
19.
▲
FluentJS: A tiny Facebook Flux library (less than 100 LOC)
(twincl.com)
1 points
by
arthurtw
11y ago
|
0 comments
20.
▲
by
arthurtw
12y ago
> 2. Static compilation. This makes a massive difference over Python in terms of catching and correcting problems at compile time vs run time. Correct. When comparing a static programming language to a dynamic one such as Go vs Python,
21.
▲
Making Abstract Products Makes Things Hard
(arthurtw.github.io)
1 points
by
arthurtw
12y ago
|
0 comments
22.
▲
by
arthurtw
12y ago
Bingo. With `regex!(r"[a-zA-Z0-9_]+")`, Rust finally runs faster than Nim. I’ve updated the article.
23.
▲
by
arthurtw
12y ago
Yes, I think Nim deserves more attention, and that’s part of the reason I wrote this article.
24.
▲
by
arthurtw
12y ago
Good point! I’ve updated the article accordingly. I learned the Entry thing a few months ago, but Rust’s BTreeMap did not support the entry API at that time, so my code did not use it. Then I totally forgot about it when writing this blog..
25.
▲
by
arthurtw
12y ago
I chose it because I wanted to learn Rust by implementing my own BTreeMap struct. I admit it’s not a good choice performance-wise, and made the comparison with Nim less meaningful. I’ve updated the code and article with HashMap. It runs abo
26.
▲
by
arthurtw
12y ago
It turns out `collections::HashMap` runs about 6~7% faster than BTreeMap. I will update the article to include results of both data structures.
27.
▲
by
arthurtw
12y ago
I’ll try that later, though the Nim version is fast enough after using -d:release flag.
28.
▲
by
arthurtw
12y ago
That should explain it. I’ve removed the line as it’s no more mysterious...
29.
▲
by
arthurtw
12y ago
I’ve added additional results with Nim’s --boundChecks:on flag. Thank you two for the suggestions.
30.
▲
by
arthurtw
12y ago
Oh, my bad. The numbers differ a lot (2~2.5x faster). I’ve updated the article.
More ›