Fork me on GitHub
#off-topic
<
2017-04-27
>
john02:04:12

Due to a bug in Chrome, you cannot send Transferables between web workers via MessagePort. Only between web workers and the main thread 😞

john02:04:18

So to get Transferables between web workers, you'd have to route all Transferables over the main thread.

john02:04:40

Hopefully that would just be shuttling references around. But I'd prefer to route all messages through a routing worker or direct p2p

rauh08:04:28

Not sure where to put this. I imported the entire OmegaWiki into Datomic for much easier querying: https://gist.github.com/rauhs/309bbd6c270bd8608f0689d8a826c223 Just dumping here in case somebody can make use of it. See the examples in the gist what OmegaWiki data has to offer.

qqq20:04:58

https://lively-web.org/documentation/profesores.html <-- anyone familiar with this? this morphic ; smalltalk / lively web thing has very interesting design decisions

qqq20:04:57

@darwin @mobileink: I think, for situations where if we know all the font sizes before hand, the texture method can probably work

mobileink20:04:16

well i just now,started looking at thw msg log. fwiw i'm a typography geek from way back when.

qqq20:04:01

so I'm rendering math equations, like KaTeX/mathjax

qqq20:04:14

and I need WebGL to render SVG level font rendering

mobileink20:04:17

but why do you want to do this yourself? browsers do type pretty well these days.

qqq20:04:25

the main approaches that I know of are:

qqq20:04:31

texture (blurry)

qqq20:04:41

signed distance fields (better than texture, but no sharp edges)

qqq20:04:56

vector texturesk where you store triagles / bezier curves, and use fragment shaders to compute the portions of pxels to shade

mobileink20:04:06

wait: text, or tech text (math, logic)?

mobileink20:04:15

not an answer. i use latex for text with no math.

qqq20:04:37

I'm rendering math equations.

mobileink20:04:16

haven't looked lately, but isn't that already covered? what do you need to do that cannot alreqdy be done?

qqq20:04:43

which library ?

mobileink20:04:08

then there's mathml

qqq20:04:39

it's not WYSIWYG

qqq20:04:42

not rea time

qqq20:04:47

not real time

qqq20:04:58

it's 2017

qqq20:04:01

we have photo realistic compujter games

qqq20:04:14

but no real time wysiwyg mth editor

mobileink20:04:56

i dont know what you mean. you go to a webpage, you see equations.

qqq20:04:26

I go to a webpage. Then I can type equationsin real time.

qqq20:04:35

in a what you see is what you get, not typing LaTeX

mobileink20:04:23

ok you just changed the topic. we started by talking about rendering fonts etc.

qqq20:04:04

well, I need to render fonts

qqq20:04:11

because I want to write a real time math equatin oeditor

mobileink20:04:15

at least i did. i no longer know what your after.

mobileink20:04:36

render != edit

qqq20:04:44

"I want to render TeX fonts in WebGL so I can write a real time math equation editor in WEbGL."

qqq21:04:00

edit = while(1) { get input; render; }

qqq21:04:08

I have the get_input part solved, so it's only the "render" part that is left

qqq21:04:00

it's a long story, and also off-topic from 'rendering fonts in webgl" 🙂

mobileink21:04:17

whatever you do do not get into the font rendering biz unless thatcis your primary biz. it's an incredibly complicated time-suck. find a lib

mobileink21:04:12

anyway, what does "what you see is what you get" mean in math? where's the keystroke for integral (for example)?

fellshard22:04:53

Interesting @ lively web, that's definitely of Smalltalk vein.

fellshard22:04:53

Not terribly polished, but what's there is certainly interesting. Leaning more towards the visual analogy, as seen by drag-and-drop implying programmatic composition and not just visual composition