←2010-01-19 2010-01-20 2010-01-21→ ↑2010 ↑all
00:02:21 -!- cpressey has left (?).
00:12:53 <coppro> Does anyone know a command that's like echo + cat?
00:13:06 <coppro> specifically, it can append or prepend to standard output
00:16:09 -!- FireFly has quit ("Leaving").
00:24:17 <Gregor> echo | cat
00:24:25 <Gregor> echo foo | cat - /dev/hda
00:26:08 -!- oerjan has joined.
00:30:58 -!- sebbu2 has joined.
00:33:30 <oerjan> in bash, i think cat - `echo whatever` works
00:33:39 <oerjan> er wait
00:34:07 <oerjan> cat - <(echo whatever) may have been it
00:34:39 <oerjan> anyway there is some syntax for inserting the output of one command as a file in another
00:35:09 <coppro> <<<`foo`
00:35:12 <coppro> I believe
00:35:16 <Sgeo> var TiredPerson = new { Name = "Sgeo" };
00:35:22 <coppro> in any case, I just switched to perl
00:36:01 * Sgeo is irrationally addicted to C#
00:36:09 <coppro> bad
00:37:19 <Sgeo> var coppro = (from chatter in CSharpHaters select chatter).First();
00:38:00 <coppro> lol
00:39:04 * Sgeo may end up installing Visual Studio so that he can easily use SQLite
00:40:35 <Gregor> ...
00:40:42 <Gregor> The syntax is a pipe :P
00:40:46 <Gregor> echo foo | cat - bar
00:41:02 <oerjan> Gregor: fail
00:41:13 <oerjan> you cannot pass the _original_ stdin to cat that way
00:41:28 <Gregor> You can't pass the original stdin to cat your way.
00:41:31 <Gregor> You'd have to do something like
00:41:33 <coppro> what I want is a command like "append foo" that output foo+stdin
00:41:38 <oerjan> sure you can
00:41:38 <coppro> without using backticks
00:42:10 <Gregor> coppro: Wait, so you just want cat foo -
00:42:22 <Gregor> oerjan: <(bleh) overrides stdin
00:42:27 <coppro> Gregor: no
00:42:37 <coppro> because that outputs the content of the file `foo`
00:42:43 <Gregor> oerjan: You'd have to specify an input FD, then convince cat to read from that fd (/proc/self/fds/bleh)
00:42:45 <oerjan> Gregor: in that case <() is not what i meant
00:42:47 <coppro> I just want "foo+(whatever came through stdin)"
00:42:57 <Gregor> Ahhhhhhhh, OK
00:43:23 <Gregor> In that case, (echo foo; cat) :P
00:43:45 <oerjan> Gregor: bash has a syntax for creating named pipes with the output of a given command, and putting the _name_ of that pipe in an outer command
00:44:02 <Gregor> oerjan: Ah, then I am unaware of that syntax.
00:44:11 <oerjan> it may be that i remembered <() wrongly for it
00:44:50 <oerjan> seeing as i haven't used it in years, myself
00:46:02 <oerjan> no, <() was correct
00:46:40 <SimonRC> BTW, the pipe is only viewable by the process that bash invokes
00:46:54 <oerjan> Process substitution is the term used
00:47:23 <oerjan> "Process substitution is supported on systems that support named pipes (FIFOs) or the /dev/fd method of naming open files. It takes the form of <(list) or >(list).
00:47:23 <SimonRC> process substitution doesn't work when the command feeds the filename to a second command
00:47:26 <oerjan> "
00:47:42 <SimonRC> e.g. if that command is a shell script
00:47:49 <oerjan> hm true
00:48:49 <oerjan> um wouldn't that only apply if the second command tried to access it after it has been deleted?
00:49:14 <SimonRC> I don't think so
00:49:36 <SimonRC> surely /dev/fd looks different to each process?
00:49:47 <oerjan> oh maybe
00:49:57 -!- sebbu has quit (Read error: 110 (Connection timed out)).
00:50:05 <oerjan> the named pipe thing should still work?
00:50:18 <SimonRC> $ cat `echo <(ls)`
00:50:19 <SimonRC> cat: /dev/fd/63: No such file or directory
00:50:52 <oerjan> SimonRC: that doesn't count anyway, because echo obviously finishes before cat opens the file
00:51:01 <SimonRC> darn
00:51:31 -!- coppro has quit (Remote closed the connection).
00:51:57 -!- coppro has joined.
00:52:28 <oerjan> oh well, sounds brittle anyhow
00:53:03 <SimonRC> ah, you can't read from it twice
01:13:09 -!- MissPiggy has quit.
01:23:04 -!- kwertii has joined.
01:45:22 -!- augur has quit (Read error: 110 (Connection timed out)).
01:48:50 -!- augur has joined.
02:00:40 -!- Sgeo_ has joined.
02:06:24 -!- Sgeo has quit (Read error: 60 (Operation timed out)).
02:23:04 -!- coppro has quit (Remote closed the connection).
02:23:32 -!- coppro has joined.
02:37:36 -!- kwertii_ has joined.
02:37:49 -!- kwertii_ has quit (Remote closed the connection).
02:38:16 -!- kwertii has quit (Read error: 60 (Operation timed out)).
02:51:23 -!- augur_ has joined.
02:51:33 -!- augur has quit (Read error: 104 (Connection reset by peer)).
03:08:07 -!- zeotrope has joined.
04:39:03 -!- augur_ has quit (Connection timed out).
04:45:11 -!- Pthing has joined.
04:51:38 -!- oerjan has quit ("leaving").
05:17:16 -!- augur has joined.
05:23:12 -!- coppro has quit (Remote closed the connection).
05:27:50 -!- Sgeo has joined.
05:27:51 -!- coppro has joined.
05:41:55 -!- Sgeo_ has quit (Read error: 110 (Connection timed out)).
05:51:03 <coppro> wooot
05:51:16 <coppro> looks like the Edmonton library approved my loan of Once More with Footnotes
06:42:18 -!- cal153 has quit.
06:52:08 -!- Asztal has quit (Read error: 60 (Operation timed out)).
06:57:31 -!- cal153 has joined.
07:02:46 -!- oklopol has joined.
07:14:40 -!- FireFly has joined.
07:27:23 -!- FireFly has quit ("Leaving").
07:35:22 -!- Sgeo has quit ("Leaving").
07:59:59 -!- clog has quit (ended).
08:00:00 -!- clog has joined.
08:45:38 -!- kar8nga has joined.
09:03:54 -!- BeholdMyGlory has joined.
09:20:25 -!- Pthing has quit (Remote closed the connection).
09:21:14 -!- coppro has quit (Read error: 60 (Operation timed out)).
09:53:36 -!- Pthing has joined.
10:00:37 -!- cheater has quit ("Verlassend").
10:19:58 -!- Pthing has quit (Remote closed the connection).
10:55:44 -!- jpc has quit (Connection timed out).
11:50:19 -!- adu has joined.
12:13:47 -!- adu has quit.
12:13:49 -!- kar8nga has quit (Remote closed the connection).
12:26:38 -!- scarf has joined.
12:29:00 -!- rodgort has quit (lindbohm.freenode.net irc.freenode.net).
12:29:00 -!- Ayeraw has quit (lindbohm.freenode.net irc.freenode.net).
12:29:01 -!- Leonidas has quit (lindbohm.freenode.net irc.freenode.net).
12:29:01 -!- SimonRC has quit (lindbohm.freenode.net irc.freenode.net).
12:29:01 -!- jix has quit (lindbohm.freenode.net irc.freenode.net).
12:29:01 -!- HackEgo has quit (lindbohm.freenode.net irc.freenode.net).
12:29:01 -!- dbc has quit (lindbohm.freenode.net irc.freenode.net).
12:29:01 -!- mtve has quit (lindbohm.freenode.net irc.freenode.net).
12:30:49 -!- Leonidas has joined.
12:30:49 -!- Ayeraw has joined.
12:30:49 -!- rodgort has joined.
12:30:49 -!- SimonRC has joined.
12:30:49 -!- jix has joined.
12:30:49 -!- mtve has joined.
12:30:49 -!- HackEgo has joined.
12:30:49 -!- dbc has joined.
12:30:59 -!- Leonidas1 has joined.
12:31:14 -!- Leonidas has quit (Success).
12:31:14 -!- SimonRC has quit (Read error: 104 (Connection reset by peer)).
12:31:15 -!- SimonRC has joined.
12:31:20 -!- Ayeraw has quit (Read error: 104 (Connection reset by peer)).
12:36:06 -!- SimonRC has quit (lindbohm.freenode.net irc.freenode.net).
12:36:07 -!- rodgort has quit (lindbohm.freenode.net irc.freenode.net).
12:36:08 -!- dbc has quit (lindbohm.freenode.net irc.freenode.net).
12:36:08 -!- HackEgo has quit (lindbohm.freenode.net irc.freenode.net).
12:36:08 -!- mtve has quit (lindbohm.freenode.net irc.freenode.net).
12:36:08 -!- jix has quit (lindbohm.freenode.net irc.freenode.net).
12:36:09 -!- Leonidas1 has quit (lindbohm.freenode.net irc.freenode.net).
12:36:09 -!- scarf has quit (lindbohm.freenode.net irc.freenode.net).
12:36:09 -!- yiyus has quit (lindbohm.freenode.net irc.freenode.net).
12:36:10 -!- mycroftiv has quit (lindbohm.freenode.net irc.freenode.net).
12:36:10 -!- AnMaster has quit (lindbohm.freenode.net irc.freenode.net).
12:36:12 -!- augur has quit (lindbohm.freenode.net irc.freenode.net).
12:36:12 -!- zeotrope has quit (lindbohm.freenode.net irc.freenode.net).
12:36:12 -!- cheater2 has quit (lindbohm.freenode.net irc.freenode.net).
12:36:13 -!- olsner has quit (lindbohm.freenode.net irc.freenode.net).
12:36:14 -!- Gracenotes has quit (lindbohm.freenode.net irc.freenode.net).
12:36:15 -!- pikhq has quit (lindbohm.freenode.net irc.freenode.net).
12:36:15 -!- bsmntbombdood has quit (lindbohm.freenode.net irc.freenode.net).
12:36:15 -!- Slereah_ has quit (lindbohm.freenode.net irc.freenode.net).
12:36:15 -!- lifthrasiir has quit (lindbohm.freenode.net irc.freenode.net).
12:36:16 -!- comex_ has quit (lindbohm.freenode.net irc.freenode.net).
12:36:16 -!- ineiros has quit (lindbohm.freenode.net irc.freenode.net).
12:36:16 -!- cal153 has quit (lindbohm.freenode.net irc.freenode.net).
12:36:17 -!- sebbu2 has quit (lindbohm.freenode.net irc.freenode.net).
12:36:18 -!- Deewiant has quit (lindbohm.freenode.net irc.freenode.net).
12:36:18 -!- uorygl has quit (lindbohm.freenode.net irc.freenode.net).
12:36:18 -!- MizardX has quit (lindbohm.freenode.net irc.freenode.net).
12:36:43 -!- AnMaster has joined.
12:43:31 -!- AnMaster has quit (Read error: 60 (Operation timed out)).
12:45:15 -!- uorygl has joined.
12:45:15 -!- Deewiant has joined.
12:45:15 -!- sebbu2 has joined.
12:45:15 -!- cal153 has joined.
12:45:15 -!- MizardX has joined.
12:45:52 -!- sebbu has joined.
12:45:52 -!- SimonRC has joined.
12:45:52 -!- rodgort has joined.
12:45:52 -!- jix has joined.
12:45:52 -!- mtve has joined.
12:45:52 -!- HackEgo has joined.
12:45:52 -!- dbc has joined.
12:46:21 -!- Ayeraw has joined.
12:46:21 -!- adu has joined.
12:46:21 -!- cheater3 has joined.
12:46:21 -!- Leonidas1 has joined.
12:46:21 -!- scarf has joined.
12:46:21 -!- yiyus has joined.
12:46:21 -!- mycroftiv has joined.
12:46:21 -!- augur has joined.
12:46:21 -!- zeotrope has joined.
12:46:21 -!- pikhq has joined.
12:46:21 -!- bsmntbombdood has joined.
12:46:21 -!- Slereah_ has joined.
12:46:21 -!- olsner has joined.
12:46:21 -!- lifthrasiir has joined.
12:46:21 -!- comex_ has joined.
12:46:21 -!- ineiros has joined.
12:46:21 -!- Gracenotes has joined.
12:46:45 -!- AnMaster_ has joined.
12:49:42 -!- sebbu3 has joined.
12:49:51 -!- SimonRC has quit (lindbohm.freenode.net irc.freenode.net).
12:49:51 -!- rodgort has quit (lindbohm.freenode.net irc.freenode.net).
12:49:51 -!- sebbu has quit (lindbohm.freenode.net irc.freenode.net).
12:49:52 -!- dbc has quit (lindbohm.freenode.net irc.freenode.net).
12:49:52 -!- HackEgo has quit (lindbohm.freenode.net irc.freenode.net).
12:49:52 -!- mtve has quit (lindbohm.freenode.net irc.freenode.net).
12:49:52 -!- jix has quit (lindbohm.freenode.net irc.freenode.net).
12:50:24 -!- sebbu has joined.
12:50:24 -!- SimonRC has joined.
12:50:24 -!- rodgort has joined.
12:50:24 -!- jix has joined.
12:50:24 -!- mtve has joined.
12:50:24 -!- HackEgo has joined.
12:50:24 -!- dbc has joined.
12:53:11 -!- cal153 has quit (lindbohm.freenode.net irc.freenode.net).
12:53:11 -!- Deewiant has quit (lindbohm.freenode.net irc.freenode.net).
12:53:11 -!- sebbu2 has quit (lindbohm.freenode.net irc.freenode.net).
12:53:11 -!- uorygl has quit (lindbohm.freenode.net irc.freenode.net).
12:54:15 -!- cal153 has joined.
12:54:15 -!- sebbu2 has joined.
12:54:15 -!- Deewiant has joined.
12:54:15 -!- uorygl has joined.
12:54:27 -!- sebbu2 has quit (Dead socket).
12:56:42 -!- Leonidas1 has quit (lindbohm.freenode.net irc.freenode.net).
12:56:43 -!- scarf has quit (lindbohm.freenode.net irc.freenode.net).
12:56:43 -!- yiyus has quit (lindbohm.freenode.net irc.freenode.net).
12:56:43 -!- mycroftiv has quit (lindbohm.freenode.net irc.freenode.net).
12:58:26 -!- Leonidas1 has joined.
12:58:26 -!- scarf has joined.
12:58:26 -!- yiyus has joined.
12:58:26 -!- mycroftiv has joined.
13:00:10 -!- rodgort has quit (Client Quit).
13:00:42 -!- rodgort has joined.
13:03:38 -!- comex has joined.
13:03:40 -!- comex_ has quit (Read error: 104 (Connection reset by peer)).
13:08:30 -!- cheater has joined.
13:12:09 -!- comex has quit (lindbohm.freenode.net irc.freenode.net).
13:12:09 -!- SimonRC has quit (lindbohm.freenode.net irc.freenode.net).
13:12:09 -!- sebbu has quit (lindbohm.freenode.net irc.freenode.net).
13:12:10 -!- dbc has quit (lindbohm.freenode.net irc.freenode.net).
13:12:10 -!- HackEgo has quit (lindbohm.freenode.net irc.freenode.net).
13:12:10 -!- mtve has quit (lindbohm.freenode.net irc.freenode.net).
13:12:10 -!- jix has quit (lindbohm.freenode.net irc.freenode.net).
13:13:10 -!- comex has joined.
13:14:48 -!- sebbu has joined.
13:14:48 -!- SimonRC has joined.
13:14:48 -!- jix has joined.
13:14:48 -!- mtve has joined.
13:14:48 -!- HackEgo has joined.
13:14:48 -!- dbc has joined.
13:15:13 -!- SimonRC has quit (Read error: 104 (Connection reset by peer)).
13:15:24 -!- SimonRC has joined.
13:15:28 -!- jix has quit (Read error: 104 (Connection reset by peer)).
13:15:38 -!- jix has joined.
13:15:44 -!- sebbu has quit (Connection timed out).
13:17:06 -!- rodgort has quit (lindbohm.freenode.net irc.freenode.net).
13:17:06 -!- cheater has quit (lindbohm.freenode.net irc.freenode.net).
13:17:06 -!- Deewiant has quit (lindbohm.freenode.net irc.freenode.net).
13:17:06 -!- uorygl has quit (lindbohm.freenode.net irc.freenode.net).
13:17:06 -!- cal153 has quit (lindbohm.freenode.net irc.freenode.net).
13:17:30 -!- cal153 has joined.
13:17:43 -!- cheater has joined.
13:17:43 -!- rodgort has joined.
13:17:43 -!- Deewiant has joined.
13:17:43 -!- uorygl has joined.
13:29:50 -!- cheater has quit (lindbohm.freenode.net irc.freenode.net).
13:29:50 -!- Deewiant has quit (lindbohm.freenode.net irc.freenode.net).
13:29:50 -!- rodgort has quit (lindbohm.freenode.net irc.freenode.net).
13:29:50 -!- uorygl has quit (lindbohm.freenode.net irc.freenode.net).
13:29:51 -!- cal153 has quit (lindbohm.freenode.net irc.freenode.net).
13:29:51 -!- SimonRC has quit (lindbohm.freenode.net irc.freenode.net).
13:29:51 -!- dbc has quit (lindbohm.freenode.net irc.freenode.net).
13:29:51 -!- HackEgo has quit (lindbohm.freenode.net irc.freenode.net).
13:29:51 -!- mtve has quit (lindbohm.freenode.net irc.freenode.net).
13:29:53 -!- MizardX has quit (lindbohm.freenode.net irc.freenode.net).
13:29:54 -!- comex has quit (lindbohm.freenode.net irc.freenode.net).
13:29:55 -!- scarf has quit (lindbohm.freenode.net irc.freenode.net).
13:29:55 -!- Leonidas1 has quit (lindbohm.freenode.net irc.freenode.net).
13:29:55 -!- mycroftiv has quit (lindbohm.freenode.net irc.freenode.net).
13:29:55 -!- yiyus has quit (lindbohm.freenode.net irc.freenode.net).
13:29:57 -!- zeotrope has quit (lindbohm.freenode.net irc.freenode.net).
13:29:57 -!- cheater3 has quit (lindbohm.freenode.net irc.freenode.net).
13:29:57 -!- olsner has quit (lindbohm.freenode.net irc.freenode.net).
13:29:58 -!- Gracenotes has quit (lindbohm.freenode.net irc.freenode.net).
13:29:58 -!- augur has quit (lindbohm.freenode.net irc.freenode.net).
13:29:59 -!- jix has quit (lindbohm.freenode.net irc.freenode.net).
13:29:59 -!- AnMaster_ has quit (lindbohm.freenode.net irc.freenode.net).
13:30:00 -!- lifthrasiir has quit (lindbohm.freenode.net irc.freenode.net).
13:30:00 -!- bsmntbombdood has quit (lindbohm.freenode.net irc.freenode.net).
13:30:00 -!- adu has quit (lindbohm.freenode.net irc.freenode.net).
13:30:00 -!- ineiros has quit (lindbohm.freenode.net irc.freenode.net).
13:30:01 -!- Slereah_ has quit (lindbohm.freenode.net irc.freenode.net).
13:30:01 -!- pikhq has quit (lindbohm.freenode.net irc.freenode.net).
13:30:01 -!- Ayeraw has quit (lindbohm.freenode.net irc.freenode.net).
13:42:22 -!- MizardX has joined.
13:43:02 -!- kar8nga has joined.
13:43:02 -!- uorygl has joined.
13:43:02 -!- Deewiant has joined.
13:43:02 -!- rodgort has joined.
13:43:02 -!- dbc has joined.
13:43:02 -!- HackEgo has joined.
13:43:02 -!- mtve has joined.
13:43:02 -!- SimonRC has joined.
13:43:02 -!- cal153 has joined.
13:43:02 -!- scarf has joined.
13:43:02 -!- mycroftiv has joined.
13:43:02 -!- yiyus has joined.
13:43:02 -!- Leonidas1 has joined.
13:43:02 -!- comex has joined.
13:43:02 -!- jix has joined.
13:43:02 -!- AnMaster_ has joined.
13:43:02 -!- Ayeraw has joined.
13:43:02 -!- adu has joined.
13:43:02 -!- cheater3 has joined.
13:43:02 -!- augur has joined.
13:43:02 -!- zeotrope has joined.
13:43:02 -!- pikhq has joined.
13:43:02 -!- bsmntbombdood has joined.
13:43:02 -!- Slereah_ has joined.
13:43:02 -!- olsner has joined.
13:43:02 -!- lifthrasiir has joined.
13:43:02 -!- ineiros has joined.
13:43:02 -!- Gracenotes has joined.
13:43:46 -!- cheater has joined.
13:55:29 -!- Pthing has joined.
13:56:18 -!- run-bandit has joined.
13:56:33 <run-bandit> what is this place
13:56:39 <run-bandit> programming language?
13:56:42 <scarf> yes
13:56:51 <scarf> for the less serious programming languages around
13:58:19 <run-bandit> ok
13:59:46 <fizzie> What, isn't esolangery Serious Business™?
14:00:10 <scarf> you never know, it might be
14:00:20 <scarf> only by exploring the silly can you find the interesting on the edge of serious
14:04:47 -!- run-bandit has quit ("lol").
14:22:11 -!- MissPiggy has joined.
14:57:55 -!- Pthing has quit (Remote closed the connection).
14:58:02 -!- Deewiant has quit (Remote closed the connection).
14:58:12 -!- Deewiant has joined.
15:11:39 -!- cpressey has joined.
15:34:46 -!- Pthing has joined.
15:36:18 -!- FireFly has joined.
16:07:54 -!- Pthing has quit (Remote closed the connection).
16:10:31 -!- scarf has quit (Read error: 104 (Connection reset by peer)).
16:10:46 -!- scarf has joined.
16:15:28 -!- jpc has joined.
16:15:57 <cheater> so does esolang run in a vm of some sort
16:16:11 <cheater> do i get an interpreter for esolang under ubuntu?
16:16:14 <cheater> :P
16:19:14 <cpressey> yes, version 3.1.1 of esolang was just released last week
16:20:55 <scarf> "esolang"'s a general term
16:21:11 <scarf> although you can find interpreters for individual esolangs in the repositories if they're really well known, or on the wiki otherwise
16:21:13 <scarf> hi cpressey by the way
16:23:40 <cpressey> hi ais523
16:24:25 <scarf> I'm too busy with RL stuff to really do much esolanging at the moment...
16:27:21 <cpressey> I'm trying to find more time for it recently.
16:27:46 <cpressey> The last interesting one I've done is: http://catseye.tc/projects/zowie/
16:28:34 <scarf> I noticed that one in #esoteric's last review of What Cats's Eye Has Been Up To Recently, but didn't really look at it in detail
16:28:45 <Gregor> For some reason "zowie" made my mind immediately jump to "Yom Kippur", used as some kind of generic expression of happiness. "Yom Kippur, this is the tastiest pie I've ever had!"
16:28:59 <scarf> it's rather reminicent of continuation passing style, though
16:30:22 <cpressey> scarf: Huh. I have been very interested in continuations lately, but honestly, I wasn't thinking about them at all in ZOWIE
16:30:25 <scarf> but instead of storing the IP and data together, you can access each of them separately
16:30:48 <scarf> a Zowie program state is almost a continuation, except you only use half of it at a time, which is rather interesting
16:32:12 <scarf> hmm, I wonder if it's TC even without the ability to rollback? it's a lot less obvious whether it's TC or not then, but it's not obviously incomplete
16:33:25 <cpressey> scarf: From what I remember... without rollback you can only do "repeat" loops, not "while".
16:33:43 <scarf> yes, but I think repeat may be enough for TCness by itself
16:33:49 * pikhq wonders if he should try and force his C lambda code into using CPS...
16:33:54 <scarf> the idea is, immediately after each loop you "undo" one interation of it
16:34:03 <pikhq> It would have the advantage of getting rid of the stack overflows...
16:34:04 <scarf> but it's not obvious that doing that is always possible
16:34:11 <cpressey> well, it seems to be folklore that repeat is insufficient for TC. i remember looking and i couldn't find an explicit proof
16:34:28 <Ilari> Explicit repeat count?
16:34:34 <scarf> I'm relatively certain that it depends on other details of the language; it's sufficient sometimes, but not otherwise
16:34:36 <cpressey> tho, i think i know what you're talking about re "undo"
16:34:39 <scarf> Ilari: no, while but that always loops at least once
16:34:41 <pikhq> (computing fact 10 overflows the stack ATM. ... In addition.)
16:35:13 -!- oerjan has joined.
16:35:34 <Ilari> No if construct?
16:35:43 <cpressey> scarf: if you could prove that "repeat" loops are sufficient for TC I think you would have something very publishable. at least, that is the impression i formed from what research i did see (e.g. Kozen's work on "while programs")
16:36:04 <cpressey> Ilari: "if" + "repeat" can emulate "while"
16:36:05 <scarf> Ilari: no if
16:36:25 <scarf> it's easy enough to imagine languages in which it is possible
16:36:53 <scarf> imagine a C-like language which stored a sort of "transaction history" of all changes to variables, and had a method to undo the most recent change
16:37:10 * oerjan cannot quite get to grips with this scarf-ais guy
16:37:27 <scarf> by using a stack of counters which held how many changes there had been, you could just undo the right number of changes
16:37:40 <scarf> that's requiring a rather implausibly high amount of support from the language, though
16:38:54 <cpressey> scarf: well, maybe too much support to be taken seriously, but still an interesting esolang design
16:39:31 <scarf> I'm wondering how little language support you could get away with; for instance, bignum BF probably has enough, although I'm less sure about that
16:39:47 <scarf> (or rather, I should say "DoFuck", I suppose)
16:40:19 <cpressey> since BF maps very easily to "repeat programs", i think that would be publishable
16:40:46 <scarf> perhaps, but I'm trying to do too many papers in parallel as it is
16:40:54 <cpressey> (again, to clarify, i don't think "publishable" should necessarily be anyone's goal, i'm just using it to describe how surprising it would be)
16:42:04 <oerjan> one thing that comes to mind is: set a variable to 0 before the loop, and to 1 at the end. then at least you should be able to do any _arithmetic_ as if it was a while loop, by exploiting that (assuming you have at least multiplication)
16:42:23 <oerjan> s/at the end/just before the end/
16:43:09 -!- augur has quit (Read error: 60 (Operation timed out)).
16:43:21 <oerjan> because you then have a flag to help you ignore the first iteration
16:43:33 <cpressey> oerjan: that sounds reasonable
16:44:48 <oerjan> and for TC you don't need anything more then than arithmetic assignments, i think
16:45:36 <cpressey> folklore has been proven wrong before :)
16:45:39 <MissPiggy> are you guys talking about reversibly TC languages?
16:45:48 <oerjan> hm you can even do output with C-like strings, as long as you don't mind outputting a lot of 0-length strings
16:46:13 <oerjan> no afaik
16:46:25 <scarf> MissPiggy: about TC languages without the ability to skip code
16:46:36 <scarf> i.e. every loop runs at least once, no if
16:47:10 <cpressey> and the relationship between that and reversible programs is... obscure, at least
16:47:21 <cpressey> i won't say they're not related somehow tho
16:47:26 <scarf> they do feel related
16:47:31 <scarf> if you can't skip code, you have to undo the loop
16:47:40 <cpressey> oh, too deep, too early, too little coffee :)
16:47:52 <scarf> incidentally, it turns out that INTERCAL is TC even with no flow control but jumping from the end of the program to the start
16:47:58 -!- Asztal has joined.
16:48:04 <scarf> but it has rather a rich set of ways to not do commands, so that's rather unsurprising
16:48:57 <cpressey> well, one of the "while program" results is that you only really need one while loop, so... yeah
16:49:32 <scarf> hmm, if you only need the one loop, it surely isn't much of a problem to ensure it always iterates once
16:49:52 <scarf> unless the result allows cheating by using things like ifs inside the loop
16:50:51 <cpressey> well... if you collapse nested loops into a single loop then you can't take oerjan's suggestion of setting a variable to 0 "just before the end" of an inner loop because you've eliminated the inner loop
16:51:47 <scarf> yes, but then you wouldn't need to
16:52:48 <cpressey> hm, i can't really tell how it would work at this point.
16:53:03 <oerjan> surely you convert to a single while loop before converting that one into repeat
16:53:26 <scarf> well, you clearly can't do BF with just a single loop
16:53:32 <cpressey> at any rate, i'm occupied for the next little while, so i'll let my brain marinate
16:54:10 <oerjan> cpressey: but if it's while, can't you skip it?
16:54:41 * oerjan whistles innocently
16:55:03 <MissPiggy> hehe
16:55:08 <cpressey> scarf: true, because you need loops to perform and/or, which while loop collapsing needs
16:55:34 <scarf> as I said already, I think it's going to be heavily dependent on the other details of the language
16:56:08 <cpressey> oerjan: i can't see why not
16:56:23 <oerjan> (*woosh*)
16:57:27 <cpressey> oerjan: i'd need to see an example in order to reason about it, at this point.
16:57:52 <oerjan> cpressey: um that was a pun, referring to your "next little while"
16:58:30 <cpressey> argh :)
16:58:44 <scarf> this is the #1 danger of having a productive mathematical discussion with oerjan
16:59:10 <cpressey> bbl
17:15:35 -!- AnMaster_ has changed nick to AnMaster.
17:20:39 -!- sebbu3 has changed nick to sebbu.
17:34:47 -!- jpc has quit (Read error: 104 (Connection reset by peer)).
17:35:26 -!- jpc has joined.
17:37:13 -!- jpc has quit (Client Quit).
17:37:52 -!- jpc has joined.
17:40:11 -!- sexygirl153 has joined.
17:41:19 -!- kar8nga has quit (Remote closed the connection).
17:51:55 <cheater3> hello
18:00:41 -!- cal153 has quit (Read error: 113 (No route to host)).
18:18:33 -!- scarf has quit (Remote closed the connection).
18:24:33 -!- oerjan has quit ("AAAAAAAAAAAAAAAAAAAA").
18:29:42 -!- Gracenotes has quit (Read error: 60 (Operation timed out)).
18:45:27 -!- Gracenotes has joined.
19:28:36 -!- augur has joined.
19:50:42 -!- adu has quit.
19:52:31 -!- adu has joined.
20:17:07 -!- adu has quit.
20:25:24 -!- Sgeo has joined.
20:28:27 -!- sebbu has quit ("reboot").
21:21:19 <SimonRC> cheater3: hi
21:21:55 -!- sebbu has joined.
21:26:07 <cheater3> hi SimonRC
21:26:46 <SimonRC> it gets busier later
21:26:52 <cheater3> i know
21:27:10 <cheater3> what are some esolangs you work with simon?
21:36:05 -!- nooga has joined.
21:36:31 <nooga> hmm
21:37:24 <MissPiggy> huh?
21:37:54 <nooga> evening of weird nicknames
21:38:33 <MissPiggy> sexygirl153 is the best
21:38:53 <nooga> that's for sure
21:39:04 <sexygirl153> for sure
21:39:40 <MissPiggy> sure
21:40:56 <nooga> seur
21:43:28 <fizzie> Is that "153" age or a birth-year or what?
21:50:01 -!- kar8nga has joined.
22:20:32 -!- kar8nga has quit (Remote closed the connection).
22:56:39 -!- augur has quit (Read error: 110 (Connection timed out)).
23:00:08 -!- Azstal has joined.
23:03:23 <nooga> i don't know
23:03:43 -!- oerjan has joined.
23:03:47 <nooga> i hae an idea but it's so undefined that i cannot even express it
23:04:33 <MissPiggy> cool
23:04:43 <MissPiggy> nooga you should talk to me with this idea in mind
23:05:03 <nooga> do you get this feeling sometimes?
23:06:14 <MissPiggy> yes
23:06:27 <MissPiggy> lots of times
23:07:06 <oerjan> hm
23:07:16 * oerjan isn't sure if he does
23:07:19 -!- BeholdMyGlory has quit (Read error: 60 (Operation timed out)).
23:07:53 <oerjan> i'm not sure i can think an idea if i don't express it somehow
23:10:25 <oerjan> more specifically, i think i have trouble _remembering_ things that cannot be put in words
23:10:39 <oerjan> (or symbols, at least)
23:11:19 <oerjan> which could of course mean that i _do_ have such feelings but just don't remember them
23:12:53 * Sgeo should probably eat
23:13:12 * Sgeo tends to die if he doesn't eat
23:13:27 <oerjan> is this a frequent problem of yours?
23:14:38 -!- Asztal has quit (Connection timed out).
23:32:34 -!- MissPiggy has quit (Read error: 60 (Operation timed out)).
23:46:37 -!- augur has joined.
23:49:08 -!- coppro has joined.
23:55:27 -!- FireFly has quit ("Leaving").
←2010-01-19 2010-01-20 2010-01-21→ ↑2010 ↑all