00:23:31 | * | BlaXpirit_ quit (Quit: Quit Konversation) |
00:25:37 | * | brson quit (Quit: leaving) |
00:27:30 | * | reem quit (Remote host closed the connection) |
00:43:09 | * | threewood quit (Ping timeout: 245 seconds) |
00:44:01 | * | keyle joined #nim |
00:57:31 | def- | Araq: not that easy to rename mget to `[]`. Can't remove the non-var `[]` or it won't work with let. If we keep both the call to `[]` becomes ambiguous |
00:58:40 | * | reem joined #nim |
01:05:08 | * | BitPuffin quit (Ping timeout: 265 seconds) |
01:22:14 | onionhammer | hm |
01:22:45 | * | rational quit (Quit: Lost terminal) |
01:39:44 | * | threewood joined #nim |
01:40:29 | * | brson joined #nim |
01:45:51 | def- | There are so many T and P prefixes remaining. Should we remove them by hand? |
01:46:38 | * | imapiekindaguy joined #nim |
01:48:40 | flaviu | Write a sed script :P |
01:49:17 | def- | i don't even know if we want to rename all |
01:49:25 | def- | I think Araq wanted to keep them internally in the compiler |
01:49:37 | flaviu | I don't see the point in that. |
01:49:55 | flaviu | Any possible breakage will be noticed immediately. |
01:54:54 | Synatra | sup |
01:57:02 | * | Sergio965 joined #nim |
01:58:19 | * | sampwing quit (Ping timeout: 252 seconds) |
01:59:02 | * | brson quit (Ping timeout: 245 seconds) |
02:11:58 | * | Sergio965 quit (Quit: Bye! :)) |
02:15:47 | * | BitPuffin joined #nim |
02:15:49 | * | JinShil joined #nim |
02:26:02 | * | darkf joined #nim |
02:26:31 | * | imapiekindaguy quit (Ping timeout: 244 seconds) |
02:27:13 | * | fungos joined #nim |
02:27:44 | * | ehaliewicz quit (Ping timeout: 272 seconds) |
02:36:23 | Synatra | ok then |
02:37:31 | * | flaviu quit (Read error: Connection reset by peer) |
02:37:31 | * | Mimbus quit (Read error: Connection reset by peer) |
02:40:11 | * | flaviu joined #nim |
02:40:27 | * | Mimbus joined #nim |
02:41:17 | * | gsingh93 quit (Quit: Connection closed for inactivity) |
02:49:41 | * | kapil__ joined #nim |
02:52:12 | * | davidhq quit (Ping timeout: 264 seconds) |
03:00:19 | * | Outlander quit (Quit: leaving) |
03:12:21 | * | imapiekindaguy joined #nim |
03:13:50 | * | BitPuffin quit (Ping timeout: 276 seconds) |
03:16:13 | * | flaviu quit (Read error: Connection reset by peer) |
03:16:13 | * | Mimbus quit (Read error: Connection reset by peer) |
03:18:36 | * | flaviu joined #nim |
03:18:36 | flaviu | ping Varriount, Araq, dom96: http://forum.nim-lang.org/t/803 |
03:18:39 | * | imapiekindaguy quit (Ping timeout: 264 seconds) |
03:19:09 | * | Mimbus joined #nim |
03:20:03 | * | VinceAddons quit (Read error: Connection reset by peer) |
03:20:53 | * | johnsoft quit (Ping timeout: 256 seconds) |
03:39:40 | * | rkj-b joined #nim |
03:44:02 | * | EXetoC quit (Ping timeout: 245 seconds) |
03:52:28 | * | vendethiel quit (Ping timeout: 245 seconds) |
03:52:49 | * | vendethiel joined #nim |
04:08:17 | * | reem quit (Remote host closed the connection) |
04:09:03 | * | reem joined #nim |
04:16:34 | * | brson joined #nim |
04:19:12 | * | vendethiel quit (Ping timeout: 264 seconds) |
04:23:01 | * | ehaliewicz joined #nim |
04:30:32 | * | ehaliewicz quit (Ping timeout: 276 seconds) |
04:30:33 | * | alexanderkyte quit (Ping timeout: 265 seconds) |
04:32:05 | * | alexanderkyte joined #nim |
04:32:08 | * | keyle quit (Quit: Hexchat / ElementaryOS) |
04:39:02 | * | reem quit (Remote host closed the connection) |
04:43:56 | * | jsudlow quit (Quit: Leaving) |
04:44:34 | * | alexanderkyte quit (Ping timeout: 265 seconds) |
04:46:18 | * | jsudlow joined #nim |
04:46:19 | * | jsudlow__ joined #nim |
04:46:44 | * | jsudlow quit (Read error: Connection reset by peer) |
04:47:19 | * | jsudlow__ quit (Client Quit) |
04:47:40 | * | jsudlow joined #nim |
04:54:51 | * | kapil__ quit (Quit: Connection closed for inactivity) |
05:03:47 | * | ehaliewicz joined #nim |
05:06:38 | * | reem joined #nim |
05:16:32 | * | alexanderkyte joined #nim |
05:17:33 | * | kapil__ joined #nim |
05:29:49 | * | akiradeveloper joined #nim |
05:30:33 | akiradeveloper | how to operate ~x in C? |
05:32:42 | * | ARCADIVS joined #nim |
05:38:39 | * | brson_ joined #nim |
05:40:08 | * | akiradeveloper quit (Remote host closed the connection) |
05:40:51 | * | brson quit (Ping timeout: 264 seconds) |
05:45:50 | * | akiradeveloper joined #nim |
05:49:49 | * | brson_ quit (Ping timeout: 265 seconds) |
05:58:27 | * | rkj-b quit (Quit: ChatZilla 0.9.91.1 [Firefox 35.0/20150108202552]) |
06:03:04 | * | threewood quit (Ping timeout: 272 seconds) |
06:18:46 | * | bjz joined #nim |
06:20:21 | * | bjz quit (Client Quit) |
06:55:37 | * | iiivvvooo is now known as iivvoo |
06:58:48 | * | skyfex__ quit (Ping timeout: 272 seconds) |
06:59:27 | * | skyfex__ joined #nim |
07:03:36 | * | akiradeveloper quit (Remote host closed the connection) |
07:04:43 | * | flknfkjnsfkjwnFK quit (Ping timeout: 246 seconds) |
07:10:36 | * | vendethiel joined #nim |
07:17:17 | * | akiradeveloper joined #nim |
07:22:28 | * | dumdum joined #nim |
07:38:07 | * | Demon_Fox quit (Quit: Leaving) |
07:41:09 | * | keyle joined #nim |
07:56:09 | * | vendethiel quit (Ping timeout: 244 seconds) |
08:02:58 | * | founders is now known as RushPL |
08:11:25 | Araq | akiradeveloper: 'not x' |
08:14:09 | * | ehaliewicz quit (Ping timeout: 252 seconds) |
08:15:57 | * | vendethiel joined #nim |
08:18:41 | akiradeveloper | thanks |
08:19:49 | akiradeveloper | why doesn't nim define arithmatic operations (like +) for unsigned integers? I need too much castings |
08:21:43 | * | ehaliewicz joined #nim |
08:24:15 | * | vegai left #nim (#nim) |
08:25:21 | Araq | import unsigned |
08:25:51 | Araq | why does everybody use unsigned integers? their semantics are just horrible |
08:38:47 | * | vendethiel quit (Ping timeout: 256 seconds) |
08:38:55 | * | Sphax joined #nim |
08:40:40 | * | bjz joined #nim |
08:45:05 | * | JinShil quit (Quit: Konversation terminated!) |
08:49:25 | * | d3m1gd joined #nim |
08:51:18 | akiradeveloper | For me, just because fuse protocol use unsigned integers |
08:54:51 | ekarlso | dom96: you around ? |
09:06:27 | * | Trustable joined #nim |
09:06:44 | * | Trustable quit (Remote host closed the connection) |
09:11:15 | * | Gonzih quit (Quit: WeeChat 1.0.1) |
09:11:24 | * | Gonzih joined #nim |
09:12:01 | * | BlaXpirit joined #nim |
09:12:09 | * | Trustable joined #nim |
09:15:55 | * | ARCADIVS quit (Quit: ARCADIVS) |
09:17:05 | reactormonk | Araq, is there a $ for PNode somewhere? |
09:17:51 | * | dyu joined #nim |
09:23:43 | Araq | lol? |
09:24:34 | reactormonk | renderTree seems to do the job |
09:26:49 | Araq | http://nim-lang.org/intern.html#debugging-the-compiler |
09:27:25 | reactormonk | thanks |
09:28:07 | * | ehaliewicz quit (Ping timeout: 244 seconds) |
09:29:51 | reactormonk | def-, but but but tests |
09:35:15 | * | vendethiel joined #nim |
09:37:31 | reactormonk | Araq, on {.deadCodeElim: off.} - should that also be off in case of -d:release ? |
09:40:24 | Araq | no |
09:40:44 | reactormonk | ok, then it works as intended |
09:49:07 | * | Sphax quit (Quit: ZZZZZzzzzz) |
09:51:42 | * | Sphax joined #nim |
09:56:48 | * | vendethiel quit (Ping timeout: 265 seconds) |
10:00:23 | * | dyu quit (Quit: Leaving) |
10:09:46 | ekarlso | https://github.com/idlewan/nim-uuid < how does one bring that to a uuid string ? |
10:10:39 | reactormonk | Araq, I assume nkHiddenDeref does have something to do with closure generation? |
10:11:16 | reactormonk | ekarlso, try to_hex |
10:12:27 | reactormonk | ... nope it's the good old ^ - but why does that only appear in release, and not debug |
10:13:45 | ekarlso | strutils.toHex(x: BiggestInt, len: int): string |
10:17:12 | * | kuzy000_ joined #nim |
10:17:46 | * | Etheco quit (Read error: Connection reset by peer) |
10:20:05 | ekarlso | any clues ? :D |
10:24:07 | * | akiradeveloper quit () |
10:24:52 | reactormonk | ekarlso, yeah, toHex. Check the source code |
10:26:43 | ekarlso | reactormonk: still requires the BiggestInt stuff |
10:26:51 | reactormonk | hm |
10:27:16 | ekarlso | hmm nvm |
10:27:43 | ekarlso | typo :D |
10:30:58 | * | d3m1gd quit (Remote host closed the connection) |
10:38:16 | * | irrequietus joined #nim |
10:44:08 | * | vendethiel joined #nim |
10:51:03 | * | akiradeveloper joined #nim |
10:55:02 | * | JinShil joined #nim |
11:07:22 | * | vendethiel quit (Ping timeout: 245 seconds) |
11:08:30 | * | vendethiel joined #nim |
11:11:44 | * | VinceAddons joined #nim |
11:14:48 | akiradeveloper | what is the difference between cast[uint32](x) and x.uint32? Identical? |
11:15:40 | BlaXpirit | pls http://nim-lang.org/manual.html#type-casts |
11:16:11 | BlaXpirit | do u know C++? |
11:16:17 | akiradeveloper | I know C |
11:16:30 | akiradeveloper | so cast[T] is not the same as casting in C? |
11:16:34 | BlaXpirit | well, C doesn't have a good example |
11:16:52 | BlaXpirit | C++ has static_cast and reinterpret_cast which I could've used as examples |
11:17:01 | BlaXpirit | C's cast encompasses both uses, i'm pretty sure |
11:17:31 | BlaXpirit | normal function-like cast is safe, and fails if it is invalid |
11:17:38 | BlaXpirit | it works only if it is actually defined |
11:17:51 | BlaXpirit | cast[] always works, always dangerous |
11:18:15 | akiradeveloper | I see. So basically we should use T() cast |
11:18:28 | akiradeveloper | that's maybe, static_cast in C++? |
11:18:40 | BlaXpirit | i think it's both static_cast and dynamic_cast |
11:18:52 | BlaXpirit | but yes, use function-style cast unless you know cast[] is what you need |
11:19:27 | akiradeveloper | Yes. I see |
11:20:02 | akiradeveloper | cast[T] is like (T *) cast in C and X.T is like (T) cast in C |
11:20:50 | BlaXpirit | probably |
11:20:56 | akiradeveloper | reinterpret the bit pattern isn't what one usually want for integers. So, x.T is usually what we want |
11:21:17 | akiradeveloper | thanks. it is clear now |
11:21:18 | BlaXpirit | i think this is a good example of dot-syntax abuse |
11:21:50 | akiradeveloper | abuse. why? |
11:22:31 | BlaXpirit | well, let's say... and integer does not "own" all the possible type conversions from it |
11:22:33 | akiradeveloper | I like dot-syntax because it's fluent |
11:22:33 | BlaXpirit | an* |
11:23:01 | BlaXpirit | when you write something.len, you can say "length of something" |
11:23:19 | BlaXpirit | you can't say "uint32 of something" |
11:23:27 | BlaXpirit | i'm not good at providing arguments |
11:24:31 | xeizlif | What about, say, JavaScript's .toString()? |
11:24:40 | BlaXpirit | well it has "to" |
11:24:44 | xeizlif | ... |
11:24:51 | BlaXpirit | integer's method that converts tostring |
11:25:21 | BlaXpirit | and it's not like you can use javascript as an example of good design |
11:26:00 | xeizlif | No, but it's also not really fair to use English grammar to comment about a programming language (you're allowed to have your opinion though) |
11:26:18 | BlaXpirit | that grammar thing was just an example |
11:26:21 | * | keyle quit (Quit: <Morbo> Chitchat achieved!) |
11:26:49 | BlaXpirit | just to try to clear up what i said before |
11:26:52 | * | Jehan_ joined #nim |
11:28:15 | xeizlif | I agree though that JS should not be used as an example of good design... ohhhh if only Brendan Eich was able to use Scheme as was originally planned |
11:28:36 | xeizlif | Though I don't think I want to know what M$ would have done to it, when they put it in IE |
11:34:42 | Araq | hi Jehan_. do you happen to know anything about vxWorks? |
11:34:44 | * | johnsoft joined #nim |
11:41:30 | Jehan_ | Araq: Little more than what it is. |
11:41:37 | Jehan_ | But zero personal experience with it. |
11:42:03 | Araq | well I'm pulling out its properties out of my ass :-) |
11:42:22 | Jehan_ | Real-time software is not normally something that I have to deal with much. |
11:42:31 | Jehan_ | Araq: Umm, context? |
11:42:51 | * | irrequietus quit () |
11:43:18 | Jehan_ | Is there some internet war going on where this is crucial information? :) |
11:44:54 | Araq | I'm helping this guy http://forum.nim-lang.org/t/798 |
11:45:23 | Araq | by adding 'vxWorks' to platform.nim |
11:45:42 | Jehan_ | Oh, I must have missed that thread. |
11:45:55 | * | akiradeveloper quit (Remote host closed the connection) |
11:46:02 | Jehan_ | Been totally busy the past month and only recently got around to catching up on the forums and stuff. |
11:48:35 | Araq | well it looks like the filesystem is doslike and the APIs have some posix compatibility layer at least |
11:50:24 | * | JinShil quit (Quit: Konversation terminated!) |
11:51:17 | * | Sphax quit (Quit: ZZZZZzzzzz) |
12:03:00 | * | Sphax joined #nim |
12:03:19 | * | EXetoC joined #nim |
12:12:26 | * | akiradeveloper joined #nim |
12:14:21 | wtw | Araq: what's the/your correct way to make it BSD-specific? "when defined(bsd)" or something? or would you rather discard the "patch" at all and only include it in the freebsd port? |
12:14:39 | Araq | when defined(bsd) |
12:14:50 | Araq | or when defined(freebsd). your call. |
12:16:05 | wtw | and what about the WIFEXITED stuff I changed in posix.nim? as far as I can tell it was defined as variable before and I made it a proc (originally in c headers it's a macro). want that reverted? |
12:18:16 | Araq | nope, that was always wrong afaict |
12:18:38 | Araq | so I don't think anybody used it |
12:18:48 | wtw | suppose so, yeah |
12:20:17 | wtw | I don't want to argue, but why are you against the use of WIFEXITED? afaik it has been there for at least 15 years and was always bundled with waitpid so when relying on waitpid you could imho also rely on WIFEXITED. |
12:20:33 | wtw | well but if you don't want, I don't really care, a "when defined(bsd)" should do |
12:24:35 | Araq | I don't want to argue either but WIFEXISTED is just bad design, just like the rest of Posix. What's WIFEXISTED for an LLVM target? Posix never even considers not everybody might want to use these things from C. |
12:29:08 | EXetoC | can't it be wrapped in any case? |
12:30:45 | * | akiradeveloper quit () |
12:30:57 | EXetoC | I should do some header diving before saying anything |
12:31:05 | wtw | hmm? :) |
12:31:21 | EXetoC | nice little chain of macros |
12:42:28 | EXetoC | so, every non-C target must rely on a library that wraps these things in functions? |
12:51:33 | * | BlaXpirit_ joined #nim |
12:53:21 | * | JehanII joined #nim |
12:53:21 | * | Jehan_ quit (Read error: Connection reset by peer) |
12:53:34 | * | BlaXpirit quit (Ping timeout: 245 seconds) |
13:16:43 | * | JehanII is now known as Jehan_ |
13:21:13 | * | EXetoC quit (Quit: WeeChat 1.0.1) |
13:51:12 | * | EXetoC joined #nim |
13:59:02 | * | askatasuna joined #nim |
14:07:11 | * | Jehan_ quit (Quit: Leaving) |
14:25:26 | * | Jesin quit (Quit: Leaving) |
14:35:57 | * | sillesta joined #nim |
14:42:51 | * | threewood joined #nim |
15:03:00 | * | Sphax quit (Quit: ZZZZZzzzzz) |
15:04:39 | * | BitPuffin joined #nim |
15:04:49 | * | askatasuna quit (Ping timeout: 245 seconds) |
15:10:51 | * | Pisuke joined #nim |
15:12:03 | * | milosn_ joined #nim |
15:12:31 | * | MyMind quit (Ping timeout: 252 seconds) |
15:13:21 | * | Sphax joined #nim |
15:19:09 | * | askatasuna joined #nim |
15:26:19 | Synatra | sup |
15:32:08 | * | milosn_ quit (Remote host closed the connection) |
15:32:08 | * | milosn quit (Remote host closed the connection) |
15:33:14 | * | milosn joined #nim |
15:33:16 | saml | hi Synatra asl? |
15:33:47 | Synatra | uhhh |
15:33:51 | Synatra | im good thanks |
15:33:57 | saml | no problem |
15:36:42 | * | dyu joined #nim |
15:40:20 | Araq | hrm we have Yvan Godin in our ML :-) |
15:40:41 | dtscode | whos he? |
15:40:55 | dtscode | i dont think i ever finished my question to the ml |
15:41:04 | saml | he created computer programming |
15:41:30 | dtscode | i dont believe so |
15:41:57 | Araq | ah lol never mind |
15:42:00 | * | darkf quit (Quit: Leaving) |
15:42:04 | Araq | I confused him with Ivan Godard |
15:45:15 | BlaXpirit_ | the point of no turning back is about now |
15:45:38 | BlaXpirit_ | i should've ranted a bit more if I wanted to prevent that barely searchable ML interface |
15:51:39 | Zuchto | since when was asking "asl" ok in a developer room? :O |
15:52:00 | BlaXpirit_ | probably is a joke |
15:53:33 | dtscode | whats sex? |
15:56:43 | Synatra | Zuchto++ |
15:59:13 | gmpreussner|work | Araq, is there a list of all the pre-defined OS switches, i.e. defined(bsd), defined(windows), etc? I was wondering about the different BSD flavors in particular as well. |
15:59:41 | gmpreussner|work | i noticed that, for example, 'android' does not exist by default |
16:00:18 | gmpreussner|work | but maybe that's just because android isn't supported yet!? |
16:01:58 | Araq | android is linux? |
16:02:16 | Araq | dunno what --os switch people use for android |
16:02:37 | dtscode | would it work with linux? |
16:02:43 | dtscode | even though its modified? |
16:02:59 | dtscode | and android phones dont typically come with ELF loaders? |
16:07:43 | Araq | "In this directory you will find the Android platform cross-calculator sample." |
16:07:59 | EXetoC | Araq: so, how about wrapping those macros in functions? how beneficial it is depends on how many such macros there are. are there many? |
16:08:20 | EXetoC | *many of those |
16:08:44 | Araq | EXetoC: that's not my point. but yes, there are many |
16:11:00 | Araq | gmpreussner|work: compiler/platform.nim has all the cpus and oses |
16:11:12 | * | elpres joined #nim |
16:11:25 | Araq | hi elpres welcome |
16:11:41 | elpres | hi Araq |
16:12:06 | Araq | gmpreussner|work: compiler/condsyms.nim has the other defines. pretty much every define there is |
16:12:15 | gmpreussner|work | ok awesome |
16:12:26 | EXetoC | what are the other issues then? other than the necessity of using a C compiler if no wrapper is available? |
16:14:43 | elpres | I have a quick question. First steps learning nim, trying to use zlib, no success so far, and no idea how to proceed |
16:15:15 | elpres | I do understand zlib's interface, got a C version to work |
16:15:48 | elpres | should I rather post this on the forums? |
16:16:37 | Araq | elpres: it's perfectly fine to ask here |
16:16:48 | Araq | just gist the error message |
16:17:25 | elpres | it's an access violation |
16:19:02 | onionhammer | Araq when running nim caas (stdin) it looks like my 2nd command isnt working |
16:19:07 | onionhammer | the 1st one works |
16:19:11 | elpres | the C version works like this: create a char[] buffer, pass it to 'gzgets', it returns a char* which is either the same as the buffer or NULL. but how do I do this create buffer step in nim? |
16:20:07 | Araq | elpres: alloc or a use an array on the stack. same ideas as in C really. or use newString() |
16:20:13 | * | Etheco joined #nim |
16:20:18 | Araq | onionhammer: what is "nim caas (stdin)"? |
16:20:29 | elpres | ok, thanks, i'll try that |
16:20:41 | onionhammer | server.type=stdin ? |
16:21:14 | Araq | nim c compiler/nimsuggest/nimsuggest.nim |
16:21:34 | Araq | cp compiler/nimsuggest/nimsuggest bin/ |
16:21:47 | Araq | nimsuggest --stdin myproject.nim |
16:21:52 | onionhammer | I know; i wanted to make sure the nimlime code currently works |
16:22:10 | onionhammer | before switching to nimsuggest |
16:22:32 | onionhammer | it would be nice if we could rely on nimsuggest being available too |
16:22:46 | onionhammer | without forcing the user to run the above 2 commands |
16:23:25 | Araq | well that's what I'm working on and will maintain |
16:23:33 | Araq | the old caas mode is a deadend |
16:23:50 | * | threewood quit (Ping timeout: 246 seconds) |
16:24:09 | Araq | pretty sure it never worked better than what you describe |
16:24:52 | elpres | Araq: newString worked, thank you very much! |
16:24:58 | * | Jesin joined #nim |
16:25:36 | Araq | elpres: don't froget to call setLen afterwards to set it to the real size |
16:25:49 | onionhammer | okay |
16:25:53 | Araq | well I dunno the zlib api, maybe you already know the length |
16:26:09 | Araq | onionhammer: and yeah, we need to make it part of the installation |
16:26:21 | onionhammer | Araq I was just going to ask.. that would be nice |
16:27:05 | Araq | so how does nimsuggest work for you? |
16:27:16 | onionhammer | ok, just making sure. this is the "nimsuggest" branch of nimlime |
16:27:21 | Araq | that's the really interesting question ;-) |
16:27:48 | onionhammer | i havent had a ton of time to play with it |
16:28:05 | onionhammer | you mentioned yesterday it has issues w/ macros and generics? |
16:30:44 | onionhammer | Araq how much overhead is there to calling "use" a lot in nimsuggest |
16:30:52 | * | gsingh93 joined #nim |
16:31:45 | * | profan quit (Remote host closed the connection) |
16:32:53 | * | profan joined #nim |
16:36:37 | * | elpres left #nim (#nim) |
16:37:15 | * | threewood joined #nim |
16:42:00 | * | irrequietus joined #nim |
16:46:40 | * | irrequietus quit (Client Quit) |
16:49:22 | * | sampwing joined #nim |
16:53:04 | * | Matthias247 joined #nim |
16:53:33 | * | gokr_ joined #nim |
17:06:55 | * | askatasuna quit (Ping timeout: 252 seconds) |
17:11:21 | * | irrequietus joined #nim |
17:11:42 | * | gokr_ quit (Ping timeout: 276 seconds) |
17:14:20 | Araq | onionhammer: yeah but as I said, the old caas had the same problems. |
17:15:40 | Araq | onionhammer: overhead is acceptable, but we can always cache it too. I noticed a cache existed after I deleted that code ;-) |
17:18:13 | onionhammer | Araq ok; i'll test it thoroughly this weekend hopefully. I'm going to try to implement it on that new branch over the next couple days |
17:20:20 | Araq | onionhammer: I'll try some "class" macro and see if auto-completion works in a class macro too. |
17:20:29 | Araq | that would be super cool |
17:20:39 | Araq | and doesn't seem to hard to support |
17:20:43 | Araq | *too hard |
17:21:22 | ldlework | Araq: I haven't been paying attention for a week or so, but are you guys currently working on idetools/aporia? |
17:21:47 | Araq | on idetools, not aporia. |
17:22:10 | onionhammer | cool. you should use nimlime for testing (when it's done) i bet it'd be easier to test w/ than aporia or a terminal ;) |
17:22:30 | Araq | nah, I'll patch Aporia eventually |
17:22:56 | Araq | and btw I'm already *using* it via the terminal |
17:23:04 | Araq | not really *testing* it ;-) |
17:23:11 | onionhammer | lol, well, I figured |
17:23:28 | onionhammer | but nimlime is a lot easier because you dont have to copy/paste lines and columns |
17:25:15 | Araq | yeah but I really like Aporia and enjoy patching a Nim codebase. That might be insane "because we don't have the resources" but this is how true open source development works. people work on what they enjoy. |
17:29:18 | Synatra | Hi |
17:29:45 | * | askatasuna joined #nim |
17:31:14 | * | reem quit (Remote host closed the connection) |
17:31:54 | Araq | hi Synatra |
17:32:08 | Synatra | whats up araq? |
17:32:40 | EXetoC | other people can work on other plugins. not many people seem to want to though, but we do basic support for several editors. lighttable for example |
17:35:37 | ldlework | I'm excited to give Aporia a real try once idetools is working well again |
17:37:49 | EXetoC | Araq: what was your point regarding the posix stuff then? |
17:37:57 | EXetoC | anyway, I could look into writing a wrapper lib if you want |
17:38:27 | Araq | no, we have already solutions |
17:38:52 | Araq | I just argued why I want this PR in that particular style |
17:39:14 | * | Sphax quit (Quit: CYA!!) |
17:41:07 | EXetoC | isn't the goal also to be able to access these interfaces from a C FFI? |
17:41:27 | EXetoC | rather than only from C directly |
17:41:32 | Synatra | oooooooooooooooooooooooooo |
17:42:07 | * | sampwing quit (Ping timeout: 252 seconds) |
17:43:20 | Araq | EXetoC: yeah but we have tools/detect for this already |
17:45:23 | EXetoC | it never fails? like c2nim does for certain macros |
17:46:24 | Araq | c2nim is really good, you simply have to know which #define has to be a #def |
17:46:51 | Araq | and you need to read its manual carefully |
17:47:48 | EXetoC | multiline macros included? |
17:49:24 | Araq | I'm not aware of any special problems with multiline macros |
17:50:17 | * | Demon_Fox joined #nim |
17:51:21 | * | sampwing joined #nim |
17:52:39 | Synatra | why does c2nim exist? |
17:53:13 | onionhammer | Araq of course |
17:53:29 | onionhammer | and id love to see aporia get more mature / stable / get more features |
17:53:30 | EXetoC | Synatra: the purpose is semi-automated binding generation |
17:53:40 | Synatra | o |
17:53:51 | onionhammer | araq but ST is infinitely more mature as it stands, so i figure it might be a better platform to test the specific piece you're working on, thats all |
17:54:00 | onionhammer | not saying you should switch |
17:54:04 | EXetoC | Araq: since when? I recall many such failures. in many cases the macro in question was a multiline macro, but it's possible that something else was the cause |
17:54:36 | Araq | EXetoC: well did you report these issues? |
17:54:45 | Araq | I said "I'm not aware" |
17:54:52 | Araq | not that you're wrong |
17:55:26 | EXetoC | ok |
17:55:41 | * | sampwing quit (Ping timeout: 252 seconds) |
17:56:08 | Araq | onionhammer: yeah and I appreciate that you work on improving the ST plugin |
17:56:29 | EXetoC | maybe I didn't. I will some time. just got to find a complex, idiomatic C lib :p |
17:58:51 | EXetoC | I should rely more on macro expansion though |
17:59:25 | * | irrequietus quit () |
18:00:57 | dumdum | Nimlime is super :-D |
18:03:44 | Araq | EXetoC: and there have been bugfixes for #def expansion. |
18:04:04 | Araq | heck it even supports the toString # operator now |
18:07:09 | * | dumdum quit (Ping timeout: 256 seconds) |
18:15:08 | * | Varriount|Busy joined #nim |
18:15:39 | Varriount|Busy | Looks like a recent commit broke the tester. |
18:16:12 | Varriount|Busy | tester.nim(15, 21) Error: cannot open 'compiler/nodejs' |
18:18:01 | Varriount|Busy | Anyone here know how to get in contact with Skryler? I need to ask him about a licensing detail with one of his libraries. |
18:21:16 | * | reem joined #nim |
18:22:39 | Varriount|Busy | Hello reem |
18:23:01 | reem | hello? |
18:23:17 | * | sampwing joined #nim |
18:23:23 | EXetoC | hi? |
18:24:46 | Varriount|Busy | Hi! |
18:29:07 | dom96 | Varriount|Busy: My bad |
18:29:38 | dom96 | Fixed. |
18:31:59 | * | sampwing quit (Ping timeout: 252 seconds) |
18:34:24 | * | matkuki joined #nim |
18:37:34 | Synatra | .eval "hI" |
18:37:37 | Mimbus | Synatra: eval.nim(3, 0) Error: value of type 'string' has to be discarded |
18:37:56 | * | reem quit (Remote host closed the connection) |
18:39:25 | * | reem joined #nim |
18:40:08 | reactormonk | Araq, any way to introduce something into the git repo that you could step over with git bisect? Currently, that's not really possible because the compiler tends to fail at certain commits :-/ |
18:40:45 | * | askatasuna quit (Quit: WeeChat 1.1) |
18:40:55 | reactormonk | dom96, I had no idea where else to put it |
18:43:59 | * | sampwing joined #nim |
18:46:54 | * | brson joined #nim |
18:49:52 | * | lws_ joined #nim |
18:52:29 | * | lws quit (Ping timeout: 256 seconds) |
18:54:11 | Araq | reactormonk: no, I have no solution to this problem |
18:54:47 | reactormonk | Araq, at what interval do you merge into master? |
18:55:10 | Araq | master is rarely more than the latest official release |
19:00:09 | reactormonk | Araq, apparently you can run a script for git bisect, and if it returns the exit code 125, the current commit is skipped |
19:01:07 | reactormonk | Got a test lying around? Or maybe we can make koch temp return 125 if the compiler compilation fails? |
19:03:06 | Araq | sounds easy to do |
19:03:15 | Araq | patch koch temp then please |
19:03:36 | EXetoC | Araq: will the posix macros be turned into templates? |
19:03:52 | reactormonk | And I should also put koch temp doc into the "debugging the compiler" |
19:04:01 | Araq | yup |
19:04:09 | Araq | EXetoC: yes |
19:04:15 | EXetoC | ok |
19:07:23 | * | zacts joined #nim |
19:07:25 | zacts | hi |
19:07:30 | zacts | this looks cool |
19:07:33 | ldlework | welcome zacts |
19:07:58 | ldlework | zacts: build music DSL using Nim metaprogramming! |
19:08:37 | zacts | huh neato |
19:10:29 | reactormonk | Araq, as a sideeffect, if the exec of something fails, the error code is 1, not 0. |
19:13:15 | reactormonk | Araq, got me a random idea of a good commit for https://github.com/Araq/Nim/issues/2023 ? |
19:14:52 | Araq | reactormonk: please work on something else. it's insanely hard to fix. |
19:15:10 | reactormonk | Araq, I just wanna test the git bisect thingy |
19:15:44 | Araq | might be no regression at all |
19:15:49 | Araq | just test with master |
19:16:00 | Araq | and if it works, it's a regression |
19:20:18 | * | BlaXpirit_ quit (Quit: Quit Konversation) |
19:20:50 | EXetoC | ldlework: DSL? interesting. I'm making a little DAW which doesn't have a UI atm, but a DSL would be cool |
19:21:14 | reactormonk | Araq, master gives a different backtrace. |
19:23:05 | ldlework | EXetoC: zacts is intersted in this |
19:23:17 | ldlework | EXetoC: he just discovered Nim |
19:23:22 | * | reem quit (Remote host closed the connection) |
19:25:25 | dtscode | i think im going to try and take the nim compiler and make it generate an executable |
19:26:20 | * | ehaliewicz joined #nim |
19:26:27 | Araq | dtscode: you mean you will give it a native codegen? |
19:26:46 | dtscode | yes |
19:26:52 | dtscode | for abosuletly no reason |
19:27:31 | dtscode | it certainly wont be tighter than the gcc generated executable. |
19:28:35 | Synatra | whoa |
19:28:40 | Synatra | who is Araq o.O |
19:28:54 | ldlework | Synatra: ? |
19:28:59 | dtscode | the guy that invented nim |
19:29:05 | Synatra | O |
19:29:11 | dtscode | thats why the compiler is araq/nim |
19:29:18 | Synatra | just realized it |
19:29:24 | Synatra | Didnt know for sure |
19:29:29 | Varriount|Busy | dtscode: Or you could fix a bug. |
19:29:41 | dtscode | Varriount|Busy, heh... cause i know how to do that |
19:30:25 | dtscode | im very new to compilers, so this would be a good project for me and familiarize me with the language and the compiler |
19:30:36 | dtscode | i can try to fix bugs though |
19:30:46 | Araq | some are marked as "easy" |
19:30:59 | dtscode | o rly? |
19:32:21 | reactormonk | dtscode, and some are marked "hard" ;-) |
19:32:30 | dtscode | weird man |
19:32:55 | dtscode | hmmm these do seem easy. i might try a stab |
19:33:05 | * | dyu quit (Quit: Leaving) |
19:33:07 | Araq | reactormonk: don't confuse dtscode. there is no "hard" marker |
19:33:38 | reactormonk | Araq, that's why I use the smiley thingy |
19:34:06 | dtscode | D: i believed you too |
19:34:15 | dtscode | my whole foundation has shaken |
19:34:25 | dtscode | Araq, did you see my post in the ml? |
19:38:21 | * | fizzbooze joined #nim |
19:38:43 | * | sampwing quit (Ping timeout: 252 seconds) |
19:41:56 | Araq | dtscode: I guess I did |
19:43:00 | dtscode | what do you think? |
19:46:08 | Araq | sure go ahead |
19:46:46 | Araq | I'm trying to get out of this release building / infrastructure business, better ask Varriount |
19:47:44 | Varriount|Busy | ? |
19:48:32 | Varriount|Busy | dtscode: If it was about building packages from master, we already have the infrastructure in place to generate Nim binaries (look at buildbot.nim-lang.org ) |
19:53:02 | Varriount|Busy | Anyway, I have to go. I'll read whatever you write via my desktop when I get home. |
19:53:08 | * | Varriount|Busy quit (Quit: Page closed) |
19:53:15 | dtscode | oh... i forgot about that |
20:00:48 | * | sampwing joined #nim |
20:03:52 | * | BitPuffin quit (Ping timeout: 265 seconds) |
20:05:07 | * | sampwing quit (Ping timeout: 252 seconds) |
20:07:57 | * | sampwing joined #nim |
20:09:40 | * | dumdum joined #nim |
20:12:05 | * | sampwing quit (Ping timeout: 252 seconds) |
20:22:47 | * | shodan45 joined #nim |
20:34:32 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
20:41:43 | dom96 | reactormonk: Where did you find out that git bisect requires an error code of 125? |
20:42:15 | dom96 | Surely it checks it the error code is 0 to determine success |
20:42:20 | dom96 | and any other error code means failure |
20:43:06 | dom96 | *if |
20:43:47 | dom96 | oh I see, never mind. |
20:44:57 | * | rational joined #nim |
20:47:24 | * | skyfex___ joined #nim |
20:49:08 | * | Roin quit (Ping timeout: 246 seconds) |
20:50:27 | * | skyfex____ joined #nim |
20:51:00 | * | skyfex__ quit (Ping timeout: 272 seconds) |
20:53:10 | * | fizzbooze quit (Ping timeout: 265 seconds) |
20:54:10 | * | skyfex___ quit (Ping timeout: 272 seconds) |
20:55:31 | * | polde quit (Quit: q) |
20:57:36 | * | nande joined #nim |
20:58:02 | * | zahary joined #nim |
21:03:13 | * | polde joined #nim |
21:05:39 | * | Grauwolf quit (Ping timeout: 256 seconds) |
21:06:03 | * | xAndy quit (Ping timeout: 264 seconds) |
21:09:37 | * | reactormonk quit (Ping timeout: 264 seconds) |
21:10:43 | * | UberLambda joined #nim |
21:11:06 | * | kashyap_ quit (Ping timeout: 246 seconds) |
21:11:56 | * | sampwing joined #nim |
21:12:14 | * | xAndy joined #nim |
21:12:57 | * | Grauwolf joined #nim |
21:16:01 | dumdum | shouldnt parameter name 'pred' in http://nim-lang.org/sequtils.html#mapIt.t,expr,expr be named 'op' of 'func' ? |
21:17:50 | dumdum | well not 'func' i guess |
21:18:17 | * | fizzbooze joined #nim |
21:27:15 | * | sampwing quit (Ping timeout: 252 seconds) |
21:27:19 | * | springbok quit (Ping timeout: 244 seconds) |
21:32:16 | * | fizzbooze quit (Quit: WeeChat 1.1) |
21:34:20 | * | reactormonk joined #nim |
21:36:02 | Araq | dumdum: yeah, please make a PR |
21:36:48 | dumdum | sure |
21:38:50 | onionhammer | araq can you do dirty files yet in nimsuggest? |
21:39:20 | Araq | no, I haven't figured out how this is supposed to work |
21:39:40 | Araq | well you can try |
21:39:55 | dtscode | what are dirty files? |
21:40:15 | Araq | you must be over 18 to access these |
21:41:49 | dtscode | :D yay |
21:41:53 | onionhammer | araq supporting absolute paths would be nice |
21:42:11 | onionhammer | rather than having to do "def file.nim:line:col" |
21:42:13 | * | UberLambda quit (Quit: Leaving the Matrix) |
21:42:26 | onionhammer | if I could do def "C:\blah\file.nim":line:col |
21:42:29 | * | sampwing joined #nim |
21:43:30 | dtscode | .:dtscode:. dom96, does await some_async_function force it to stay at that function until it completes? |
21:43:44 | dtscode | oops |
21:43:51 | dtscode | dom96, does await some_async_function force it to stay at that function until it completes? |
21:44:15 | onionhammer | araq also right now I have to tell it to ignore the hints that are generated |
21:44:22 | dom96 | dtscode: await pauses the execution of the current function until some_async_function returns. |
21:44:43 | dtscode | ok that makes sense |
21:47:42 | Araq | onionhammer: that should already work I'm afraid |
21:52:33 | dtscode | why do you need to import asyncnet and asyncdispatch |
21:54:23 | * | dumdum quit (Ping timeout: 256 seconds) |
21:59:25 | * | kuzy000_ quit (Ping timeout: 264 seconds) |
22:03:51 | onionhammer | Araq not working for me so far |
22:04:47 | onionhammer | http://pastebin.com/WbHJwpwg |
22:04:55 | EXetoC | dtscode: because the interfaces are defined there |
22:05:19 | dtscode | hmmm |
22:07:52 | Araq | onionhammer: ok, will fix |
22:08:24 | onionhammer | hanks |
22:08:48 | EXetoC | dtscode: it's all implemented in userland. see asyncdispatch.async |
22:14:06 | onionhammer | araq cool - any thoughts on eliminating the hints? are those biproduct or are they important to emit? |
22:14:38 | dtscode | EXetoC, thanks |
22:14:48 | Araq | onionhammer: I can disable them easily |
22:14:50 | dtscode | how are ints socket descriptors? |
22:15:09 | onionhammer | Araq excellent - as long as they're not important it would make it easier to parse the output |
22:15:20 | Araq | not really |
22:15:29 | Araq | ignore every line that has no \t in it |
22:15:31 | dtscode | onionhammer, there is a compiler switch to turn off hints |
22:15:45 | Araq | no other error message produces \t |
22:15:50 | Araq | only the IDE stuff |
22:16:08 | * | matkuki quit (Quit: ChatZilla 0.9.91.1 [Firefox 35.0.1/20150122214805]) |
22:16:08 | onionhammer | heh |
22:16:12 | onionhammer | thats kind of a special case |
22:16:17 | onionhammer | hackish |
22:16:42 | Araq | well the output always starts with 3 letters followed by a tab |
22:16:47 | Araq | and is line based |
22:17:02 | Araq | really simple to distinguish from the other junk the compiler produces |
22:17:27 | onionhammer | mmk |
22:17:37 | EXetoC | dtscode: it's like an id |
22:17:39 | onionhammer | my point isnt that its hard to parse it out, just that it's better to not to have to parse it out |
22:17:48 | onionhammer | just to have clean output from commands |
22:17:51 | dtscode | ah |
22:17:59 | onionhammer | btw what does "con" do? |
22:18:10 | Araq | yeah but in 'debug' mode these messages give hints of why it failed |
22:18:21 | Araq | but sure, we can get rid of them in non-debug mode |
22:18:35 | onionhammer | okay - might be good to have an "err" response :) |
22:18:39 | onionhammer | formatted similarly |
22:19:24 | dtscode | what does new(foo) do again? |
22:19:45 | onionhammer | allocates memory of sizeof(foo) to foo |
22:19:51 | onionhammer | and starts a refcount |
22:19:53 | onionhammer | iirc |
22:20:07 | dtscode | oh so its like a realloc? |
22:20:20 | dtscode | except it determines the size instead of user input |
22:20:23 | EXetoC | system documentation :-) |
22:20:26 | Araq | "con" gives the "context" which is the list of parameters when you type someProc( |
22:20:40 | onionhammer | ah nice |
22:21:03 | Araq | maybe these should be called 'dot' and 'par' instead :P |
22:21:20 | Araq | 'sug' and 'con' kinda sucks but I don't want to change the output format really |
22:21:56 | onionhammer | yeah, it doesnt matter too much as long as it's documented what they do at some point |
22:22:00 | EXetoC | dtscode: realloc? in what way? |
22:22:12 | Araq | onionhammer: btw there is doc/idetools.txt |
22:22:20 | onionhammer | that includes nimsuggest now? |
22:22:35 | Araq | no. |
22:22:59 | EXetoC | sug is swedish for suck, so yeah |
22:23:06 | Araq | lol |
22:23:08 | dtscode | EXetoC, nvr mnd |
22:24:14 | EXetoC | that's barely an abbreviation. might I suggest 'nvm' :-p |
22:25:06 | dtscode | nevr min |
22:25:52 | dtscode | ok, so is it possible to connect to two domains (ie freenode and quakenet for example) with one socket? |
22:30:31 | EXetoC | I don't think so. What would the use case be? |
22:35:41 | dom96 | dtscode: You need two sockets for that. |
22:42:16 | * | superfunc joined #nim |
22:42:20 | * | superfunc quit (Client Quit) |
22:43:05 | * | superfunc joined #nim |
23:06:31 | * | Mat4 joined #nim |
23:06:58 | Mat4 | hello |
23:09:22 | * | xeizlif quit (Ping timeout: 240 seconds) |
23:09:56 | Araq | hi Mat4 what's up? |
23:10:34 | Mat4 | I'm developing a small operating system at moment |
23:11:06 | * | xeizlif joined #nim |
23:12:00 | Araq | nice. in Nim? |
23:14:33 | Mat4 | no, x64 assembler (for the application I will use Nim) |
23:14:51 | Araq | bah |
23:15:21 | Araq | just use Nim's inline assembler instead |
23:15:42 | dom96 | Mat4: What happened to the native code gen for Nim? |
23:15:45 | Araq | think about marketing :P |
23:18:24 | EXetoC | yeah man |
23:18:34 | * | superfunc quit (Quit: leaving) |
23:18:50 | Mat4 | dom96: it works. I have some free time next month for writing a backend so Nim can compile to it |
23:19:05 | EXetoC | people will call use hypocrites for using inferior language in addition to nim :\ |
23:19:13 | EXetoC | Mat4: great |
23:20:15 | dom96 | Mat4: Does that mean there will be an intermediate language anyway? |
23:21:37 | Mat4 | The Nim backend compiles generate IL code which is compiled and executed ahead-of-time |
23:23:03 | Mat4 | ^generate IL code |
23:25:33 | Mat4 | if it works as I plan it would be possible to compile at edit time (which requires a special Nim editor or IDE of course) |
23:26:17 | fowlmouth | Mat4, sounds like llvm |
23:27:54 | EXetoC | at edit time? |
23:28:28 | * | Roin joined #nim |
23:28:29 | Mat4 | it is theoretical possible to compile beside writing your code |
23:29:18 | EXetoC | incrementally? |
23:29:23 | Mat4 | compilation cost very little CPU time and requires somewhat about 64 KiB of ram |
23:29:37 | * | Roin quit (Client Quit) |
23:29:38 | Mat4 | EXetoC: yes |
23:33:02 | Mat4 | however, for such feature some changes on the current VM code are needed |
23:36:01 | Mat4 | as side node: LLVM requires impressive large memory and CPU resources for static compilation - The code base is also quite large |
23:36:48 | Araq | Mat4: VM code changes are fine by me |
23:37:22 | Mat4 | good |
23:43:35 | * | shodan45 quit (Quit: Konversation terminated!) |
23:44:23 | ekarlso | Unsatisfied dependency: nim (>= 0.10.3) < how one fix that ? |
23:47:05 | dom96 | Your nim compiler is too old |
23:47:36 | def- | ekarlso: build nim compiler from devel branch on github |
23:49:42 | * | Jesin quit (Quit: Leaving) |
23:50:43 | ekarlso | flaviu: got a clue on how I can get bcrypt to work on osx ? :D |
23:51:09 | flaviu | ekarlso: I don't have OSX, so I'm going to need more information. |
23:51:48 | ekarlso | https://bpaste.net/show/4164f696a7e0 |
23:52:41 | flaviu | delete nimcache. |
23:53:02 | ekarlso | ah |
23:53:04 | ekarlso | kewl |
23:53:10 | ekarlso | then just a bug in uuid wrapper :( |
23:53:20 | * | Jesin joined #nim |