--- Log opened Fri Feb 03 00:00:13 2006 --- Day changed Fri Feb 03 2006 00:00 -!- nazgul` [n=d47f5f7d@lilith.ii.uni.wroc.pl] has quit ["CGI:IRC (EOF)"] 02:16 -!- Arnia [n=jgeldart@1-40-101-159.adsl.legend.co.uk] has joined #nemerle 05:36 -!- kanru [n=kanru@59-121-157-107.dynamic.hinet.net] has joined #nemerle 06:33 -!- Arnia [n=jgeldart@1-40-101-159.adsl.legend.co.uk] has quit [Read error: 104 (Connection reset by peer)] 07:13 < user317> is there anyway to delete a node from a heap 07:46 -!- kanru [n=kanru@59-121-157-107.dynamic.hinet.net] has quit [Read error: 104 (Connection reset by peer)] 07:47 -!- kanru [n=kanru@59-121-157-107.dynamic.hinet.net] has joined #nemerle 08:33 -!- Netsplit zelazny.freenode.net <-> irc.freenode.net quits: d 08:33 -!- Netsplit over, joins: d 08:33 < malekith> user317: no, because it requires you to traverse the entire heap 08:34 < malekith> user317: maybe we should have a Filter method in heap to allow for that though 08:34 < malekith> user317: it would still be O(n) though 09:40 -!- m3ga [n=erikd@adsl-64-136.swiftdsl.com.au] has joined #nemerle 09:44 -!- kanru [n=kanru@59-121-157-107.dynamic.hinet.net] has quit ["Leaving"] 10:12 -!- SergeiTulentsev [n=c32232b4@lilith.ii.uni.wroc.pl] has joined #nemerle 10:14 < SergeiTulentsev> My greetings to all Nemerlies. :-) 10:16 < malekith> thanks! 10:16 < SergeiTulentsev> I've ran out of documentation again. :-) This time it isn't that dumb question. I've read about processing raw tokens with macros and decided to write something simple. For the beginning, I decided just to print token names... so I do like this: 10:18 < SergeiTulentsev> Damn. I cannot copy/paste code... :-) 10:18 < SergeiTulentsev> macro ParseXML(group: Token) 10:18 < SergeiTulentsev> syntax("xml", group) 10:20 < malekith> you can use pastebin.com 10:27 < SergeiTulentsev> The link is: http://pastebin.com/pastebin.php?dl=536621 10:28 < SergeiTulentsev> What i am trying to do is retrieve token names in a list, and then print them. This doesn't work, of course. 10:29 < SergeiTulentsev> :-) But how to do it properly? Token.Next() returns the next token in a sequence, right? 10:32 < SergeiTulentsev> I guess, it would be cool to have at least one working sample for raw token extensions on the site. 10:48 -!- m3ga [n=erikd@adsl-64-136.swiftdsl.com.au] has quit ["disappearing into the sunset"] 10:55 < malekith> ok 10:55 < malekith> you can do 10:55 < malekith> foreach (t in group) 10:55 < malekith> and add stuff to the list 10:56 < SergeiTulentsev> outside of quoted region? 10:57 < malekith> yes 10:57 < malekith> try to build a string to print, 10:57 < malekith> because passing a list to quoted region is going to be tricky 10:57 < malekith> or simply dump what you want during compilation 10:58 < malekith> with Message.Debug ("ble") or Message.Warning ("ble") 10:58 < malekith> or just writeline 10:59 < SergeiTulentsev> Ok. Thank you. The online documentation is quite minimalistic. Doesn't Nemerle support XML comments, like C# does? 10:59 < malekith> it does 11:00 < malekith> but we had hard time getting ndoc to work 11:00 < malekith> and i'm not sure it supports generic types already 11:00 < malekith> we have this documentation comments mainly for the library 11:01 < malekith> not for the compiler internals :/ 11:01 < SergeiTulentsev> Well, thank you once more. :-) 11:01 < malekith> no problem 11:01 < SergeiTulentsev> Ah, by the way, you're from Poland, right? 11:02 < SergeiTulentsev> The city is Wroclaw? 11:02 < SergeiTulentsev> Is it far away from Warsaw or Torun? :-) 11:03 < SergeiTulentsev> In nearest future I'm gonna travel a bit around Poland. Maybe, there'll be a chance to meet each other. :-) Ok. Won't bother you anymore. At least, today. :-) 11:08 < malekith> SergeiTulentsev: well.. Wroclaw is about 300km from Warsaw I guess 11:08 < malekith> and 400-500 from Torun 11:09 < malekith> In Poland we say it's far away ;-) 11:09 < malekith> oops... I was wrong 11:11 < malekith> it's about 500km from both Torun and Warsaw 11:12 < malekith> ok... now I have the exact data, 280km to Torun and 341km to Warsaw ;-) 11:12 < malekith> one cannot belive these internet maps 11:17 < SergeiTulentsev> :-) 11:17 < SergeiTulentsev> That's not "far away" in russia. It's almost next street. :-) 11:17 < SergeiTulentsev> Few hours by car or train 11:18 < malekith> ;) 11:19 < malekith> where do you live in Russia? 11:22 < SergeiTulentsev> Originally I am from Saratov. It is about 900 kilometers to the south from Moscow. 11:22 < SergeiTulentsev> Now I work in Moscow 11:23 < SergeiTulentsev> Using Google map, I've found my street, but failed to recognize my house. :-) 11:32 < malekith> in Saratov? 11:32 < malekith> or in Moscow 11:33 < SergeiTulentsev> Foreigners are surprised with our distances. :-) It takes 7 days to travel from Moscow to Vladivostok by train. :-) 11:34 < malekith> it's another matter that the train never goes faster than 100km/h, isn't it? ;-) 11:34 < malekith> at least this was my impression with post-soviet trains in Ukraine 11:34 < SergeiTulentsev> No, usually it doesn't :-) 11:35 < malekith> they are ok, you can sleep in them and so on 11:35 < malekith> but painfully slow 11:35 < malekith> http://maps.google.com/maps?f=q&hl=en&q=wroc%C5%82aw,+poland&ll=51.114589,17.050889&spn=0.001889,0.004635&t=h 11:35 < SergeiTulentsev> Polish trains move faster than 100 km/h, don't they? :-) 11:35 < malekith> I live in the middle yellow house 11:35 < malekith> intercity trains -- yes 11:35 < malekith> for other trains it depends 11:36 < SergeiTulentsev> Wow, what a zoom in. :-) I'll try to show you mine. :-) 11:46 < SergeiTulentsev> Damn. My area isn't that interesting to satellites. :-) Here is a picture of area around my house in Engels (Saratov is just across the Volga river). If you zoom out two or three times, you will see Saratov. :-) 11:46 < SergeiTulentsev> http://maps.google.com/maps?f=q&hl=en&q=Saratov,+Russia&ll=51.412912,46.038551&spn=0.035064,0.107975&t=h 11:53 < malekith> SergeiTulentsev: what amezes me, are that 1km long cornfields 11:53 < malekith> what amezes me even more, is that some of them are round... 11:53 < malekith> ;-) 11:55 < SergeiTulentsev> :-) 13:13 -!- SergeiTulentsev [n=c32232b4@lilith.ii.uni.wroc.pl] has quit ["CGI:IRC 0.5.7 (2005/06/19)"] 15:36 -!- kanru [n=kanru@59-121-157-107.dynamic.hinet.net] has joined #nemerle 15:57 < CIA-10> malekith * r6106 /nemerle/trunk/macros/Logging.n: Add LogFormat(PrependFlag). 17:48 -!- kanru [n=kanru@59-121-157-107.dynamic.hinet.net] has quit ["Leaving"] 18:31 < user317> fibonacci heap should let you delete an element in log(n) 18:52 -!- nazgul` [n=d47f5f7d@lilith.ii.uni.wroc.pl] has joined #nemerle 18:52 -!- mode/#nemerle [+o nazgul`] by ChanServ 20:13 < malekith> user317: an implementation would be welcome ;-) 20:50 -!- nazgul` [n=d47f5f7d@lilith.ii.uni.wroc.pl] has quit ["CGI:IRC (Ping timeout)"] 21:42 -!- nazgul` [n=d47f5f7d@lilith.ii.uni.wroc.pl] has joined #nemerle 21:42 -!- mode/#nemerle [+o nazgul`] by ChanServ 23:54 -!- nazgul` [n=d47f5f7d@lilith.ii.uni.wroc.pl] has quit ["CGI:IRC (Ping timeout)"] --- Log closed Sat Feb 04 00:00:52 2006