03:03:04 | * | q66 quit (Remote host closed the connection) |
06:53:25 | reactormonk | Araq, you think you could mentor for gsoc @ nimrod? |
06:53:25 | reactormonk | or too late already |
09:32:11 | * | Boscop joined #nimrod |
09:36:24 | * | xcombelle joined #nimrod |
09:57:47 | * | q66 joined #nimrod |
11:39:53 | * | gour joined #nimrod |
13:30:59 | * | gour quit (Disconnected by services) |
13:31:01 | * | gour_ joined #nimrod |
13:33:11 | * | gour_ is now known as gour |
13:37:30 | * | xcombelle quit (Remote host closed the connection) |
13:40:18 | * | Boscop quit (Read error: Connection reset by peer) |
13:40:41 | * | Boscop joined #nimrod |
13:49:08 | * | gour quit (Disconnected by services) |
13:49:09 | * | gour_ joined #nimrod |
14:08:24 | * | gour joined #nimrod |
14:10:33 | * | gour_ quit (Ping timeout: 245 seconds) |
14:26:41 | * | gour quit (Disconnected by services) |
14:26:42 | * | gour_ joined #nimrod |
14:38:53 | * | gour_ quit (Ping timeout: 245 seconds) |
14:41:32 | * | gour joined #nimrod |
14:53:40 | * | gour quit (Disconnected by services) |
14:53:41 | * | gour_ joined #nimrod |
15:04:52 | * | gour joined #nimrod |
15:07:13 | * | gour_ quit (Ping timeout: 245 seconds) |
15:21:48 | * | gour quit (Ping timeout: 245 seconds) |
15:24:28 | * | gour joined #nimrod |
15:30:42 | * | gour quit (Disconnected by services) |
15:30:42 | * | gour joined #nimrod |
15:38:03 | * | gour quit (Ping timeout: 245 seconds) |
15:39:47 | * | gour joined #nimrod |
15:47:13 | * | gour quit (Ping timeout: 245 seconds) |
16:34:29 | * | gradha joined #nimrod |
17:01:12 | dom96 | hey gradha |
17:01:17 | dom96 | how's the builder fairing now? |
17:01:47 | gradha | 0% cpu so far |
17:01:52 | gradha | I guess we will see on next commit |
17:03:11 | dom96 | alright, good. |
17:03:41 | gradha | how's your logo doing? any pinker? |
17:05:03 | dom96 | heh, no progress currently. filwit is busy. |
17:06:07 | gradha | ask him to do a 3d rendered rotating animation for your editor splash, with trumpets in the background |
17:18:04 | dom96 | I'll wait until I decide to create a special trumpet edition of Aporia. |
17:28:15 | gradha | there's good news for my development of nimrod code: I tried to login to my battlenet after half a year and it was instantly locked |
17:28:34 | dom96 | good :P |
17:28:44 | gradha | no more starcraf for me |
17:29:16 | gradha | hrm, I should ask google to ban me from youtube |
17:29:48 | gradha | there's a market for that, people paying google to disallow them using their services |
17:30:01 | dom96 | hrm, so I own this channel which all spanish people seem to join for some reason. |
17:30:23 | gradha | is it named like some slang for sex? |
17:30:31 | dom96 | No idea what they are saying though. |
17:30:33 | dom96 | It's #() |
17:30:44 | gradha | how can that be a channel? |
17:30:51 | gradha | looks more like a nimrod proc |
17:31:05 | dom96 | heh, I registered it a long time ago. |
17:31:18 | dom96 | IRC allows such channels |
17:32:00 | gradha | are you phising for identities or something? what's your interest in owning such a thing? |
17:32:27 | dom96 | Me and a couple of friends thought it was a clever channel name a while back. |
17:32:44 | gradha | "Keep your religious/political views to yourself" so what do people talk about then |
17:32:52 | dom96 | lol |
17:33:03 | dom96 | That's probably why the channel died. |
17:33:29 | gradha | and yet spaniards are resurrecting it? |
17:33:41 | dom96 | seems so |
17:34:16 | gradha | no idea about this sudden popularity you have |
17:34:37 | dom96 | I bet they just joined the first channel they saw in the channel list. |
17:35:37 | dom96 | gradha: so what are they saying? |
17:35:54 | gradha | well, I can tell you from a brief exchange these people are new to irc/technology, they don't even know what a log is or how to spell properly |
17:36:09 | dom96 | ahh, that's what I thought. |
17:37:27 | gradha | yep, so they are insulting each other, and alberto doesn't even know basic spanish |
17:37:37 | gradha | have fun |
17:37:57 | dom96 | lol |
17:38:09 | dom96 | yeah, I spent about 30 minutes trying to communicate with them using google translate. |
17:38:21 | dom96 | What a waste of life. |
17:38:50 | dom96 | anyway. How's your argument parser going? |
17:39:08 | gradha | I'm documenting for 0.1 release |
17:40:00 | gradha | I'm writing now examples of typical commandline programas, like mkdir or cp |
17:40:16 | dom96 | cool |
17:40:22 | gradha | then I want to do one with double dashes, and one without dashes at all |
17:40:32 | gradha | then install/usage readme and done |
17:40:56 | dom96 | then post it on reddit :P |
17:41:08 | gradha | you can post it, I don't even understand that web |
17:41:38 | gradha | wouldn't a nimrod forum post be better? |
17:41:51 | dom96 | yeah, sure. |
17:42:03 | dom96 | I suppose we should wait until 0.9.2 before starting a new wave of advertisement. |
17:42:38 | gradha | this reddit thing is so weird to me that whenever I see somebody link to it I just ignore it and never use the link |
17:43:11 | gradha | usually what I see is a hyperlink text, random threaded comments, can't understand what's all that about |
17:43:36 | dom96 | That's good, you don't want to get sucked into reddit. |
17:43:45 | dom96 | Once you do you will never return the same. |
17:44:06 | gradha | I do get sucked into stuff, but I quickly grow resistance |
17:45:00 | gradha | nowadays I only open a browser to see articles which render poorly on my rss feed |
17:46:20 | gradha | and youtube, of course |
17:47:44 | gradha | do you know perhaps why people ever allowed merging multiple switches into one? https://github.com/gradha/argument_parser/issues/16 |
17:48:06 | gradha | now that I'm implementing this I can't understand why people ever wanted this, given all the problems it introduces |
17:48:24 | dom96 | because people are too lazy to type in a couple more spaces and dashes. |
17:49:04 | gradha | lazy people use mouses |
17:49:08 | dom96 | hrm, just realised I didn't star your repo. |
17:49:21 | gradha | why would you? |
17:49:35 | dom96 | Because I am a nimrod fanboy. |
17:49:42 | gradha | ok, then go ahead |
17:50:42 | dom96 | amazing: Github knows that the repo is 100% Nimrod. |
17:50:51 | gradha | what? that's new |
17:51:04 | dom96 | Nimrod repo is still the same :\ |
17:51:51 | gradha | where does it show that? I only get the language listing if I go to my account and list the repositories I have |
17:52:13 | dom96 | Do you not see the green bar on the right of your repo's description? |
17:52:25 | gradha | oh, popovers |
17:52:33 | dom96 | yeah |
17:52:43 | gradha | awesome way of fucking interaction |
17:53:16 | dom96 | lol? What would you suggest as an alternative? |
17:53:57 | gradha | like, not needing to hover over something? how can a green line suggest you as a user you have to move your mouse pointer over it to get info? |
17:54:13 | gradha | that is, if you have a mouse pointer, not in a tactile device or textual browser |
17:55:09 | dom96 | I agree. But they can't list all the languages on that page. And i'm not sure how they could give the user a hint to hover over the bar. |
17:55:52 | gradha | at least on a text browser the language is displayed, after a "Sending request..." text, not explaining what that is all about, followed by a "Sorry, but there was a problem saving your changes" |
17:56:06 | gradha | amazing, the web keeps getting broken by stupid designers and javascript |
17:56:23 | dom96 | of course, no one cares about the minority. |
17:56:48 | gradha | I wish all these fuckers went to facebook and left the rest of the web alone, pre 2.0 |
17:57:05 | gradha | but I guess text is hard for people |
17:58:20 | gradha | back to coding, the bsd cp command has some weird switches |
17:58:30 | gradha | switch -a is "Preserves structure and attributes of files |
17:58:31 | gradha | but not directory structure." |
17:58:48 | gradha | never happened to want something like that |
17:59:21 | dom96 | what structure other than the dir structure is there? |
17:59:24 | gradha | it's confusing as well, since -a implies -R, which preserves directory structure |
17:59:52 | gradha | maybe this cp command comes from pre-directory filesystems where there was another kind of structure? |
18:00:08 | gradha | or maybe it is used to flatten hierarhies |
18:01:07 | dom96 | probably yeah, these things are almost always filled with old options which no one needs anymore. |
18:01:10 | * | gour joined #nimrod |
18:01:57 | gradha | it's also surprising Apple's cp command has switches anyway, its man page shoudl be "cp copies files, it knows which and where to, just run it, it works like magic" |
18:05:33 | * | gour quit (Ping timeout: 245 seconds) |
18:05:43 | gradha | that was fast |
18:10:26 | * | gour joined #nimrod |
18:12:20 | * | gour quit (Disconnected by services) |
18:12:21 | * | gour_ joined #nimrod |
18:22:23 | gradha | so I've been locked out of an old hotmail account, is it today international account locking day or something? |
18:23:04 | gradha | does nimrod's forum have a locking mechanism? |
18:23:59 | dom96 | no |
18:24:48 | gradha | *adds item to personal todo* |
18:25:21 | gradha | *adds extra note: implement electric shock plugin* |
18:30:29 | dom96 | Eviilllll |
18:31:20 | gradha | nah, evil would be to implement captchas for posting, you get a java snippet and have to make it pass compilation |
18:31:50 | gradha | electric shocks would be demanded by a certain user base |
18:35:50 | dom96 | heh |
19:04:53 | gradha | there we go, an example with a one letter template, I'm going straight to hell |
19:07:08 | * | gour_ has internet problems in last two days.. |
19:07:16 | * | gour_ is now known as gour |
19:08:37 | gour | when the show (what is missing in nimrod, OOP in nimrod etc.) begins tonight? |
19:09:00 | gradha | any time gour, start |
19:12:26 | * | gour quit (Disconnected by services) |
19:12:27 | * | gour_ joined #nimrod |
19:15:44 | gour_ | i thought you're waiting for filwit |
19:15:48 | * | gour_ is now known as gour |
19:16:52 | gradha | we basically know what we want from nimrod, dom96 wants more pink unicorns, I want more documentation, so there's not much to discuss |
19:16:59 | gradha | what do you want in nimrod gour? |
19:17:40 | gradha | maybe we can convince you to not want it |
19:17:55 | dom96 | Everyone knows that the pink unicorns can defeat the nasal demons. |
19:18:45 | gradha | is nasal demon a synonim for ill people? |
19:18:59 | gour | gradha: based on what's already there, just decent multi-platform gui bindings...more docs would be great as well...and Araq promised book at some time, maybe PIN ;) |
19:19:11 | dom96 | http://www.catb.org/jargon/html/N/nasal-demons.html |
19:19:27 | gradha | gour: there you go, implement Cairo |
19:19:29 | dom96 | I was looking at Rust docs in the train today. |
19:19:47 | dom96 | Nimrod's documentation is very good in comparison. |
19:20:24 | gradha | rust has had less time too |
19:21:03 | dom96 | gradha: shush |
19:21:22 | dom96 | Oh but, it has Mozilla behind it :P |
19:21:34 | gradha | interesting synonym for bacteria |
19:21:52 | gradha | is Mozilla relevant at all? |
19:22:13 | dom96 | Yeah, Rust has full-time developers working on it. |
19:22:22 | dom96 | Thanks to Mozilla. |
19:23:05 | gradha | does Mozilla publish some sort of table like "we pay this much to these many developers"? |
19:23:21 | dom96 | I doubt it |
19:23:56 | gradha | it would be interesting to compare their figures with what their LOC suggest as cost |
19:24:10 | gour | gradha: cairo or claro? |
19:24:43 | gradha | claro, funny mistake though |
19:25:22 | gour | :-) |
19:34:57 | gradha | I wish nimrod supported negative array indices |
19:36:38 | dom96 | I think it does. |
19:36:57 | dom96 | var a: array[-5 .. 1, int] |
19:37:18 | gradha | doesn't work for me for simple access like something[-1] to get last element |
19:37:37 | dom96 | oh, that's what you want. |
19:38:08 | dom96 | I'm sure the reason it's not there is: efficiency |
19:38:22 | gradha | let dest = args.positional_parameters[args.positional_parameters.len - 1] |
19:38:30 | gradha | what efficiency does it save me? |
19:38:51 | gradha | maybe checking for negative? |
19:39:15 | dom96 | well like I just demonstrated, you can have arrays which use negative indexes. |
19:39:34 | dom96 | a[-1] # Do I want last element, or element -1? |
19:40:21 | gradha | maybe a shortcut could be provided inside accessors? |
19:40:27 | gradha | like a[len -1] |
19:40:32 | gradha | to avoid retyping the variable name |
19:41:42 | dom96 | that would be nice yeah. |
19:44:56 | gradha | I guess that's not possible, you could want to call a proc inside the brackets |
19:56:58 | gour | there could be some smaller things added to the language, but i believe that it's quite cleat what kind of language nimrod is supposed to be |
19:59:12 | * | gradha quit (Ping timeout: 276 seconds) |
19:59:49 | * | gradha joined #nimrod |
20:10:58 | * | gour quit (Ping timeout: 245 seconds) |
20:11:41 | * | gour joined #nimrod |
20:31:36 | gradha | so what commands you use with double slash style? |
20:31:42 | gradha | likely any gnu program |
20:31:51 | gradha | maybe wget? that shows a lot of -h/--help variants |
20:32:17 | gradha | nice, it also specifies only double dash versions, yeah will make that |
20:34:53 | gour | what do you think is required for nimrod to be (more) popular and/or widely used? |
20:35:39 | dom96 | more people using and writing about Nimrod. |
20:35:48 | gradha | I don't think nimrod has to be more popular or widely used |
20:35:55 | dom96 | It's a bit of a cycle that though. |
20:35:56 | gradha | unless that's Araq's goal |
20:36:06 | dom96 | gradha: how come? |
20:36:22 | gradha | my goal is to have fun and enjoy programming, couldn't care less if nobody else used the language I use for that |
20:36:37 | gour | gradha: can we said it's actually used based on the current number of users? |
20:37:05 | gour | gradha: what would you do if Araq get hit by the bus/truck? |
20:37:28 | gradha | I would keep doing what I do, writing code, and maybe learning enough to pick up nimrod's development |
20:37:48 | gradha | I have been musing for several years writing my own lang, so it wouldn't be a strange step for me to take |
20:38:03 | gradha | nimrod simply hit the spot in what I wanted |
20:38:08 | gour | cool, so you can join nimrod's development today ;) |
20:38:09 | gradha | so it saves me from implementing it myself |
20:39:23 | gradha | I know some people want to use nimrod for work, and that kind of requires popularity, but I just expect work to suck and force me to do things I wouldn't do on my free will anyway |
20:39:23 | gour | i'm in a little bit different position approaching it as end-programmer not having neither skills nor time to work on the language/compiler itself, but interested to write app(s) using the language |
20:39:52 | gradha | so for me it's ok if I can't use nimrod (or whatever) at work, as long as they pay me |
20:40:21 | gour | yeah, i'm not paid for writing code... |
20:40:51 | dom96 | I would love for Nimrod to become popular so that I could use it as part of my work. |
20:40:52 | * | avarus joined #nimrod |
20:41:11 | avarus | hi |
20:41:17 | gradha | yo avarus |
20:41:20 | dom96 | Plus there would be the cool factor of me being a very early contributor to a successful programming language ;) |
20:41:21 | * | gour nods...liking to use it, at least, for hobby/open-source projects |
20:41:40 | gradha | fame and recognition? give me money instead |
20:41:43 | dom96 | not to say that Nimrod isn't already successful. |
20:41:51 | dom96 | hi avarus |
20:41:53 | avarus | gradha: ack :P |
20:42:39 | gour | gradha: if those are your only passion, then you're already lost ;) |
20:43:14 | gradha | gour: intriguing, what is the only passion you have inferred for me? |
20:43:42 | gour | gradha: let me say that money is not :-) |
20:44:26 | gradha | I wonder what I have lost then |
20:45:06 | avarus | dom96: is the text editor component in aphoria scintilla? |
20:45:15 | avarus | ah gtksourceview |
20:45:31 | dom96 | indeed, gtksourceview. |
20:46:28 | avarus | gradha: to be honest you also need something to be passionate about, right :)? |
20:46:50 | gradha | that would be programming |
20:47:00 | avarus | then it's fine :) |
20:47:25 | gradha | fame and recognition are useless for programming, that's why I prefer money, so I can spend it on programming |
20:47:46 | avarus | yes, I agreed on that |
20:48:58 | gradha | well, fame kind of gives you "followers", so languages like go don't go extinct and instead people use them |
20:49:22 | gradha | so Araq needs fame, and he refuses to post pictures of him on facebook |
20:49:29 | avarus | :P |
20:52:57 | avarus | so he must be a girl |
20:53:50 | gradha | girls designing languages, that would be a selling point, at least for marketing |
20:54:12 | dom96 | yes, if you ever find a language that was designed by a girl please let me know. |
20:55:19 | avarus | omg britney spears in the radio; born to make you happy |
20:55:40 | gradha | is she a woman yet? |
20:55:47 | avarus | yep |
20:56:00 | gradha | kind of liked her more when she taught physics |
20:56:14 | avarus | na, she looks better now :P |
20:57:07 | gradha | I doubt she is hotter than when explaining the conduction/valence band http://britneyspears.ac/physics/basics/basics.htm |
20:59:58 | gradha | yeah, Einstein knew what's hot http://britneyspears.ac/wallpaper/bswp005_1024x768.htm |
21:00:15 | avarus | :) |
21:21:12 | gradha | I can write "template something(a: varargs[string])" then call it like something("blah") and something(@["blah", "hey"]) |
21:21:35 | gradha | how do I "detect" which one is a single string and which an array in the body of the template? |
21:27:42 | gradha | my bad, it works like magic |
21:41:44 | * | gour quit (Quit: WeeChat 0.4.0) |
21:44:14 | reactormonk | gradha, ;-) |
21:44:35 | reactormonk | avarus, new face? |
21:44:51 | avarus | yes, they paid me to stay here |
21:45:01 | reactormonk | 1$/h? |
21:45:11 | avarus | :) |
21:45:46 | reactormonk | avarus, aka http://en.wikipedia.org/wiki/Working_opportunities_with_additional_expenses_compensation ? |
21:46:15 | avarus | omg, was es alles gibt |
21:55:42 | gradha | come on Error: 'toUTF8' cannot be passed to a procvar |
21:55:58 | reactormonk | gradha, is it a proc? |
21:56:09 | gradha | yes |
22:05:48 | Araq | hi ... what did I miss? |
22:07:18 | gradha | Araq: are you male or female? |
22:08:22 | Araq | -.- |
22:08:35 | gradha | I believe that's the most relevant question we've had today |
22:08:44 | reactormonk | gradha, andreas is quite a male name to me |
22:08:59 | gradha | and to me, but you can never be sure these days |
22:09:04 | Araq | as if any woman would have invented anything in this universe ... |
22:09:13 | reactormonk | gradha, if you want boobs, go to reddit.com/r/gonewild :-P |
22:09:17 | avarus | reactormonk: in fact it's quite a female name in other countries :) |
22:09:26 | reactormonk | avarus, I know he's german |
22:09:36 | reactormonk | Araq, good ol' curie? |
22:10:59 | Araq | she did it with her husband |
22:11:17 | Araq | and both of them weren't successful |
22:11:45 | avarus | http://de.wikipedia.org/wiki/Andreas_%28Automarke%29 :P |
22:12:19 | Araq | they died because of cancer iirc |
22:12:33 | reactormonk | welcome to radiation |
22:12:57 | avarus | http://en.wikipedia.org/wiki/Ford_Nucleon |
22:13:03 | Araq | yeah ... these suckers :P |
22:13:16 | avarus | a nuclear powered car |
22:14:34 | Araq | that's what we need |
22:14:44 | avarus | always warm in your back |
22:15:15 | Araq | gradha: btw zahary knows pretty much all of the compiler and the GC, so the bus factor is 2 already |
22:15:59 | Araq | except that he may have been hit by a bus ... :-/ |
22:17:29 | reactormonk | so it's down to 1 again |
22:20:25 | gradha | reactormonk: I wonder if you were testing me with the reddit link, no, won't even go there |
22:20:38 | Araq | well we don't know ... so it's 1.5 :P |
22:21:02 | Araq | he's like schrödinger's cat -- 50% alive |
22:21:39 | reactormonk | gradha, there's also reddit.com/r/boobs |
22:21:59 | dom96 | r/WTF is the best subreddit |
22:22:01 | gradha | it's still reddit |
22:22:32 | Araq | reactormonk: I suppose you got the lambdalifting to work for JS? |
22:22:51 | Araq | it's not really hard, is it? :P |
22:23:00 | avarus | dom96: well, no :P...I once visited it while eating and I saw something that made me almost fainting |
22:23:28 | reactormonk | Araq, sadly nope - not sure where to grab the logic from. Got time know, wanted to attend an EFF event but found it was 2 hours earlier than I remembered -.- |
22:23:53 | dom96 | avarus: hah, with time you gain a resistance to the weird shit they post there :P |
22:23:55 | Araq | what's an EFF event? |
22:24:01 | avarus | dom96: ya, I noticed that :) |
22:24:06 | reactormonk | Araq, https://www.eff.org/ |
22:24:21 | gradha | dom96: I used to browse 4chan's r, is reddit's worse? |
22:24:43 | dom96 | I think 4chan is way worse. |
22:24:45 | reactormonk | gradha, gotta say /b/ has more content than /r/wtf |
22:25:01 | dom96 | reddit is a bit more civilised. |
22:25:17 | dom96 | It really depends on the subreddit I guess. |
22:25:29 | reactormonk | exactly. |
22:25:32 | dom96 | But r/wtf isn't that bad. |
22:25:48 | gradha | I use to browse 4chan when depressed, nothing like seing how crazy others are to boost one's selfesteem |
22:26:06 | reactormonk | gradha, a good laugh :D |
22:26:31 | Araq | reactormonk: what about fixing exceptions for the JS target instead? |
22:26:45 | Araq | seems more important to me |
22:28:45 | reactormonk | Araq, currently the lambdalifting is a problem for me. What's about the exceptions? |
22:28:56 | Araq | they used to work |
22:29:00 | Araq | and now they don't |
22:29:13 | Araq | I consider that a much bigger problem than lack of LL |
22:30:31 | reactormonk | Araq, tell me how to write http://sprunge.us/SASi to avoid the LL problem |
22:32:59 | Araq | reactormonk: 'registerShortcut' is not your code I guess? |
22:33:08 | reactormonk | Araq, yep. |
22:33:12 | Araq | if so then you actually got a problem ... |
22:33:25 | Araq | because the way it works in the C backend can't be used for JS |
22:33:37 | Araq | so LL doesn't really help here I think |
22:34:22 | Araq | but hrm |
22:34:31 | Araq | maybe it can be made to work |
22:34:38 | Araq | JS supports closures after all |
22:37:18 | gradha | oh, pretty Error: complex statement requires indentation |
22:38:17 | Araq | gradha: the error messages are already superb in comparison to most other compilers :P |
22:39:20 | gradha | ever read about laidback? http://turing.cs.camosun.bc.ca/COMP173/misc/laidback.html |
22:39:52 | Araq | no |
22:41:24 | gradha | I'm reaching 25% of opened issues on github, this is much more fun than playing shitty blizzard games |
22:41:27 | reactormonk | gradha, feel free to rewrite all the error messages :-) |
22:41:42 | reactormonk | gradha, sc2? ^^ |
22:42:24 | reactormonk | cloning the apache lucene repo - atm at 0.5m revisions - still going on O.o |
22:43:28 | NimBot | Araq/Nimrod 30bce90 Araq [+1 ±10 -0]: documented object constrs; endb works again |
22:43:28 | NimBot | Araq/Nimrod 7765f09 Araq [+0 ±1 -0]: use a bloom filter to speed up the debugger |
22:43:49 | gradha | wow, nimrod got 3d rendering |
22:44:23 | dom96 | does that mean I can play minecraft while compiling? |
22:44:40 | Araq | "Not to be confused with Bloom shader effect." says wikipedia |
22:44:45 | gradha | yeah, I know |
22:44:52 | dom96 | awww, what a pity. |
22:45:08 | Araq | well ... it's a trivial bloom filter |
22:45:24 | Araq | and I don't think it leads to any speedup |
22:45:45 | Araq | but it's my first bloom filter |
22:46:03 | Araq | I had to use it *somewhere* in Nimrod, right? |
22:54:45 | gradha | Araq: I was trying to implement a toString to add to the unicode module http://pastebin.com/nC6Xgpeu |
22:55:06 | gradha | That works, but if I replace temp like http://pastebin.com/vy2fNQqq it crashes, but I don't know why |
22:55:24 | gradha | isn't newSeq just an optimized version of var = @[]? |
22:56:29 | gradha | if there was a problem with the variable I would have expected it to crash in the for loop which adds the strings to the var, not in the join call |
22:57:38 | dom96 | I think newSeq does seq.setLen(...) |
22:57:59 | dom96 | So it's not the same as /just/ var = @[[] |
22:58:01 | dom96 | *@[] |
22:58:44 | dom96 | gradha: btw monitor the builders cpu usage now if you're not already |
22:58:46 | gradha | the docs for newSeq say "This is equivalent to ``s = @[]; setlen(s, len)``" |
22:59:22 | Araq | newSeq[string](runes.len) looks suspicious |
22:59:50 | Araq | I bet it returns a 'string' then and not a seq[string] |
23:00:11 | Araq | er ... |
23:00:20 | Araq | in fact you can't use newSeq like that |
23:00:30 | gradha | if I change it to var temp : seq[string]; newSeq(temp, runes.len) I get the same crash |
23:01:02 | Araq | ok, my bad |
23:01:12 | Araq | I wasn't aware of the newSeq overload |
23:01:19 | Araq | no idea who added that ... ;-) |
23:01:47 | Araq | btw don't use seq[string], add and join |
23:02:03 | Araq | this is not python here, strings are mutable, so 'add' for them is efficient |
23:03:34 | Araq | the crash is because you have some 'nil' string in the seq I guess |
23:03:54 | Araq | oh lol |
23:04:07 | Araq | 'newSeq' sets the *length* |
23:04:11 | Araq | not the *capacity* |
23:04:26 | gradha | huh? |
23:04:38 | Araq | so you're adding *after* temp[runes.len] |
23:04:43 | gradha | that's unexpected |
23:04:46 | Araq | and the first entries are all nil |
23:04:58 | Araq | it's not really unexpected |
23:05:18 | dom96 | hah, that's what I suspected was happening. |
23:05:20 | Araq | for i, rune in runes: temp[i] = rune.toUTF8 |
23:05:29 | Araq | that's what you want |
23:05:39 | Araq | s[i] is accessible after 'newSeq' |
23:05:46 | Araq | that's kind of the point of it |
23:06:04 | gradha | ah, ok, that wasn't clear to me |
23:06:22 | gradha | I thought newSeq would "allocate" the length so it wouldn't malloc internally during adds |
23:07:06 | Araq | well it allocates and sets the length |
23:07:20 | Araq | like the docs say :P |
23:07:32 | Araq | but please add that trap to the tutorial |
23:07:56 | gradha | aha, so actually the seq would be the specific length, and I would be adding *more* to it, and that's why join crashed, due to the initial nil entries |
23:08:08 | Araq | yep |
23:08:08 | gradha | will do |
23:08:54 | Araq | but for the stdlib you should use a string and 'add' instead, no need for a seq+join |
23:09:08 | gradha | proc toString(runes: seq[TRune]): string = |
23:09:09 | gradha | result = "" |
23:09:09 | gradha | for rune in runes: result.add(rune.toUTF8) |
23:09:16 | Araq | yep |
23:09:38 | Araq | but maybe it should be named $ instead |
23:09:55 | gradha | oh, pretty |
23:20:46 | gradha | dom96: still compiling tests, will see after sleep |
23:21:09 | dom96 | alright |
23:22:04 | * | gradha quit (Quit: bbl, have youtube videos to watch) |
23:36:46 | reactormonk | Araq, sooo? |
23:37:03 | Araq | it's now chefsache, sorry ;-) |
23:37:15 | Araq | so I'm working on a fix for ya |
23:37:19 | reactormonk | Araq, the closure stuff? |
23:37:25 | reactormonk | Araq, ok. So what's that exception stuff? |
23:37:43 | Araq | I'm working on the closures stuff |
23:37:49 | Araq | exceptions are for you ;-) |
23:38:43 | * | SchalaZeal joined #nimrod |
23:38:51 | Araq | hi SchalaZeal |
23:39:02 | SchalaZeal | heya |
23:39:35 | SchalaZeal | Just read up on C++11's variadic templates. The variadic function templates I can sort of understand but the class version........my god it's hideous |
23:39:55 | reactormonk | Araq, problem description? |
23:40:15 | SchalaZeal | recursive self inheritence.......charming |
23:42:04 | Araq | reactormonk: tests/specials.nim line 179 |
23:42:28 | Araq | = texceptions, texcpt1, texcsub, tfinally, tfinally2, tfinally3 |
23:42:40 | Araq | these tests should work for the JS backend, but fail |
23:46:27 | Araq | SchalaZeal: we have 'varargs[string, `$`]' or macros instead of variadic function templates |
23:48:11 | SchalaZeal | yeah... in C++'s case, cstdarg sounds easier than..........VFTs...urg |
23:50:34 | SchalaZeal | I found a pretty neat JS engine written in pure Delphi |
23:50:57 | Araq | translate it to Nimrod then ;-) |
23:51:32 | SchalaZeal | or better yet, write my own Ruby engine in Nimrod using "BESEN as a reference |
23:52:08 | SchalaZeal | Ruby 2.0 of course. 18 is just...ew |
23:52:10 | Araq | JS has the advantage that it's much more useful |
23:52:20 | SchalaZeal | 1.8, even** |
23:52:26 | SchalaZeal | hmm...ok |
23:52:38 | Araq | you can't crawl the web without a JS engine anymore |
23:53:09 | SchalaZeal | I'm more into embeeded application scripting |
23:53:27 | SchalaZeal | embedded** |
23:53:52 | SchalaZeal | Here's the website to said engine though http://code.google.com/p/besen/ |
23:55:15 | Araq | thanks, never heard of it |
23:55:22 | Araq | looks very interesting |
23:55:38 | Araq | register based VM + an incremental M&S GC |
23:56:02 | SchalaZeal | I do have to call into question if JS is suitable for embedded scripting, not just web. |
23:56:27 | Araq | JS is not suitable for anything |
23:56:38 | SchalaZeal | ..... |
23:56:51 | avarus | he's right |
23:57:00 | SchalaZeal | Why use it then? |
23:57:24 | Araq | because you have no choice, the client side of the web is written in it |
23:57:35 | SchalaZeal | ah |
23:58:36 | SchalaZeal | Google Dart kinda looks neat, but.... I don't think itis suitable just yet |
23:59:03 | Araq | Google Dart looks worse tbh |
23:59:17 | SchalaZeal | how? |
23:59:18 | Araq | the unsound type system by design is absurd crap |
23:59:29 | avarus | it's from google; it must be crap |
23:59:50 | SchalaZeal | oh yeah, the type system.......ugh |
23:59:57 | Araq | Eiffel took that "OO is more important than soundness" route too |