00:01:20 | freezerburnv | Why does "11/30 0:0:0 2016" parse as "Tue Nov 29 23:00:00 2016" from the format "M/d H:m:s yyyy"? |
00:02:11 | freezerburnv | Shouldn't it be Wed Nov 30 00:00:00? |
00:02:41 | freezerburnv | "5/31 0:0:0 2016" correctly parses as "Tue May 31 00:00:00 2016" |
00:02:54 | * | desophos quit (Ping timeout: 244 seconds) |
00:03:34 | freezerburnv | (by my definition of correct, at least. I might be assuming something wrong) |
00:03:58 | * | subsetpark quit (Quit: Connection closed for inactivity) |
00:04:09 | * | yglukhov joined #nim |
00:04:55 | freezerburnv | Changing the Nov one to "11/30 2016" with "M/d yyyy" parses the same |
00:05:32 | freezerburnv | Oh, right, forgot to mention: I parse it then immediately use toTime on it |
00:06:05 | freezerburnv | I need to be able to check if any given day is within a specific date range |
00:08:14 | freezerburnv | The only way I could figure out to do that was to parse those specific dates and do comparisons with `<`, etc. on the current time versus the parsed times |
00:08:24 | freezerburnv | If there's a better way, I'm all ears |
00:08:56 | * | yglukhov quit (Ping timeout: 265 seconds) |
00:11:05 | * | Demon_Fox joined #nim |
00:13:24 | * | gokr quit (Ping timeout: 244 seconds) |
00:18:46 | * | mcc joined #nim |
00:23:44 | * | ephja quit (Read error: Connection reset by peer) |
00:30:40 | * | kssreeram joined #nim |
00:34:58 | * | freezerburnv_ joined #nim |
00:38:33 | * | freezerburnv quit (Ping timeout: 244 seconds) |
00:43:39 | * | Demon_Fox quit (Ping timeout: 264 seconds) |
00:50:59 | * | Demon_Fox joined #nim |
00:55:12 | * | libman quit (Remote host closed the connection) |
01:00:04 | * | desophos joined #nim |
01:02:19 | * | chemist69 joined #nim |
01:04:24 | * | zahary1 joined #nim |
01:05:37 | * | chemist69_ quit (Ping timeout: 252 seconds) |
01:08:51 | * | zahary1 quit (Ping timeout: 264 seconds) |
01:24:43 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
01:26:17 | * | yglukhov joined #nim |
01:32:34 | * | yglukhov quit (Ping timeout: 252 seconds) |
01:33:35 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
02:00:12 | * | zodiak_ joined #nim |
02:03:58 | * | zodiak quit (Ping timeout: 244 seconds) |
02:04:03 | * | chemist69 quit (Ping timeout: 264 seconds) |
02:08:06 | * | pdv joined #nim |
02:14:11 | * | kingofoz joined #nim |
02:16:57 | * | chemist69 joined #nim |
02:28:11 | * | Trixar_za quit (Quit: Leaving) |
02:38:20 | * | freezerburnv joined #nim |
02:41:33 | * | freezerburnv_ quit (Ping timeout: 240 seconds) |
02:52:40 | * | zahary1 joined #nim |
02:55:56 | * | pregressive joined #nim |
02:57:01 | * | zahary1 quit (Ping timeout: 244 seconds) |
03:01:11 | * | pregressive quit (Remote host closed the connection) |
03:01:48 | * | pregressive joined #nim |
03:04:24 | * | onionhammer quit (Quit: WeeChat 1.0.1) |
03:06:24 | * | pregressive quit (Ping timeout: 260 seconds) |
03:08:29 | * | onionhammer joined #nim |
03:08:31 | * | kssreeram joined #nim |
03:18:48 | * | zahary1 joined #nim |
03:23:15 | * | zahary1 quit (Ping timeout: 264 seconds) |
03:27:33 | * | freezerburnv quit (Ping timeout: 240 seconds) |
03:42:42 | * | pregressive joined #nim |
03:50:39 | * | yglukhov joined #nim |
03:55:03 | * | yglukhov quit (Ping timeout: 264 seconds) |
04:03:04 | * | endragor joined #nim |
04:04:20 | ftsf | is there a way to force a single proc or module to be optimised/have checks removed but not the whole project? |
04:04:47 | * | pregressive quit (Remote host closed the connection) |
04:05:19 | * | pregressive joined #nim |
04:06:06 | * | endragor quit (Remote host closed the connection) |
04:10:18 | * | pregressive quit (Ping timeout: 276 seconds) |
04:15:43 | * | endragor joined #nim |
04:23:17 | * | chemist69 quit (Ping timeout: 250 seconds) |
04:25:40 | * | mitnk joined #nim |
04:26:19 | * | chemist69 joined #nim |
04:59:32 | chrisheller | ftsf: take a look at the compilation option pragmas http://nim-lang.org/docs/manual.html#pragmas-compilation-option-pragmas |
04:59:49 | ftsf | thanks |
05:00:23 | * | mitnk quit (Read error: Connection reset by peer) |
05:03:57 | * | yglukhov joined #nim |
05:08:19 | * | yglukhov quit (Ping timeout: 260 seconds) |
05:14:30 | * | Flox42 quit (Remote host closed the connection) |
05:14:30 | * | M-Quora quit (Write error: Connection reset by peer) |
05:14:30 | * | M-max quit (Read error: Connection reset by peer) |
05:22:51 | * | Flox42 joined #nim |
05:37:13 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
05:49:00 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
05:58:51 | * | jefuss joined #nim |
06:02:03 | * | jefuss quit (Read error: Connection reset by peer) |
06:02:32 | * | space-wizard joined #nim |
06:04:47 | * | pafmaf joined #nim |
06:28:21 | * | kssreeram joined #nim |
06:32:23 | * | AnonymousCoward quit (Read error: Connection reset by peer) |
06:32:24 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
06:33:11 | * | AnonymousCoward joined #nim |
06:47:58 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
06:48:33 | * | kssreeram joined #nim |
06:59:45 | * | kssreeram quit (Read error: Connection reset by peer) |
07:05:34 | * | yglukhov joined #nim |
07:09:49 | * | yglukhov quit (Ping timeout: 244 seconds) |
07:11:58 | * | kssreeram joined #nim |
07:17:19 | ftsf | has anyone successfully cross compiled to OSX from linux with nim? |
07:17:59 | Araq | good question, no idea. |
07:18:57 | ftsf | just successfully cross compiled my game to windows \o/ |
07:19:04 | ftsf | but OSX is generally harder |
07:19:20 | ftsf | doesn't like thread_local |
07:19:42 | ftsf | but seems that's not implemented by clang for certain targets |
07:20:34 | ftsf | nimcache/stdlib_strutils.cpp:266:8: error: thread-local storage is not supported for the current target: extern NIM_THREADVAR Gcheap60018 gch_60087_1689653243; |
07:23:05 | Araq | yeah OSX used to be a barbaric piece of junk, not supporting thread local storage properly |
07:26:15 | * | space-wizard joined #nim |
07:26:44 | * | bjz joined #nim |
07:34:37 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
07:41:16 | * | brechtm joined #nim |
07:56:28 | * | kssreeram quit (Ping timeout: 252 seconds) |
07:57:20 | * | Trustable joined #nim |
08:05:06 | * | M-Quora joined #nim |
08:05:14 | * | M-max joined #nim |
08:09:20 | * | AnonymousCoward quit (Ping timeout: 258 seconds) |
08:14:37 | * | ftsf quit (Ping timeout: 252 seconds) |
08:16:24 | reactormonk | /join #node |
08:16:52 | reactormonk | Yeah... gotta build some frontend stuff with node :-( |
08:17:21 | * | Trustable quit (Ping timeout: 244 seconds) |
08:19:21 | * | Trustable joined #nim |
08:21:32 | * | Trustable quit (Remote host closed the connection) |
08:23:07 | * | Trustable joined #nim |
08:27:13 | * | mcc quit (Quit: Connection closed for inactivity) |
08:28:29 | * | filwit joined #nim |
08:28:43 | * | yglukhov joined #nim |
08:30:33 | * | ftsf joined #nim |
08:32:51 | * | yglukhov quit (Ping timeout: 244 seconds) |
08:37:19 | * | zahary1 joined #nim |
08:54:08 | * | filwit quit (Quit: Konversation terminated!) |
09:10:12 | * | elrood joined #nim |
09:16:34 | * | Arrrr joined #nim |
09:40:13 | * | Demon_Fox quit (Quit: Leaving) |
09:44:17 | * | Arrrr quit (Quit: WeeChat 1.4) |
09:52:57 | * | Arrrr joined #nim |
09:52:57 | * | Arrrr quit (Changing host) |
09:52:57 | * | Arrrr joined #nim |
09:53:02 | * | ehmry is now known as emery |
09:53:14 | * | emery is now known as ehmry |
10:08:01 | Arrrr | It is funny that a week ago i praised compilation speed, because in the last few days compiling nimc takes a lot more of time, more than it used to. |
10:12:50 | * | gokr joined #nim |
10:25:29 | * | euantor joined #nim |
10:26:56 | * | desophos quit (Read error: Connection reset by peer) |
10:30:44 | * | yglukhov joined #nim |
10:35:05 | * | yglukhov quit (Ping timeout: 250 seconds) |
11:01:11 | * | pdv quit (Quit: Ex-Chat) |
11:18:35 | Araq | Arrrr: doesn't for me. can you spot some commit that caused it? |
11:39:13 | def- | Arrrr: maybe you built with ./koch boot (without -d:release) |
11:39:23 | def- | happened to me a few times and I wondered about the performance |
11:43:37 | Arrrr | I use release flag. I think it happened at the same time that [Exec] hint was enabled |
11:44:21 | Arrrr | Most of the time is spent there. Before the most time consuming was the processing |
12:10:04 | * | chemist69 quit (Ping timeout: 260 seconds) |
12:16:30 | * | kssreeram joined #nim |
12:16:46 | * | chemist69 joined #nim |
12:17:37 | * | pregressive joined #nim |
12:21:05 | * | pregressive quit (Remote host closed the connection) |
12:21:38 | * | pregressive joined #nim |
12:23:52 | * | nairobi joined #nim |
12:25:19 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
12:26:02 | * | pregressive quit (Ping timeout: 244 seconds) |
12:28:34 | * | michael_campbell joined #nim |
12:32:54 | * | yglukhov joined #nim |
12:37:23 | * | yglukhov quit (Ping timeout: 244 seconds) |
12:37:59 | * | cheatfate_ quit (Quit: Leaving) |
12:50:18 | * | nsf quit (Quit: WeeChat 1.5) |
12:50:54 | * | filcuc joined #nim |
12:51:19 | * | pafmaf quit (Quit: Leaving) |
13:27:54 | * | kssreeram joined #nim |
13:32:46 | * | endragor quit (Remote host closed the connection) |
13:55:04 | * | gokr quit (Ping timeout: 260 seconds) |
14:10:28 | * | nairobi quit (Ping timeout: 252 seconds) |
14:15:33 | * | nairobi joined #nim |
14:25:01 | * | kingofoz quit (Read error: Connection reset by peer) |
14:25:25 | * | kingofoz joined #nim |
14:28:08 | * | nairobi_ joined #nim |
14:32:15 | * | nairobi quit (Ping timeout: 264 seconds) |
14:38:40 | * | pregressive joined #nim |
14:39:10 | * | chemist69 quit (Ping timeout: 258 seconds) |
14:42:36 | * | euantor quit (Quit: Leaving) |
14:42:53 | * | nairobi_ quit (Remote host closed the connection) |
14:44:18 | * | nairobi joined #nim |
14:50:20 | * | FreezerburnV joined #nim |
14:54:13 | * | nairobi quit (Remote host closed the connection) |
14:54:33 | * | nairobi joined #nim |
14:57:36 | * | brson joined #nim |
15:08:54 | Sentreen | What's the policy on removing trailing whitespace when working on a module? Should I just leave it alone or edit it out in a seperate commit? |
15:09:13 | * | chemist69 joined #nim |
15:14:16 | elrood | i'd vote for one preferrably complete and automatic check and fix commit, a public shaming for those who commited them, and a commit hook to prevent similar oversights in the future |
15:14:52 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
15:29:33 | ehmry | I'm a bit confused, what happens when I wrap a C++ constructor in a proc that returns a ref type? |
15:29:40 | * | filcuc quit (Read error: Connection reset by peer) |
15:29:56 | ehmry | I get a reference to an object constructed on a heap? |
15:46:33 | Araq | Sentreen: just remove it in some way, there can't be much of it |
15:47:03 | Araq | elrood: yeah. OR: we actually care about important things instead. |
15:47:08 | Sentreen | Will do |
15:53:45 | elrood | Araq, that's not an exclusive-or decision |
15:54:31 | elrood | not that i really particularly care either, it's just good practice |
15:58:06 | elrood | a well setup editor and scm simply takes cares of those things automagically so that one doesn't ever have to waste any thought and energy on the matter in one's life again |
16:00:03 | * | kulelu88 joined #nim |
16:00:27 | * | nairobi quit (Ping timeout: 264 seconds) |
16:01:46 | * | minus quit (Remote host closed the connection) |
16:02:53 | * | nairobi joined #nim |
16:05:43 | * | minus joined #nim |
16:13:51 | * | kssreeram joined #nim |
16:17:51 | * | brechtm quit (Read error: Connection reset by peer) |
16:19:20 | * | brechtm joined #nim |
16:25:58 | * | jjido joined #nim |
16:26:29 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
16:26:56 | * | kssreeram joined #nim |
16:27:10 | ftsf | \o/ cross compiled my nim app from linux to windows and osx (untested) |
16:28:39 | ftsf | now to acquire a mac to test on |
16:33:27 | * | jjido quit (Ping timeout: 250 seconds) |
16:34:16 | * | jjido joined #nim |
16:36:23 | * | libman joined #nim |
16:37:54 | vktec | ftsf: You could see if anyone on ##apple would test it for you |
16:38:37 | * | nairobi quit (Read error: Connection reset by peer) |
16:38:44 | jjido | I use Macs |
16:39:07 | * | nairobi joined #nim |
16:42:50 | libman | Pirate a MacOS X VM image ;) |
16:49:08 | * | nairobi quit (Read error: Connection reset by peer) |
16:52:39 | * | desophos joined #nim |
16:54:38 | * | endragor joined #nim |
16:57:05 | michael_campbell | When nim is updated or fixed in any way, are all the outputs (objc, cpp, javascript, c) always kept in sync? I remember Scala trying to do both the CLR and JVM, and eventually lost interest in the CLR. |
16:57:11 | * | space-wizard joined #nim |
16:58:05 | dom96 | michael_campbell: Not always, there are certain features which the JavaScript backend still doesn't support AFAIK |
16:58:32 | michael_campbell | gotcha. Idle curiosity on my part; I don't have a need there. Just wondering. |
16:58:49 | * | endragor quit (Ping timeout: 244 seconds) |
17:02:33 | Eyes | is there a way to specify headers to send with a request on an asyncHttpClient |
17:03:18 | dom96 | Eyes: yep, http://nim-lang.org/docs/httpclient.html#AsyncHttpClient |
17:03:24 | dom96 | the 'headers' field is exported |
17:03:58 | Eyes | is that per request or per client? |
17:08:54 | * | endragor joined #nim |
17:09:49 | Eyes | probably per client, stupid me |
17:10:58 | Sentreen | If I create a proc that returns a `ref`, is the implicit result variable of that proc initialized to point to nil? |
17:11:39 | * | jjido quit (Ping timeout: 260 seconds) |
17:13:18 | * | endragor quit (Ping timeout: 244 seconds) |
17:15:22 | FreezerburnV | So I had a proc I was putting into a table in the same module as the table. I just moved that proc into a separate module and is declared as public, and now I'm getting the error: 'theProc' cannot be passed to a procvar |
17:15:42 | FreezerburnV | The table is being created with toTable({"procKey": theProc, ...}) |
17:16:20 | FreezerburnV | I can call the proc without a compilation error |
17:16:20 | * | kssreeram quit (Read error: Connection reset by peer) |
17:16:45 | Arrrr | http://nim-lang.org/docs/manual.html#types-procedural-type |
17:17:59 | dom96 | Eyes: per client :) |
17:21:03 | FreezerburnV | Arrrr, Ah, it needed {.procvar.}. Thanks! |
17:39:54 | * | libman is only using the easiest 10% of Nim, and loving it. You can really enjoy Nim without the advanced features. |
17:41:03 | libman | I guess years of P-programming (Python, PHP, Perl) have wired my brain for simplicity. |
17:41:08 | FreezerburnV | And now I'm getting this error after fixing the previous procvar bit: |
17:41:09 | FreezerburnV | Error: type mismatch: got ((string, proc (idx: int, vargs: seq[string], env: HandleEnvironment): int{.gcsafe, locks: 0.})) but expected '(string, proc (idx: int, vargs: seq[string], env: HandleEnvironment): int{.gcsafe, locks: <unknown>.})' |
17:41:26 | FreezerburnV | Without changing table creation |
17:41:59 | FreezerburnV | But I added in the HandleEnvironment object and it suddenly started breaking (using that to store global state due to the proc being in a new module) |
17:42:04 | dom96 | Sentreen: yep |
17:43:00 | Sentreen | Perfect, thanks :) |
17:43:11 | Sentreen | I tested it, but I wanted to be sure I understood what was going on |
17:43:53 | dom96 | FreezerburnV: strange, I wonder if the two vs. one parenthesis are significant. |
17:44:10 | FreezerburnV | dom96, That seems to be the case, but I have no idea why it's creating that extra set |
17:44:35 | dom96 | FreezerburnV: can I see the code? |
17:45:49 | FreezerburnV | dom96, Sure, one sec. Just gonna make sure it's fully anonymized |
17:50:51 | FreezerburnV | dom96, https://gist.github.com/Freezerburn/c16071e48756b0e8e8e04c53e303bffa |
17:51:19 | FreezerburnV | Not sure it'll compile as is, I tore it to pieces quite a bit. But that should generally be how it's set up |
17:51:32 | FreezerburnV | (actually it won't because all the handler procs are defined) |
17:51:37 | FreezerburnV | aren't* |
17:53:24 | dom96 | hrm, I don't know |
17:53:38 | dom96 | It would be nice if you could give me code that reproduces the error |
17:53:45 | FreezerburnV | dom96, Alright, gimme a sec |
17:57:03 | FreezerburnV | *headdesk* |
17:57:19 | FreezerburnV | I left the original HandleEnvironment object in main instead of deleting it after copying it to utils |
17:57:46 | * | V`ger joined #nim |
17:59:37 | * | kssreeram joined #nim |
17:59:56 | dom96 | FreezerburnV: ahh, the compiler really needs to give a better error message for that sort of thing |
18:00:07 | FreezerburnV | dom96, T'would be nice |
18:01:13 | * | V`ger left #nim ("JOIN #shitfire!!!") |
18:08:26 | Araq | it does |
18:08:49 | Araq | it's just that you got unlucky with the inferred locking levels :P |
18:09:12 | Araq | the compiler checks "oh, are these types rendered to the same string repr? yes, so add type qualifiers" |
18:09:28 | Araq | but this heuristic failed for you :P |
18:09:32 | FreezerburnV | lol yup |
18:09:50 | FreezerburnV | I honestly thought it was the qualifiers at first so I started adding all the gcsafe ones |
18:13:48 | Araq | so make a suggestion. and no, we don't want the compiler to always emit the qualifiers, that's too verbose |
18:16:48 | * | brechtm quit (Read error: Connection reset by peer) |
18:17:38 | * | brechtm joined #nim |
18:20:12 | * | michael_campbell quit (Read error: Connection reset by peer) |
18:20:37 | * | michael_campbell joined #nim |
18:22:20 | dom96 | Araq: what? It seriously just does string equality? |
18:22:46 | Araq | what else should it do? |
18:22:47 | dom96 | Can't you see whether the parameter names/types are equivalent? |
18:23:06 | * | astocko quit (Quit: ZNC 1.6.3+deb1+trusty0 - http://znc.in) |
18:23:08 | dom96 | and if they are include the prefixes? |
18:27:24 | * | astocko joined #nim |
18:27:47 | Araq | it's not that easy and I have real bugs to fix instead |
18:31:18 | * | Arrrr quit (Ping timeout: 244 seconds) |
18:32:39 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
18:41:05 | FreezerburnV | Araq, Not sure if it's easy or not, but it is probably simpler than fully checking types: prefix the type name with the module it's from. If I had seen that in the error, I would have figured out the problem a lot easier |
18:41:48 | FreezerburnV | Obviously this is probably not a super common situation, so do whatever, but you mentioned suggestions, so I figured I would throw one out there |
18:42:49 | Araq | I can leave out the {..} in the comparison |
18:47:59 | * | big_num joined #nim |
18:49:51 | * | zodiak joined #nim |
18:53:15 | * | zodiak_ quit (Ping timeout: 264 seconds) |
18:55:45 | * | zahary1 quit (Quit: Leaving.) |
19:11:29 | * | kssreeram joined #nim |
19:18:03 | * | kssreeram quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
19:22:17 | * | Schala_Zeal joined #nim |
19:22:38 | * | big_num quit (Remote host closed the connection) |
19:23:21 | Schala_Zeal | I seem to be having a major dilemma regarding making a server in Nim for a Unity game |
19:23:46 | Schala_Zeal | UTF 16 string handling |
19:24:28 | Schala_Zeal | like... I figured it'd be seq[Rune16], but... do I actually have to set it like I would an array? |
19:29:57 | * | Matthias247 joined #nim |
19:30:51 | * | endragor joined #nim |
19:35:03 | * | endragor quit (Ping timeout: 240 seconds) |
19:38:56 | * | yglukhov joined #nim |
19:43:13 | * | nairobi joined #nim |
19:43:42 | * | yglukhov quit (Ping timeout: 276 seconds) |
20:01:34 | * | endragor joined #nim |
20:05:46 | * | endragor quit (Ping timeout: 250 seconds) |
20:07:58 | * | big_num joined #nim |
20:09:38 | dom96 | Schala_Zeal: Good question, sorry I can't help |
20:12:47 | Schala_Zeal | probably better ways of doing this, but: http://pastebin.com/qnVCfyaP |
20:18:30 | dom96 | Schala_Zeal: Can't you store the UTF16 runes in a normal string? |
20:21:10 | Schala_Zeal | I'm not sure. I thought it was UTF8 |
20:21:53 | Schala_Zeal | being as this is a server, I'll probably be reading strLen * 2? |
20:25:07 | Schala_Zeal | I did write a guid module in pure Nim though, based off the Boost.Uuid implementation |
20:25:18 | Schala_Zeal | heavily modified though |
20:26:32 | * | zahary1 joined #nim |
20:27:55 | Schala_Zeal | http://pastebin.com/yLFr0gYd |
20:28:00 | Schala_Zeal | so enjoy |
20:30:08 | dom96 | add it to nimble's package repo |
20:31:09 | * | zahary1 quit (Ping timeout: 260 seconds) |
20:31:36 | Schala_Zeal | ok |
20:31:58 | Schala_Zeal | decided just now it makes no sense to do < or > operations on a GUID so... |
20:33:16 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
20:33:37 | * | space-wizard joined #nim |
20:35:02 | FreezerburnV | I think I'm still misunderstanding the pegs module: I'm trying to put together a peg to replace all instances of ' or " in a string with ['"], and I put together: peg"{ (!'[\'\"]' [\\'\"]) }", but it's giving me compile errors on the first ] despite being in a string literal |
20:35:40 | FreezerburnV | (the first ! match is to ignore anything already replaced in the string, unless I don't need that and can iterate over the matches array?) |
20:36:32 | FreezerburnV | Reducing to just: peg"{ [\'\"] }" still errors with wanting an expression on the ] |
20:37:29 | FreezerburnV | Or rather, that's what NimLime is telling me. Attempting to compile just gives "invalid indentation" |
20:39:25 | * | space-wizard quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
20:43:14 | * | Trixar_za joined #nim |
20:43:51 | Trixar_za | I came on to ask something - and instantly forgot what it was |
20:53:23 | dom96 | Just found this via the author's (I'm assuming) presentation: https://github.com/jcosborn/qex |
20:54:20 | * | libman quit (Quit: Leaving.) |
20:55:12 | dom96 | http://indico.cern.ch/event/432527/contributions/1072091/ |
20:58:30 | Trixar_za | Oh right - if I say put all th dll files in /dll, how do I make the compiler know I put the libraries in there when I compile the exe? Oo |
20:59:39 | dom96 | Your application will load the DLLs dynamically when it starts |
20:59:47 | dom96 | the compiler doesn't check for their existance |
21:03:10 | Trixar_za | I meant for SDL2 - because if I put it in the dll folder, the exe file gives me could not load: SDL2.dll, how do I tell the exe file that I put SDL2.dll in the dll folder within the directory where the exe is? |
21:04:23 | dom96 | It needs to be beside the .exe or you need to add the directory with the dlls to your PATH |
21:04:31 | dom96 | Pretty sure this is an OS limitation |
21:04:35 | Trixar_za | Would look less clustered if I did it that way than leave all the dll files in the main folder - especially if I use sdl_ttf, sdl_mixter and sdl_image together |
21:05:00 | Trixar_za | There has to be a way to tell the compiler where I put the library files :/ |
21:05:11 | Araq | it's not the compiler's business |
21:05:24 | Araq | and while I think there are ways to influence the search path |
21:05:33 | Araq | it's unwise to work against the OS |
21:06:10 | * | gokr joined #nim |
21:06:11 | elrood | Trixar_za, you're looking for rpath, either via passL pragma in your code or as a commandline option |
21:08:40 | * | Schala_Zeal quit (Quit: Konversation terminated!) |
21:09:08 | elrood | something in the vein of --passL:-Wl,-rpath,dll should work |
21:10:31 | Araq | elrood: .dll means he's on Windows |
21:12:01 | FreezerburnV | Trixar_za, Pretty sure it's highly common to see a bunch of .dll files next to the main .exe on Windows. Open up any game folder and you'll probably see multiple |
21:12:40 | Araq | yup, it works like OSX really. it's the only way to distribute native binaries that works. |
21:12:49 | FreezerburnV | Nobody really sees that folder anyway other than devs, so it doesn't matter if it's slightly "messy" |
21:13:30 | FreezerburnV | Araq, Ugh, wrangling dynlibs in OS X is a huge pain, since it compiles where the dynlib is into the binary |
21:13:53 | FreezerburnV | Have to use some magic strings to get it to be able to reside near the binary correctly in general |
21:13:58 | Araq | all I know is that OSX pretends the directory is an "app" and you can click on it |
21:14:04 | Araq | and the deps are in the dir |
21:14:19 | Araq | quite possible they fucked it up, wouldn't surprise me at all. |
21:14:30 | Araq | it's Unix based, after all. |
21:14:36 | Trixar_za | Yes, but 17 dll files for sdl2, sdl_mixer, sdl_ttf, sdl_image and sdl_net and one exe file is a bit much |
21:14:42 | FreezerburnV | Yup. The details suck for packaging up your own dynlibs into the directory though. Have to get some compiler flags just right |
21:14:47 | dom96 | yeah... you should see the crap needed to get GTK bundled in a .app bundle on OS X |
21:15:10 | dom96 | Pretty sure that Aporia still doesn't work for some people |
21:15:10 | elrood | Araq, i am perfectly aware of that, and afair the mechanisms and flags are the same on *nix and windows, at least if using gcc/clang. does nim use a different c compiler on windows? |
21:15:11 | FreezerburnV | Trixar_za, Why do you have 17 dll files for 4 libraries? |
21:15:22 | dom96 | and it stopped working suddenly on my MacBook |
21:15:36 | Trixar_za | The requirements behind the libraries themselves |
21:15:40 | dom96 | after I spent weeks compiling GTK myself |
21:16:16 | Trixar_za | You probably don't need the sound and image libraries you won't be using, but not everybody strips down to what they need. |
21:16:49 | FreezerburnV | Trixar_za, Guess you're going to have to live with 17 dll files :) It'll look like peanuts compared to all the graphics files in the long run anyway. And the code files, and... |
21:17:39 | Trixar_za | Luckily those will hopefully be in their own folder called assets - because dammit, I'm not going to add more clutter |
21:18:47 | dom96 | just write a file manager that puts all files with a certain file extension in special "virtual folders" :P |
21:19:33 | * | pregressive quit (Remote host closed the connection) |
21:19:57 | * | pregressive joined #nim |
21:20:18 | Trixar_za | Failing what I wanted to do, can I write a launcher exe file that calls an exe file inside the 'dll' folder? That's also a viable work around. |
21:20:54 | FreezerburnV | You could just create a shortcut I would imagine |
21:21:15 | * | pregressive quit (Read error: Connection reset by peer) |
21:21:42 | * | pregressive joined #nim |
21:22:16 | * | elrood shrugs |
21:22:21 | elrood | don't try rpath then |
21:23:41 | dyce_ | so you can do 'for kind,path in walkDir("/someDir")' but you cannot do 'for kind,path in concat(toSeq(walkDir("/someDir")),toSeq(walkDir("/someDir2")) ? |
21:24:13 | dyce_ | for x in concat(toSeq(walkDir("/someDir")),toSeq(walkDir("/someDir2")) |
21:24:19 | dyce_ | then i accessed x.path x.kind |
21:25:14 | * | cheatfate joined #nim |
21:29:24 | Trixar_za | elrood: Mostly because I don't know how I would use rpath on Windows like that |
21:29:40 | Trixar_za | or even what rpath is to be completely honest |
21:35:46 | * | cheatfate quit (Read error: Connection reset by peer) |
21:38:07 | * | Demon_Fox joined #nim |
21:41:06 | * | cheatfate joined #nim |
21:43:34 | * | yglukhov joined #nim |
21:48:30 | * | yglukhov quit (Ping timeout: 276 seconds) |
21:54:32 | * | michael_campbell quit (Ping timeout: 240 seconds) |
22:01:22 | * | nsf joined #nim |
22:08:19 | * | Trixar_za quit (Quit: Leaving) |
22:13:03 | * | Trixar_za joined #nim |
22:14:59 | * | zahary1 joined #nim |
22:16:06 | * | freezerburnv_ joined #nim |
22:18:24 | * | cheatfate quit (Ping timeout: 276 seconds) |
22:19:22 | * | zahary1 quit (Ping timeout: 250 seconds) |
22:30:05 | * | big_num quit (Remote host closed the connection) |
22:35:39 | * | nairobi quit (Remote host closed the connection) |
22:37:37 | * | big_num joined #nim |
22:41:40 | * | endragor joined #nim |
22:46:04 | * | endragor quit (Ping timeout: 258 seconds) |
22:46:07 | * | elrood quit (Quit: Leaving) |
22:47:42 | * | kssreeram joined #nim |
22:49:48 | * | nairobi joined #nim |
22:52:03 | * | kssreeram quit (Ping timeout: 240 seconds) |
22:58:22 | * | zahary1 joined #nim |
23:00:17 | * | endragor joined #nim |
23:00:23 | * | nairobi quit (Remote host closed the connection) |
23:03:15 | * | zahary1 quit (Ping timeout: 276 seconds) |
23:05:12 | * | endragor quit (Ping timeout: 276 seconds) |
23:14:18 | * | irrequietus joined #nim |
23:19:13 | * | nairobi joined #nim |
23:19:44 | * | brson quit (Ping timeout: 260 seconds) |
23:23:51 | * | pregressive quit (Remote host closed the connection) |
23:23:58 | * | Trustable quit (Remote host closed the connection) |
23:24:24 | * | pregressive joined #nim |
23:29:15 | * | pregressive quit (Ping timeout: 264 seconds) |
23:39:34 | * | nairobi quit (Remote host closed the connection) |
23:39:50 | * | brson joined #nim |
23:41:57 | * | nairobi joined #nim |
23:48:35 | * | kulelu88 quit (Quit: Leaving) |
23:52:08 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:56:30 | * | nairobi quit (Remote host closed the connection) |