Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xymostech
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
1.
▲
by
xymostech
4mo ago
Are you viewing on a HiDPI monitor? I imagine this is mostly because RaTeX renders to an image whereas KaTeX is rendering HTML, so can scale to arbitrary dpi. I imagine the RaTeX people could have rendered to a higher resolution and it woul
2.
▲
by
xymostech
4mo ago
What are you struggling with? If you want an image output, there a reason you want to use KaTeX for this, and can't just use actual LaTeX? KaTeX depends on the browser engine to do most of the layout, so generating an image would requi
3.
▲
by
xymostech
2y ago
Oh yes, thank you for the link to that! Looks like that is an instruction set for representing the font glyphs themselves? I was talking about the instruction set in TFM which is for representing meta information, like ligatures and kerning
4.
▲
by
xymostech
2y ago
The original TeX Fonts stored their metrics in TFM (short for TeX font metrics) files, which contains a bytecode interpreter for calculating ligatures and kerning between characters. I learned about that when I tried reading the files mysel
5.
▲
by
xymostech
3y ago
My source was also the Lawful Masses stream, but it sounded like the original excuse was made in April, but it took until November for him to actually produce the death certificate to prove that he had lied about when his grandfather had di
6.
▲
by
xymostech
3y ago
2 days ago (12/27), "Web Hosting Service" was the most common page visited, with <0.1% mobile (compared to >70% for the rest of the top 10). Did something happen that would cause this? Or is this a bot farm that's
7.
▲
by
xymostech
6y ago
I think by "each system call" she meant it like "every time it calls read()", since it would be read() that was using the AVX registers. Since the example program just calls read() over and over, this could add a signifi
8.
▲
by
xymostech
7y ago
Based on snooping around the javascript, it looks like probably https://en.wikipedia.org/wiki/Gallery_Project
9.
▲
by
xymostech
7y ago
This was such a wonderful read! I've been getting into Rust recently, and the sections on dealing with challenges that are specific to Rust were particularly useful. The way they created a new trait to turn `Fn(&str) -> Result&l
10.
▲
by
xymostech
9y ago
I think you should be able to put those settings into your X11 configuration so you don't have to re-configure every time you boot, unless xinput on Ubuntu is different from Arch: https://wiki.archlinux.org/index.php&#x
11.
▲
by
xymostech
10y ago
Flow actually explicitly allows this[1] by just /* */ commenting out the flow type signatures. We use this in Aphrodite's code base[2] and it works pretty well. [1]: https://flowtype.org/blog/2015/02
12.
▲
by
xymostech
11y ago
You can try them out in your own browser easily by visiting them from rawgit: https://cdn.rawgit.com/pcwalton/webrender-demos/master/moire...
13.
▲
by
xymostech
12y ago
Woah, awesome. I've used the http://dnstunnel.de/ tunneling scripts before, and they're a bit of a pain to setup (mostly because of the perl library requirements).
14.
▲
by
xymostech
12y ago
There's no real "secret sauce", it's mostly just "do things smart". For example, while MathJax tends to do a bunch of calculations about exact positions of where different characters should go, KaTeX manages to
15.
▲
by
xymostech
12y ago
Hey! We're planning on adding environments (everything that uses \begin and \end) sometime soon. There's a couple github issues touching on this point; if you want to know how development's going, you can follow one of the is
16.
▲
by
xymostech
12y ago
The syntax will be almost entirely interchangable with MathJax; we also have a lot of content in MathJax-flavored-TeX and need it to work. However there are a couple small things that MathJax did strangely that we'd like to fix. Howeve
17.
▲
by
xymostech
12y ago
There's a lot of choices. We support a smaller subset of browsers and outputs (only IE8+, only HTML+CSS, no SVG), so we gain some speed there. We also try to push as much of the calculation into CSS as possible, so that the native brow
18.
▲
by
xymostech
12y ago
This is definitely a goal for the future. Eventually we'd like to support everything that MathJax does (and maybe more!) Equation numbering involves more work than some of the other features (we've managed to get away with never c
19.
▲
by
xymostech
12y ago
There aren't any plans at the moment. We've struggled with this problem before, and wrote something similar with https://github.com/khan/KAS/ but we've never worked at doing something inline. We use
20.
▲
by
xymostech
12y ago
We never do any unsafe dom manipulations, like using .innerHTML, only createElement and appendChild, so things should be fairly safe. Also, if you do server-side rendering, we escape code that users type in, so that should work well also.
21.
▲
by
xymostech
12y ago
Sounds great! If you have any problems, feel free to report issues on github, or join the #katex room on freenode.
22.
▲
by
xymostech
12y ago
We won't support ASCIIMath yet. There's a lot of content on the web already in LaTeX syntax (and on our own website), and a lot of people already know it. It is difficult to use and read, but it gets the job done. Maybe once we&#x
23.
▲
by
xymostech
12y ago
Ah. Yes, the diagram generating libraries are harder to implement. Since we don't actually implement the primitives that TeX uses, we can't just import libraries like xypic or tikz wholesale, we'd have to rewrite them from sc
24.
▲
by
xymostech
12y ago
I've never heard of this before, could you let me know what it is?
25.
▲
by
xymostech
12y ago
We reimplemented the TeX formatting algorithms in JavaScript. Most of them are in https://github.com/Khan/KaTeX/blob/master/src/buildTree.js (there are references to the pages from the TeXbook that
26.
▲
by
xymostech
12y ago
We don't use features like this at Khan Academy. However, most of the time the problems with MathJax were with the inital problem load, not with changing expressions later. It might be interesting to support something like that eventua
27.
▲
by
xymostech
12y ago
There isn't yet, but we're working on it! We have the fonts ready, just haven't added those functions yet. Could you make an issue on the github page so we make sure we don't forget?
28.
▲
by
xymostech
12y ago
Unfortunately, we're not. We might support that in the future though.
29.
▲
by
xymostech
12y ago
Yep, that's our goal. Khan Academy does a bunch of math rendering, and our exercises were suffereing because of it. Hopefully some time we'll be able to stop using MathJax.
30.
▲
by
xymostech
12y ago
We try to test in lots of different environments, so it should work reasonably in most environments. To get the speed we wanted, we had to ditch much older browsers (we don't support IE 7 and earlier), and we only render to HTML/C
More ›