<< 05-12-2015 >>

00:02:02*nastavnic quit (Ping timeout: 260 seconds)
00:12:24*kulelu88 quit (Quit: Leaving)
00:17:16*elrood quit (Quit: Leaving)
00:28:09*desophos quit (Remote host closed the connection)
00:29:48*desophos joined #nim
00:32:03*desophos quit (Remote host closed the connection)
00:33:36*desophos joined #nim
00:35:47*yglukhov joined #nim
00:37:58*desophos quit (Ping timeout: 260 seconds)
00:40:02*yglukhov quit (Ping timeout: 246 seconds)
00:40:41*Sahnvour quit (Read error: Connection reset by peer)
00:49:28*desophos joined #nim
00:50:03*desophos_ joined #nim
00:54:18*desophos quit (Ping timeout: 260 seconds)
00:58:12*nastavnic joined #nim
00:59:55*jakesyl quit (Ping timeout: 260 seconds)
01:03:39*nastavnic quit (Ping timeout: 260 seconds)
01:06:48*Matthias247 quit (Read error: Connection reset by peer)
01:08:57*Demon_Fox joined #nim
01:13:08*jakesyl joined #nim
01:27:29*jackv quit (Ping timeout: 244 seconds)
01:27:46*jackv joined #nim
01:40:28pilnehmmm, this is going to take a bit more learning first on my part if i want to make it quality and good, but i am definitely going to dig into it
01:59:51*devzerp quit (Remote host closed the connection)
01:59:51*no_name quit (Remote host closed the connection)
02:00:14*nastavnic joined #nim
02:03:58*devzerp joined #nim
02:03:58*no_name joined #nim
02:04:47*nastavnic quit (Ping timeout: 260 seconds)
02:15:26*devzerp quit (Remote host closed the connection)
02:15:26*no_name quit (Remote host closed the connection)
02:17:20*brson quit (Quit: leaving)
02:17:58*no_name joined #nim
02:17:58*devzerp joined #nim
02:38:09*yglukhov joined #nim
02:42:35*yglukhov quit (Ping timeout: 260 seconds)
02:44:25*zepolen joined #nim
02:45:38*zepolen quit (Remote host closed the connection)
02:45:41*Trustable_2 quit (Ping timeout: 246 seconds)
02:46:34*zepolen joined #nim
02:47:39*Trustable_2 joined #nim
02:53:57*vikaton joined #nim
02:55:13reactormonkpilne, feel free to ask questions here
02:56:54*Trustable_2 quit (Remote host closed the connection)
03:00:43pilnei was talking about putting together some linux binaries for nim (and maintaining them of course), but it isn't quite as automated as the "hype" page for openSUSE's build service makes it seem is all (:
03:01:15*nastavnic joined #nim
03:05:54*nastavnic quit (Ping timeout: 260 seconds)
03:11:00*desophos_ is now known as desophos
03:16:08*nicktick joined #nim
03:42:58*pilne quit (Quit: Quit!)
03:48:16*pilne joined #nim
03:56:49*vendethiel quit (Ping timeout: 245 seconds)
04:02:00*nastavnic joined #nim
04:06:24*nastavnic quit (Ping timeout: 245 seconds)
04:19:59*vendethiel joined #nim
04:30:42*pilne quit (Quit: Quit!)
04:36:56*pilne joined #nim
04:39:46*yglukhov joined #nim
04:40:02*pilne quit (Client Quit)
04:42:55*pilne joined #nim
04:43:26*vendethiel quit (Ping timeout: 260 seconds)
04:43:59*yglukhov quit (Ping timeout: 246 seconds)
04:49:57*lawnchair_ joined #nim
05:03:01*nastavnic joined #nim
05:04:18*darkf joined #nim
05:07:39*nastavnic quit (Ping timeout: 245 seconds)
06:02:30*porchswing joined #nim
06:03:58*lawnchair_ quit (Quit: Page closed)
06:04:00*nastavnic joined #nim
06:08:20*nastavnic quit (Ping timeout: 246 seconds)
06:11:27*pilne quit (Quit: Quit!)
06:12:16*pilne joined #nim
06:41:51*nicktick1 joined #nim
06:42:26*yglukhov joined #nim
06:44:33*nicktick2 joined #nim
06:45:14*nicktick quit (Ping timeout: 260 seconds)
06:47:39*nicktick1 quit (Ping timeout: 245 seconds)
06:47:53*yglukhov quit (Ping timeout: 246 seconds)
06:49:45*pilne quit (Quit: Quit!)
07:04:49*nastavnic joined #nim
07:08:34*girvo_ joined #nim
07:09:31*nastavnic quit (Ping timeout: 260 seconds)
07:30:21*johnsoft quit (Read error: Connection reset by peer)
07:31:07*desophos quit (Read error: Connection reset by peer)
07:51:58*girvo_ quit (Ping timeout: 260 seconds)
07:55:59*yglukhov joined #nim
08:00:09*yglukhov quit (Ping timeout: 245 seconds)
08:05:33*nastavnic joined #nim
08:10:08*nastavnic quit (Ping timeout: 246 seconds)
08:25:40*porchswing quit (Quit: Leaving)
08:48:40*Demon_Fox quit (Quit: Leaving)
09:06:15*Arrrr joined #nim
09:06:33*nastavnic joined #nim
09:11:18*nastavnic quit (Ping timeout: 260 seconds)
09:30:26*BitPuffin|osx quit (Ping timeout: 260 seconds)
09:32:23*Arrrr quit (Ping timeout: 246 seconds)
09:36:24*Arrrr joined #nim
09:37:18*Matthias247 joined #nim
09:38:20*makoLine quit (Ping timeout: 246 seconds)
10:07:17*nastavnic joined #nim
10:11:58*nastavnic quit (Ping timeout: 260 seconds)
10:22:05*barosl joined #nim
10:34:00*jaco60 joined #nim
10:41:44*ephja joined #nim
10:54:50*Trustable joined #nim
10:58:34*barosl quit (Quit: Leaving)
11:07:36*HakanD joined #nim
11:07:45*vendethiel joined #nim
11:08:01*Ven joined #nim
11:08:23*nastavnic joined #nim
11:12:39*Ven quit (Ping timeout: 245 seconds)
11:13:07*nastavnic quit (Ping timeout: 260 seconds)
11:14:19*Trustable_2 joined #nim
11:14:58*Trustable quit (Ping timeout: 260 seconds)
11:19:06*Trustable joined #nim
11:19:39*Trustable_2 quit (Ping timeout: 260 seconds)
11:19:50*Matthias247 quit (Read error: Connection reset by peer)
11:20:48*xet7 quit (Quit: Leaving)
11:26:35*Trustable_2 joined #nim
11:29:17*Trustable quit (Ping timeout: 246 seconds)
11:34:37*girvo_ joined #nim
11:41:41*yglukhov joined #nim
11:42:14*elrood joined #nim
11:45:44*yglukhov quit (Ping timeout: 246 seconds)
11:50:26*girvo_ quit (Ping timeout: 260 seconds)
11:53:13*nastavnic joined #nim
12:22:37*Salewski joined #nim
12:24:51SalewskiIs there something like Ruby's each_cons() available for Nim array and sequences? See http://ruby-doc.org/core-2.2.0/Enumerable.html#method-i-each_cons
12:29:54SalewskiAnd, while I am still logged in: Latest Nim seems to support bitfields. Can c2nim already convert C bitfields for Nim? See http://nim-lang.org/docs/manual.html#implementation-specific-pragmas-bitsize-pragma
12:29:59*Salewski quit ()
12:31:07Araqyeah I think c2nim was patched to support it
12:31:59Araqthere is no each_cons, you have to add it
12:33:04*silven quit (Ping timeout: 245 seconds)
12:33:23*silven joined #nim
12:36:35*Salewski joined #nim
12:38:32SalewskiGreat -- I will install latest c2nim soon, bitfield support will save a lot work for all the GTK related wrappers!
12:43:32Araqhow much work is it to use pango without gtk?
12:43:56Araqgot my own widgets based on SDL2 but font rendering sucks
12:44:12Araqso I wonder what it takes to move the font rendering over to pango
12:45:53SalewskiPango should work without GTK. I have used it with Cairo only.
12:47:34Araqyeah but I have no cairo context
12:48:05Araqbut an SDL context and I have no idea how to transform different contexts
12:48:07SalewskiFor Pango and SDL2 we may have to ask in pango mailing list.
12:48:47SalewskiHave never used SDL2, sorry.
12:54:02*Trustable_2 quit (Remote host closed the connection)
12:59:09*yglukhov joined #nim
12:59:56*jakesyl quit (Ping timeout: 246 seconds)
13:11:54*aziz joined #nim
13:12:59SalewskiSDL2 with pango seems to be not very popular, but OpenGl and Pango gave me some more Google hits. Maybe see http://cairographics.org/OpenGL/ section "General approach"
13:13:06SalewskiBye...
13:13:10*Salewski quit ()
13:13:22*jakesyl joined #nim
13:15:41*barosl joined #nim
13:22:14*nastavnic quit (Ping timeout: 245 seconds)
13:27:24*zepolen quit (Read error: Connection reset by peer)
13:32:05*zepolen joined #nim
13:43:56*barosl quit (Quit: Leaving)
13:44:29*barosl joined #nim
14:01:29*HakanD quit (Quit: Be back later ...)
14:18:46*nastavnic joined #nim
14:20:55*boopsiesisaway is now known as boopsies
14:22:36*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
14:23:33*bjz joined #nim
14:25:22*nastavnic quit (Ping timeout: 260 seconds)
14:27:23*desophos joined #nim
14:32:50*jaco60 quit (Ping timeout: 260 seconds)
14:33:15*Trustable joined #nim
14:40:05*jaco60 joined #nim
14:40:49*bjz_ joined #nim
14:41:14*bjz quit (Ping timeout: 260 seconds)
14:41:31*HakanD joined #nim
14:43:07*Trustable_2 joined #nim
14:45:26*Trustable quit (Ping timeout: 260 seconds)
14:47:38*nastavnic joined #nim
14:47:57*nastavnic quit (Client Quit)
14:53:25*HakanD quit (Quit: Be back later ...)
14:53:47*Trustable_2 quit (Quit: Leaving)
14:54:47*Arrrr quit (Ping timeout: 260 seconds)
15:04:44*yglukhov quit (Remote host closed the connection)
15:10:29*gokr quit (Ping timeout: 246 seconds)
15:31:11*yglukhov joined #nim
15:34:55*HakanD joined #nim
15:45:05*Arrrr joined #nim
16:11:16*nicktick2 quit (Quit: Leaving.)
16:17:19*elrood quit (Quit: Leaving)
16:19:50*gokr joined #nim
16:20:18*BitPuffin|osx joined #nim
16:25:15*pilne joined #nim
16:26:04*Trustable joined #nim
16:30:17*aziz quit (Remote host closed the connection)
16:30:43*theduke joined #nim
16:34:48*HakanD quit (Quit: Be back later ...)
16:43:15federico3dom96: ever benchmarked the tcp/http/asynchttp servers? I'd be curious to have a bench using SO_REUSEPORT
16:43:45dom96federico3: yes, benchmarking is difficult and I found rather unreliable most of the time.
16:43:48dom96*found it
16:44:43*Matthias247 joined #nim
16:47:02*Trustable_2 joined #nim
16:48:11*Trustable quit (Ping timeout: 260 seconds)
16:48:33*n1ftyn8_ quit (Read error: Connection reset by peer)
16:48:47*yglukhov quit (Remote host closed the connection)
16:49:39*n1ftyn8_ joined #nim
16:49:44federico3why is it unreliable? Are you running benchmarks on shared hardware?
17:41:15*Matthias247 quit (Read error: Connection reset by peer)
17:44:22*mikolalysenko quit (Read error: Connection reset by peer)
17:44:45*mikolalysenko joined #nim
17:59:06*jaco60 quit (Ping timeout: 260 seconds)
17:59:30*jaco60 joined #nim
18:06:13*irrequietus joined #nim
18:34:02*darkf quit (Quit: Leaving)
18:35:55*mat4 joined #nim
18:35:59mat4hello
18:36:35Araqservus
18:42:09*mat4 is now known as mat4-work
18:59:50*HakanD joined #nim
19:00:24*barosl quit (Quit: Leaving)
19:15:16*pilne quit (Quit: Quit!)
19:15:58*pilne joined #nim
19:16:06*irrequietus quit (Ping timeout: 260 seconds)
19:17:41*irrequietus joined #nim
19:41:28*makoLine joined #nim
19:46:07*mat4-work is now known as mat4
19:51:23dom96federico3: yeah, I tried to do it in a local virtual machine and that resulted in strange measurements. That was when I only had a Windows machine.
19:51:42dom96My plan was to take some time and buy a 16 core VPS for a couple of hours
19:51:50dom96to do benchmarks on it
19:51:56dom96but never got around to it
20:11:28cryzedhttps://gist.github.com/cryzed/d83753696cf7e1815465
20:11:36cryzedI am trying to use the nre library, because re doesn't work anymore
20:11:57cryzedbut when trying to do this I get an error saying: type mismatch: got (Option[nre.RegeMex])
20:12:00cryzedwhat am I doing wrong?
20:14:40cryzedsorry, the last thing should be named captures
20:14:42cryzedstill the same error
20:15:49cryzedah huh, I had to import "options"
20:16:30cryzedIt has happened twice now that I had to import some obscure package that I'm not using myself, but rather just a module that I'm importing, so I can get that module to work
20:16:33cryzednot my favorite feature of nim
20:16:51cryzedor rather not my favorite thing that they aren't re-exporting the stuff they need
20:17:46ArrrrThat should not happen
20:18:46*HakanD quit (Quit: Be back later ...)
20:19:02cryzedIt does for the nre module. When I only import nre I can't use the examples shown in the readme (i.e. a simple match-thing)
20:19:09cryzedThe readme doesn't say to import the options module
20:19:18cryzedbut after doing so I can use the .get proc
20:19:29ArrrrWell it is a mistake of the readme then
20:19:44cryzedOr the module for not re-exporting the get proc
20:19:46cryzedright?
20:20:44ArrrrIn a way you are right, if that module must be used with options, maybe it should export it. But, on the other hand, you wouldn't know half of the time what is being imported
20:20:52ArrrrI think it is better if explicit
20:21:37cryzedThen it needs to be noted somewhere definitely. Coming from an admittedly completely different language Python, it would just make sense to import a module and then you can use all classes, methods and functions from that module
20:21:49cryzedwithout having to worry about not importing runtime module dependencies for the module you just imported
20:21:52cryzedjust seems counterintuitive
20:22:40mat4cryzed: this is the functionality of 'include'
20:22:57ArrrrYes, it could be counterintuitive. I have to say on the otherhand this is the way other programmin languages work, like java, c#, blahblah
20:23:10cryzedmat4, so I need to use include or the module that I import?
20:23:57cryzedArrrr, java works that way too?
20:24:14cryzedI didn't notice, maybe because of the IDE support
20:24:32ArrrrGo ahead with import. It is part of the philosophy of python to save you the typing.
20:24:44ArrrrYes, eclipse usually autoimport needed classes
20:26:57*Arrrr quit (Quit: WeeChat 1.2)
20:26:58mat4cryzed: Never done, just try it out
20:27:25cryzedmat4, thank you but using include seems like the wrong place for it. Now that I understand the problem better I'm fine with using include
20:30:33cryzedeh
20:30:34cryzedimport
20:44:50federico3dom96: dude, no. You really need a physical host with nothing running other than the benchmark
20:45:42dom96federico3: Don't you need two hosts, one to host the server the other to do the benchmarking?
20:45:51dom96If you want to get really reliable :)
20:46:14federico3usually not, but it depends what you are benchmarking
20:52:58cryzedhttps://gist.github.com/cryzed/1ff1a6f3b0e33d6a829d Why does the compiler tell me "attempting to call undeclared routine TokenRegex"?
20:53:05cryzedIsn't TokenRegex defined just above as a tuple-type
20:55:58*irrequietus quit (Ping timeout: 260 seconds)
20:58:24cryzedgot it, I didn't even need to define the type
20:58:58*yglukhov joined #nim
21:02:56*yglukhov quit (Remote host closed the connection)
21:08:34*jaco60 quit (Ping timeout: 260 seconds)
21:10:50*jaco60 joined #nim
21:15:01*irrequietus joined #nim
21:24:17*lazypenguin quit (Ping timeout: 246 seconds)
21:25:22*jaco60 quit (Ping timeout: 260 seconds)
21:33:58*lazypenguin joined #nim
21:35:26*jaco60 joined #nim
21:41:44*joelmo joined #nim
22:10:33*pilne quit (Quit: Quit!)
22:12:01cryzedIs is better/more efficient to use let within a loop, or to create a var outside the loop and reassign to that var within the loop?
22:13:26Araqusually 'let', cryzed
22:14:30cryzedAraq, how come? Am I not creating a new variable / reference each time I'm entering the loop?
22:14:35cryzedIs it optimized out?
22:14:39cryzedSorry some of the details are lost on me
22:15:06*zepolen quit (Remote host closed the connection)
22:15:11Araqyes.
22:15:21Araqthe compiler optimizes it. (usually)
22:15:54cryzedAraq, ah ok :)
22:17:57cryzedAraq, do you know if new development on Aporia is planned, or if some "standard" IDE is being worked on somewhere in the community? Having something like JetBrain's/Eclipse IDE would be a huge boon -- but of course insanely much work
22:19:31AraqI
22:19:49Araqam working on 'nimedit' from time to time but it's highly opinionated software
22:20:53cryzedAraq, can you elaborate what you mean by opinionated? If it's good opinons I suppose that's fine :D
22:21:58cryzedand I suppose the project still lives within a private repository? Google doesn't turn anything ip
22:22:00cryzed*up
22:22:08Araqhttp://nim-lang.org/nimedit/
22:22:16Araqno, it's closed source for now.
22:22:31Araqand hardly usable hence I didn't announce it
22:22:50AraqI might release 0.9.6 tonight though if I can fix the layouting bugs
22:25:09cryzedAraq, that looks very interesting :)! Color me interested
22:28:37Araqthanks :-)
22:31:29cryzedAraq, http://i.imgur.com/1naeExJ.png I got it to work!
22:32:07Araqha, that version still has "unicode" pragmas
22:32:22AraqI disabled them since they are buggy as you can see
22:32:27cryzedyou mean the } ?
22:32:39Araq {. is a ligature for nimedit
22:32:50Araqand .} sometimes is :P
22:33:02*jaco60 quit (Ping timeout: 260 seconds)
22:33:06cryzedah I see. You wanted a special symbol since it's part of the Nim compiler-hint syntax
22:33:14cryzedand so you tried to do that with ligatures?
22:33:33AraqI just played with what can be done in a custom editor really
22:33:52Araqand since a couple of people complain about Nim's pragmas
22:34:03Araqthat they are ugly, I thought "why not, let's try it"
22:34:31cryzedWhat? People complain about having to type {. and .}?...
22:34:41Araqyeah
22:34:45cryzedheh
22:34:46Araqand that it looks ugly
22:34:55cryzedI don't think so
22:35:04cryzedultimatively it's subjective
22:35:16AraqI find these unicode {} curlies really sexy
22:35:26Araqbut dom96 doesn't like them
22:35:48cryzedhaha :D
22:36:04cryzedAraq, I assume changing the font isn't possible as of yet?
22:36:06*jaco60 joined #nim
22:36:11dom96:P
22:36:23Araqcryzed: type 'config' in the prompt
22:36:36Araqbut nimedit needs to find your font
22:36:44cryzedAlso I would love if oyu continued working on this -- and possibly make it a bit more well-known at some point. I feel that having a go-to IDE for Nim when just starting would really help adoption. The current state of Nimsuggest integration across various editor is unfortunately a bit... messy
22:37:01cryzedwhoops
22:37:02cryzedit crashed
22:37:03cryzed:D
22:37:38cryzedWhere does it check for the font files?
22:37:45mat4readability =: fø2.ł1,20
22:37:46cryzednext to the executable? current working dir?
22:38:16AraqI don't know, you use 0.9.4
22:38:21Araqwhich is archaic
22:38:24Araq:P
22:38:28cryzedWell there's no newer release as of yet! :D
22:42:08*boopsies is now known as boopsiesisaway
22:50:46*jaco60 quit (Ping timeout: 260 seconds)
22:52:04*dom96 holds up a little sign with "Aporia" written on it
22:52:21*nchambers squints
22:52:29nchamberswhat does that homeless guy's sign say?
22:52:50*zemm left #nim ("tui tui")
22:56:17*jaco60 joined #nim
22:56:21*mat4 quit (Quit: Leaving)
23:06:30*gokr quit (Read error: Connection reset by peer)
23:06:40*gokr joined #nim
23:52:52*bjz joined #nim
23:54:14*bjz_ quit (Ping timeout: 260 seconds)