ArrayArrayArrayArray BrainModular BrainModular Users Forum 2014-02-19T20:36:22+02:00 https://brainmodular.com/forums/app.php/feed/topic/4294 2014-02-19T20:36:22+02:00 2014-02-19T20:36:22+02:00 https://brainmodular.com/forums/viewtopic.php?t=4294&p=29010#p29010 <![CDATA[fastscript debugging]]>
When I say 'boilerplate' I'm thinking for instance of looping over arrays to set each value to zero. Or looping over arrays using a 'for' statement and iterating a counter at all. But these are basic 'static' versus 'dynamic' talking points. For scripting purposes, 'dynamic' won this debate quite some time ago, in the Dark Ages when the Internet adopted Perl and hasn't looked back since (though Perl code now feels almost archaeological in a similar way to Pascal).

All that said, in the real world Usine's scripting abilities are really amazing when you consider the capabilities of the platform. The stuff you can do in a small amount of code is stuff that would take a lot of effort to do almost anywhere else (including patches!).

So I do not want to seem like I am badmouthing Usine, or Pascal, or the Pascal scripting in Usine. It just seems like a slightly odd fit to script such a dynamic and expressive environment in such a strict and formal (see 'boilerplate') language. There are likely real benefits to keeping scripting in Usine statically typed, though. It's easy to appreciate the complexity of all these wires and signals flying around and still doing what's expected.

Statistics: Posted by ceasless — 19 Feb 2014, 19:36


]]>
2014-02-17T15:48:52+02:00 2014-02-17T15:48:52+02:00 https://brainmodular.com/forums/viewtopic.php?t=4294&p=28999#p28999 <![CDATA[fastscript debugging]]>
Yeah I find that lack of debug options is adding quite a lot of time to getting the thing to work especially for more complex scripts. Personally I prefer Pascal style language coz I know it better than Lua but whatever will work with breakpoints/watches is good...

Statistics: Posted by jjbonkers — 17 Feb 2014, 14:48


]]>
2014-02-17T12:45:57+02:00 2014-02-17T12:45:57+02:00 https://brainmodular.com/forums/viewtopic.php?t=4294&p=28998#p28998 <![CDATA[fastscript debugging]]>

CODE:

writeln&#40;'value of x is '+inttostr&#40;x&#41;&#41;;
Note the awkward use of '+' as concatenation even while the language demands explicit casting of integer to string.

Regarding breakpoints and other debuggerness, I haven't the foggiest clue.

I would love to see Lua adopted at some point. I know other users were asking for Python, but in my opinion that is a huge mistake (heavier runtime, slower execution). Lua is the clear winner for application scripting, especially in performance critical applications.

Statistics: Posted by ceasless — 17 Feb 2014, 11:45


]]>
2014-02-17T00:26:46+02:00 2014-02-17T00:26:46+02:00 https://brainmodular.com/forums/viewtopic.php?t=4294&p=28997#p28997 <![CDATA[fastscript debugging]]>
Thx

J

Statistics: Posted by jjbonkers — 16 Feb 2014, 23:26


]]>
BrainModular BrainModular Users Forum 2014-02-19T20:36:22+02:00 https://brainmodular.com/forums/app.php/feed/topic/4294 2014-02-19T20:36:22+02:00 2014-02-19T20:36:22+02:00 https://brainmodular.com/forums/viewtopic.php?t=4294&p=29010#p29010 <![CDATA[fastscript debugging]]>
When I say 'boilerplate' I'm thinking for instance of looping over arrays to set each value to zero. Or looping over arrays using a 'for' statement and iterating a counter at all. But these are basic 'static' versus 'dynamic' talking points. For scripting purposes, 'dynamic' won this debate quite some time ago, in the Dark Ages when the Internet adopted Perl and hasn't looked back since (though Perl code now feels almost archaeological in a similar way to Pascal).

All that said, in the real world Usine's scripting abilities are really amazing when you consider the capabilities of the platform. The stuff you can do in a small amount of code is stuff that would take a lot of effort to do almost anywhere else (including patches!).

So I do not want to seem like I am badmouthing Usine, or Pascal, or the Pascal scripting in Usine. It just seems like a slightly odd fit to script such a dynamic and expressive environment in such a strict and formal (see 'boilerplate') language. There are likely real benefits to keeping scripting in Usine statically typed, though. It's easy to appreciate the complexity of all these wires and signals flying around and still doing what's expected.

Statistics: Posted by ceasless — 19 Feb 2014, 19:36


]]>
2014-02-17T15:48:52+02:00 2014-02-17T15:48:52+02:00 https://brainmodular.com/forums/viewtopic.php?t=4294&p=28999#p28999 <![CDATA[fastscript debugging]]>
Yeah I find that lack of debug options is adding quite a lot of time to getting the thing to work especially for more complex scripts. Personally I prefer Pascal style language coz I know it better than Lua but whatever will work with breakpoints/watches is good...

Statistics: Posted by jjbonkers — 17 Feb 2014, 14:48


]]>
2014-02-17T12:45:57+02:00 2014-02-17T12:45:57+02:00 https://brainmodular.com/forums/viewtopic.php?t=4294&p=28998#p28998 <![CDATA[fastscript debugging]]>

CODE:

writeln&#40;'value of x is '+inttostr&#40;x&#41;&#41;;
Note the awkward use of '+' as concatenation even while the language demands explicit casting of integer to string.

Regarding breakpoints and other debuggerness, I haven't the foggiest clue.

I would love to see Lua adopted at some point. I know other users were asking for Python, but in my opinion that is a huge mistake (heavier runtime, slower execution). Lua is the clear winner for application scripting, especially in performance critical applications.

Statistics: Posted by ceasless — 17 Feb 2014, 11:45


]]>
2014-02-17T00:26:46+02:00 2014-02-17T00:26:46+02:00 https://brainmodular.com/forums/viewtopic.php?t=4294&p=28997#p28997 <![CDATA[fastscript debugging]]>
Thx

J

Statistics: Posted by jjbonkers — 16 Feb 2014, 23:26


]]>