[01:08:11] John[Lisbeth]: But, bash already has array support? [01:08:16] Or are you not actually using bash? [01:10:12] You have integer-based arrays, which start at 0, and also "associative arrays", which really act like string-indexed hashmaps [01:10:17] I am using bash [01:10:22] I am just implementing arrays myself [01:10:34] I do not like bash arrays and implementing arrays as files gives me my own advantages [01:10:43] only that problem I previously mentioned has already been solved now I'm on another one [07:35:06] * jtimon [jtimon!~quassel@186.31.134.37.dynamic.jazztel.es] has quit (Ping timeout: 252 seconds). [12:16:53] * iqbalansari [iqbalansari!~user@123.201.192.111] has joined the channel. [12:43:36] * iqbalansari [iqbalansari!~user@123.201.192.111] has quit (Read error: Connection reset by peer). [16:31:20] * Sonderblade [Sonderblade!~fack@h-52-183.a157.priv.bahnhof.se] has quit (Quit: Leaving). [16:31:52] * Sonderblade [Sonderblade!~fack@h-52-183.a157.priv.bahnhof.se] has joined the channel. [18:31:22] * jtimon [jtimon!~quassel@186.31.134.37.dynamic.jazztel.es] has joined the channel. [19:25:34] * puck1pedia [puck1pedia!~puck@awoken.puckipedia.com] has joined the channel. [19:27:18] * puckipedia [puckipedia!~puck@irc.puckipedia.com] has quit (Quit: ZNC - 1.6.0 - http://znc.in). [19:27:18] * puck1pedia is now known as puckipedia [20:39:11] * puckipedia [puckipedia!~puck@awoken.puckipedia.com] has quit (Quit: hostname update). [20:39:34] * puckipedia [puckipedia!~puck@puckipedia.com] has joined the channel. [22:57:56] * evincar [evincar!~jonathanp@208.87.56.202] has joined the channel. [23:03:39] John[Lisbeth]: I had a similar idea recently: a language whose syntax is a safe subset of Bash, so programs can be given as arguments to an interpreter, e.g. "run 1 2 + ." [23:03:56] The stack would persist between invocations of the interpreter. [23:04:08] I don't want to make a command like run though [23:04:08] (Well, I was thinking of a database, not a stack, but same principle.) [23:04:17] because from what it sounds like run is an interpreter [23:04:24] One problem is that the "safe subset" is tiny. [23:04:32] Yes [23:05:03] mine is not an interpreter [23:05:08] Although it could be a bash function. [23:05:09] it is running in bash [23:05:18] I would still call that an interpreter [23:05:19] Right [23:05:29] there's a key difference in mine [23:05:40] is that inbetween my words I can break out into regular bash [23:05:43] ...It pollutes the shell a lot? [23:05:49] and my words do not have to be on one line [23:06:27] run "2 2 + ." => push 2 2; plus; printStack [23:06:33] so I can write push 2 2; [23:06:35] plus; [23:06:37] printStack [23:06:40] and it has the same effect [23:07:01] or I can type push 2 2; sudo apt-get update && sudo apt-get upgrade && sudo apt-get install emacs; plus; printStack [23:07:05] and it ahs the same effect [23:07:14] yours does not do this because yours is an interpreter [23:07:35] That has nothing to do with being an interpreter. [23:07:48] If you persist the state it's the same thing, you just suffer the prefix. [23:08:06] (Which I appreciate might be unacceptable for your purposes.) [23:08:13] no it is perfect for my purposes [23:08:17] my language solves my own needs [23:08:27] your interpreter does not do what I need it to do [23:08:34] unless you make it so that each word is one line of bash [23:08:57] I think I will be able to release bash++ today and you can try it [23:09:21] I'd be interested to. :) [23:09:28] I meant "having a prefix might be unacceptable" [23:11:27] That is, if you have an interpreter, you can still write "run 2 2; something_else; run + ." and it will have the same effect as long as you persist the state between runs in the same way as you already do. [23:12:14] I just got push and pop working [23:13:37] It seems I will indeed be able to release it tonight [23:16:32] he he he I've written my first language [23:16:42] Congrats! [23:16:57] It's a good pastime. [23:44:55] yes and I feel like my language really does solve a problem that exists in bash [23:52:06] I've got defineWord [23:54:45] I've defined plus [23:55:24] I've got minus [23:58:29] this thing is running a little slower than javascript