NotAshley
|
  |
| Joined: 16 Jan 2014 |
| Total Posts: 14257 |
|
|
| 30 Aug 2015 12:27 AM |
I know it would be pointless but it'd be very very fun. Imagine a script builder with its own custom language.
It's not rocket science. The other day I saw an intermediate tutorial for writing a basic scripting language inside javascript and thought "that could work Lua easily!" |
|
|
| Report Abuse |
|
|
Froast
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 3134 |
|
|
| 30 Aug 2015 12:29 AM |
lua is already slow and high-level enough a language made on top of it would be even slower |
|
|
| Report Abuse |
|
|
KoreanBBQ
|
  |
| Joined: 06 Mar 2015 |
| Total Posts: 1436 |
|
|
| 30 Aug 2015 12:29 AM |
simplify lua? good luck
~TreeBranch, Owner of Lady of the Federation x2+ Crown of Roses |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 30 Aug 2015 12:42 AM |
I already did this, it was my own very basic, integer-based language. Originally created in C, I decided it would be fun to port it to Lua because "why not".
However, the speed difference was DRAMATIC, I had to simulate certain bitwise operations and other stuff which made things far slower.
In simple: not really a good idea unless you're doing it for fun. Keep SB's using Lua and not a custom language. |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
| |
|
|
| 30 Aug 2015 01:07 AM |
'I had to simulate certain bitwise operations' such as? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 30 Aug 2015 01:11 AM |
| shl, shr, AND, and a couple of functions that had to translate a byte array into either an integer or float and vice-versa |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2015 01:14 AM |
| Ahh, nothing too difficult then. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 30 Aug 2015 01:19 AM |
| I don't think any bitwise operation or 'conversion' would be hard, ofc. a 8-byte array to 8-byte integer is impossible normally which saddens my dear cold and dead heart. |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 30 Aug 2015 01:54 AM |
| Funny enough, all of the languages I designed were compiled to bytecode, it's just a fun idea since you can get more speed if you precompile your code (like Lua and Java and Python and a bunch of other languages) |
|
|
| Report Abuse |
|
|