This forum has been archived. All content is frozen. Please use KDE Discuss instead.

WASM - Krita in the Browser

Tags: None
(comma "," separated)
romdisc
Registered Member
Posts
3
Karma
0

WASM - Krita in the Browser

Mon May 20, 2019 12:14 pm
Hi,

I'm the founder of the Rust Community Stuttgart (https://www.meetup.com/de-DE/Rust-Community-Stuttgart/) and want to show the power of Webassembly at the next event in Mid-June.

I just want to make a showcase on how powerful Webassembly already is and want to run Krita in the Browser.

Has someone of you performed a compilation target WASM with the Krita code?

Is this idea too ambitious?

I'd like hearing your opinions on this and most of all a viable path on achieving it.

Thank you in advance.

Yours sincerely,
Romeo
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: WASM - Krita in the Browser

Mon May 20, 2019 4:14 pm
Um, no, we have talked about it, but never tried it. Krita uses multithreading a lot, and I'm not sure whether wasm already supports that. Then again, we use a score or more of dependencies, some of which use cpu vectorization instructions directly. I would be *extremely* interested in your results, and if you have any, well, I wouldn't hesitate to hop on the train to Stuttgart and see what you've come up with :-)
romdisc
Registered Member
Posts
3
Karma
0

Re: WASM - Krita in the Browser

Mon May 20, 2019 7:56 pm
is it currently possible to get a compilation binary with all the dependencies as static libs included?
I think of a one file distribution and with the current cmake config.
romdisc
Registered Member
Posts
3
Karma
0

Re: WASM - Krita in the Browser

Mon May 20, 2019 8:02 pm
@boudewijn

With the MVP, released in March 2017, there is no multithreading possible within WASM right now. (And only 32bit)
Further efforts will be made to get MT onboard as well as garbage collection. Which opens WASM for languages like Java, C# or Go.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: WASM - Krita in the Browser

Mon May 20, 2019 9:02 pm
romdisc wrote:is it currently possible to get a compilation binary with all the dependencies as static libs included?
I think of a one file distribution and with the current cmake config.


Not as far as I know; Krita uses plugins extensively, and plugins and static libs don't go together (as far as I know, thing might have changed...)


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]