<<15-06-2012>>

00:01:58*apriori_ quit (Ping timeout: 245 seconds)
00:49:30*apriori_ joined #nimrod
00:55:39*apriori_ quit (Ping timeout: 244 seconds)
01:01:06*filwit quit (Quit: Leaving)
02:27:27*XAMPP[0] joined #nimrod
02:28:08*XAMPP quit (Ping timeout: 244 seconds)
03:47:44*comex quit (Ping timeout: 252 seconds)
05:25:21*llm joined #nimrod
05:50:48*llm quit (Quit: ChatZilla 0.9.88.2 [Firefox 13.0/20120601045813])
07:51:05Trixar_zaHmmm
07:51:12Trixar_zaAsync is actually easier
08:19:32*XAMPP joined #nimrod
08:19:32*XAMPP quit (Changing host)
08:19:32*XAMPP joined #nimrod
08:20:58*XAMPP[0] quit (Ping timeout: 246 seconds)
12:51:13*Araq_ joined #nimrod
12:51:34*Araq_ quit (Client Quit)
13:06:24*XAMPP[0] joined #nimrod
13:09:35*XAMPP quit (Ping timeout: 252 seconds)
15:52:29*zahary quit (Remote host closed the connection)
16:54:42dom96Trixar_za: Trying out my asyncio module?
17:07:15Araqhi mattlewis, welcome!
17:09:40mattlewisAraq: I made a nimrod hashmap benchmark
17:09:51mattlewisis this reasonable nimrod code? https://bitbucket.org/jcowgar/fastmap/changeset/eeab560dd547
17:10:29Araqnot really
17:10:37Araqfor a start, put it in a 'main' proc
17:10:59mattlewisok...does that have an effect on performance?
17:11:33Araqdunno, maybe
17:12:11mattlewisit didn't really occur to me to do that...I didn't notice any 'main's in the tutorial :-)
17:13:04Araq var v: string
17:13:06Araq v = table[keys[i-1]]
17:13:24Araqit is better (and more efficient) to do: let v = table[keys[i-1]]
17:14:54mattlewisAraq: yes, although the benchmarks are all starting with default size
17:35:33*XAMPP[0] quit (Quit: There is no such thing as coincidence, only the inevitable.)
17:40:01*XAMPP joined #nimrod
17:40:01*XAMPP quit (Changing host)
17:40:01*XAMPP joined #nimrod
17:45:13Trixar_zadom96: Yes. First played with python's one though. It looks more complicated than it is.
17:47:41Trixar_zaIncidentally, why do people feel that explaining the history of a concept is the same as learning it? I mean really, I spent most of a book on Event Driven Design (and how models like objects are, in fact, Event Driven), just learning who came up with what and the various names for the same thing.
17:48:20*mattlewis left #nimrod ("http://quassel-irc.org - Chat comfortably. Anywhere.")
17:48:50Trixar_zaIf he focused on the concept rather than the history, it would have fit a grand total of 5 or less pages.
17:49:04Trixar_zarather than 59...
17:54:55*XAMPP quit (Ping timeout: 244 seconds)
17:57:54Araqwell but you can't make a book out of 5 pages ...
17:58:42Trixar_zaTrue, but I would have finished it in like 10 minutes :P
18:00:32Trixar_zaOh btw, one day I'm going to hack Nimrod and add stuff like print and tabulation conversion. I will also add # Over my dead body he said...
18:03:07Trixar_zaI wouldn't hold my breath though - I'm a long way from understanding how Nimrod does what it does.
18:08:43Araqwhat's "print conversion"?
18:09:30Trixar_zaActually, print as an alias for echo
18:09:51Araqlol
18:10:11Araqwhat about using an *editor*? :P
18:10:23AraqI mean some editor worthy this name
18:11:07Trixar_zaTrue and Geany does have the shiny and nice Tabulation to Spaces (and vice versa) converter
18:11:14Trixar_zaStill I'm lazy
18:12:21Trixar_zaAlso I keep using print before echo... then half way I go "Er, no" *search/replace print with echo*
18:12:53Trixar_zaWhat I get for using Python and then Nimrod in the same evening
18:13:41Trixar_zaI actually have the exact same problem with Genie (Vala).
18:16:54Trixar_zaAnyway, what I'm trying to say is that Python is kind of a brain dead language - you don't really need it to think - which is probably why it's so popular
18:17:18Trixar_zaYou also then drag said brain deadness to other languages
18:17:19Trixar_zalol
18:19:52Araqbecause it uses 'print' instead of 'echo'? that's ...
18:20:07Araqwow
18:20:09Trixar_zastandard
18:20:14AraqI need a new word ...
18:20:21Araqabsurd
18:23:11Araqbut I've got good news for you
18:24:13Araqmaking "print" an alias of "echo" is 1 line of code
18:24:17Trixar_zaEh, all I was saying was that python (and possibly Perl) has created some, to use your word, absurd exceptions
18:24:42Trixar_zaexpectations*
18:24:42Araqif you figure out this 1 line in system.nim and make a pull request
18:24:59AraqI may fullfill your wish :-)
18:25:11Trixar_zaI just have to copy the echo* binding and rename it to print* right?
18:25:23Trixar_zafunctions, whatever :P
18:25:24Araqdamn you ...
18:25:39Araq:-)
18:26:00Trixar_zaI figured that may work. Couldn't work out the tabulation one though :P
18:28:55Araqcompiler/lexer.nim ?
18:29:03*XAMPP joined #nimrod
18:29:55Trixar_zabrenton@trixarian:~/nimrod$ ./test
18:29:56Trixar_zatest
18:29:58Trixar_zawell, I'll be
18:30:13Trixar_zaBut that's probably bad nimrod
18:30:39Araq'echo' is shorter than print :P
18:30:46Araqand in python 3 you need print() anyway
18:31:00Araqand in perl 6 it's "say"
18:31:07Araqin ruby it's "puts"
18:31:14dom96Lets add an alias for "say" it's even shorter!
18:31:30Araqyeah perl 6 chose 'say' for that reason
18:31:44*Trixar_za adds in all of just to be spiteful - well except print()
18:31:57Trixar_za-of*
18:32:16Araqin the repl you don't need the 'echo'
18:33:17Trixar_zaOn the upside, it's nice being able to mess with a Language
18:42:30*Trixar_za wonders what else he can mess with
18:43:34dom96Macros/Templates? :P
18:44:04Trixar_zaerm
18:44:14Trixar_zawell, aren't you flexiable
18:44:28Trixar_zaprint() and echo() works just as well
18:47:36*Trixar_za abuses Nimrod some more
18:52:53Trixar_zaHmmm
18:53:23Araqyou should create a "ruby" module that contains all sorts of weird ruby-like stuff
18:56:53Trixar_zaActually, I was considering doing a syntax highlighting file for geany because the code still looks bland without it
18:58:58Trixar_zaOh
18:59:14Trixar_zaI can use it to set which indentation type it uses >.>
18:59:34Trixar_za# 0 is spaces, 1 is tabs, 2 is tab & spaces
18:59:39Trixar_za#type=1
18:59:44Trixar_za^
19:04:56Trixar_zaAh, there you are
19:05:10*Trixar_za sees doc/keywords.txt
19:25:00Trixar_zaBwahahaha
19:25:05Trixar_zaIt works
19:32:30Trixar_zaHmmm, looks like you prefer 2 spaces width rather than 4
19:38:20Araqyes, btw there is a highlighter for scintilla
19:38:30Araqwhich is what geany uses
19:39:00Trixar_zaJust wrote my own. It has a weird way of doing it too
19:39:50Trixar_zahand to put it in ~/.config/geany/filedef/
19:39:55Trixar_zahad*
19:40:05Trixar_zaand name it filetypes.Nimrod.conf
19:40:40Trixar_zaoh and add the extension to ~/.config/geany/filetype_extensions.conf
19:43:00Trixar_zahttp://trixarian.net/paste/56
19:43:05Trixar_zaThat's how it looks
19:44:10Trixar_zaThe Compile and Build settings are probably wrong
19:44:20Trixar_zais*
20:06:41Araqpython's triple quotes are not like nimrod's
20:06:49Araqso you shouldn't reuse the parser
20:07:10Trixar_zaI just used genie's file as a base
20:23:38*Zerathul joined #nimrod
20:35:58Trixar_zaWell, for what I repurposed compile and build, they work
20:36:17Trixar_zaAnd the triple quotes thing doesn't seem like too much of a problem
20:36:18Trixar_za:P
20:38:23Trixar_zaI'm surprised you didn't see I sneaked in echo and print as keywords
20:42:10Araqbecause I didn't really take a look? :P
20:45:26Trixar_zaAh, that explains it
20:46:26Trixar_zaAlso I believe: lexer.cpp.triplequoted.strings=1 controls triple strings :P
20:46:46Trixar_zaIt's only inheriting how tags works from python
20:46:58Trixar_zaer, triple quotes*
20:48:49Araqwell yes
20:48:58Araqbut nimrod's triple quotes are not the same as python's
20:49:05Araqthe quoting rules are different
20:49:23Trixar_zaAnd how different is it from cpp?
20:49:28Trixar_zaer, c++
20:49:41Araqc++ has no triple quoted strings ...
20:49:50Araqafaik
20:51:23Trixar_zaWell, it's inheriting how triple quoted strings work form there. Not sure how it works though :P
20:51:44Trixar_za[lexer_properties] section
20:51:46Trixar_zaHere any special properties for the Scintilla lexer can be set in the format key.name.field=some.value.
20:51:46Trixar_zaProperties Geany uses are listed in the system filetype files. To find other properties you need Geany's source code:
20:51:53Trixar_zaso it's inherting from filetypes.cpp
20:52:01Trixar_zathis could be bad...
20:54:08Trixar_zaSome deep voodoo going on here
20:54:27Trixar_zahttp://www.geany.org/manual/dev/index.html#custom-filetypes
20:54:32Trixar_zaEh, too lazy to work it out
21:13:24Araqjust use scintilla's nimrod lexer and update it
21:13:35Araqso that it parses the new features
21:40:57*XAMPP quit (Read error: Connection reset by peer)
21:45:34*XAMPP joined #nimrod
21:47:28*comex joined #nimrod
22:08:33*XAMPP quit (Read error: Connection reset by peer)
22:12:59*XAMPP joined #nimrod
23:18:20*Zerathul quit (Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725])