Add local string Buffer, fix speed issues
This commit is contained in:
@@ -33,7 +33,7 @@ class ActionView(val interp: Interpreter, val ioView: IOView) : View() {
|
||||
|
||||
button("run") {
|
||||
setOnAction {
|
||||
runTimeline.rate = 1000.0
|
||||
runTimeline.rate = 10000000.0
|
||||
runTimeline.playFromStart()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,5 +14,7 @@ class CodeView(val interp: Interpreter) : View() {
|
||||
}
|
||||
|
||||
override val root = textarea(srcProperty) {
|
||||
prefRowCount = 25
|
||||
prefColumnCount = 80
|
||||
}
|
||||
}
|
||||
@@ -27,6 +27,35 @@ class EditorView : View("Befide") {
|
||||
}
|
||||
|
||||
init {
|
||||
codeView.src = """64+"!dlroW ,olleH">:#,_@"""
|
||||
codeView.src = """>84*>:#v_55+"ude.ub@yelruta">:#,_@>188*+>\02p\12p\:22p#v_${'$'} 55+,1- v
|
||||
^ 0 v +1\ _^#-+*< >22g02g*"_@"*-!1- #v_v>
|
||||
>:>::3g: ,\188 ^^ -1\g21\g22<p3\"_":<
|
||||
________________________________@_________________________________^ p3\"@":<"""
|
||||
// codeView.src = """--------------------------------------------------------------------------------
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// |-
|
||||
// """.trimMargin()
|
||||
}
|
||||
}
|
||||
@@ -16,9 +16,11 @@ class IOView(val interp: Interpreter) : View() {
|
||||
|
||||
init {
|
||||
interp.outputChanged += {
|
||||
var str = ""
|
||||
while (!interp.stdOutput.isEmpty()) {
|
||||
output += interp.stdOutput.remove()
|
||||
str += interp.stdOutput.remove()
|
||||
}
|
||||
output += str
|
||||
}
|
||||
// add listeners to interp, handle streams, idk
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user