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:05 | Trixar_za | Hmmm |
07:51:12 | Trixar_za | Async 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:42 | dom96 | Trixar_za: Trying out my asyncio module? |
17:07:15 | Araq | hi mattlewis, welcome! |
17:09:40 | mattlewis | Araq: I made a nimrod hashmap benchmark |
17:09:51 | mattlewis | is this reasonable nimrod code? https://bitbucket.org/jcowgar/fastmap/changeset/eeab560dd547 |
17:10:29 | Araq | not really |
17:10:37 | Araq | for a start, put it in a 'main' proc |
17:10:59 | mattlewis | ok...does that have an effect on performance? |
17:11:33 | Araq | dunno, maybe |
17:12:11 | mattlewis | it didn't really occur to me to do that...I didn't notice any 'main's in the tutorial :-) |
17:13:04 | Araq | var v: string |
17:13:06 | Araq | v = table[keys[i-1]] |
17:13:24 | Araq | it is better (and more efficient) to do: let v = table[keys[i-1]] |
17:14:54 | mattlewis | Araq: 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:13 | Trixar_za | dom96: Yes. First played with python's one though. It looks more complicated than it is. |
17:47:41 | Trixar_za | Incidentally, 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:50 | Trixar_za | If he focused on the concept rather than the history, it would have fit a grand total of 5 or less pages. |
17:49:04 | Trixar_za | rather than 59... |
17:54:55 | * | XAMPP quit (Ping timeout: 244 seconds) |
17:57:54 | Araq | well but you can't make a book out of 5 pages ... |
17:58:42 | Trixar_za | True, but I would have finished it in like 10 minutes :P |
18:00:32 | Trixar_za | Oh 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:07 | Trixar_za | I wouldn't hold my breath though - I'm a long way from understanding how Nimrod does what it does. |
18:08:43 | Araq | what's "print conversion"? |
18:09:30 | Trixar_za | Actually, print as an alias for echo |
18:09:51 | Araq | lol |
18:10:11 | Araq | what about using an *editor*? :P |
18:10:23 | Araq | I mean some editor worthy this name |
18:11:07 | Trixar_za | True and Geany does have the shiny and nice Tabulation to Spaces (and vice versa) converter |
18:11:14 | Trixar_za | Still I'm lazy |
18:12:21 | Trixar_za | Also I keep using print before echo... then half way I go "Er, no" *search/replace print with echo* |
18:12:53 | Trixar_za | What I get for using Python and then Nimrod in the same evening |
18:13:41 | Trixar_za | I actually have the exact same problem with Genie (Vala). |
18:16:54 | Trixar_za | Anyway, 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:18 | Trixar_za | You also then drag said brain deadness to other languages |
18:17:19 | Trixar_za | lol |
18:19:52 | Araq | because it uses 'print' instead of 'echo'? that's ... |
18:20:07 | Araq | wow |
18:20:09 | Trixar_za | standard |
18:20:14 | Araq | I need a new word ... |
18:20:21 | Araq | absurd |
18:23:11 | Araq | but I've got good news for you |
18:24:13 | Araq | making "print" an alias of "echo" is 1 line of code |
18:24:17 | Trixar_za | Eh, all I was saying was that python (and possibly Perl) has created some, to use your word, absurd exceptions |
18:24:42 | Trixar_za | expectations* |
18:24:42 | Araq | if you figure out this 1 line in system.nim and make a pull request |
18:24:59 | Araq | I may fullfill your wish :-) |
18:25:11 | Trixar_za | I just have to copy the echo* binding and rename it to print* right? |
18:25:23 | Trixar_za | functions, whatever :P |
18:25:24 | Araq | damn you ... |
18:25:39 | Araq | :-) |
18:26:00 | Trixar_za | I figured that may work. Couldn't work out the tabulation one though :P |
18:28:55 | Araq | compiler/lexer.nim ? |
18:29:03 | * | XAMPP joined #nimrod |
18:29:55 | Trixar_za | brenton@trixarian:~/nimrod$ ./test |
18:29:56 | Trixar_za | test |
18:29:58 | Trixar_za | well, I'll be |
18:30:13 | Trixar_za | But that's probably bad nimrod |
18:30:39 | Araq | 'echo' is shorter than print :P |
18:30:46 | Araq | and in python 3 you need print() anyway |
18:31:00 | Araq | and in perl 6 it's "say" |
18:31:07 | Araq | in ruby it's "puts" |
18:31:14 | dom96 | Lets add an alias for "say" it's even shorter! |
18:31:30 | Araq | yeah 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:57 | Trixar_za | -of* |
18:32:16 | Araq | in the repl you don't need the 'echo' |
18:33:17 | Trixar_za | On 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:34 | dom96 | Macros/Templates? :P |
18:44:04 | Trixar_za | erm |
18:44:14 | Trixar_za | well, aren't you flexiable |
18:44:28 | Trixar_za | print() and echo() works just as well |
18:47:36 | * | Trixar_za abuses Nimrod some more |
18:52:53 | Trixar_za | Hmmm |
18:53:23 | Araq | you should create a "ruby" module that contains all sorts of weird ruby-like stuff |
18:56:53 | Trixar_za | Actually, I was considering doing a syntax highlighting file for geany because the code still looks bland without it |
18:58:58 | Trixar_za | Oh |
18:59:14 | Trixar_za | I can use it to set which indentation type it uses >.> |
18:59:34 | Trixar_za | # 0 is spaces, 1 is tabs, 2 is tab & spaces |
18:59:39 | Trixar_za | #type=1 |
18:59:44 | Trixar_za | ^ |
19:04:56 | Trixar_za | Ah, there you are |
19:05:10 | * | Trixar_za sees doc/keywords.txt |
19:25:00 | Trixar_za | Bwahahaha |
19:25:05 | Trixar_za | It works |
19:32:30 | Trixar_za | Hmmm, looks like you prefer 2 spaces width rather than 4 |
19:38:20 | Araq | yes, btw there is a highlighter for scintilla |
19:38:30 | Araq | which is what geany uses |
19:39:00 | Trixar_za | Just wrote my own. It has a weird way of doing it too |
19:39:50 | Trixar_za | hand to put it in ~/.config/geany/filedef/ |
19:39:55 | Trixar_za | had* |
19:40:05 | Trixar_za | and name it filetypes.Nimrod.conf |
19:40:40 | Trixar_za | oh and add the extension to ~/.config/geany/filetype_extensions.conf |
19:43:00 | Trixar_za | http://trixarian.net/paste/56 |
19:43:05 | Trixar_za | That's how it looks |
19:44:10 | Trixar_za | The Compile and Build settings are probably wrong |
19:44:20 | Trixar_za | is* |
20:06:41 | Araq | python's triple quotes are not like nimrod's |
20:06:49 | Araq | so you shouldn't reuse the parser |
20:07:10 | Trixar_za | I just used genie's file as a base |
20:23:38 | * | Zerathul joined #nimrod |
20:35:58 | Trixar_za | Well, for what I repurposed compile and build, they work |
20:36:17 | Trixar_za | And the triple quotes thing doesn't seem like too much of a problem |
20:36:18 | Trixar_za | :P |
20:38:23 | Trixar_za | I'm surprised you didn't see I sneaked in echo and print as keywords |
20:42:10 | Araq | because I didn't really take a look? :P |
20:45:26 | Trixar_za | Ah, that explains it |
20:46:26 | Trixar_za | Also I believe: lexer.cpp.triplequoted.strings=1 controls triple strings :P |
20:46:46 | Trixar_za | It's only inheriting how tags works from python |
20:46:58 | Trixar_za | er, triple quotes* |
20:48:49 | Araq | well yes |
20:48:58 | Araq | but nimrod's triple quotes are not the same as python's |
20:49:05 | Araq | the quoting rules are different |
20:49:23 | Trixar_za | And how different is it from cpp? |
20:49:28 | Trixar_za | er, c++ |
20:49:41 | Araq | c++ has no triple quoted strings ... |
20:49:50 | Araq | afaik |
20:51:23 | Trixar_za | Well, it's inheriting how triple quoted strings work form there. Not sure how it works though :P |
20:51:44 | Trixar_za | [lexer_properties] section |
20:51:46 | Trixar_za | Here any special properties for the Scintilla lexer can be set in the format key.name.field=some.value. |
20:51:46 | Trixar_za | Properties Geany uses are listed in the system filetype files. To find other properties you need Geany's source code: |
20:51:53 | Trixar_za | so it's inherting from filetypes.cpp |
20:52:01 | Trixar_za | this could be bad... |
20:54:08 | Trixar_za | Some deep voodoo going on here |
20:54:27 | Trixar_za | http://www.geany.org/manual/dev/index.html#custom-filetypes |
20:54:32 | Trixar_za | Eh, too lazy to work it out |
21:13:24 | Araq | just use scintilla's nimrod lexer and update it |
21:13:35 | Araq | so 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]) |