Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cscottnet
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
cscottnet
3mo ago
I know, it's the coolest, right? They should have gone with xwm (pronounced "zoom") for the name, though. Searching reddit for "Parsoid" just turns up "parasitoid" wasps for some reason.
2.
▲
by
cscottnet
5y ago
Funny thing: I was hired by OLPC specifically to implement that book: https://blog.printf.net/articles/2011/06/18/narrative-interf...
3.
▲
by
cscottnet
7y ago
A slightly longer answer is that we looked into a number of possible reasons and it's not clear there's an easy answer. Lots of differences between the two setups, and every time we come up with an possible answer like "oh,
4.
▲
by
cscottnet
7y ago
It appears that you were probably describing the lexer pass in your description of docuwiki. Indeed tokenization is a very hard problem for wikitext. We use a pegjs grammar for it, but it contains less of lookahead/special conditions&#
5.
▲
by
cscottnet
7y ago
Yes. We're not there yet, but that's the goal!
6.
▲
by
cscottnet
7y ago
There are thousands of integration tests. The "correct" output of the parser is well-known for a given input, and those test cases have been accumulating for over a decade. But the internal structure of the parser is much more f
7.
▲
by
cscottnet
7y ago
If you want to dig through the history some: https://github.com/wikimedia/parsoid/blame/6eb00df3e090b20cc... Is a pretty good example of the porting technique. You'll see quite a decent number of lines
8.
▲
by
cscottnet
7y ago
I'm on the team. Part 2 of this post series should have lots of interesting technical details for y'all; be patient, I'm still writing it. But to whet your appetite: we used https://github.com/cscott/js2
9.
▲
by
cscottnet
11y ago
If you use it, we will keep it up.
10.
▲
by
cscottnet
11y ago
Sadly, this does seem to be a limitation of our labs infrastructure. :(
11.
▲
by
cscottnet
11y ago
Yeah, the domain setting was leaking between sessions before. Oops. Fixed now.
12.
▲
by
cscottnet
11y ago
It's actually a 269-line test case for more serious projects at the foundation: the Offline Content Generator and Parsoid. We're allowed to have fun in the service of the greater goal. More technical details at https://
13.
▲
by
cscottnet
11y ago
Patches welcome!
14.
▲
by
cscottnet
11y ago
Fixed!
15.
▲
by
cscottnet
11y ago
Accessing Wikimedia content while being Really Really certain that there is no downloadable code being executed, or browser exploits being inserted. Browsing for the paranoid. Here's a bit more: https://en.wikipedia.org
16.
▲
by
cscottnet
11y ago
Fixed!
17.
▲
by
cscottnet
11y ago
Oh -- and report bugs/feature requests at https://github.com/cscott/wikipedia-telnet/issues please. Patches are even better.
18.
▲
by
cscottnet
11y ago
See https://meta.wikimedia.org/wiki/Telnet_gateway for technical details. The technology behind this is used for Wikipedia's Visual Editor, PDF export, and plain text export, so it is very likely to be supported
19.
▲
by
cscottnet
13y ago
re: find_or_insert http://static.rust-lang.org/doc/0.8/std/hashmap/struct.HashM... It appears to still have the mandatory copy. (And this is just one example of a pervasive issue with the standard libra
20.
▲
by
cscottnet
13y ago
Please see http://cananian.livejournal.com/68747.html and https://github.com/cscott/rusty-turtle . Yes, the post is brief since it was written from notes several months after I had been talking to the r
21.
▲
by
cscottnet
13y ago
Sorry, I gave Mozilla about 3 weeks of free work, then travelled to SFO and talked with Rust folk in person. That's a lot of donated time. I was working on another project by the time I wrote this post (from my written notes). Try n
22.
▲
by
cscottnet
13y ago
Boehm is far from "fast in practice".
23.
▲
by
cscottnet
13y ago
Oh, look, my rant finally got noticed. ;) First off -- yes, it is a rant. I actually had some more nuanced in-person conversations, but those aren't nearly as fun to post. So you get the version that was fun for me to write. Sorry.