--- Log opened Wed Nov 25 00:00:29 2009
00:15 -!- rbohn [n=rbohn@192.206.100.4] has quit ["ChatZilla 0.9.85 [Firefox
3.0.15/2009101601]"]
00:30 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit ["Leaving"]
00:30 -!- rndbot [n=bot@wikipedia/Gracenotes] has quit [Remote closed the
connection]
03:16 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: drhodes,
exch
03:17 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: Ycros,
reppie
03:17 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: nbaum
03:17 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits:
facemelter, danderson, hnaz
03:17 -!- Netsplit orwell.freenode.net <-> irc.freenode.net quits: Smergo
03:18 -!- Netsplit over, joins: hnaz, facemelter, nbaum, Smergo, danderson
03:46 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-run
04:01 -!- reppie [i=refugee@192.203.228.196] has joined #go-run
04:43 -!- Gracenotes [n=person@wikipedia/Gracenotes] has quit [Read error: 104
(Connection reset by peer)]
04:54 -!- Gracenotes [n=person@wikipedia/Gracenotes] has joined #go-run
05:38 -!- rndbot [n=bot@wikipedia/Gracenotes] has joined #go-run
06:23 -!- drhodes [n=none@209-20-72-61.slicehost.net] has joined #go-run
06:26 -!- exch [n=nuada@h144170.upc-h.chello.nl] has joined #go-run
06:26 -!- Ycros [n=ycros@211.30.206.246] has joined #go-run
08:39 -!- spikebike [n=bill@209.237.247.72] has joined #go-run
08:39 -!- tonyg [n=tonyg@82.153.198.135] has joined #go-run
08:39 -!- knave [n=kn4ve@41.240.187.198] has joined #go-run
08:41 < spikebike> @eval
string([]byte{313,231,312,215,307,235,304,261,304,261,304,261,311,245,312,207})
08:41 < rndbot> <Error: constant 313 overflows uint8, constant 312
overflows uint8, constant 307 overflows uint8, constant 304 overflows uint8...>
08:58 < spikebike>
@eval([]int16{117,202,141,111,112,32,199,157,112,196,177,115,100,110,32,115,196,177,32,115})
08:58 < spikebike>
@eval([]string{117,202,141,111,112,32,199,157,112,196,177,115,100,110,32,115,196,177,32,115})
08:59 < spikebike> @
eval([]string{117,202,141,111,112,32,199,157,112,196,177,115,100,110,32,115,196,177,32,115})
09:04 < exch> @
09:04 < exch>
eval([]string{117,202,141,111,112,32,199,157,112,196,177,115,100,110,32,115,196,177,32,115})
09:04 < exch> meh
09:04 < exch> @eval
([]string{117,202,141,111,112,32,199,157,112,196,177,115,100,110,32,115,196,177,32,115})
09:04 < rndbot> <Error: cannot use 117 (type int) as type string in array
index, cannot use 202 (type int) as type string in array index...>
09:06 < exch> >
println("\u117\u202\u141\u111\u112\u32\u199\u157\u112\u196\u177\u115\u100\u110\u32\u115\u196\u177\u32\u115")
09:06 < rndbot> <Error: non-hex character in escape sequence: \, non-hex
character in escape sequence: \, non-hex character in escape sequence: \...>
09:28 < tonyg> @eval []byte("hello")
09:28 < rndbot> <Error: cannot convert "hello" (type string) to type
[]uint8 in conversion>
09:29 < tonyg> @eval []int("hello")
09:29 < rndbot> <Error: cannot convert "hello" (type string) to type
[]int in conversion>
09:29 < tonyg> @eval "hello".Bytes()
09:29 < rndbot> <Error: "hello".Bytes undefined (type ideal string has no
field Bytes)>
09:29 < tonyg> hmm
09:29 -!- knave [n=kn4ve@41.240.187.198] has quit [Read error: 148 (No route to
host)]
09:30 < tonyg> @eval ("hello")[0]
09:30 < rndbot> 104
09:31 < exch> > c := make(chan bool); c <- true;
09:31 < rndbot> <no output>
09:32 < tonyg> > c := make(chan bool); c <- true; <-c;
09:32 < rndbot> <no output>
09:32 < tonyg> > c := make(chan bool); c <- true; println(<-c);
09:32 < rndbot> <no output>
09:32 < tonyg> > c := make(chan bool); go (c <- true);
println(<-c);
09:32 < rndbot> <Error: syntax error near true>
09:32 < tonyg> > c := make(chan bool); go (func(){c <- true})();
println(<-c);
09:32 < rndbot> true
09:33 < tonyg> > c := make(chan bool); go (func(){c <- false})();
println(<-c);
09:33 < rndbot> false
09:33 < exch> > f := func(c chan bool){ c <- true } c := make(chan
bool); go f(c);
09:33 < rndbot> <Error: syntax error near c>
09:33 < exch> > f := func(c chan bool){ c <- true }; c := make(chan
bool); go f(c);
09:33 < rndbot> <no output>
09:33 < exch> hmm.  no deadlock :p
09:44 -!- tonyg [n=tonyg@82.153.198.135] has quit [Read error: 148 (No route to
host)]
09:53 -!- tonyg [n=tonyg@82.153.198.135] has joined #go-run
10:03 < tonyg> > f := 0; i := 1; p := f << (i * 16);
10:03 < rndbot> <Error: invalid operation: f << (i * 16) (shift
count type int)>
10:04 < tonyg> > f := 0; i := uint(1); p := f << (i * 16);
10:04 < rndbot> <no output>
10:51 < tonyg> @eval fmt.Sprintf("\0%s\0%s", "hi", "there")
10:51 < rndbot> <Error: non-oct character in escape sequence: %, non-oct
character in escape sequence: %, non-oct character in escape sequence: %...>
10:52 < tonyg> @eval fmt.Sprintf("\000%s\000%s", "hi", "there")
10:52 < rndbot> hi there
10:52 < tonyg> @eval fmt.Sprintf("\000%s\000%s", "hi", "there")[0]
10:52 < rndbot> 0
11:20 -!- tonyg [n=tonyg@82.153.198.135] has quit ["Leaving"]
11:31 -!- nbaum [n=nathan@84.45.115.9] has left #go-run []
11:46 -!- spikebike [n=bill@209.237.247.72] has left #go-run []
12:27 -!- Zeffrin [n=no@110.175.179.56] has joined #go-run
13:25 -!- hnaz [n=hannes@85.214.51.133] has left #go-run ["road house."]
14:19 -!- p4p4 [n=P4p4@82.113.106.24] has joined #go-run
14:38 -!- msbranco [n=msbranco@64-172.61-188.cust.bluewin.ch] has joined #go-run
14:41 -!- tonyg [n=tonyg@host238.lshift.net] has joined #go-run
14:43 -!- r2p2 [n=billy@v32671.1blu.de] has joined #go-run
14:44 -!- rbohn [n=rbohn@192.206.100.4] has joined #go-run
15:17 < r2p2> > fmt.Printf("test");
15:17 < rndbot> test
15:17 < r2p2> cool
15:33 -!- r2p2 [n=billy@v32671.1blu.de] has left #go-run []
16:10 -!- p4p4 [n=P4p4@82.113.106.24] has quit [Read error: 110 (Connection timed
out)]
17:06 -!- p4p4 [n=P4p4@82.113.121.24] has joined #go-run
17:16 -!- rbohn [n=rbohn@192.206.100.4] has quit ["ChatZilla 0.9.85 [Firefox
3.0.15/2009101601]"]
17:58 -!- tonyg [n=tonyg@host238.lshift.net] has quit ["Leaving"]
18:25 -!- p4p4 [n=P4p4@82.113.121.24] has left #go-run []
20:04 -!- msbranco_ [n=msbranco@64-172.61-188.cust.bluewin.ch] has joined #go-run
20:06 -!- msbranco [n=msbranco@64-172.61-188.cust.bluewin.ch] has quit [Remote
closed the connection]
22:44 < Zeffrin> > a, b = 2, 1; for a < b { a << 1; b = a }
fmt.Printf("%d", a);
22:44 < rndbot> <Error: undefined: a, undefined: b, cannot assign to a,
cannot assign to b, cannot assign to b>
22:44 < Zeffrin> > var a, b int = 2, 1; for a < b { a << 1; b =
a } fmt.Printf("%d", a);
22:44 < rndbot> <Error: a << 1 not used>
22:44 < Zeffrin> > var a, b int = 2, 1; for a > b { a << 1; b =
a } fmt.Printf("%d", a);
22:44 < rndbot> <Error: a << 1 not used>
22:44 < Zeffrin> hmm
22:45 < danderson> > var a, b int = 2, 1; for a > b { a = a <<
1; b = a } fmt.Printf("%d", a);
22:45 < rndbot> 4
22:45 < danderson> like that?
22:45 < Zeffrin> yeah thats what I was lookin for
22:46 < Zeffrin> cept
22:46 < danderson> there might even be a <<= operator to do a
<<= 1 (there is in C), but I'm not sure
22:46 < danderson> > var a, b int = 2, 1; for a > b { a <<= 1; b
= a } fmt.Printf("%d", a);
22:46 < Zeffrin> > var a, b int = 2, 1; for a > b { b = a; a = a
<< 1 } fmt.Printf("%d", a);
22:46 < rndbot> 4
22:46 < rndbot> -2147483648
22:46 < danderson> yup, <<= exists :)
22:46 < Zeffrin> wasnt sure if it wrapped or not, saw something ont he
mailing list that made me unsure so cool
22:46 < Zeffrin> i suppose all thats happening there is its setting the high
bit though eh
22:47 < Zeffrin> > var a, b int = 2, 1; for a > b { b = a; a += 1 }
fmt.Printf("%d", a);
22:47 < rndbot> <killed> <no output>
22:48 < danderson> yup
22:48 < danderson> there is no handling of overflow
22:48 < danderson> it just does whatever the machine does, which is usually
wrap around into the negatives
22:49 < Zeffrin> ahhh ok right it makes much more sense that way
22:49 < Zeffrin> thanks!
23:19 -!- Zeffrin [n=no@110.175.179.56] has quit []
--- Log closed Thu Nov 26 00:00:29 2009