<< 13-08-2015 >>

00:46:25*NimBot joined #nim
00:49:34*Senketsu quit (Quit: Leaving)
00:55:03*yglukhov joined #nim
00:57:16*key_ quit (Ping timeout: 244 seconds)
00:57:33*key_ joined #nim
00:59:16*NimBot joined #nim
00:59:20*yglukhov quit (Ping timeout: 244 seconds)
01:06:07*strcmp1 joined #nim
01:22:09*CryptoToad quit (Quit: Leaving)
01:36:20*nevercast joined #nim
01:40:27*NimBot joined #nim
01:43:50nevercastNimBot has to be the most flaky bot I've met. tbh
02:02:38*elbow joined #nim
02:04:27*elbow quit (Client Quit)
02:30:33Varriountnevercast: It might just be the quality of the connection.
02:30:55Varriountnevercast: I mean, I get disconnected quite often, and it's not like my IRC client is the one that crashes.
02:35:22nevercastYeah likely.
02:35:32nevercastDoes nim have a "standard" project file format?
02:36:12nevercastAlso - Where are the tools for querying compile errors and scope variables for things like "Intellisense" ?
02:36:22nevercastIs that nimtools?
02:37:09nevercastAh, nimsuggest.
02:43:06Varriountnevercast: Nimsuggest is for IDE integration.
02:43:33VarriountI'm still working to integrate it with the Sublime Text plugin, I don't know about the other IDE plugins.
02:43:35nevercastYes that's my intention.
02:45:09nevercastI would be interested in any development with Sublime
02:47:54Varriountnevercast: Well, the current plugin is pretty good.
03:26:48*Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png)
04:33:07*Jesin quit (Quit: Leaving)
04:37:12*darkf joined #nim
05:09:18VarriountAraq: Does c2nim support the token pasting operator? (##)?
05:18:45*yglukhov joined #nim
05:23:33*yglukhov quit (Ping timeout: 260 seconds)
05:23:39*Demon_Fox quit (Ping timeout: 255 seconds)
05:30:40*xificurC joined #nim
05:34:53*NimBot joined #nim
05:47:16*strcmp1 quit (Quit: Leaving)
05:56:56*jszymanski joined #nim
05:59:23*NimBot joined #nim
06:18:42*jszymanski quit (Quit: computer sleeps...)
06:20:10*xcombelle joined #nim
06:42:03*Trustable joined #nim
06:42:38*xcombelle quit (Ping timeout: 260 seconds)
06:46:57*Gonzih joined #nim
06:50:57*jszymanski joined #nim
06:51:03*xcombelle joined #nim
07:20:19*jszymanski quit (Quit: computer sleeps...)
07:24:42*low-profile quit (Ping timeout: 255 seconds)
07:25:27*yglukhov joined #nim
07:26:39*low-profile joined #nim
07:28:09*yglukhov quit (Remote host closed the connection)
07:30:41*yglukhov joined #nim
07:32:17*yglukhov quit (Remote host closed the connection)
07:41:23*low-profile quit (*.net *.split)
07:41:23*def- quit (*.net *.split)
07:41:23*EastByte_ quit (*.net *.split)
07:41:23*boopisaway quit (*.net *.split)
07:41:23*federico3 quit (*.net *.split)
07:41:23*taotetek quit (*.net *.split)
07:41:23*pleiosaur quit (*.net *.split)
07:42:56*low-profile joined #nim
07:42:56*def- joined #nim
07:42:56*EastByte_ joined #nim
07:42:56*boopisaway joined #nim
07:42:56*federico3 joined #nim
07:42:56*taotetek joined #nim
07:42:56*pleiosaur joined #nim
07:44:24*someplace quit (Ping timeout: 244 seconds)
07:44:31*low-profile quit (Max SendQ exceeded)
07:45:17*kilon joined #nim
07:45:17*kilon quit (Changing host)
07:45:17*kilon joined #nim
07:45:19*def- quit (Ping timeout: 265 seconds)
07:45:49*EastByte_ quit (Ping timeout: 265 seconds)
07:45:49*federico3 quit (Ping timeout: 265 seconds)
07:45:50*taotetek quit (Ping timeout: 265 seconds)
07:46:17*pleiosaur quit (Ping timeout: 265 seconds)
07:46:48*boopisaway quit (Ping timeout: 256 seconds)
07:47:36*pleiosaur joined #nim
07:52:23*def- joined #nim
07:59:05*taotetek joined #nim
07:59:12*federico3 joined #nim
07:59:24*taotetek is now known as Guest40687
07:59:47*EastByte_ joined #nim
08:00:04*boopisaway joined #nim
08:00:37*low-profile joined #nim
08:00:48*kilon quit (Remote host closed the connection)
08:08:39*coffeepot joined #nim
08:09:00*coffeepot quit (Client Quit)
08:09:09*coffeepot joined #nim
08:13:10*lokulin quit (Ping timeout: 260 seconds)
08:15:54*someplace joined #nim
08:22:17*xcombelle_ joined #nim
08:22:27*xcombelle quit (Ping timeout: 252 seconds)
08:23:02*xcombelle_ is now known as xcombelle
08:29:09*lokulin joined #nim
08:33:22*darkf_ joined #nim
08:34:36*darkf quit (Ping timeout: 246 seconds)
08:35:07*Matthias247 joined #nim
08:42:05*xcombelle quit (Ping timeout: 245 seconds)
08:47:40*yglukhov joined #nim
08:50:02*Pisuke quit (Max SendQ exceeded)
08:51:15*Pisuke joined #nim
08:52:30*yglukhov quit (Ping timeout: 265 seconds)
08:53:47*yglukhov joined #nim
08:53:55*yglukhov quit (Remote host closed the connection)
08:54:28*yglukhov joined #nim
08:55:19*xcombelle joined #nim
08:57:41*yglukhov_ joined #nim
08:58:45*BitPuffin|osx quit (Ping timeout: 240 seconds)
08:59:40*yglukhov_ quit (Remote host closed the connection)
09:00:50*yglukhov quit (Ping timeout: 245 seconds)
09:08:59*EXetoC joined #nim
09:20:48*xcombelle quit (Ping timeout: 264 seconds)
09:33:36*xcombelle joined #nim
09:37:05*NimBot joined #nim
09:38:31*xcombelle quit (Ping timeout: 256 seconds)
09:42:18*xcombelle joined #nim
09:49:42*shodan45 quit (Quit: Konversation terminated!)
09:53:11*NimBot joined #nim
10:11:48*\u quit (Ping timeout: 264 seconds)
10:12:14*ray joined #nim
10:13:08*yglukhov joined #nim
10:15:26*yglukhov quit (Remote host closed the connection)
10:22:17*yglukhov joined #nim
10:22:23*yglukhov quit (Remote host closed the connection)
10:22:59*yglukhov joined #nim
10:24:02*NimBot joined #nim
10:25:04*yglukhov quit (Remote host closed the connection)
10:34:49*NimBot joined #nim
10:55:43*yglukhov joined #nim
11:03:55*jszymanski joined #nim
11:30:19*kilon joined #nim
11:33:58Araqhe, actually NimBot is now async, triggered a codegen bug and keeps crashing ...
11:34:15Araqdom96 is working on a fix though
11:34:32AraqVarriount: yes ## is supported
11:35:28*Gonzih quit (Quit: IRC is just multiplayer vim.)
11:35:43*Gonzih joined #nim
11:37:36*xcombelle quit (Quit: Leaving)
11:37:44*xcombelle joined #nim
11:39:22*Matthias247 quit (Read error: Connection reset by peer)
11:40:24*nevercast quit (Ping timeout: 246 seconds)
11:41:37*Matthias247 joined #nim
11:54:44*zaspard quit (Remote host closed the connection)
12:01:03*Varriount_ joined #nim
12:04:11*Varriount quit (Ping timeout: 250 seconds)
12:13:05*yglukhov quit (Remote host closed the connection)
12:15:05*kilon quit (Remote host closed the connection)
12:15:18*kilon joined #nim
12:15:18*kilon quit (Remote host closed the connection)
12:15:27*kilon joined #nim
12:15:50*dalarmmst quit (Ping timeout: 260 seconds)
12:20:56*kilon quit (Remote host closed the connection)
12:24:58*yglukhov joined #nim
12:27:29*kilon joined #nim
12:29:27*darkf_ is now known as darkf
12:31:06Varriount_Araq: How hard would it be to get c2nim to understand typedefs with more than one identifier on the end?
12:31:25Varriount_eg: 'typedef int DWORD, *PDWORD'
12:31:41Araqit already does understand that
12:31:43*Varriount_ is now known as Varriount
12:32:06VarriountAraq: Are you sure? It understands it for structures, but not plain types.
12:32:33Araqpossible
12:32:49Varriount'typedef CLFS_WRITE_ENTRY *PCLFS_WRITE_ENTRY, **PPCLFS_WRITE_ENTRY;' gives me 'Error: ';" expected'
12:33:54VarriountAraq: Also, c2nim appears to be deleting all the includes by default.
12:34:01fowlC declaration syntax is the evilest idea ever
12:34:04Varriount(from the output files)
12:34:14Varriountfowl: I didn't come up with it.
12:34:40Araqthere is a --keepIncludes or something
12:34:55fowlI think thats how you read scandinavian
12:35:12Araqor maybe #include <foo.h> is removed and #include "foo.h" is kept, check the source
12:35:24fowlYou start in the middle read right then go left then go right, ...
12:36:38Araqfowl: strictly speaking the 'typedef' doesn't even have to start the declaration, struct foo typedef ...
12:36:40Araqit's been designed to produce the most WTFs per minute
12:37:42AraqVarriount: fix c2nim then --debug gives you the stacktrace
12:37:47VarriountAraq: It's just, almost all the header files in the windows sdk do a 'typedef parent child, *pchild' thing
12:37:58Araqyes, fix c2nim
12:39:42*Xaseron joined #nim
12:40:35Xaseroni followed an old link and wtf :D http://nimrod-code.org/
12:42:31EXetoCfowl: it's just a terrible language for libs
12:42:58Araqhi Xaseron well I also sell repairs for wash machines
12:43:14EXetoCunless, of course, you only care about C and C++
12:44:37Araq(just kidding)
12:45:31XaseronAraq: and breast enhancements :D
12:46:18Araqbreasts and washing machines belong together
12:47:29Araqfor ... some reasons ...
12:48:13EXetoCspeaking of which, I've started working on that library now
12:48:43VarriountAraq: Ever thought of commenting code? c2nim is like an untamed jungle
12:49:08VarriountI've found 'parseTrailingDefinedTypes', but have only a faint idea of where to insert it.
12:49:37Araqdunno, I don't comment "obvious" things
12:50:17EXetoCthe purpose being to generate C libs and then expose an API for generating bindings
12:51:53*arnetheduck joined #nim
12:51:56VarriountAraq: Yes, but you can apparently understand code that has a complexity on par of that found in Windows headers.
12:53:32EXetoCRust allows "C" libs to be generated, but I've never heard of anything about an accompanying API
12:53:48AraqEXetoC: hey, we can generate C header files too
12:54:18AraqVarriount: 1. feel free to add docs
12:54:25*drewsrem joined #nim
12:54:32Araq2. you can always ask me about the code
12:57:42EXetoCyes, so it's just this API that's missing. A C header generator would be a good first step
12:58:50VarriountIsn't there a switch to generate a header?
12:59:03EXetoCfor testing purposes of course
12:59:13federico3a Nim equivalent of "which"?
13:01:49AraqVarriount: well I write parsers for about 14 years now. sorry I cannot be bothered to document these things anymore ;-)
13:02:48drewsremActually, Nim is the only PL language I know of where you can actually read the compiler codebase
13:03:36Araqfyi the most painful parser that I ever wrote is the reStructuredText parser, not c2nim
13:04:03AraqRST is a bitch to parse, no wonder it got killed by markdown
13:04:15drewsremIt got?
13:04:48EXetoCyou only need a few poor souls to do it, right? :p
13:04:49Araqit definitely crumbles under the weight of its spec
13:05:14*yglukhov quit (Remote host closed the connection)
13:06:34drewsremIt supports a lot of constructs IIRC tho, Markdown is very basic
13:07:06AraqMarkdown uses significant trailing whitespace
13:07:48Araqfor me that is a showstopper, so I won't use it if I can avoid it
13:07:55drewsremWhat do you use?
13:08:06AraqreStructuredText
13:08:38drewsremright
13:09:03drewsremasciidoc seems to enjoy little adoption
13:09:44EXetoCtrailing whitespace. ugh
13:13:00*yglukhov joined #nim
13:16:14federico3drewsrem: like Nim, it's a little-known gem
13:17:18drewsremfederico3, it is? I do prefer my comments to be # and not //, besides that it looks pretty good
13:18:25federico3comments are weird, everything else is as powerful as LaTeX and readable like Md
13:19:02reactormonkDunno, I'd be fine with markdown in nim *duck*
13:19:30VarriountAraq: Should I add a parseTrailingTypedef call to the otherTypeDef proc, or to the parseTypeDef proc?
13:19:32EXetoCquack
13:19:41federico3reactormonk: for docstrigs, sure. To write largish bodies of documentation and books - ouch
13:20:38AraqparseTypeDef
13:20:39reactormonkfederico3, org-mode ;-)
13:21:40*thekilon joined #nim
13:21:42drewsremAraq, can you have a look at this feature I had some time ago real quick and tell me it's not going to happen so I can put it to rest? http://ix.io/jKi - i.e. adding some block-literals that use indentation as an alternative for triple-quoted strings like YAML has
13:22:47Araqdamn, but I like it
13:23:15drewsremAll the better :)
13:23:35Araqbut yeah, has no chance to make it into v1
13:24:05Araqalso you need to pick something else colon-bar doesn't cut it
13:24:22drewsremGood, I can go back to my programs now :)
13:24:28drewsremWas the first thing came to my mind, why not?
13:24:36Araqalso you need a mode that doesn't strip the indentation
13:25:26Araqit should use ''' (three single quotes)
13:25:28drewsremhttps://en.wikipedia.org/wiki/YAML#Block_literals
13:25:38Araqand '''! for when the indentation is to be kept
13:25:48drewsremsounds good
13:26:02Araqwe don't care about yaml :P yaml is a pita to parse
13:26:22Araqanother thing that slowly crumbles under the weight of its spec
13:26:28drewsremno sure, just for reference, I thought of :| because they use |
13:26:33*thekilon quit (Ping timeout: 265 seconds)
13:26:43VarriountAraq: Well, it doesn't help that the YAML reference implementation is written in Haskell
13:27:13Araqwell the spec is reasonably clear and there are also C implementations
13:27:18VarriountNot that Haskell is a bad language, but it makes it difficult to port to other languages.
13:27:25Araqbut it's just so big for what it does
13:27:50drewsremPeople really seem to enjoy using it tho
13:27:55Araqand at the end is still worse than ini files for configuration
13:28:55drewsremAraq, should I open a proposal-thingy on the issue tracker for this thing or will you remember it/do it yourself?
13:29:10Araqno, do it, I want this RFC
13:29:26Araqindentation based string literals just make sense for Nim.
13:29:43drewsremgreat
13:33:07VarriountExpect backlash. It's a Different Way (TM) of doing things
13:40:14reactormonkVarriount, ™ <- to store and reuse
13:40:28Varriountreactormonk: I was typing with one hand.
13:41:01reactormonkAraq, I like the idea of identation-based strings. Any ambiguities?
13:41:01VarriountAlthough, when you think of it, the argument for indentation based strings is fairly similar to the one for indentation based control flow/blocks.
13:41:14*xcombelle quit (Ping timeout: 260 seconds)
13:41:30*Varriount thinks of indentation based lisp
13:43:11drewsremI wonder what fowl thinks of it
13:43:46*yglukhov quit (Remote host closed the connection)
13:44:00drewsremVarriount, sure, that's why you do RFCs right? - I'm biased to liking this, if someone is biased to not liking this, he has motivation to articulate concerns, which may be valid.
13:45:16coffeepothow would further indentations work in indentation based strings? https://gist.github.com/coffeepots/0caaa348c42c80d3e30f
13:46:23drewsremcoffeepot, it preserves indentation, try https://en.wikipedia.org/wiki/YAML#Block_literals which is what I had in mind
13:46:42EXetoCdo experienced programmers also tend to dislike whitespace-sensitivity or is it mostly inexperienced ones?
13:46:49coffeepotawesome :)
13:48:28drewsremEXetoC, how could one know? - You'd have to define "experienced programmer" and then do a survey?
13:48:43EXetoCdetails :p
13:49:12drewsremEXetoC, http://gradha.github.io/articles/2015/04/whitespace-goto-fail.html
13:49:39EXetoCanecdotal evidence ftw
13:50:07drewsremQuestion really doesn't allow for more :p
13:50:55EXetoCok so it starts off with indentation in a whitespace-insensitive language
13:51:15coffeepoti tend to mind-parse code as if it was properly formatted, so reading inconsistent spacing (to the control flow) in non-whitespace languages gives me hives anyway.
13:51:26EXetoCbut omitting {} is pretty terrible regardless
13:52:53EXetoCmost code is indented after all
13:53:12*BitPuffin joined #nim
13:53:57drewsremEXetoC, but that's basically his point, right, if you don't omit them then you acknowledge that people already put meaning to indentation
13:54:20EXetoCyep
13:54:46Araqit's even worse
13:55:09Araqit's redundancy gone wrong
13:55:23Araqif indentation and braces disagree whom do you trust?
13:58:06drewsremI actually don't know a good argument why not go with indentation aside from "copy pasting it into a textbox can screw up the indentation"
13:58:23drewsremNot that that's a good argument.
13:58:56EXetoCwhich text boxes strip whitespace?
13:58:58*yglukhov joined #nim
13:59:40coffeepotafaict the only reasoning against whitespace languages is copying code from webpages (or as you say drewsrem textboxes), but I've never had a problem with it either
13:59:42drewsremEXetoC, well, idk, but I guess PHP parsers and things might be liberal with whitespaces
14:00:50drewsremcoffeepot, I did once or twice, but it's a bit of a stupid claim, I mean you're ignoring any kind of benefits you get just because you might run into a scenario where your texts whitespace gets violated, sure if that's all that counts, then go with it
14:00:57EXetoCcoffeepot: that's annoying, and it seems arbitrary
14:01:36drewsremmaybe if you mix tabs and spaces, the language allows that and then when you post it the tabs get converted etc.
14:01:40EXetoCif text needs to be modified, use a text editor
14:02:13coffeepotyep, I think that's the only way it could be an issue, if you mix tabs and spaces. Aporia colours tabs in red though so struggling to find the downside!
14:02:28drewsremIIRC nim doesn't allow tabs at all
14:05:24EXetoCelastic tabstops seem nice, but at least you can render things according to personal preference
14:06:03drewsremAraq, btw. what keyboard layout do you use? - german?
14:13:00*Demos joined #nim
14:22:21*thekilon joined #nim
14:26:50*thekilon quit (Ping timeout: 246 seconds)
14:27:54EXetoChave there been any AST changes recently?
14:43:47*yglukhov quit (Remote host closed the connection)
14:45:48*FedeOmoto joined #nim
14:52:15*BitPuffin quit (Disconnected by services)
14:52:15*itPuffinB joined #nim
14:53:18*itPuffinB is now known as BitPuffin
14:53:37*thekilon joined #nim
14:54:22*Gonzih quit (Ping timeout: 250 seconds)
14:55:30*Kingsquee joined #nim
15:02:50*jaco60 joined #nim
15:04:20*yglukhov joined #nim
15:08:39*yglukhov quit (Ping timeout: 255 seconds)
15:10:36*yglukhov joined #nim
15:10:56*xcombelle joined #nim
15:12:01*xcombelle quit (Remote host closed the connection)
15:17:55*thekilon quit (Remote host closed the connection)
15:22:36*itPuffinB joined #nim
15:22:36*BitPuffin quit (Disconnected by services)
15:23:48*itPuffinB is now known as BitPuffin
15:26:56*NimBot joined #nim
15:27:22*jszymanski quit (Quit: computer sleeps...)
15:29:18*Gonzih joined #nim
15:39:28*themagician quit ()
15:41:05*NimBot joined #nim
15:46:27*Matthias247 quit (Read error: Connection reset by peer)
15:48:00*key_ quit (Read error: Connection reset by peer)
15:49:40*dalarmmst joined #nim
15:50:41*brson joined #nim
15:55:29*pregressive joined #nim
15:55:57*itPuffinB joined #nim
15:55:57*BitPuffin quit (Disconnected by services)
15:56:14*Trustable quit (Remote host closed the connection)
15:56:59*itPuffinB is now known as BitPuffin
15:58:05*Trustable joined #nim
16:01:19*Gonzih quit (Ping timeout: 246 seconds)
16:08:25*NimBot joined #nim
16:09:19*bendiken joined #nim
16:10:36*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:10:49*Demos quit (Remote host closed the connection)
16:13:50*Sembei joined #nim
16:13:54*Pisuke quit (Ping timeout: 255 seconds)
16:18:03*key_ joined #nim
16:18:22*themagician joined #nim
16:18:39*thekilon joined #nim
16:18:46*thekilon quit (Changing host)
16:18:46*thekilon joined #nim
16:18:59*yglukhov quit (Remote host closed the connection)
16:21:05*yglukhov joined #nim
16:23:33*NimBot joined #nim
16:23:41*thekilon quit (Ping timeout: 256 seconds)
16:25:23EXetoCthreads with new posts don't appear at the top?
16:29:25EXetoCor it's just that my post never appeared
16:34:28*yglukhov_ joined #nim
16:36:00*Demos joined #nim
16:37:18*yglukhov quit (Ping timeout: 255 seconds)
16:38:38*yglukhov_ quit (Ping timeout: 244 seconds)
16:48:14*Sornaensis quit (Excess Flood)
16:49:15*Sornaensis joined #nim
16:51:08*shalabh joined #nim
16:53:37*darkf quit (Quit: Leaving)
16:54:16*jaco60 quit (Read error: Connection timed out)
16:54:51*jaco60 joined #nim
16:56:42*unclechu joined #nim
16:58:45*BitPuffin quit (Ping timeout: 245 seconds)
17:01:01*Demos_ joined #nim
17:01:20*Demos_ quit (Read error: Connection reset by peer)
17:01:33*ray quit (Changing host)
17:01:33*ray joined #nim
17:01:37*ray is now known as \u
17:01:58*Demos_ joined #nim
17:04:12*Demos quit (Ping timeout: 246 seconds)
17:10:23*shalabh quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
17:15:39*yglukhov joined #nim
17:16:14*yglukhov quit (Remote host closed the connection)
17:16:32*yglukhov joined #nim
17:17:58*Xe quit (Ping timeout: 240 seconds)
17:19:21*thekilon joined #nim
17:19:44*Arrrr joined #nim
17:21:28*strcmp1 joined #nim
17:24:06*thekilon quit (Ping timeout: 244 seconds)
17:24:19*Demos_ quit (Remote host closed the connection)
17:30:04*thekilon joined #nim
17:30:04*thekilon quit (Changing host)
17:30:04*thekilon joined #nim
17:30:21*bendiken quit (Quit: My Mac has gone to sleep. ZZZzzz…)
17:31:26*bendiken joined #nim
17:32:09*Demos joined #nim
17:32:36*NimBot joined #nim
17:35:23*thekilon quit (Ping timeout: 252 seconds)
17:42:45*jszymanski joined #nim
17:43:03*Xe joined #nim
17:45:08*Jesin joined #nim
17:57:45*johnsoft quit (Ping timeout: 246 seconds)
17:57:47*X67r joined #nim
18:07:11*Demos_ joined #nim
18:10:40*Demos quit (Ping timeout: 250 seconds)
18:28:24*elbow_jason joined #nim
18:30:03Araqdrewsrem: yes
18:30:09AraqEXetoC: no ast changes that I know of
18:30:45Araqso ... I implemented newIterator() and it doesn't make sense
18:31:29*thekilon joined #nim
18:31:29*thekilon quit (Changing host)
18:31:29*thekilon joined #nim
18:32:19*dom96_ joined #nim
18:32:30*Demos_ quit (Remote host closed the connection)
18:32:43Araqproc factory(a, b: int): iterator (): int =
18:32:45Araq iterator foo(): int {.closure.} =...
18:32:46reactormonkUsually code doesn't make sense 6 months later
18:32:46Araq return foo
18:32:56Araqso that requires 'newIterator(foo)' ?
18:33:04Araqand this doesn't:
18:33:15Araqproc factory2(a, b: int): iterator (): int =
18:33:16Araq return iterator (): int = ...
18:34:03*Demos joined #nim
18:36:08Araqso ... I dunno yet
18:36:30*thekilon quit (Ping timeout: 272 seconds)
18:52:09*Demon_Fox joined #nim
18:54:05EXetoCmy macro generates "illformed AST" since the compiler upgrade (was a few weeks old before that). I'll look into it
18:56:53*shodan45 joined #nim
18:58:50*Arrrr quit (Read error: Connection reset by peer)
18:59:50Araqah yeah, sweet regressions
19:00:02Araqbut it's likely caused by something entirely different
19:01:54*Demos_ joined #nim
19:02:21*xcombelle joined #nim
19:04:14EXetoCok
19:05:22*Demos quit (Ping timeout: 260 seconds)
19:06:41EXetoCjust.. don't introduce regressions :p
19:08:16*elbow_jason quit (Ping timeout: 265 seconds)
19:08:24*dom96_ quit (Ping timeout: 246 seconds)
19:11:55AraqEXetoC: gimme a test case
19:19:21EXetoCI was going to
19:19:46*Demos_ quit (Remote host closed the connection)
19:20:12EXetoCI'll check the macros module history
19:20:41*Matthias247 joined #nim
19:22:53*Demos joined #nim
19:28:30EXetoCAraq: https://gist.github.com/exetoc/389da3a0f303e0b65443
19:29:00EXetoCeither an empty node wasn't added to FormalParams in the call to newNimNode before or it simply accepted it
19:29:26*NimBot joined #nim
19:30:41EXetoCso I just need to remove the statement that append Empty
19:30:55EXetoCappends*
19:32:52*Demos quit (Ping timeout: 272 seconds)
19:32:57EXetoCthere we go
19:35:08*pregressive quit (Remote host closed the connection)
19:38:14EXetoCWhat I meant to say that was that it might have simply accepted two or more successive Empty nodes at the beginning FormalParam's child list
19:38:54EXetoCeither that or the first thing I said
19:47:10*Demos_ quit (Remote host closed the connection)
19:47:35*pregressive joined #nim
19:49:34*Demos joined #nim
19:53:18*yglukhov quit (Remote host closed the connection)
19:57:00*yglukhov joined #nim
19:58:59*NimBot joined #nim
20:13:15*Gonzih joined #nim
20:19:49*kilon quit ()
20:28:30*elbow_jason joined #nim
20:35:59yglukhovDoes anyone know rust here? %)
20:36:23EXetoCprobably. why?
20:36:36yglukhovI'm writing an article on nim and need some clarifications.
20:37:05yglukhovDoes rust have compile-time function execution as powerfull as nim does?
20:37:42Araqno, but Rust has a plugin system to cover pretty much everything that Nim covers afaict
20:39:18yglukhovBut those plugins have to be explicitly managed, right? I mean, a third-party library that requires a specific plugin, requires it's user to take actions accordingly. Configure the build system, etc. right?
20:39:49AraqI dunno but the plugin system is not in Rust v 1.0 iirc
20:40:01Araqso it's still unstable and in flux
20:40:08yglukhovah, ok.
20:40:31yglukhovwhat about the macro system. can a macro call a function that is also available in runtime?
20:41:24EXetoCexplicitly managed? how is it different for nim?
20:42:14Araqthe macro system used to be stupid but I don't know the current state of affairs
20:43:08Araqsince the Rust guys know Nim pretty well you can sure the differences are philosophical in nature
20:43:14Araq*can be sure
20:43:21*jszymanski quit (Quit: computer sleeps...)
20:44:05*Trustable quit (Remote host closed the connection)
20:46:00yglukhovEXetoC: E.g. in Nim I can deploy a library that provides nim<->java bridge, so that you may simply write "jnimport java.io.PrintStream". That lib will find the corresponding java class in installed java environment and insert the glueing code in compile time. And it's users don't need anything else, but just import it in their code. Is rust that crazy as well?
20:46:32AraqI don't think Rust supports this as easily as Nim does it
20:48:32Araqbut the major difference is that a plugin system cannot patch over an otherwise extremely picky language
20:49:00yglukhoverrr.. could you rephrase that please? =)
20:49:39Araqisn't that your job?
20:50:07yglukhovno, i'm a developer ;)
20:50:22Araq" I'm writing an article on nim and need some clarifications."
20:50:26*gnzh joined #nim
20:52:08*Demos_ joined #nim
20:52:36*Gonzih quit (Ping timeout: 264 seconds)
20:53:35yglukhovwell, actually i was not going to compare nim to rust. i just want to be sure, that i write smth like "nim is ultimate in this and that and noone else is", so that noone can argue =)
20:53:45*gnzh quit (Client Quit)
20:55:00Araq"noone else can do it" is always a shaky ground
20:55:17AraqI can say these things cause I know everything
20:55:35Araqbut in general you need to be very careful with these kind of statements
20:55:53*Demos quit (Ping timeout: 250 seconds)
20:56:22yglukhovok, i'm not going to say that explicitly, but you get the point
20:56:41*Demos_ quit (Ping timeout: 252 seconds)
20:57:48gokrI presume a lot of the magic (as always) is in the combination of characteristics.
20:59:04*xcombelle quit (Remote host closed the connection)
20:59:18*elbow_jason left #nim ("Leaving")
20:59:19gokrFor example, meta programming in Nim is not impressive compared to a full reflective language like Smalltalk BUT... Smalltalk is typically not statically typed, not compiled to small binaries etc. So in that niche of languages, its probably fairly unique.
21:10:56dom96yglukhov: might get better answers in #rust (On Mozilla's IRC network) :)
21:11:22*NimBot joined #nim
21:12:43EXetoCjust don't upset you-know-who
21:22:01dom96The Doctor?
21:24:04*CryptoToad joined #nim
21:25:11*ingsoc joined #nim
21:28:45*strcmp1 quit (Quit: Leaving)
21:29:56*jaco60 quit (Remote host closed the connection)
21:31:16*jaco60 joined #nim
21:31:34NimBotnim-lang/Nim devel a291f2c Zach Aysan [+0 ±1 -0]: Create Ruby-like chomp proc to allow for easy string ending removal
21:31:34NimBotnim-lang/Nim devel d288624 Zach Aysan [+0 ±1 -0]: Add tests for chomp
21:31:34NimBotnim-lang/Nim devel 94149f7 Zach Aysan [+0 ±1 -0]: Update tests to proposed changes
21:31:34NimBotnim-lang/Nim devel 99b29b3 Zach Aysan [+0 ±1 -0]: Switch to removeSuffix name and modify the string in place
21:31:34NimBot3 more commits.
21:35:42*pregressive quit (Remote host closed the connection)
21:37:28*pregressive joined #nim
21:37:31dom96Araq: We got access to BountySource's Salt
21:37:36dom96Now it's just a case of setting it up
21:38:38AraqI don't even know what this means
21:38:40dom96Araq: Take a look at Crystal's (https://salt.bountysource.com/teams/crystal-lang) for inspiration, and let me know what you think the description + goals + rewards should be.
21:38:51dom96^^ that should give you a good idea
21:39:02dom96we don't have to set it up now
21:39:06dom96in fact, i'm too tired to
21:39:17Araqcan't we copy Rust instead of Crystal?
21:41:52*ingsoc quit (Quit: Leaving.)
21:42:45Araqthings used to be so easy. the standard answer was "copy Rust's tutorial/docs/website/stdlib and Go's gofmt tool"
21:43:01dom96Rust doesn't do crowdfunding
21:43:21Araqnow it's "copy Rust's tutorial/docs/website/stdlib and Go's gofmt tool and Cystal's crowdfunding"
21:43:50dom96no, it's not "copy" it's "get inspired"
21:43:58dom96If you don't want to do it then that's fine.
21:44:08Araqnah, I'm just messing with you
21:44:55dom96even getting money to put bounties on issues is good
21:45:06dom96so let's do it
21:52:00*cyraxjoe quit (Ping timeout: 264 seconds)
21:56:20*Jehan_ joined #nim
21:59:45*X67r quit (Quit: leaving)
22:09:36*askatasuna joined #nim
22:22:12*NimBot joined #nim
22:26:20*shodan45 quit (Quit: Konversation terminated!)
22:36:00dom96Also, I set this up: https://gratipay.com/nim/
23:05:35*CryptoToad quit (Ping timeout: 265 seconds)
23:06:28*cyraxjoe_ joined #nim
23:06:52*CryptoToad joined #nim
23:30:25*cyraxjoe_ is now known as cyraxjoe
23:36:04*NimBot joined #nim
23:42:39*unclechu quit (Quit: Leaving.)
23:43:21*Matthias247 quit (Read error: Connection reset by peer)
23:51:28NimBotnim-lang/Nim devel 02f9748 Zahary Karadjov [+1 ±5 -0]: fix #1858 again; restores the support for static macro params
23:51:28NimBotnim-lang/Nim devel fe124ce Zahary Karadjov [+0 ±3 -0]: Disable the new generic params handling for immediate template and macros... 12 more lines
23:51:28NimBotnim-lang/Nim devel b3abcaf Andreas Rumpf [+1 ±5 -0]: Merge pull request #3177 from zah/generic-types-in-macros... 2 more lines
23:52:20NimBotnim-lang/Nim devel c42b05a Yuriy Glukhov [+0 ±5 -0]: Fixed --debugger:on option. Removed c_line from termios.
23:52:20NimBotnim-lang/Nim devel 40f7646 Andreas Rumpf [+0 ±5 -0]: Merge pull request #3204 from yglukhov/debugger-on-fix... 2 more lines
23:58:19*jaco60 quit (Ping timeout: 244 seconds)