Jiayi Wei

Results 20 comments of Jiayi Wei
trafficstars

Hi, - 该算法的大致思路是用一系列三次Bezier曲线来表示每个字母,Bezier曲线可视为一个`Double`参数t到二维点的映射(`t->Vec2`)。因为字母书写时有粗细变化,所以每段曲线还需要提供配套的一个Thickness函数(`t->Thickness`)。每个字母用Muse自带的字体编辑器可以设计一个模板,然后该算法在渲染这些字体时负责将这些模板拼接成一个个单词。拼接时大体思路是将前一个字母的最后一段和后一个字母的第一段合并成新的一段。渲染时先计算好单词所对应的曲线,再将这些带粗细的曲线用一系列四边形绘制出来。 - 目前还没有相关的论文 - 我觉得转成web版本应该是可行的,不过用js的话得重复实现很多复杂的逻辑。[Scala.js](https://www.scala-js.org)也许是一种更省事的方案,但性能可能会是个问题。不过目前算法花在绘制四边形上的时间似乎比计算这些曲线更长。 - 字体的话这个算法一开始就是考虑的用来绘制圆体,如果是其他类似风格的字体应该问题不大。(比较圆滑,容易连接)

> I think the best option would be to copy the clever enable/disable mechanism to ArgCheck.jl. What do you think @MrVPlusOne ? Yes, that sounds like a plan, and it...

Yes, I feel this is kind of inevitable if we want to switch the assertions at compile-time... But at least the user would be able to control the assertions inside...

> I think this is a very serious bug. Especially in the reverse direction. Imagine a user disables checks in one session and under the hood a bunch of random...

> Or maybe just macroexpand a check into: > > ```julia > if ArgCheck.enabled() > # the usual @check code > end > ``` > > and we have `enabled()...

If we only aim to let the user disable `@check`s in their own package, then I guess an alternative that does not have this "silent switch-off" issue would be to...

> What are your use cases? Would the ArgCheck.@disable_checks_for_current_module be useful for you? Personally, in most of my use cases, I don't really mind letting the checks stay. And for...

> I think @disable_checks_for_function would need to be added to the source code of a method? In that case I one can directly comment out the checks as well I...

> Hi. Could you try 0.8.8? This is working for me on the latest version? Weirdly, it's still not working on my computer as shown below: I'm using 0.8.8 nightly...

I can certainly try to work on this later (although I'm not familiar with the e-match algorithm myself and will have to learn more details), but currently, I will have...