00:00:00 --- log: started forth/13.10.25 00:33:56 https://gist.github.com/tangentstorm/b42aaa658ed31f58e703 00:34:03 a little forth-like system in sqlite 00:35:08 "1 2 3 swap * +" betomes "insert into vm values ('lit',1), ('lit', 2), ('lit', 3), ('swap',null), ('mul',null), ('add', null);" 00:35:55 nice. 00:36:02 :) 00:36:50 now you only use sqlite in any program and it becomes usable programmin environment. 00:36:52 i don't have any compiler words yet, but the idea was that i'd add a flag and just write definitions as rows in a table when the flag is on. 00:59:15 --- quit: ttmrichter (Ping timeout: 272 seconds) 01:08:33 --- join: nighty^ (~nighty@lns-bzn-49f-62-147-170-46.adsl.proxad.net) joined #forth 01:29:18 --- join: true-grue (~quassel@176.14.137.225) joined #forth 01:31:22 --- join: ttmrichter (~ttmrichte@58.51.149.218) joined #forth 01:31:58 tangentstorm: you did it! 01:33:41 tangentstorm: i need to notice you that actually sqlite has its own vm which might run your b4 01:35:08 jyf: yeah, i've looked a bit at the sqlite vm. 01:35:44 tangentstorm: me too 01:36:03 jyf: to really make this useful i'd have to learn how to implement custom sqlite functions in native code. (i don't think it's too hard) 01:36:47 tangentstorm: you mean run b4 on sqlite vm? 01:38:01 jyf: i'm making an application that uses this database... and right now, sqlite has no real way to talk to the application other than sticking data in tables. 01:39:29 since my application is reading data out of the database anyway, it would probably make more sense to just implement the vm in the language i'm writing the application in. 01:40:17 But SQLite lets you define new functions in your application language and then use them in SQL. 01:41:07 so in theory you could say select into vm values ('clrscr',null), ('lit','hello world'), ('print', null); 01:41:17 (to clear the screen and print 'hello world') 01:42:27 tangentstorm: well my opinion is that use sqlite as a complex storage engine, and use b4 to do those complex query which are very hard in sql syntax 01:42:29 http://www.sqlite.org/c3ref/create_function.html is how to do it but it looks kind of messy and I don't really know how to use it yet. 01:42:48 so people could use dbconnect.query('blah blah b4 code') 01:43:45 i don't really want to use this to execute things. i think i just got carried away. 01:44:23 tangentstorm: well if you have created a function named dostuff1 you could try query('dostuff1(params)') or query('select dostuff1(params)') 01:44:27 it might make sense as a debugger or as a way to store state for long running multi-step procesess 01:44:53 might be 01:45:01 sure, but why not just dostuff1(params) and not mess with the query at all? 01:46:25 aha, query is the outside 01:46:38 the actually sql command dont include that 01:47:10 the actually sql command might just be `dostuff1()` or `select dostuff1()` 01:47:23 i see some samples in postgresql 01:50:22 yeah. 01:51:21 i don't really want to program in sql .. this was just for fun, basically 01:52:10 but i do like the idea of having all the code in a database and being able to query to figure out which definitions are required for a particular word. 02:00:03 tangentstorm: that's why redis2.6 have lua inside 02:04:02 --- join: Bahman (~Bahman@2.146.100.62) joined #forth 02:15:53 its interesting that redis also return OK to client :] just like forth 02:17:44 :) so did BASIC, back in the day... 02:18:51 or "R Tape loading error, 0:1" 02:19:12 ok i will try to implement an fake redis server in python 02:19:35 then it could use my pyforth to emulate those redis command 02:22:06 --- quit: Bahman (Quit: Leaving.) 02:28:52 All you people whining about cassette tapes. 02:28:58 Try paper tape sometime. 02:29:10 Even *MORE* fragile than cassettes. :( 02:29:21 But at least it's slow and noisy. 02:42:48 --- quit: kludge` (Ping timeout: 272 seconds) 02:42:58 --- join: lazyden (~lazyden@58.185.121.38) joined #forth 02:43:58 --- join: kludge` (~comet@unaffiliated/espiral) joined #forth 02:51:07 --- quit: lazyden (Quit: lazyden) 03:35:12 --- join: Bahman (~Bahman@2.146.100.62) joined #forth 03:50:26 --- nick: ASau` -> ASau 03:54:53 --- quit: mark4 (Quit: Leaving) 04:08:52 --- quit: Bahman (Quit: Leaving.) 04:12:03 --- join: LinearInterpol (~RJones@cpe-76-179-150-229.maine.res.rr.com) joined #forth 04:44:12 --- quit: LinearInterpol (Ping timeout: 240 seconds) 05:07:18 --- join: epicmonkey (~epicmonke@188.134.41.116) joined #forth 05:07:37 --- join: LinearInterpol (~RJones@WatchGuard.ellsworth-hs.ellsworth.k12.me.us) joined #forth 07:22:57 --- quit: LinearInterpol (Ping timeout: 272 seconds) 07:38:28 --- join: Kumool (~nmz@adsl-64-237-232-13.prtc.net) joined #forth 07:38:28 --- join: kumul (~mool@adsl-64-237-232-13.prtc.net) joined #forth 07:48:43 --- join: w0rm_x (~w0rm@client-82-25-238-26.glfd.adsl.virginm.net) joined #forth 07:58:57 --- quit: ttmrichter (Ping timeout: 272 seconds) 07:59:21 --- join: LinearInterpol (~RJones@WatchGuard.ellsworth-hs.ellsworth.k12.me.us) joined #forth 08:03:39 --- quit: w0rm_x (Read error: Operation timed out) 08:04:57 --- join: noneofmynickswor (~mool@173.215.185.136) joined #forth 08:08:26 --- join: gaaaaaaaaa (~nmz@173.215.185.136) joined #forth 08:08:26 --- quit: gaaaaaaaaa (Client Quit) 08:08:26 --- quit: kumul (Ping timeout: 272 seconds) 08:08:27 --- quit: Kumool (Ping timeout: 272 seconds) 08:14:05 --- nick: noneofmynickswor -> nnnnnnn 08:36:59 --- quit: dkordic (Quit: Ex-Chat) 09:23:08 --- quit: LinearInterpol (Ping timeout: 272 seconds) 09:27:42 --- join: Nisstyre-laptop (~yours@oftn/member/Nisstyre) joined #forth 09:28:19 --- quit: nisstyre (Disconnected by services) 09:28:39 --- nick: Nisstyre-laptop -> nisstyre 09:30:44 --- join: yours_truly (~yours@bas2-hamilton02-1176215184.dsl.bell.ca) joined #forth 09:52:56 --- join: LinearInterpol (~RJones@WatchGuard.ellsworth-hs.ellsworth.k12.me.us) joined #forth 09:55:09 --- quit: epicmonkey (Ping timeout: 272 seconds) 10:37:49 --- quit: jevin (Quit: Textual IRC Client: www.textualapp.com) 10:37:58 --- quit: LinearInterpol (Ping timeout: 268 seconds) 10:54:28 --- join: Armour (~armour@201.191.254.137) joined #forth 10:56:02 --- join: jevin (~jevin@72.12.217.220) joined #forth 11:02:09 --- join: kumool (~mool@adsl-64-237-233-205.prtc.net) joined #forth 11:02:29 --- quit: Armour (Quit: Colloquy for iPad - http://colloquy.mobi) 11:04:53 --- quit: nnnnnnn (Ping timeout: 246 seconds) 11:13:23 --- quit: nisstyre (Ping timeout: 272 seconds) 11:13:32 --- join: Armour (~armour@201.191.254.137) joined #forth 11:14:27 --- quit: Armour (Client Quit) 11:16:24 --- join: Armour (~armour@201.191.254.137) joined #forth 11:21:00 --- quit: Armour (Client Quit) 11:37:41 --- join: Armour (~armour@201.191.254.137) joined #forth 11:39:07 --- quit: yours_truly (Quit: Leaving) 11:52:37 --- join: epicmonkey (~epicmonke@188.134.41.116) joined #forth 12:00:39 --- quit: Armour (Quit: Colloquy for iPad - http://colloquy.mobi) 12:06:02 --- join: Armour (~armour@201.191.254.137) joined #forth 12:26:43 --- join: w0rm_x (~w0rm@client-82-25-238-26.glfd.adsl.virginm.net) joined #forth 12:29:57 --- quit: Armour (Read error: Connection reset by peer) 12:43:57 --- part: w0rm_x left #forth 12:53:12 --- join: Armour (~armour@201.191.254.137) joined #forth 12:58:27 --- quit: Armour (Quit: ....Gone....) 12:58:46 --- join: Armour (~armour@201.191.254.137) joined #forth 13:06:39 --- quit: nighty^ (Remote host closed the connection) 13:20:38 --- quit: Armour (Quit: ....Gone....) 13:50:26 --- join: mark4 (~mark4@cpe-192-136-220-10.tx.res.rr.com) joined #forth 14:00:48 --- quit: epicmonkey (Ping timeout: 248 seconds) 14:03:09 --- quit: true-grue (Read error: Connection reset by peer) 14:05:51 --- join: nisstyre (~yours@oftn/member/Nisstyre) joined #forth 14:55:38 --- join: Azel (~Thunderbi@83.82.69.86.rev.sfr.net) joined #forth 15:01:30 --- join: LinearInterpol (~RJones@cpe-76-179-150-229.maine.res.rr.com) joined #forth 15:17:16 --- join: noneofmynickswor (~mool@173.215.185.136) joined #forth 15:20:53 --- quit: kumool (Ping timeout: 272 seconds) 15:22:57 --- join: w0rm_x (~w0rm@client-82-25-238-26.glfd.adsl.virginm.net) joined #forth 15:43:16 --- join: ttmrichter (~ttmrichte@60.55.9.29) joined #forth 17:31:07 --- nick: Tod-Autojoined2 -> TodPunk 17:37:52 --- quit: noneofmynickswor (Quit: Leaving) 17:38:35 --- join: kumul (~mool@173.215.185.136) joined #forth 18:40:42 --- quit: LinearInterpol (Ping timeout: 246 seconds) 19:21:17 --- join: ASau` (~user@p5083DB57.dip0.t-ipconnect.de) joined #forth 19:24:14 --- quit: ASau (Ping timeout: 260 seconds) 20:00:15 --- quit: kumul (Quit: Leaving) 20:03:18 --- quit: w0rm_x (Quit: if Φ Σ e : φ then Φ Σ τ' → σ' :: ∃) 21:46:15 --- join: Bahman (~Bahman@2.146.100.62) joined #forth 22:34:12 --- join: impomatic_ (~chatzilla@87.113.67.177) joined #forth 22:36:02 --- quit: impomatic (Ping timeout: 272 seconds) 22:36:06 --- nick: impomatic_ -> impomatic 22:41:13 --- quit: impomatic (Ping timeout: 240 seconds) 23:01:16 --- join: impomatic (~chatzilla@87.113.67.177) joined #forth 23:04:20 --- join: impomatic_ (~chatzilla@87.113.67.177) joined #forth 23:06:07 --- quit: impomatic (Ping timeout: 248 seconds) 23:06:12 --- nick: impomatic_ -> impomatic 23:10:32 --- quit: Bahman (Quit: Leaving.) 23:11:50 --- join: LinearInterpol (~RJones@cpe-76-179-150-229.maine.res.rr.com) joined #forth 23:28:52 --- join: true-grue (~quassel@89-178-183-12.broadband.corbina.ru) joined #forth 23:31:41 --- quit: mark4 (Remote host closed the connection) 23:35:47 --- join: Bahman (~Bahman@2.146.100.62) joined #forth 23:52:00 --- quit: Bahman (Ping timeout: 272 seconds) 23:55:11 --- join: Bahman (~Bahman@2.146.93.78) joined #forth 23:59:59 --- log: ended forth/13.10.25