What devs would like in MP4 for ManiaScript
Moderator: English Moderator
Re: What devs would like in MP4 for ManiaScript
+1 on all of this.. I've been thinking of writing a Coffeescript to Maniascript transcoder just so that we can have structures and classes, but I can't find the time for it
- toffe
- Posts: 782
- Joined: 15 Jun 2013, 10:57
- Manialink: maniaflash?toffe
- Location: The Netherlands
- Contact:
Re: What devs would like in MP4 for ManiaScript
999. ManiaScript ==> JS (replace)Miss wrote:+1 on all of this.. I've been thinking of writing a Coffeescript to Maniascript transcoder just so that we can have structures and classes, but I can't find the time for it
ManiaCalendar: http://maniacalendar.com / manialink
ManiaCDN: topic
PyPlanet: Python Server Controller
ManiaCDN: topic
PyPlanet: Python Server Controller
Re: What devs would like in MP4 for ManiaScript
That would be something.. though if there ever is going to be a secondary way of writing Maniascript, I'd suggest implementing Angelscript, since it's a familiar language (to C++ programmers, at least) and it's also pretty easy to implement into host applications.toffe wrote:999. ManiaScript ==> JS (replace)Miss wrote:+1 on all of this.. I've been thinking of writing a Coffeescript to Maniascript transcoder just so that we can have structures and classes, but I can't find the time for it
- Dommy
- Translator
- Posts: 1901
- Joined: 25 Aug 2011, 21:45
- Manialink: exchange
- Location: Poland
- Contact:
Re: What devs would like in MP4 for ManiaScript
Replacing MS with another programming language would make a small mess (mostly for people most related to it, guess who), instead the addition of new features is better move imo.
Ryzen 7 2700X, GTX 1070 Ti, 16 GB RAM, Windows 10 Insider Build
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT
Contact me via GALAXY & PURSUIT DISCORD
FORUM MODERATOR • CREATOR OF SHOOTMANIA GALAXY & TRACKMANIA² PURSUIT
Contact me via GALAXY & PURSUIT DISCORD
Re: What devs would like in MP4 for ManiaScript
There have always been discussions about this, what would have happened if Nadeo had integrated LUA ? It was designed to work with C. Simple to program lot's of possibilities and offers lot's of possibilities.
But now to late, we have Maniascript.
What we need is someone with some lex/yacc knowledge and lot's of time to build us a compiler from C/C++ to Maniascript. But to do that properly he needs to understand both the input & output language ver well.
But now to late, we have Maniascript.
What we need is someone with some lex/yacc knowledge and lot's of time to build us a compiler from C/C++ to Maniascript. But to do that properly he needs to understand both the input & output language ver well.
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
- Nerpson
- Translator
- Posts: 1555
- Joined: 27 Sep 2013, 18:02
- Manialink: nerpson
- Location: France
- Contact:
Re: What devs would like in MP4 for ManiaScript
ManiaScript is great and fun to code! Replacing it is clearly not a solution. Some things could be improved and that's the aim of this topic, suggestions.
Re: What devs would like in MP4 for ManiaScript
I never said replace it, I said add a secondary scripting language (so that old scripts still work and new scripts can be written with either language)
The only thing that would be challenging is that you might not be able to do the whole state/yield thing..
The only thing that would be challenging is that you might not be able to do the whole state/yield thing..
Re: What devs would like in MP4 for ManiaScript
The main issue of the language itself addressed in this thread is the lack of structs and classes. Besides that I agree with previous posts that ManiaScript isn't all that bad once you're a bit into it.
Replacing it definitly isn't an option so some kind of (probably community-driven) transpiler seems to be the best way. In my eyes some alteration of ManiaScript with some extra features and shortcuts would be the most handy option. (Please no JS ._. It's just working completely different from ManiaScript. Callbacks would be nice in ManiaScript though)
As a compromise I can imagine some script translating a "class" structure by prefixing methods and attributes and inserting handles as method-argument and property array-keys so that the remaining code is a bit cleaner to write. Translating some self.method(a,b,c) to class_method(self, a, b, c) and self.attribute to class_attribute[self] shouldn't be too big a problem, but as I am not so much a fan of writing parsers I haven't realized my thoughts on that yet.
Another question is if there really is some general best practice to transpile to: e.g. I can create unlimited "objects" with a handle of type Text for more abstract objects, while I could think of CMlControl for something like Dialogs, where I then can use .Show() or .Hide() directly on the handle the constructor returns. (But maybe that's bad practice as it is inconsistent - and you can't handle show/hide-calls on your own.)
Replacing it definitly isn't an option so some kind of (probably community-driven) transpiler seems to be the best way. In my eyes some alteration of ManiaScript with some extra features and shortcuts would be the most handy option. (Please no JS ._. It's just working completely different from ManiaScript. Callbacks would be nice in ManiaScript though)
As a compromise I can imagine some script translating a "class" structure by prefixing methods and attributes and inserting handles as method-argument and property array-keys so that the remaining code is a bit cleaner to write. Translating some self.method(a,b,c) to class_method(self, a, b, c) and self.attribute to class_attribute[self] shouldn't be too big a problem, but as I am not so much a fan of writing parsers I haven't realized my thoughts on that yet.
Another question is if there really is some general best practice to transpile to: e.g. I can create unlimited "objects" with a handle of type Text for more abstract objects, while I could think of CMlControl for something like Dialogs, where I then can use .Show() or .Hide() directly on the handle the constructor returns. (But maybe that's bad practice as it is inconsistent - and you can't handle show/hide-calls on your own.)
Re: What devs would like in MP4 for ManiaScript
Hmm considering I really need this and I've been thinking about doing this before, I might experiment a bit with it later today.zocka wrote:The main issue of the language itself addressed in this thread is the lack of structs and classes. Besides that I agree with previous posts that ManiaScript isn't all that bad once you're a bit into it.
Replacing it definitly isn't an option so some kind of (probably community-driven) transpiler seems to be the best way. In my eyes some alteration of ManiaScript with some extra features and shortcuts would be the most handy option. (Please no JS ._. It's just working completely different from ManiaScript. Callbacks would be nice in ManiaScript though)
As a compromise I can imagine some script translating a "class" structure by prefixing methods and attributes and inserting handles as method-argument and property array-keys so that the remaining code is a bit cleaner to write. Translating some self.method(a,b,c) to class_method(self, a, b, c) and self.attribute to class_attribute[self] shouldn't be too big a problem, but as I am not so much a fan of writing parsers I haven't realized my thoughts on that yet.
Another question is if there really is some general best practice to transpile to: e.g. I can create unlimited "objects" with a handle of type Text for more abstract objects, while I could think of CMlControl for something like Dialogs, where I then can use .Show() or .Hide() directly on the handle the constructor returns. (But maybe that's bad practice as it is inconsistent - and you can't handle show/hide-calls on your own.)
Re: What devs would like in MP4 for ManiaScript
I decided to give it a shot, here's what I have now.. still lacks a lot of features but it's something I guess.. not sure if I should continue working on it
But I guess this is a little bit off-topic, should I make a new thread for this?
But I guess this is a little bit off-topic, should I make a new thread for this?
Who is online
Users browsing this forum: No registered users and 1 guest