4 ms·
There's a good use case for a system like this, allowing scripting to be used on platforms without Reflection.Emit (like iOS). But I'm not seeing anything diffe
by eropple 12y ago
There's a good use case for a system like this, allowing scripting to be used on platforms without Reflection.Emit (like iOS). But I'm not seeing anything differentiating about this particular project. Is there a reason to use this over Jint[1] or Script#[2]?
(I personally use my own gizmo called Exor[3], which does runtime compiling on desktop platforms and allows me to embed script assets at compile-time for platforms without Reflection.Emit. YM, of course, MV.)
[1] - https://github.com/sebastienros/jint https://github.com/sebastienros/jint
[2] - https://github.com/nikhilk/scriptsharp https://github.com/nikhilk/scriptsharp
[3] - https://github.com/eropple/Exor https://github.com/eropple/Exor
- Rohansi 12y agoJint is nice but it's really slow. Script# looks like it only compiles C# to JS, not really relevant here. Exor looks interesting but the CLR doesn't handle assembly reloading very well. You either have to use AppDomains or dynamic assemblies (which can be GC'd but have limitations IIRC) to clean up old assemblies.
- eropple 12y agoJint is pokey, but fast enough for most use cases. I went away from it mostly out of a desire to enforce contracts and static typing. I personally use Exor as a one-shot loader when the game using it starts, so yeah, you'd have to get cute with AppDomains if you're worried about reloading. (Last I checked, Mono didn't really support AppDomains and about 50% of my development is on a Mac, so I didn't really care).
- eropple 12y agoRegarding Script# - I got the wrong project, I always mix these two up and I was posting from my phone. I meant SSharp, which used to be called Script.NET, see... https://github.com/PetroProtsyk/SSharp https://github.com/PetroProtsyk/SSharp