00:04:42 | * | junw_ quit (Read error: Connection reset by peer) |
00:05:33 | * | junw joined #nim |
00:14:29 | * | vendethiel quit (Ping timeout: 247 seconds) |
00:18:04 | * | junw_ joined #nim |
00:18:29 | * | Matthias247 quit (Read error: Connection reset by peer) |
00:21:26 | * | junw quit (Ping timeout: 240 seconds) |
00:27:11 | * | lompik joined #nim |
00:27:26 | * | ephja quit (Ping timeout: 252 seconds) |
00:36:02 | * | desophos joined #nim |
00:45:55 | * | Egon_ joined #nim |
00:46:21 | * | desophos quit (Read error: Connection reset by peer) |
00:46:57 | Egon_ | Guys I have a noob question (can't register to the forum |
00:47:28 | * | desophos joined #nim |
00:49:29 | Egon_ | That is, what are type classes and concepts in nim and how do they compare to, say, C# interfaces or Haskell type classes? |
00:50:43 | Araq_ | Egon_: a concept is a user-definable type-class |
00:50:52 | Araq_ | and they are totally different from an interface |
00:51:10 | Araq_ | it's just a fancy way of checking constraints for generic parameters, nothing more, nothing less |
01:14:24 | * | FreezerburnV joined #nim |
01:24:42 | * | Egon_ quit (Ping timeout: 252 seconds) |
01:25:45 | * | Jesin quit (Quit: Leaving) |
01:28:18 | * | FreezerburnV quit (Ping timeout: 252 seconds) |
01:35:20 | * | gokr quit (Quit: Leaving.) |
01:43:44 | * | lankanmon_ quit (Quit: I have to Go! Bye Guys!) |
01:45:17 | * | lankanmon joined #nim |
02:06:36 | * | brson quit (Quit: leaving) |
02:20:44 | * | junw_ quit (Read error: Connection reset by peer) |
02:20:55 | * | quark1 joined #nim |
02:25:41 | * | endragor joined #nim |
02:29:29 | * | desophos_ joined #nim |
02:29:48 | * | desophos quit (Disconnected by services) |
02:29:50 | * | desophos_ is now known as desophos |
02:55:14 | * | pregressive joined #nim |
02:56:25 | * | apotheon quit (Ping timeout: 260 seconds) |
02:57:06 | * | apotheon joined #nim |
03:01:31 | * | pregressive quit (Read error: Connection reset by peer) |
03:02:02 | * | pregressive joined #nim |
03:04:14 | * | junw joined #nim |
03:05:16 | * | quark1 quit (Ping timeout: 272 seconds) |
03:23:51 | * | cfkoch joined #nim |
03:24:00 | * | vendethiel joined #nim |
03:31:14 | cfkoch | alright folks, i'm pretty close to building a pkgsrc Makefile for nim |
03:32:05 | cfkoch | looks like Nim already understands what NetBSD is, so that should be easy |
03:33:41 | * | gmpreussner quit (Ping timeout: 245 seconds) |
03:34:42 | * | gmpreussner joined #nim |
03:38:02 | * | Jesin joined #nim |
03:42:39 | * | Varriount_ joined #nim |
03:42:39 | * | Varriount quit (Disconnected by services) |
03:44:38 | Varriount_ | cfkoch: Yay! |
03:44:43 | * | Varriount_ is now known as Varriount |
03:47:10 | * | vendethiel quit (Ping timeout: 260 seconds) |
03:48:37 | def- | cfkoch: cool, i tested Nim on NetBSD once and it seemed fine |
03:48:38 | * | pregressive quit (Read error: Connection reset by peer) |
03:49:12 | * | pregressive joined #nim |
03:54:14 | * | MyMind quit (Read error: Connection reset by peer) |
03:55:22 | * | MyMind joined #nim |
04:02:48 | cfkoch | yeah it builds OK |
04:02:52 | cfkoch | the install script is weird though |
04:03:45 | cfkoch | no big deal, as long as you can install anything wherever you want, it should be fine |
04:11:24 | cfkoch | OK done |
04:11:26 | cfkoch | https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commit;h=46dd63f421ee5bd30d086fc12ec99f9bbdb3e2d5 |
04:13:37 | * | krux02 quit (Remote host closed the connection) |
04:16:46 | * | Varriount_ joined #nim |
04:16:57 | * | Varriount quit (Disconnected by services) |
04:41:11 | * | endragor quit () |
04:53:20 | * | endragor joined #nim |
05:06:20 | Varriount_ | cfkoch: Oh! This is like pkgbuild on OpenBSD? |
05:28:37 | * | Varriount joined #nim |
05:30:18 | * | Varriount_ quit (Ping timeout: 252 seconds) |
05:32:13 | endragor | When using --compileOnly flag, can I make Nim not recreate .cpp files for modules that already exist in nimcache folder and have not been modified? at least for stdlib modules |
05:34:13 | * | pregressive quit (Remote host closed the connection) |
05:40:22 | * | pregressive joined #nim |
06:11:03 | cfkoch | Varriount: closer to OpenBSD or FreeBSD Ports |
06:11:50 | cfkoch | it's NetBSD's package manager, but it's portable and works on other OSes too |
06:12:07 | * | bninja joined #nim |
06:14:15 | * | lompik quit (Ping timeout: 240 seconds) |
06:45:12 | * | pregressive quit (Remote host closed the connection) |
06:47:18 | * | cfkoch left #nim (#nim) |
07:13:00 | * | qazwsx_ joined #nim |
07:15:01 | * | qazwsx_ quit (Client Quit) |
07:24:01 | * | darkf joined #nim |
07:41:50 | * | gokr joined #nim |
07:43:17 | * | gokr1 joined #nim |
07:46:23 | * | gokr quit (Ping timeout: 264 seconds) |
07:57:54 | * | Demon_Fox quit (Quit: Leaving) |
07:58:24 | * | desophos quit (Read error: Connection reset by peer) |
08:01:27 | * | yglukhov joined #nim |
08:12:26 | * | Egon_ joined #nim |
08:14:28 | * | darkf quit (Ping timeout: 265 seconds) |
08:16:16 | * | darkf joined #nim |
08:16:20 | * | vendethiel joined #nim |
08:23:15 | * | Egon_ quit (Ping timeout: 252 seconds) |
08:32:59 | * | lg_ joined #nim |
08:36:54 | * | Trustable joined #nim |
08:37:44 | * | gour joined #nim |
08:39:25 | * | vendethiel quit (Ping timeout: 260 seconds) |
08:52:35 | bbl_ | Araq_: could args with no type specified be implicitly auto? proc foo(a) = a.echo? would it be a bad language decision or hard implementation detail? |
08:53:27 | * | vendethiel joined #nim |
08:58:26 | * | bninja left #nim ("Textual IRC Client: www.textualapp.com") |
08:59:47 | * | coffeepot joined #nim |
09:09:23 | Araq_ | bbl_: we did that and it confused too many people |
09:12:23 | vegansk | bbl_, use ``(a) => a.echo`` from ``future`` module |
09:16:26 | * | vendethiel quit (Ping timeout: 240 seconds) |
09:26:36 | bbl_ | Araq_: oh dear |
09:31:42 | * | vendethiel joined #nim |
09:38:46 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
09:39:17 | * | coffeepot joined #nim |
09:40:31 | * | bungoman_ joined #nim |
09:40:56 | * | Ven joined #nim |
09:43:26 | * | bungoman quit (Ping timeout: 240 seconds) |
09:45:24 | * | Ven_ joined #nim |
09:48:46 | * | Ven quit (Ping timeout: 240 seconds) |
09:53:08 | * | vendethiel quit (Ping timeout: 248 seconds) |
09:57:02 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
09:57:54 | * | coffeepot joined #nim |
10:02:01 | * | vqrs quit (Max SendQ exceeded) |
10:02:52 | * | vqrs joined #nim |
10:04:53 | * | yglukhov quit (Ping timeout: 250 seconds) |
10:04:56 | * | Ven_ quit (Ping timeout: 252 seconds) |
10:06:53 | * | yglukhov joined #nim |
10:17:12 | * | Ven joined #nim |
10:42:56 | * | yglukhov quit (Remote host closed the connection) |
10:44:23 | * | yglukhov joined #nim |
10:48:41 | * | yglukhov quit (Ping timeout: 245 seconds) |
11:00:35 | * | junw quit (Ping timeout: 240 seconds) |
11:01:35 | * | filcuc joined #nim |
11:03:24 | filcuc | how can i express the concept of a static member (as in C++) in Nim? |
11:05:27 | reactormonk | filcuc, make it a global something? |
11:06:05 | Araq_ | use a global variable like the rest of us. or better yet a thread local variable ... |
11:08:40 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
11:14:15 | filcuc | Araq_: is there an ordering of evaluation of global variables? |
11:14:44 | filcuc | not only between them, but for examples the execution of main |
11:15:55 | * | junw joined #nim |
11:17:33 | Araq_ | there is an ordering but it doesn't work too well so zahary planned yet another pragma to influence it. IMO we need something different. |
11:27:36 | * | Dildosan joined #nim |
11:29:04 | * | Salewski joined #nim |
11:29:10 | * | junw quit (Ping timeout: 260 seconds) |
11:34:07 | Salewski | Araq: It may sound silly, but following sentence in manual sounds strange for me: It should be or, not and. And, if there are only local and global variables, why not just " Var statements declare new variables and initialize them." Same for let. |
11:34:21 | Salewski | >Var statements declare new local and global variables and initialize them. |
11:34:42 | * | johnsoft quit (Quit: Leaving) |
11:40:01 | nchambers | because it does both of those things |
11:41:13 | Salewski | But not both at the same time, so or. |
11:41:47 | nchambers | it does both in the same context, ie the program |
11:42:07 | nchambers | hence and |
11:43:22 | Salewski | Well, english is not my native language. For me it sounded a bit strange when I read it one year ago, and I just found it again :-) |
11:43:35 | * | ephja joined #nim |
11:45:12 | * | Salewski quit () |
11:48:08 | * | vendethiel joined #nim |
11:51:48 | Araq_ | learn to create PRs in the same time it takes you to post here |
11:52:00 | nchambers | he left |
11:52:00 | * | jaco60 quit (Ping timeout: 252 seconds) |
11:54:04 | Araq_ | I'm sure he knows about the logging |
11:54:19 | nchambers | oh right |
12:02:09 | endragor | my earlier question (haven't figured it out): when using --compileOnly flag, can I make Nim not recreate .cpp files for modules that already exist in nimcache folder and have not been modified? |
12:08:13 | Araq_ | endragor: the compiler does that out of the box unless you use --forcebuild |
12:08:43 | * | Ven joined #nim |
12:11:10 | * | vendethiel quit (Ping timeout: 260 seconds) |
12:12:16 | * | vendethiel joined #nim |
12:12:55 | endragor | ah, I see, the problem was in the build script... |
12:24:18 | * | derka joined #nim |
12:27:53 | * | vqrs quit (Max SendQ exceeded) |
12:28:13 | * | vqrs joined #nim |
12:28:23 | * | krux02 joined #nim |
12:28:42 | krux02 | what does 'Error: illegal capture' mean? |
12:33:52 | flyx | krux02: you try to access a variable from an anonymous iterator or proc which you're not allowed to access |
12:34:28 | krux02 | yes I do that and I want to do that |
12:34:44 | flyx | it must not be a 'var' parameter |
12:35:29 | krux02 | but doesn't it mean that when I remove the var-ness, I get copies all over the place? |
12:35:59 | flyx | usually, the compiler does not create copies if it does not need to |
12:36:16 | flyx | you should only use 'var' if you actually want to modify the parameter |
12:36:23 | * | theduke_ joined #nim |
12:36:26 | * | clone1018 quit (Ping timeout: 240 seconds) |
12:36:28 | * | pigmej quit (Ping timeout: 240 seconds) |
12:36:28 | * | theduke quit (Ping timeout: 240 seconds) |
12:36:53 | krux02 | that means I can pass big objects as value when defining the `[]` operatior? |
12:36:57 | Araq_ | krux02: to transfer something to the heap, it has to be copied |
12:38:03 | * | pigmej joined #nim |
12:38:08 | * | clone1018 joined #nim |
12:38:26 | krux02 | actually I just want to have a local function in a function that modifies a var parameter |
12:38:34 | derka | Hi everyone |
12:38:42 | krux02 | I solved it by passing the var parameter manually to the local function |
12:38:50 | * | Dildosan quit (Remote host closed the connection) |
12:38:52 | krux02 | so it's not a capture anymore, but an explicit parameter |
12:39:02 | derka | Araq_ what is the best way to go through Nim source code |
12:39:07 | krux02 | compiler is happy |
12:39:07 | flyx | another possibility is to use a ref variable |
12:39:19 | derka | Araq_ the best way to understand the inner working of Nim |
12:39:23 | krux02 | flyx: I don't use ref at all |
12:39:36 | krux02 | flyx: at least not yet |
12:40:26 | krux02 | not until I find a situation where I think I need it, and in all my code I haven't found a single situation. |
12:42:50 | Araq_ | derka: read the internal docs |
12:43:07 | Araq_ | read ast.nim |
12:43:31 | derka | the doc directory |
12:43:32 | derka | ok |
12:44:21 | Araq_ | http://nim-lang.org/docs/intern.html |
12:45:14 | derka | thx Araq |
12:55:14 | flyx | theduke_: didn't see you here for some time. I made progress on my YAML-Parser. have you plans for yours? |
12:56:15 | * | vendethiel quit (Ping timeout: 240 seconds) |
13:00:14 | krux02 | is it possible to write an iterator based algorithm library like in c++, because all algorithms provided by sequtils only work on the seq type |
13:00:36 | * | vendethiel joined #nim |
13:00:41 | * | vqrs quit (Max SendQ exceeded) |
13:01:10 | * | vqrs joined #nim |
13:03:21 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
13:08:07 | flyx | krux02: sure it's possible, but be aware that Nim iterators are a completely different concept from C++ iterators |
13:10:00 | krux02 | flyx: yes for some reason in nim iterators are language constructs, and there are special functions that provide iteration over sequences, for an algorithm library like in c++ it would be necessary to pass iterators like objects, and I haven't seen that possible |
13:11:05 | flyx | krux02: yes, because in Nim, iterators are coroutines (at least if they're closures), but in C, iterators are, essentially, pointers |
13:12:20 | krux02 | in c++ iterators are essentially anything, often objects |
13:12:56 | flyx | krux02: it is possible to pass iterators as first-class values |
13:13:37 | krux02 | flyx: I haven't seen any examles to that yet |
13:13:57 | flyx | krux: http://nim-lang.org/docs/manual.html#iterators-and-the-for-statement-first-class-iterators |
13:19:33 | Araq_ | yeah yeah yeah Nim does it wrong and C++ gets it right and that's why they're adding "resumable functions" to C++ ... hmmm |
13:22:12 | * | vendethiel quit (Ping timeout: 248 seconds) |
13:23:21 | krux02 | iterators in c++ are horrible to implement and horrible to use, I have to implement the ++ operator and a bunch on other operators to imitate the behavior of a pointer, but when using them in generic code, I should not use the ++ operator I should use std::next so it does call the right operator depending on which operators are available. |
13:23:23 | * | vqrs quit (Max SendQ exceeded) |
13:24:41 | * | vqrs joined #nim |
13:25:43 | krux02 | flyx: thanks for the link |
13:26:27 | * | Dildosan joined #nim |
13:26:53 | * | Egon_ joined #nim |
13:33:17 | * | StarBrilliant joined #nim |
13:36:42 | * | vendethiel joined #nim |
13:37:56 | Egon_ | Hi guys... I know you have probably already heard this question a thousand of times, but anyway, wouldn't be nice to have Rust-like traits in Nim? |
13:38:48 | flyx | Egon_: Nim has concepts |
13:39:16 | flyx | I don't know Rust traits in-depth, but I believe they're similar |
13:47:35 | StarBrilliant | I found that c2nim is not converting C structs to {.pure.}, does it matter? |
13:48:32 | StarBrilliant | Official manual says that "This used to be necessary for binary compatibility with other compiled languages." |
13:49:20 | StarBrilliant | So I think if a Nim object is not marked as {.pure.}, it is not ABI compatible with underlying C code. |
13:51:40 | Araq_ | c2nim knows better than you. ;-) |
13:54:31 | Egon_ | The only thing that disappoints (not really, I just would like t |
13:55:06 | Egon_ | then this way) is that they can't be used ad interfaces |
13:55:32 | Araq_ | Egon_: there has been work on this but it's sleeping |
13:56:30 | Egon_ | Ah ok, are they scheduled for the (short or long) future? |
13:58:27 | * | vendethiel quit (Ping timeout: 250 seconds) |
13:58:36 | * | Dildosan left #nim ("Leaving") |
13:59:26 | krux02 | does a seq in Nim duplicate it's underlying data each time on add like a c++ std::vector does on push_back? |
14:03:09 | * | Egon_ quit (Ping timeout: 252 seconds) |
14:03:51 | StarBrilliant | krux02: not until it reaches its capacity and needs a relocation |
14:04:39 | krux02 | StarBrilliant: yes of course that's how the c++ works, too. But haw do I set the capacity? |
14:05:26 | krux02 | std::vector has a constructor for size and capacity |
14:05:43 | * | lompik joined #nim |
14:06:19 | StarBrilliant | krux02: use newSeq to create a new seq with desired size? |
14:06:39 | StarBrilliant | krux02: then change each element as you desire |
14:07:12 | krux02 | StarBriliant: I would prefer to have as size of 0 and a capicity manually set |
14:07:19 | StarBrilliant | krux02: or if you prefer, newSeq with a large capacity, and then setLen it to 0 |
14:07:39 | StarBrilliant | I'm not sure whether it works |
14:07:55 | StarBrilliant | see the compiled C code to make sure it's ok |
14:17:01 | * | derka quit (Quit: derka) |
14:22:50 | krux02 | StarBrilliant: the C code calls setLengthSeq and incrSeqV2 but I can't find it's implementation |
14:23:10 | krux02 | I think seq needs more documentation |
14:23:20 | def- | krux02: last time i benchmarked that worked fine |
14:23:43 | StarBrilliant | krux02: If I can remember it, it is in the same C code as your main program |
14:23:51 | StarBrilliant | search setLengthSeq in the code |
14:23:54 | krux02 | def-: I really would like to know what seq does, since I use it all the time |
14:24:00 | StarBrilliant | or in nimbase.c? |
14:24:34 | krux02 | aproximately 10000 hits, because it's forward declaration is in every nimcache file |
14:24:35 | def- | krux02: lib/system/sysstr.nim |
14:26:12 | StarBrilliant | btw, I just registered an account at Nim forum with Hotmail |
14:26:23 | StarBrilliant | I haven't received my activation mail for about half a hour |
14:26:27 | StarBrilliant | is there anything wrong? |
14:26:55 | StarBrilliant | http://forum.nim-lang.org/profile/m13253 <--- I thought it was nearly an hour |
14:27:10 | StarBrilliant | Nothing in junk folder |
14:27:28 | def- | StarBrilliant: would have to ask dom96, i think he is in charge of that. personally i can say that hotmail blocks many ips totally, no idea if it's related |
14:28:04 | StarBrilliant | I could register again with Gmail or such, but that means I must give up this username |
14:28:35 | krux02 | ok I now try to understand setLengthSeq and stuff in sysstr.nim, but it's unsatisfying |
14:28:36 | def- | StarBrilliant: or just wait for dom96 and he might be able to find out what's going on |
14:28:53 | krux02 | how do I read the capacity of a string or ar seq? |
14:28:56 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
14:29:07 | StarBrilliant | def-: okay then. just by curious, is the mail server at DigitalOcean-amsterdam? |
14:29:12 | StarBrilliant | maybe hotmail is blocking it |
14:30:43 | def- | krux02: they have a private "reserved" field, see TGenericSeq in system.nim |
14:31:50 | krux02 | def-: so capacity is private? |
14:32:02 | * | tdc joined #nim |
14:32:37 | def- | krux02: yes |
14:33:09 | * | derka joined #nim |
14:33:50 | krux02 | is there a way to tell ignore the fact that 'reserved' is private and just read the data? |
14:33:55 | reactormonk | krux02, nope. |
14:34:12 | def- | krux02: sure, with modifying system.nim or without? |
14:34:22 | krux02 | without |
14:34:40 | def- | then you have to be careful because the memory layout of seqs could change at any moment |
14:34:54 | krux02 | reactormonk: this is for me a good reason not to like nim a lot |
14:35:43 | * | lompik quit (Ping timeout: 250 seconds) |
14:35:44 | krux02 | def-: in my program I have to pass data to opengl, that means the memory layout needs to be sequential |
14:36:00 | reactormonk | krux02, sounds like you should not use seq then. |
14:36:08 | krux02 | any non-sequential layout of the data would break the program |
14:36:27 | krux02 | great :-/ |
14:36:35 | krux02 | not very happy here |
14:36:53 | reactormonk | You sure you don't want an array? |
14:36:54 | def- | krux02: the data in seqs is always sequential, i just mean that new data fields could be added |
14:37:16 | krux02 | def-: unlikely |
14:37:19 | reactormonk | def-, only when you use newSeq, if oyu add more fields the mmap could do whatever |
14:38:06 | * | vendethiel joined #nim |
14:38:11 | * | derka quit (Ping timeout: 276 seconds) |
14:38:11 | def- | reactormonk: oh, that's news to me |
14:38:24 | krux02 | I don't care if the mmap put my data at random places as long as in virtual memory space it's still sequential |
14:38:24 | def- | krux02: https://gist.github.com/def-/3a65d2dc5e7738cfc180 |
14:38:45 | flyx | OpenGL usually doesn't store pointers you pass to it, but rather copies them to VRAM if you use VBOs and the like |
14:38:58 | flyx | so you should be perfectly fine with passing a seq to OpenGL |
14:39:04 | flyx | even if you change it afterwards |
14:39:53 | reactormonk | krux02, read the source. |
14:40:28 | * | derka joined #nim |
14:41:20 | * | tdc quit (Ping timeout: 245 seconds) |
14:43:31 | def- | reactormonk: where do you read that the data in seqs can be non-sequential? |
14:44:12 | reactormonk | def-, I wouldn't expect it to be. |
14:44:23 | reactormonk | Read the source, maybe it is. |
14:44:29 | def- | it is sequential |
14:44:51 | flyx | this should be documented as a guarantee. just like it is with std::vector in C++ |
14:45:03 | reactormonk | def-, ok, then put it into the doc. |
14:48:03 | krux02 | just found out the capacity goes from 0 to 4 on the first 'add' of an item, after that it doubles the capacity when necessary |
14:48:23 | krux02 | def-: thanks a lot for the code |
14:53:16 | * | tdc joined #nim |
14:55:14 | * | coffeepot joined #nim |
15:17:37 | * | vqrs quit (Max SendQ exceeded) |
15:17:55 | * | vqrs joined #nim |
15:18:06 | warkid | hi all. I'm new to Nim and curious what's the current state of cpp backend? Just tried to to loadLib("kernel3.dll") and it doesn't compile... nim 0.13 with msvc 2015 gives ...\stdlib_dynlib.cpp(390): error C2664: 'BOOL FreeLibrary(HMODULE)': cannot convert argument 1 from 'void *' to 'HMODULE' |
15:33:03 | Araq_ | warkid: it's pretty stable except that some modules (like dynlib?) have not been ported |
15:35:32 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
15:40:16 | warkid | Araq_: so it makes sense to expect cpp backend to work and report issues in case it doesn' t? or even propose a patch occasionally? |
15:40:26 | Araq_ | yup. |
15:40:51 | Araq_ | though Visual Studio != C++ backend |
15:41:37 | * | pregressive joined #nim |
15:42:02 | Varriount | Araq_: Ever consider making the compiler output templates in C++ mode? :3 |
15:42:09 | warkid | I understand. I'm using msvc usually and Min seems to work fine with it(i.e. 'nim c') |
15:42:35 | warkid | it's the 'nim cpp' seems to have problems with type conversions |
15:43:21 | Varriount | warkid: It's mainly because C++ has different type conversion rules than C |
15:56:20 | gokr1 | warkid: The Urhonimo stuff uses C++ and works quite fine. https://github.com/3dicc/Urhonimo |
15:58:31 | Araq_ | Varriount: no, that's completely unfeasible. |
16:00:34 | * | cyraxjoe quit (Ping timeout: 240 seconds) |
16:00:42 | * | cyraxjoe_ joined #nim |
16:04:22 | * | endragor quit (Remote host closed the connection) |
16:06:11 | * | gokr joined #nim |
16:06:14 | * | gokr1 quit (Quit: Leaving.) |
16:24:29 | * | MyMind quit (Read error: Connection reset by peer) |
16:25:35 | * | MyMind joined #nim |
16:32:27 | * | jaco60 joined #nim |
16:36:50 | * | aziz joined #nim |
17:00:06 | * | vendethiel quit (Ping timeout: 240 seconds) |
17:12:16 | * | filcuc quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/) |
17:17:06 | * | vendethiel joined #nim |
17:34:11 | * | cyraxjoe joined #nim |
17:34:15 | * | cyraxjoe_ quit (Ping timeout: 245 seconds) |
17:50:08 | * | dthrvr quit (Ping timeout: 250 seconds) |
17:51:21 | * | brson joined #nim |
17:53:32 | * | derka quit (Ping timeout: 252 seconds) |
17:53:37 | * | dthrvr joined #nim |
17:57:50 | * | derka joined #nim |
17:58:36 | * | shodan45 joined #nim |
18:02:54 | * | derka_ joined #nim |
18:03:00 | * | derka quit (Ping timeout: 245 seconds) |
18:03:00 | * | derka_ is now known as derka |
18:06:50 | * | Demon_Fox joined #nim |
18:10:15 | * | Matthias247 joined #nim |
18:33:10 | * | Wildefyr quit (Killed (Sigyn (Spam is off topic on freenode.))) |
18:44:41 | * | warkid_ joined #nim |
18:47:24 | * | qazwsx_ joined #nim |
18:52:30 | * | derka quit (Quit: derka) |
18:54:12 | * | Wildefyr joined #nim |
19:02:43 | * | darkf_ joined #nim |
19:05:21 | * | Pisuke joined #nim |
19:05:41 | * | Matthias247 quit (Read error: Connection reset by peer) |
19:07:10 | * | rektide_ joined #nim |
19:11:10 | * | dom96_ joined #nim |
19:11:12 | * | OmlkRoNiXz joined #nim |
19:12:00 | * | MyMind quit (*.net *.split) |
19:12:00 | * | krux02 quit (*.net *.split) |
19:12:00 | * | darkf quit (*.net *.split) |
19:12:01 | * | vegansk quit (*.net *.split) |
19:12:01 | * | ldlework quit (*.net *.split) |
19:12:02 | * | thotypous quit (*.net *.split) |
19:12:02 | * | Roin quit (*.net *.split) |
19:12:02 | * | sarlalian quit (*.net *.split) |
19:12:02 | * | dom96 quit (*.net *.split) |
19:12:03 | * | rektide quit (*.net *.split) |
19:12:03 | * | OmIkRoNiXz quit (*.net *.split) |
19:12:03 | * | dom96_ is now known as dom96 |
19:15:41 | * | krux02 joined #nim |
19:15:57 | * | thotypous joined #nim |
19:16:05 | * | Roin joined #nim |
19:16:13 | * | vegansk joined #nim |
19:16:17 | * | shodan45 quit (Quit: Konversation terminated!) |
19:17:22 | * | derka joined #nim |
19:17:31 | * | sarlalian joined #nim |
19:17:44 | * | ldlework joined #nim |
19:23:48 | * | derka quit (Ping timeout: 248 seconds) |
19:27:40 | * | darkf_ is now known as darkf |
19:30:03 | * | Demon_Fox quit (Quit: Leaving) |
19:39:34 | * | desophos joined #nim |
19:51:09 | * | sarlalian quit (Ping timeout: 240 seconds) |
19:51:22 | * | sarlalian joined #nim |
20:02:12 | * | qazwsx_ quit (Quit: qazwsx_) |
20:07:30 | * | pregressive quit (Read error: Connection reset by peer) |
20:08:01 | * | pregressive joined #nim |
20:09:46 | * | shodan45 joined #nim |
20:13:59 | * | silven_ quit (Ping timeout: 264 seconds) |
20:14:33 | * | silven joined #nim |
20:21:18 | * | Jesin quit (Quit: Leaving) |
20:39:48 | * | Jesin joined #nim |
21:03:29 | * | tdc quit (Quit: Bye bye) |
21:11:56 | * | Varriount_ joined #nim |
21:11:56 | * | Varriount quit (Disconnected by services) |
21:46:30 | * | saml quit (Remote host closed the connection) |
21:47:14 | * | gour quit (Quit: WeeChat 1.3) |
21:51:28 | * | saml joined #nim |
21:54:48 | * | vqrs quit (Max SendQ exceeded) |
21:55:35 | * | vqrs joined #nim |
22:38:01 | gokr | Trying to do the following: "--passL:-static" in a cfg file. How? Also... using dietlibc I am supposed to call gcc using "diet gcc" instead of "gcc". How can I do that with the cfg file? I just fail because of the space. |
22:39:20 | def- | gokr: passL:-static doesn't work? |
22:39:40 | gokr | Perhaps passL = "-static" works. |
22:39:59 | gokr | The "-" in static seems to trip up the cfg parser if I use "--passL:-static" |
22:40:17 | def- | gokr: --gcc.exe:dietgcc --gcc.linkerexe:dietgcc maybe |
22:40:43 | def- | but i've only tried musl, not diet |
22:41:06 | gokr | musl worked fine since they don't use the same odd trick. |
22:46:45 | * | warkid_ quit (Ping timeout: 252 seconds) |
22:50:24 | * | darkf quit (Quit: Leaving) |
23:00:29 | Araq_ | --gcc.exe:"diet gcc" ? |
23:00:50 | Araq_ | with quotes because of the space. |
23:00:53 | gokr | Didn't fly for me - it generates a command later that starts with 'diet gcc' -c |
23:00:56 | gokr | And that barfs. |
23:01:38 | gokr | I ended up making my own command /usr/bin/dietgcc containing "diet gcc $@" |
23:02:03 | gokr | The passL thing worked with passL = "-static" |
23:02:40 | gokr | Just toying with making my Ni interpreter small. |
23:02:45 | Araq_ | ok, so everything is fine. |
23:03:11 | gokr | Well, yeah. |
23:03:38 | gokr | And oh, I started reading up on how to rewrite my interpreter as stackless :) |
23:07:28 | gokr | I presume that will buy me ... better performance, better depth, ability to mess with my stack (coroutines, continuations etc). Right? |
23:07:46 | * | Matthias247 joined #nim |
23:14:52 | * | Demon_Fox joined #nim |
23:15:35 | Araq_ | right. plus IMHO the result is just natural |
23:15:55 | Araq_ | took me some time to even understand what the Python guys mean by "stackless" |
23:16:19 | Araq_ | for me a "stack based" interpreter is a hack that's harder to come up with |
23:20:38 | * | vendethiel quit (Ping timeout: 272 seconds) |
23:21:05 | Xe | the new nimscript configuration system has made me realize how powerful nim templates actually are |
23:26:01 | * | Egon_ joined #nim |
23:28:23 | * | shodan45 quit (Quit: Konversation terminated!) |
23:28:52 | gokr | Araq_: I was kinda smitten with the "recursive eval" style from my early exposure to evaluators in Scheme etc, so... it turned out the same way in Nim. But... if you take a classic iterative approach - and utilize that procs etc can be held as variables, then... stackless should come naturally I guess. |
23:29:42 | gokr | Or even use a fat switch in the loop. |
23:35:33 | gokr | Btw, got myself some "not gcsafe" warnings - but... not sure exactly why. |
23:38:24 | * | vendethiel joined #nim |
23:38:25 | * | pregressive quit () |
23:44:13 | federico3 | dom96: http://hnapp.com/?q=Nim have you tried this? |
23:47:17 | * | lompik joined #nim |
23:48:20 | Araq_ | gokr: gcsafety error messages are usually perfectly clear |
23:48:52 | gokr | Mmmm, not to me - but let me get back to you when I am committed and clean. Perhaps not today :) |
23:49:42 | gokr | It basically says this method x calls y and y calls z and z calls z. I have several overloaded z methods, so... not sure what. |
23:50:43 | gokr | Btw, threadpool has some old names there. |
23:55:52 | * | Matthias247 quit (Read error: Connection reset by peer) |