ElkArte Community

Elk Development => Feature Discussion => Exterminated Features => Topic started by: meetdilip on September 25, 2014, 05:08:43 pm

Title: WINE for ElkArte
Post by: meetdilip on September 25, 2014, 05:08:43 pm
Just wondering if we can write some interface to make SMF mods work on ElkArte just like WINE in Ubuntu.
Title: Re: WINE for ElkArte
Post by: radu81 on September 25, 2014, 05:10:29 pm
I'm afraid is not so simple
Title: Re: WINE for ElkArte
Post by: meetdilip on September 25, 2014, 05:31:27 pm
Nothing is :)
Title: Re: WINE for ElkArte
Post by: forumsearch0r2 on September 25, 2014, 05:42:18 pm
What does WINE do? I only remember it to be a Windows simulator.
Title: Re: WINE for ElkArte
Post by: emanuele on September 25, 2014, 05:52:24 pm
Generic interface is plain impossible (and you may not know, but I don't use that expression very often).
The only possible (and probably meaningful) generic interface we can provide for compatibility with SMF is a mapping of ElkArte functions to $smcFunc equivalents.
Apart from that, any other thing would just be basically impossible.

Most of SMF mods rely on code edits, and provide a "fallback" for code edits is impossible (unless you want to go down the route to hack the package manager to react in a certain way when it encounters a certain action, that means really create a "case" for each mod that exist).

WINE, is an acronym for WINE Is Not an Emulator.
WINE can exist because Windows provides APIs that programs use to communicate with the OS. WINE "just" replicates this layer of APIs and programs mostly work on Linux as they works on Windows ("mostly" because many don't).
SMF doesn't provide (almost) any API the mods can use. The closest thing to APIs are hooks and functions.
If a mod uses only hooks and functions, there is a good probability the generic replacement of $smcFunc would be enough, but is not certain. It's a sort of guess...

Write the $smcFunc replacement is not difficult.
Title: Re: WINE for ElkArte
Post by: meetdilip on September 25, 2014, 05:57:43 pm
Quote from: forumsearch0r2 – What does WINE do? I only remember it to be a Windows simulator.

WINE helps you run Windows software inside Linux.
Title: Re: WINE for ElkArte
Post by: meetdilip on September 25, 2014, 05:58:25 pm
@emanuele , just throwing ideas. ;)
Title: Re: WINE for ElkArte
Post by: emanuele on September 25, 2014, 06:08:41 pm
I know. ;D