00:06:36 | cheatfate | Araq, looks like not very easy as u think |
00:06:50 | Araq | how come? |
00:10:50 | * | brson quit (Ping timeout: 272 seconds) |
00:23:30 | cheatfate | Araq, sorry but i can't help you with this warnings |
00:23:42 | cheatfate | too complex for me at night |
00:24:37 | cheatfate | i dont understand why it `void (__cdecl *)()` |
00:41:07 | * | desophos joined #nim |
00:44:35 | * | wuehlmaus quit (Quit: Lost terminal) |
00:51:17 | Araq | ok np |
00:51:22 | Araq | good night |
00:56:14 | * | arnetheduck quit (Remote host closed the connection) |
01:02:01 | * | ftsf_ joined #nim |
01:03:37 | * | arnetheduck joined #nim |
01:28:10 | * | chemist69 joined #nim |
01:31:03 | * | chemist69_ quit (Ping timeout: 240 seconds) |
01:36:26 | * | pregress_ joined #nim |
01:38:49 | * | pregressive quit (Ping timeout: 258 seconds) |
01:47:11 | * | nchambers quit (Read error: Connection reset by peer) |
01:51:51 | dyce_ | how do you create a stically linked binary? |
01:51:54 | dyce_ | statically |
01:52:32 | dyce_ | get a nice jumbo size binary |
01:54:23 | * | xet7 joined #nim |
02:22:25 | * | Demon_Fox joined #nim |
02:28:20 | * | vendethiel joined #nim |
02:35:10 | * | vendethiel quit (Ping timeout: 258 seconds) |
02:37:32 | ftsf_ | dyce_, don't you get a statically linked binary by default from nim? |
02:55:38 | dyce_ | ftsf_: im not all too clear, like for example openssl generally is dynamically linked? |
02:58:25 | ftsf_ | have a look at the output executable and see what it links |
02:58:54 | ftsf_ | using ldd |
02:58:58 | ftsf_ | (on linux) |
03:44:16 | * | ozra quit (Ping timeout: 272 seconds) |
04:26:18 | * | GangstaCat joined #nim |
05:03:51 | * | endragor joined #nim |
05:24:48 | * | vendethiel joined #nim |
05:35:09 | * | GangstaCat quit (Quit: Leaving) |
05:42:12 | * | GangstaCat joined #nim |
05:59:29 | * | akamaus joined #nim |
06:00:05 | * | vendethiel quit (Quit: q+) |
06:18:56 | * | endragor_ joined #nim |
06:22:36 | * | endragor quit (Ping timeout: 272 seconds) |
06:24:27 | * | akamaus quit (Ping timeout: 264 seconds) |
06:25:17 | * | rlr left #nim (#nim) |
06:37:03 | * | pafmaf joined #nim |
06:42:52 | * | endragor_ quit (Remote host closed the connection) |
06:43:21 | * | endragor joined #nim |
06:44:54 | * | fastrom joined #nim |
06:49:10 | * | brechtm joined #nim |
07:36:52 | * | Trustable joined #nim |
07:39:26 | * | bjz joined #nim |
07:43:27 | * | bjz quit (Client Quit) |
07:52:55 | * | GangstaCat quit (Quit: Leaving) |
07:55:38 | * | endragor quit (Remote host closed the connection) |
07:56:39 | * | GangstaCat joined #nim |
08:00:03 | * | ftsf_ quit (Quit: :q!) |
08:03:25 | * | Arrrr joined #nim |
08:03:40 | * | Demon_Fox quit (Quit: Leaving) |
08:05:01 | * | pregress_ quit (Ping timeout: 244 seconds) |
08:16:26 | * | Hohto joined #nim |
08:16:53 | * | Hohto left #nim (#nim) |
08:28:00 | * | endragor joined #nim |
08:31:26 | * | yglukhov joined #nim |
08:37:38 | * | GangstaCat quit (Quit: Leaving) |
08:40:07 | * | endragor quit (Remote host closed the connection) |
08:41:19 | * | endragor joined #nim |
08:59:12 | * | brechtm quit (Remote host closed the connection) |
09:12:23 | * | coffeepot joined #nim |
09:17:50 | * | fastrom quit (Quit: Leaving.) |
09:44:56 | * | elrood joined #nim |
09:49:10 | * | brechtm_ joined #nim |
09:57:32 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
09:58:18 | * | coffeepot joined #nim |
10:07:09 | * | ephja joined #nim |
10:30:51 | * | fastrom joined #nim |
10:33:54 | * | acidx quit (Quit: leaving) |
10:36:49 | * | endragor quit (Remote host closed the connection) |
10:42:45 | * | euantor joined #nim |
10:50:57 | * | euantor quit (Read error: Connection reset by peer) |
10:53:57 | * | acidx joined #nim |
11:22:19 | * | bjz joined #nim |
11:22:20 | * | endragor joined #nim |
11:27:51 | * | pafmaf quit (Ping timeout: 276 seconds) |
11:39:21 | * | euantor joined #nim |
11:48:12 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
11:54:48 | yglukhov | Araq: there's some recently introduced regression: Error: illformed AST: proc nimem_ps(s: cint): string {.exportc, codegenDecl: "__attribute__((used)) $# $#$#".} = result = newString(chckRange(s, 0, 2147483647)) |
11:54:54 | yglukhov | does it tell you enything? |
12:00:43 | * | endragor quit (Remote host closed the connection) |
12:04:00 | * | brechtm_ quit (Read error: Connection reset by peer) |
12:04:05 | * | brechtm joined #nim |
12:07:17 | * | endragor joined #nim |
12:11:59 | * | bjz joined #nim |
12:26:47 | * | yglukhov quit () |
12:27:02 | * | pafmaf joined #nim |
12:28:39 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
12:34:00 | * | coffeepot joined #nim |
12:39:29 | * | yglukhov joined #nim |
12:40:01 | * | brechtm quit (Read error: No route to host) |
12:40:11 | * | brechtm joined #nim |
12:47:55 | * | Arrrr quit (Read error: Connection reset by peer) |
13:01:40 | * | endragor quit (Remote host closed the connection) |
13:08:44 | * | bjz_ joined #nim |
13:09:11 | * | bjz quit (Ping timeout: 240 seconds) |
13:10:41 | * | nsf quit (Quit: WeeChat 1.5) |
13:11:39 | * | endragor joined #nim |
13:15:47 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
13:16:58 | * | coffeepot joined #nim |
13:17:18 | * | coffeepot quit (Client Quit) |
13:20:42 | * | nd_ quit (Ping timeout: 244 seconds) |
13:21:35 | * | nd_ joined #nim |
13:23:27 | * | endragor quit (Remote host closed the connection) |
13:27:20 | * | endragor joined #nim |
13:48:17 | * | fastrom quit (Quit: Leaving.) |
14:01:10 | * | ozra joined #nim |
14:04:02 | * | fredrik92 joined #nim |
14:11:10 | * | trusion quit (Quit: Leaving) |
14:16:40 | * | ozra quit (Ping timeout: 258 seconds) |
14:17:30 | * | endragor quit (Ping timeout: 276 seconds) |
14:18:33 | * | cheatfate quit (Quit: Leaving) |
14:21:42 | * | pregressive joined #nim |
14:23:47 | * | cheatfate joined #nim |
14:28:03 | * | nd_ quit (Ping timeout: 264 seconds) |
14:28:58 | * | nd_ joined #nim |
14:50:39 | * | fredrik92 quit (Ping timeout: 276 seconds) |
14:58:40 | * | BitPuffin joined #nim |
15:01:07 | * | brechtm_ joined #nim |
15:01:39 | * | brechtm quit (Read error: No route to host) |
15:01:47 | * | brechtm_ is now known as brechtm |
15:07:59 | * | namnguyen quit (Remote host closed the connection) |
15:13:41 | * | namnguyen joined #nim |
15:13:43 | * | BitPuffin quit (Read error: Connection reset by peer) |
15:41:47 | * | irrequietus joined #nim |
15:59:54 | * | ozra joined #nim |
16:02:01 | * | brson joined #nim |
16:03:05 | * | euantor quit (Quit: Leaving) |
16:04:22 | icebattle | Anyone built nim on cygwin lately? |
16:05:30 | flyx | damn, there should be a big banner somewhere in the Nim docs „never use `== nil`“ |
16:06:49 | yglukhov | icebattle: using mingw a lot if that matters |
16:07:47 | icebattle | yglukhov: Good idea - I'll try that |
16:10:51 | * | yglukhov quit (Ping timeout: 240 seconds) |
16:19:24 | * | freezerburnv joined #nim |
16:21:43 | cheatfate | Araq, something bad happens in GC while in windows multithreading breaking with Ctrl+C |
16:27:15 | * | fvs joined #nim |
16:28:29 | fvs | hi, can someone point me the way to implement a timer that calls a function after say 300 seconds. |
16:32:15 | cheatfate | fvs, `man timer_create`? |
16:32:59 | * | xet7_ quit (Read error: Connection reset by peer) |
16:33:30 | ephja | flyx: isn't the only difference between that and isNil the overhead for closures? |
16:34:04 | ephja | might as well use that though in any case |
16:35:27 | flyx | ephja: just fixed a bug in NimYAML that stemmed from the problem that the tables module overloads `==` |
16:35:57 | flyx | and said `==` may raise a KeyError, but the generic proc I used it in defines {.raises: [].} |
16:36:34 | flyx | so the proc didn't compile with a Table, because of the KeyError |
16:36:53 | ephja | it shouldn't be defined for refs imo |
16:37:06 | flyx | (I also created a pull request to stop `==` raising a KeyError because that's stupid) |
16:37:08 | ephja | I mean overloaded |
16:37:18 | ephja | right |
16:37:42 | flyx | but that bug was a hard one to find |
16:39:32 | ephja | ok |
16:41:16 | flyx | anyway, calling an overloaded operator is almost never what you want when you check for nil, so you shouldn't use `== nil` |
16:41:21 | * | elrood quit (Quit: Leaving) |
16:41:37 | ephja | some parts of the windows API will remain in the standard library and others won't? what will happen to fsmonitor once windows support is added? the winlean module does not contain FindFirstChangeNotification etc |
16:42:05 | ephja | flyx: I forgot about 'is' |
16:42:39 | ephja | wait |
16:43:57 | fvs | cheatfate: thanks, I see it now in the posix module |
16:44:24 | cheatfate | fvs, but this is only for linux/bsd... not windows |
16:44:32 | ephja | flyx: nevermind that :p |
16:44:35 | fvs | yep |
16:45:34 | ephja | Are there actual cases where one might want to overload == for references rather than values? |
16:46:44 | flyx | no, but references automatically dereference, so a `==` on values will still be called with references |
16:47:32 | ephja | really? ok |
16:47:39 | ephja | is this a special case? |
16:48:34 | flyx | I don't think so. it's just how references work. |
16:52:10 | * | icebattle quit (Read error: Connection reset by peer) |
16:54:05 | * | fredrik92 joined #nim |
16:54:55 | ephja | flyx: that doesn't seem right, and I haven't been able to replicate this supposed implicit dereference |
16:55:52 | cheatfate | ephja, i dont think fsmonitor will have windows support |
16:56:12 | flyx | a right, I just saw that the tables module explicitly defines it |
16:56:17 | flyx | my bad |
16:56:40 | cheatfate | ephja, or bsd/macos support |
16:58:17 | * | nsf joined #nim |
16:59:40 | ephja | cheatfate: why not? |
17:00:00 | * | yglukhov joined #nim |
17:01:13 | cheatfate | ephja, mostly because of differences in os interfaces |
17:02:33 | ephja | oops missed the warning about the planned migration to a nimble package |
17:02:48 | * | ozra__ joined #nim |
17:04:03 | ephja | flyx: was it the underlying sequence that was nil then? I assume the stack trace would have let you know then |
17:04:03 | * | yglukhov quit (Ping timeout: 240 seconds) |
17:04:16 | ephja | then then then |
17:04:24 | flyx | ephja: that was not the issue at all |
17:04:42 | flyx | it didn't compile because the compiler deduced `==` can raise a KeyError |
17:05:12 | flyx | and that wasn't allowed in the context where it was called |
17:11:37 | dom96 | cheatfate: I don't think that's true. You can get a pretty sane common interface. |
17:12:53 | cheatfate | dom96, lol, if you think so why your fsmonitor has only linux support? |
17:13:13 | dom96 | cheatfate: Why do you think? |
17:13:24 | dom96 | cheatfate: Because I never got the time to finish it |
17:15:37 | cheatfate | dom96, lol again |
17:15:54 | cheatfate | dom96, you have added fsmonitor at 2012 |
17:15:54 | * | xet7 quit (Read error: Connection reset by peer) |
17:16:13 | cheatfate | i also know Varriount made fsmonitor for windows |
17:16:25 | cheatfate | but there no fsmonitor for kqueue |
17:16:26 | ephja | yeah but maybe he's addicted to tibia |
17:16:37 | ephja | didn't know that |
17:16:39 | dom96 | cheatfate: Saying 'lol' repeatedly is very rude. |
17:16:40 | * | xet7 joined #nim |
17:16:56 | cheatfate | dom96, maybe because you always trying to opposite me? |
17:17:24 | cheatfate | and always saying `i dont think that's true` about my messages? |
17:17:31 | cheatfate | this is not `rude`? |
17:17:56 | dom96 | Saying that I disagree with what you are saying certainly isn't. |
17:18:31 | dom96 | And I most definitely don't disagree with everything you ever say here. |
17:19:04 | cheatfate | dom96, ok, lets calm down, with what you disagree? |
17:19:17 | cheatfate | 1) fsmonitor will not have bsd/windows support in near future? |
17:19:37 | cheatfate | 2) kqueue EVFILT_VNODE is totally incompatible with readdirectorychangesw/inotify? |
17:20:03 | * | freezerburnv quit (Ping timeout: 240 seconds) |
17:22:05 | ephja | rewrite then? |
17:22:19 | ephja | maybe I'll have to be that somebody. looking at it now |
17:22:22 | dom96 | Neither. My point is simply that it's not impossible to write a cross-platform file-system monitoring module/library. |
17:25:32 | cheatfate | of course its not impossible, and i never told that its impossible... i just said fsmonitor will not have cross-platform capabilities in near future |
17:27:32 | * | Trustable quit (Remote host closed the connection) |
17:28:24 | cheatfate | because even if i start to make it i will make it asynchronous |
17:28:34 | dom96 | You never said "in near future" |
17:31:03 | dom96 | But I can appreciate your intent now, I shouldn't have said anything, sorry. |
17:51:29 | * | brechtm_ joined #nim |
17:54:27 | * | brechtm quit (Ping timeout: 264 seconds) |
17:56:15 | * | brechtm_ quit (Ping timeout: 264 seconds) |
17:57:21 | * | akamaus joined #nim |
18:00:40 | * | desophos quit (Read error: Connection reset by peer) |
18:12:20 | * | PMunch joined #nim |
18:28:03 | * | xet7 quit (Read error: Connection reset by peer) |
18:28:30 | * | xet7 joined #nim |
18:29:34 | * | Jesin quit (Quit: Leaving) |
18:30:23 | * | xet7 quit (Client Quit) |
18:30:48 | * | brechtm joined #nim |
18:40:25 | * | brechtm quit (Remote host closed the connection) |
18:46:13 | * | yglukhov joined #nim |
18:48:31 | * | brechtm joined #nim |
18:50:30 | * | minus quit (Ping timeout: 276 seconds) |
18:54:40 | * | brechtm quit (Remote host closed the connection) |
19:00:49 | * | Aqualan joined #nim |
19:01:02 | * | Aqualan left #nim (#nim) |
19:05:33 | * | kingofoz quit (Ping timeout: 240 seconds) |
19:05:53 | * | kingofoz joined #nim |
19:16:42 | * | minus joined #nim |
19:22:47 | * | Matthias247 joined #nim |
19:23:36 | ldlework | which is the preferred sdl2 library to use? |
19:26:04 | * | yglukhov quit (Remote host closed the connection) |
19:26:49 | * | minus quit (Quit: Bye) |
19:28:05 | federico3 | ldlework: I'm using https://github.com/nim-lang/sdl2 and it works - just my 2 cents |
19:28:32 | ldlework | federico3: what you doing with sdl |
19:32:53 | federico3 | a game based on https://hookrace.net/blog/writing-a-2d-platform-game-in-nim-with-sdl2/ |
19:33:15 | * | minus joined #nim |
19:34:16 | ldlework | cool |
19:34:24 | ldlework | federico3: can I play it? |
19:35:40 | federico3 | it's not published yet but I can send you a copy |
19:41:07 | * | endragor joined #nim |
19:48:47 | * | yglukhov joined #nim |
20:07:58 | * | endragor quit (Remote host closed the connection) |
20:24:52 | * | Salewski joined #nim |
20:25:39 | Salewski | https://github.com/costajob/app-servers # Nim has lowest memory consumption! |
20:30:34 | namnguyen | it's worrisome that Nim is slower than Java |
20:39:25 | * | Salewski quit () |
20:45:21 | federico3 | I wouldn't read too much into it. |
20:49:01 | ldlework | put millions of dollars and decades of optimization into Nim and we'll see where they stand |
20:53:08 | * | Matthias247 quit (Quit: Matthias247) |
20:54:59 | namnguyen | you seem to forget that gcc have been enjoying decades of optimization |
20:56:23 | namnguyen | and i would in general expect an AOT compilation to be at least as good as JIT |
20:59:32 | federico3 | namnguyen: nothing remotely comparable to the investments on the JVM |
21:00:03 | namnguyen | federico3, how confident are you with that statement? |
21:00:31 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:00:57 | namnguyen | afaik, gcc was at 2 series way before Java became generally available |
21:03:28 | * | kulelu88 joined #nim |
21:03:28 | * | kulelu88 quit (Changing host) |
21:03:28 | * | kulelu88 joined #nim |
21:04:28 | * | akamaus quit (Ping timeout: 250 seconds) |
21:07:32 | * | fvs left #nim ("ERC (IRC client for Emacs 24.5.1)") |
21:08:57 | * | kingofoz quit (Ping timeout: 276 seconds) |
21:09:42 | * | kingofoz joined #nim |
21:15:48 | * | kulelu88 quit (Quit: Leaving) |
21:20:09 | PMunch | ldlework, I've been working on running sdl2 on Android with Nim for games as well.Working pretty good so far |
21:24:30 | federico3 | PMunch: d'you have any manual on how to build and deploy Nim on android? |
21:24:48 | PMunch | Not as of yet |
21:24:58 | PMunch | But it's in the pipes |
21:25:43 | PMunch | You can poke around in my repo if you like: https://github.com/PMunch/nim-sdl-template |
21:26:15 | PMunch | Disregard the README, it's an old repo I forked from brecthm who forked it from yglukhov |
21:26:34 | PMunch | That being said nimx runs on Androids as well |
21:26:57 | PMunch | But it's geared towards GUI while what I'm doing is more against games |
21:27:53 | * | yglukhov quit (Remote host closed the connection) |
21:29:00 | PMunch | "Despite i was expecting Nim to support parallelism, it clearly does not." - what does he mean by that? |
21:30:14 | * | Jesin joined #nim |
21:35:34 | Araq | no idea. |
21:38:18 | ldlework | who said that? |
21:41:26 | ephja | iup is in the standard library too? |
21:52:05 | Araq | yeah |
21:58:21 | * | pafmaf quit (Ping timeout: 276 seconds) |
22:02:42 | PMunch | Araq, it was from a link Salewski posted here at 22:25 |
22:02:55 | PMunch | https://github.com/costajob/app-servers |
22:03:18 | Araq | oh! somebody is wrong on the internet! |
22:03:27 | Araq | surprise, surprise. |
22:04:46 | Araq | on the other hand, nim's web server is indeed not multi-threaded |
22:05:37 | PMunch | Aah, makes sense then in the context |
22:06:08 | PMunch | But it made it seem like he meant that Nim itself does not support multi-threading |
22:07:46 | * | Trustable joined #nim |
22:13:17 | * | Matthias247 joined #nim |
22:17:28 | ephja | why isn't getLastError used when DLL loading fails? |
22:25:18 | Araq | why would it? |
22:26:28 | PMunch | Where did this function go in the wrapper: https://wiki.libsdl.org/SDL_IntersectRect |
22:26:58 | ephja | because then you know why it fails, at least when there's an architecture mismatch |
22:28:23 | * | yglukhov joined #nim |
22:28:50 | ephja | I thought someone implied that it wasn't possible |
22:34:03 | * | yglukhov quit (Ping timeout: 264 seconds) |
22:46:53 | * | ephja quit () |
23:01:57 | * | PMunch quit (Quit: leaving) |
23:03:38 | * | vktec quit (Ping timeout: 250 seconds) |
23:08:01 | * | vktec joined #nim |
23:09:26 | dom96 | costajob's results seem strange |
23:10:02 | dom96 | parallel Go slower than single-core Crystal? that seems unlikely. |
23:15:38 | cheatfate | dom96, tests completed on osx... that's mean they are not very accurate at all, when i have benchmarked asynchttpserver on macos its almost twice slower than asynchttpserver on freebsd... |
23:21:58 | * | Trustable quit (Remote host closed the connection) |
23:22:15 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:24:40 | dom96 | cheatfate: but surely if all the tests are performed on the same machine then the comparison is correct? |
23:27:55 | * | fastrom joined #nim |
23:33:42 | * | nsf quit (Ping timeout: 260 seconds) |
23:35:19 | * | nsf joined #nim |
23:35:54 | * | benwbooth quit (Read error: Connection reset by peer) |
23:41:40 | * | benwbooth joined #nim |
23:57:02 | * | arnetheduck quit (Read error: Connection reset by peer) |
23:57:17 | * | arnetheduck joined #nim |