<< 07-07-2016 >>

00:06:36cheatfateAraq, looks like not very easy as u think
00:06:50Araqhow come?
00:10:50*brson quit (Ping timeout: 272 seconds)
00:23:30cheatfateAraq, sorry but i can't help you with this warnings
00:23:42cheatfatetoo complex for me at night
00:24:37cheatfatei dont understand why it `void (__cdecl *)()`
00:41:07*desophos joined #nim
00:44:35*wuehlmaus quit (Quit: Lost terminal)
00:51:17Araqok np
00:51:22Araqgood 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:51dyce_how do you create a stically linked binary?
01:51:54dyce_statically
01:52:32dyce_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:32ftsf_dyce_, don't you get a statically linked binary by default from nim?
02:55:38dyce_ftsf_: im not all too clear, like for example openssl generally is dynamically linked?
02:58:25ftsf_have a look at the output executable and see what it links
02:58:54ftsf_using ldd
02:58:58ftsf_(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:48yglukhovAraq: 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:54yglukhovdoes 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:22icebattleAnyone built nim on cygwin lately?
16:05:30flyxdamn, there should be a big banner somewhere in the Nim docs „never use `== nil`“
16:06:49yglukhovicebattle: using mingw a lot if that matters
16:07:47icebattleyglukhov: Good idea - I'll try that
16:10:51*yglukhov quit (Ping timeout: 240 seconds)
16:19:24*freezerburnv joined #nim
16:21:43cheatfateAraq, something bad happens in GC while in windows multithreading breaking with Ctrl+C
16:27:15*fvs joined #nim
16:28:29fvshi, can someone point me the way to implement a timer that calls a function after say 300 seconds.
16:32:15cheatfatefvs, `man timer_create`?
16:32:59*xet7_ quit (Read error: Connection reset by peer)
16:33:30ephjaflyx: isn't the only difference between that and isNil the overhead for closures?
16:34:04ephjamight as well use that though in any case
16:35:27flyxephja: just fixed a bug in NimYAML that stemmed from the problem that the tables module overloads `==`
16:35:57flyxand said `==` may raise a KeyError, but the generic proc I used it in defines {.raises: [].}
16:36:34flyxso the proc didn't compile with a Table, because of the KeyError
16:36:53ephjait shouldn't be defined for refs imo
16:37:06flyx(I also created a pull request to stop `==` raising a KeyError because that's stupid)
16:37:08ephjaI mean overloaded
16:37:18ephjaright
16:37:42flyxbut that bug was a hard one to find
16:39:32ephjaok
16:41:16flyxanyway, 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:37ephjasome 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:05ephjaflyx: I forgot about 'is'
16:42:39ephjawait
16:43:57fvscheatfate: thanks, I see it now in the posix module
16:44:24cheatfatefvs, but this is only for linux/bsd... not windows
16:44:32ephjaflyx: nevermind that :p
16:44:35fvsyep
16:45:34ephjaAre there actual cases where one might want to overload == for references rather than values?
16:46:44flyxno, but references automatically dereference, so a `==` on values will still be called with references
16:47:32ephjareally? ok
16:47:39ephjais this a special case?
16:48:34flyxI 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:55ephjaflyx: that doesn't seem right, and I haven't been able to replicate this supposed implicit dereference
16:55:52cheatfateephja, i dont think fsmonitor will have windows support
16:56:12flyxa right, I just saw that the tables module explicitly defines it
16:56:17flyxmy bad
16:56:40cheatfateephja, or bsd/macos support
16:58:17*nsf joined #nim
16:59:40ephjacheatfate: why not?
17:00:00*yglukhov joined #nim
17:01:13cheatfateephja, mostly because of differences in os interfaces
17:02:33ephjaoops missed the warning about the planned migration to a nimble package
17:02:48*ozra__ joined #nim
17:04:03ephjaflyx: 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:16ephjathen then then
17:04:24flyxephja: that was not the issue at all
17:04:42flyxit didn't compile because the compiler deduced `==` can raise a KeyError
17:05:12flyxand that wasn't allowed in the context where it was called
17:11:37dom96cheatfate: I don't think that's true. You can get a pretty sane common interface.
17:12:53cheatfatedom96, lol, if you think so why your fsmonitor has only linux support?
17:13:13dom96cheatfate: Why do you think?
17:13:24dom96cheatfate: Because I never got the time to finish it
17:15:37cheatfatedom96, lol again
17:15:54cheatfatedom96, you have added fsmonitor at 2012
17:15:54*xet7 quit (Read error: Connection reset by peer)
17:16:13cheatfatei also know Varriount made fsmonitor for windows
17:16:25cheatfatebut there no fsmonitor for kqueue
17:16:26ephjayeah but maybe he's addicted to tibia
17:16:37ephjadidn't know that
17:16:39dom96cheatfate: Saying 'lol' repeatedly is very rude.
17:16:40*xet7 joined #nim
17:16:56cheatfatedom96, maybe because you always trying to opposite me?
17:17:24cheatfateand always saying `i dont think that's true` about my messages?
17:17:31cheatfatethis is not `rude`?
17:17:56dom96Saying that I disagree with what you are saying certainly isn't.
17:18:31dom96And I most definitely don't disagree with everything you ever say here.
17:19:04cheatfatedom96, ok, lets calm down, with what you disagree?
17:19:17cheatfate1) fsmonitor will not have bsd/windows support in near future?
17:19:37cheatfate2) kqueue EVFILT_VNODE is totally incompatible with readdirectorychangesw/inotify?
17:20:03*freezerburnv quit (Ping timeout: 240 seconds)
17:22:05ephjarewrite then?
17:22:19ephjamaybe I'll have to be that somebody. looking at it now
17:22:22dom96Neither. My point is simply that it's not impossible to write a cross-platform file-system monitoring module/library.
17:25:32cheatfateof 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:24cheatfatebecause even if i start to make it i will make it asynchronous
17:28:34dom96You never said "in near future"
17:31:03dom96But 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:36ldleworkwhich 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:05federico3ldlework: I'm using https://github.com/nim-lang/sdl2 and it works - just my 2 cents
19:28:32ldleworkfederico3: what you doing with sdl
19:32:53federico3a game based on https://hookrace.net/blog/writing-a-2d-platform-game-in-nim-with-sdl2/
19:33:15*minus joined #nim
19:34:16ldleworkcool
19:34:24ldleworkfederico3: can I play it?
19:35:40federico3it'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:39Salewskihttps://github.com/costajob/app-servers # Nim has lowest memory consumption!
20:30:34namnguyenit's worrisome that Nim is slower than Java
20:39:25*Salewski quit ()
20:45:21federico3I wouldn't read too much into it.
20:49:01ldleworkput 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:59namnguyenyou seem to forget that gcc have been enjoying decades of optimization
20:56:23namnguyenand i would in general expect an AOT compilation to be at least as good as JIT
20:59:32federico3namnguyen: nothing remotely comparable to the investments on the JVM
21:00:03namnguyenfederico3, how confident are you with that statement?
21:00:31*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:00:57namnguyenafaik, 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:09PMunchldlework, I've been working on running sdl2 on Android with Nim for games as well.Working pretty good so far
21:24:30federico3PMunch: d'you have any manual on how to build and deploy Nim on android?
21:24:48PMunchNot as of yet
21:24:58PMunchBut it's in the pipes
21:25:43PMunchYou can poke around in my repo if you like: https://github.com/PMunch/nim-sdl-template
21:26:15PMunchDisregard the README, it's an old repo I forked from brecthm who forked it from yglukhov
21:26:34PMunchThat being said nimx runs on Androids as well
21:26:57PMunchBut 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:00PMunch"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:34Araqno idea.
21:38:18ldleworkwho said that?
21:41:26ephjaiup is in the standard library too?
21:52:05Araqyeah
21:58:21*pafmaf quit (Ping timeout: 276 seconds)
22:02:42PMunchAraq, it was from a link Salewski posted here at 22:25
22:02:55PMunchhttps://github.com/costajob/app-servers
22:03:18Araqoh! somebody is wrong on the internet!
22:03:27Araqsurprise, surprise.
22:04:46Araqon the other hand, nim's web server is indeed not multi-threaded
22:05:37PMunchAah, makes sense then in the context
22:06:08PMunchBut 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:28ephjawhy isn't getLastError used when DLL loading fails?
22:25:18Araqwhy would it?
22:26:28PMunchWhere did this function go in the wrapper: https://wiki.libsdl.org/SDL_IntersectRect
22:26:58ephjabecause then you know why it fails, at least when there's an architecture mismatch
22:28:23*yglukhov joined #nim
22:28:50ephjaI 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:26dom96costajob's results seem strange
23:10:02dom96parallel Go slower than single-core Crystal? that seems unlikely.
23:15:38cheatfatedom96, 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:40dom96cheatfate: 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