<< 16-05-2015 >>

00:25:15*jholland quit (Quit: Connection closed for inactivity)
00:27:29*saml_ joined #nim
00:29:05Varriountonionhammer: Try now.
00:29:10Senketsudoes anyone know of some newer gtk2 32bit lib for windows ? (the latest i found is 2.24.10 from 2k12)
00:29:28Senketsuand that one is kinda fu*ed
00:29:50VarriountSenketsu: By 'lib' do you mean a Nim wrapper for gtk2, or an actual gtk2 dll?
00:30:06*jbomo joined #nim
00:30:19*Jehan_ quit (Quit: Leaving)
00:30:36*Trustable quit (Remote host closed the connection)
00:30:40*boydgreenfield quit (Quit: boydgreenfield)
00:31:12Senketsuactual dlls
00:31:40VarriountSenketsu: I'm assuming you mean for windows?
00:33:44VarriountIf so, then you'll have to build a newer version yourself, or ask someone in the gtk channel (I'm assuming there is one on freenode, somewhere)
00:34:23VarriountSenketsu: If you're trying to use Aporia, then just download the installer. Building gtk2 from source is no easy task.
00:36:11Senketsujust wanted to know if by any chance someone knew.. thats all
00:41:07*intra joined #nim
00:42:14*intra is now known as kdr
01:02:29*dvlwrk joined #nim
01:07:40*dvlwrk quit (Quit: Leaving)
01:08:47*Matthias247_ quit (Read error: Connection reset by peer)
01:15:32*darkf joined #nim
01:23:02*vendethiel quit (Ping timeout: 272 seconds)
01:28:25*vendethiel joined #nim
01:44:06*dtscode quit (Remote host closed the connection)
01:45:34*anon48102190 joined #nim
01:45:47anon48102190hey everyone
01:46:04anon48102190having some trouble with custom types in nim
01:46:20*mrkishi quit ()
01:47:13anon48102190this is what I have so far: https://gist.github.com/adelq/436a84546f5d617159b1
01:47:34anon48102190line 10 is giving me a type mismatch error, when it really shouldn't
01:48:12anon48102190closest thing I could find is https://github.com/Araq/Nim/issues/2599
01:49:10def-anon48102190: proc set(vm: var volumeMap, s:string) =
01:49:27def-notice the _var_, otherwise you can't modify it, parameters are immutable by default
01:50:02anon48102190ah I see, makes sense
01:50:14anon48102190my mistake, should've caught that myself
01:50:49def-The error message could be improved
01:51:02def-saying that it would work if vm was mutable
01:52:12anon48102190yeah, the error message ('shtl.nim(52, 5) Error: type mismatch: got (volumeMap, string, string)') really threw me off
02:01:22*dddddd quit (Ping timeout: 256 seconds)
02:02:32*mrkishi joined #nim
02:03:37*mrkishi quit (Max SendQ exceeded)
02:04:16*mrkishi joined #nim
02:08:53*anon48102190 quit (Ping timeout: 256 seconds)
02:10:25*anon48102190 joined #nim
02:16:15*anon48102190 quit (Ping timeout: 256 seconds)
02:16:42*anon48102190 joined #nim
02:22:14*mrkishi quit ()
02:24:00*ddl_smurf quit (Quit: ddl_smurf)
02:25:58*mrkishi joined #nim
02:26:06onionhammerVarriount still no worky
02:42:59*vendethiel quit (Ping timeout: 264 seconds)
02:44:32*anon48102190 quit (Quit: Leaving)
02:50:41*TEttinger joined #nim
03:00:59*johnsoft quit (Ping timeout: 264 seconds)
03:01:17*saml_ quit (Quit: Leaving)
03:05:18*boop is now known as boopisaway
03:07:21*elbow_jason joined #nim
03:09:06*uli_ joined #nim
03:12:25*johnsoft joined #nim
03:12:43*doomster quit (Ping timeout: 255 seconds)
03:14:49*Perelandric quit (Ping timeout: 246 seconds)
03:16:07*mrkishi quit ()
03:22:43*Kingsquee joined #nim
03:45:32federico3Is there a list of most requested libraries?
03:52:15renesacaside from a Qt wrapper, usually people do the libraries they request
03:52:36renesac*they need
03:54:48fowlCheck the forums maybe
03:55:06fowlWebsockets is asked for pretty often
03:56:37*mrkishi joined #nim
04:00:49federico3It could be nice to have a list where people can upvote ideas
04:09:28*pregressive joined #nim
04:18:31*mrkishi quit ()
04:47:05*mrkishi joined #nim
04:53:19*gsingh93 joined #nim
05:22:08*kdr quit (Ping timeout: 244 seconds)
05:42:57*mrkishi quit ()
05:53:12*pregressive quit (Remote host closed the connection)
06:04:43*Demon_Fox joined #nim
06:15:23*BitPuffin|osx quit (Ping timeout: 256 seconds)
06:17:26*filcuc joined #nim
06:18:07*gsingh93 quit (Ping timeout: 255 seconds)
06:33:57*zahary joined #nim
06:41:10*uli_ quit (Remote host closed the connection)
06:52:24*gamesbrainiac joined #nim
06:58:55*brson joined #nim
07:01:01*elbow_jason quit (Ping timeout: 264 seconds)
07:24:31*filcuc quit (Ping timeout: 256 seconds)
07:31:43*darkf_ joined #nim
07:33:58*darkf quit (Ping timeout: 265 seconds)
07:36:36*darkf__ joined #nim
07:39:06*darkf_ quit (Ping timeout: 256 seconds)
07:46:40*darkf__ is now known as darkf
07:58:26*BlaXpirit joined #nim
08:02:09*bjz quit (Read error: Connection reset by peer)
08:02:22*bjz joined #nim
08:03:04*bjz quit (Client Quit)
08:05:31*bjz joined #nim
08:20:02*filcuc joined #nim
08:40:41*yglukhov_____ joined #nim
08:43:59*hecanjog joined #nim
08:49:19*filcuc quit (Ping timeout: 244 seconds)
08:56:42*filcuc joined #nim
09:09:25*jbomo quit (Ping timeout: 264 seconds)
09:10:29*suppi joined #nim
09:13:45*ingsoc joined #nim
09:14:52*vendethiel joined #nim
09:15:19*jokra_ joined #nim
09:16:42*jokra quit (Ping timeout: 256 seconds)
09:16:43*ldlework quit (Ping timeout: 256 seconds)
09:17:08*r-ku quit (Ping timeout: 256 seconds)
09:17:36*ldlework joined #nim
09:17:40*r-ku joined #nim
09:19:11*Trustable joined #nim
09:19:25*Trustable quit (Remote host closed the connection)
09:27:48*bluenote_ joined #nim
09:28:38*Jesin quit (Quit: Leaving)
09:31:12*cryzed_ joined #nim
09:31:28*Heartmender joined #nim
09:31:48*Heartmender is now known as Guest67658
09:37:33*fowl quit (*.net *.split)
09:37:33*ekarlso quit (*.net *.split)
09:37:33*Quora quit (*.net *.split)
09:37:33*cryzed quit (*.net *.split)
09:37:33*Xe quit (*.net *.split)
09:37:33*d33tah quit (*.net *.split)
09:37:34*dom96 quit (*.net *.split)
09:37:42*Demon_Fox quit (Quit: Leaving)
09:38:19*OnO joined #nim
09:39:17*OnO quit (Client Quit)
09:44:25*dom96 joined #nim
09:45:40*hecanjog left #nim ("WeeChat 1.1.1")
09:45:41*notfowl joined #nim
09:45:41*notfowl quit (Excess Flood)
09:47:07*d33tah joined #nim
09:48:16*Matthias247 joined #nim
09:48:54*notfowl joined #nim
09:48:59*notfowl quit (Changing host)
09:48:59*notfowl joined #nim
09:49:18*Xe joined #nim
09:53:36*boopisaway is now known as boop
09:58:42*filcuc quit (Ping timeout: 272 seconds)
09:59:23*OnO joined #nim
10:03:20*cryzed_ is now known as cryzed
10:07:13*ddl_smurf joined #nim
10:11:22*OnO quit (Quit: My iMac has gone to sleep. ZZZzzz…)
10:12:15*notfowl- joined #nim
10:12:15*notfowl- quit (Changing host)
10:12:15*notfowl- joined #nim
10:18:13*Xe quit (*.net *.split)
10:18:13*notfowl quit (*.net *.split)
10:23:44*ekarlso joined #nim
10:24:58*Xe joined #nim
10:35:13*brson quit (Ping timeout: 264 seconds)
10:54:11*Sembei joined #nim
10:55:41*Sembei quit (Client Quit)
10:56:29*johnsoft quit (Ping timeout: 265 seconds)
10:57:15*johnsoft joined #nim
10:57:59*milosn quit (Quit: leaving)
11:01:55*Sembei joined #nim
11:02:27*Sembei quit (Client Quit)
11:06:42*Wicked joined #nim
11:06:52*Sembei joined #nim
11:15:01*Wicked quit (Ping timeout: 246 seconds)
11:20:49*suppi quit (Ping timeout: 264 seconds)
11:24:17*filwit quit (Quit: Leaving)
11:41:48*boop is now known as boopisaway
11:51:05*boopisaway is now known as boop
11:58:08dom96federico3: write a website that allows people to do that :)
12:04:42*xcombelle joined #nim
12:05:17*BitPuffin|osx joined #nim
12:06:21boophttp://hastebin.com/xilopolijo.avrasm
12:06:23*boop frown.
12:08:03boopany clue what's going on here? :s it's an ircbot
12:08:06boopusing the irc lib
12:09:20dom96I think it's a corruption in the GC or asyncdispatch.
12:09:34boopis it something i'm doing wrong or a nim issue?
12:09:54dom96Nim issue. Report it please.
12:10:15dom96when does it happen?
12:10:43boopovernight :)
12:11:38boopit was ~60 seconds after the last message was received by the bot..
12:12:04boopi got a similar issue with asynchttpserver let me dig that up
12:12:21boopoh no that's a different one
12:12:23boopnevermind
12:12:39*Wicked joined #nim
12:14:14dom96boop: Yeah. I have seen this issue before. It is unfortunately rather difficult to reproduce as it happens after the process has been running for a long time.
12:14:39dom96But I see you've got some GC assert messages in there so perhaps that will help Araq or somebody else diagnose it.
12:14:53boopoki
12:15:14*xcombelle quit (Ping timeout: 245 seconds)
12:15:28*dddddd joined #nim
12:16:26boopi'd better put the code up too. hmm.
12:16:47WickedHi. I use spawn() to start a function. This function has in it the line : echo(getContent("http://www.google.com")). And because of that, I obtain an error : Error: 'spawn' takes a GC safe call expression. What's the problem ?
12:21:11boophttps://github.com/Araq/Nim/issues/2735
12:21:20boopis there an issue format i've missed actually?
12:21:22*boop checks
12:26:25WickedMy code compile with --threadAnalysis:off... but is it safe ?
12:32:43*Wicked quit (Ping timeout: 246 seconds)
12:38:33*HakanD joined #nim
12:53:25*Kingsquee quit (Quit: Konversation terminated!)
12:55:03*yglukhov_____ quit (Quit: Be back later ...)
12:55:25*d3m1gd quit (Quit: WeeChat 1.1.1)
12:55:38*intra joined #nim
13:00:39*d3m1gd joined #nim
13:25:26*milosn joined #nim
13:27:20*sami_48 joined #nim
13:27:58*sami_48 left #nim (#nim)
13:30:57*Trustable joined #nim
13:41:29boopis there some lib to handle HTTP query strings?
13:45:13*kashyap_ joined #nim
13:46:18kashyap_Hi...in my kernel code, I have a global array (keyboard map) .... I learnt that in Nim, the global array is initialized by a function which in my kernel code case is not getting called. ... what is the workaround/
13:47:14kashyap_array such as in https://github.com/ckkashyap/nimxv6/blob/master/include/kbd.h - normalmap for example
13:48:31def-kashyap_: hi. is it a const?
13:48:40kashyap_yes
13:49:09def-weird, they don't seem to be initialized by a function for me
13:49:17kashyap_declArray(shiftcode, 256, int, 0x1D, CTL, 0x2A, SHIFT, 0x36, SHIFT, 0x38, ALT, 0x9D, CTL, 0xB8, ALT )
13:49:47kashyap_even var sample:array[5,int] = [ 1 , 2, 3, 4, 5 ] for that matter
13:49:59def-https://gist.github.com/def-/46c3916d77f838b9002d
13:50:04def-I tried this and see the resulting C code
13:50:37kashyap_oh .. I did not use const ..
13:50:51kashyap_Can I use const with declArray?
13:51:27def-declArray is a proc you call?
13:51:51def-if so, then yes, then it will be executed at compile time
13:52:28*Perelandric joined #nim
13:52:34kashyap_hmmm .. looks like I will have to expand the full array and declare a const as you have shown
13:52:59kashyap_declArray let me set values at certain indices and leave out the rest
13:53:01def-You're embedding your code into existing C code, right?
13:53:13kashyap_yes
13:53:27kashyap_my intention is to get rid of the c code
13:53:28def-Maybe you should just find a way to run the Nim modules' init functions
13:53:39def-then you can use global lets as well
13:54:08def-Nim just calls PreMainInner() for that purpose
13:54:40kashyap_the init function in my file is HEX00_kbdInit ...
13:55:35kashyap_using HEX00_kbdInit may not be the right thing
13:56:06kashyap_I think I'll go with const for now .... thanks def-
14:05:31*darkf quit (Quit: Leaving)
14:23:36*HakanD quit (Read error: Connection reset by peer)
14:25:11*beier joined #nim
14:25:26*beier left #nim (#nim)
14:25:36*JStoker quit (Ping timeout: 276 seconds)
14:28:28*JStoker joined #nim
14:31:34*HakanD joined #nim
14:38:48*pregressive joined #nim
14:54:29boopcan i interface with streams in an async way?
14:58:45*johnsoft quit (Ping timeout: 276 seconds)
14:59:50*johnsoft joined #nim
15:00:34*cryzed quit (Ping timeout: 265 seconds)
15:00:35*Shoozza quit (Ping timeout: 265 seconds)
15:01:03*CARAM__ quit (Ping timeout: 265 seconds)
15:02:30*mal`` quit (Ping timeout: 265 seconds)
15:02:42*notfowl- quit (Read error: Connection reset by peer)
15:03:13*mal`` joined #nim
15:03:16*cryzed joined #nim
15:03:17*Shoozza joined #nim
15:06:39*CARAM__ joined #nim
15:24:27boophm.
15:24:49booprolling back a bit. if i have a File or FileHandle, is there any way i can await a readLine from it?
15:31:54*vendethiel quit (Quit: q+)
15:32:07*Wicked joined #nim
15:33:53WickedHello! What's the best way to get the x first characters of a string, and then the string without the x first characters ? Thanks in advance
15:36:25*OnO joined #nim
15:37:49WickedI found the response to my first question. echo(a[5 .. ^0])...
15:38:25Wickedsecond *
15:39:28boopecho(a[0 .. 4])
15:39:34boopfor your first.
15:39:56WickedOh. Thanks a lot !
15:41:01*Wicked quit ()
15:50:49*bluenote_ quit (Ping timeout: 246 seconds)
15:51:18*elbow_jason joined #nim
15:52:40*BlaXpirit quit (Remote host closed the connection)
15:54:34*BlaXpirit joined #nim
15:59:43dom96boop: you need to use the asyncfile module
16:00:14boopdom96: asyncfile only lets me open a file from a path, not use an existing File or FileHandle
16:00:18boop(as far as i can tell)
16:00:36dom96yeah, you can't reuse a FileHandle unfortunately.
16:01:01dom96you could probably implement a way to do that in the asyncfile module
16:01:06dom96bbl
16:01:19boopyuck, hm.
16:02:40*bluenote_ joined #nim
16:02:57bluenote_anyone familiar with nre?
16:03:39bluenote_is this supposed to fail? let test = "+".match(re("\+"))
16:04:02bluenote_gives me "invalid character constant"
16:05:11bluenote_and I don't know how to escape the "+" instead
16:09:44*HakanD quit (Read error: Connection reset by peer)
16:15:01dom96bluenote_: try: let test = "+".match(re"\+")
16:20:18*dewdrop_ joined #nim
16:21:01*dewdrop_ is now known as dewdrop
16:25:38*Arrrr joined #nim
16:28:29*jbomo joined #nim
16:28:44bluenote_dom96: you are right, this works, thanks
16:31:15bluenote_I was trying to split a long expression into several parts, concatening them with &
16:32:01bluenote_is this this expected to fail?
16:34:55*dom96_ quit (Ping timeout: 246 seconds)
16:36:41onionhammerdom96 https://github.com/Araq/Nim/pull/2738
16:37:16onionhammeraw crud I got some extra crap in there i think lol
16:42:00gmpreussner|workhow do i initialize unchecked arrays?
16:42:50gmpreussner|workfor example, this works: type Foo = array[0..3, int]; let foo: Foo = [1, 2, 3, 4]
16:43:00gmpreussner|workbut this doesnt: type Bar {.unchecked.} = array[0..0, int]; let bar: Bar = [1, 2, 3, 4]
16:43:33gmpreussner|workprobably because [] is an array constructor
16:47:52def-gmpreussner|work: i don't understand what that's supposed to do
16:48:14def-you have defined Bar as an array of size 1 on the stack and then you want to initialize it with 4 values
16:49:02ArrrrMaybe he wants vla http://forum.nim-lang.org/t/499#2650
16:51:51*BitPuffin|osx quit (Ping timeout: 276 seconds)
16:52:55*gamesbrainiac quit (Quit: Bye folks!)
16:56:21*yglukhov_____ joined #nim
17:00:40*yglukhov_____ quit (Ping timeout: 244 seconds)
17:02:55*kashyap_ quit (Ping timeout: 246 seconds)
17:12:36gmpreussner|workyeah, this is for variable length arrays
17:13:40gmpreussner|workim writing some bindings that expect VLA as parameters. first time i ran into this :)
17:14:33def-the easiest would be seqs
17:15:29gmpreussner|workcan they be passed safely to C?
17:15:36gmpreussner|worki don't know what their layout is
17:15:40gmpreussner|workof seqs i mean
17:16:10def-addr mySeq[0]
17:16:17*brson joined #nim
17:16:23def-that's a pointer to the values of a seq
17:16:33gmpreussner|workok, i'll try that, thx!
17:16:55def-if you resize the seq that pointer will not work anymore
17:19:44ArrrrHow is seq structured internally? in java you have an arraylist, which is pointer to header data which contains a pointer to an array.
17:23:57*dom96_ joined #nim
17:24:48def-Arrrr: a pointer to a heap object with length, reserved and actual contents. that should be all
17:29:53dom96_It would be really nice if somebody could write some documentation explaining the layout of Seq[T] and other data structures in Nim.
17:33:30Arrrragree!
17:38:00*ddl_smurf quit (Quit: ddl_smurf)
17:38:35onionhammerdom96_ ok fixed PR
17:44:34*EXetoC joined #nim
17:45:39dom96_onionhammer: I don't think those toUgly procs need to be exported.
17:46:12dom96_onionhammer: Are you sure creating a newStringOfCap(node.len shl 1) will work for all cases?
17:46:16EXetoCdef-: all that is required for static linking? :p
17:47:27*vikaton joined #nim
17:47:53def-EXetoC: static linking without needing to have the library installed on your system
17:48:39def-similar to what go's glfw wrapper and nre do
17:48:50EXetoCok
17:49:56ArrrrBtw, would be useful if you expose wrapper.getTime in glfw.nim
17:58:03*wb joined #nim
17:59:16*vbtt_ joined #nim
17:59:37vbtt_hello
18:01:48vbtt_do you recommend master or 0.11.2
18:02:56*vikaton quit ()
18:05:13*dom96_ quit (Ping timeout: 246 seconds)
18:07:52bluenote_Arrrr: indeed, getTime and getFramebufferSize were the only things so far that I was missing in the glfw interface
18:11:58*vbtt_ quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
18:12:06Arrrrvbtt_: i use devel
18:12:13*vbtt_ joined #nim
18:13:13*vbtt_ quit (Client Quit)
18:14:09*brson quit (Ping timeout: 240 seconds)
18:14:48*vbtt_ joined #nim
18:14:52*pregressive quit (Remote host closed the connection)
18:16:58*pregressive joined #nim
18:29:40*Jehan_ joined #nim
18:43:34*Jesin joined #nim
18:54:23*ingsoc quit (Ping timeout: 250 seconds)
18:55:28*ingsoc joined #nim
19:03:42*pregressive quit (Remote host closed the connection)
19:04:31*redwyn joined #nim
19:12:57onionhammerdom96_ it needs to be exported if ur trying to append to an existing buffer. i think it would work for all cases, yeah, unleas maybe its massive...
19:13:31onionhammerin which case ur gonma run into other issues first
19:14:03*brson joined #nim
19:16:23boophttps://github.com/Araq/Nim/blob/master/lib/pure/asyncfile.nim#L109 - where is this conversion defined, the TAsyncFD one?
19:18:27redwynis there some possibility to compile nim to C code thats readable? like close to what one would write for simple small programs e.g. project euler stuff
19:18:46boopprobably not
19:19:35redwynso the reason for intermediate C code is just portability?
19:20:05redwynor is it easier to compile to C than to native and let other optimized compilers to their work
19:20:19boopprobably the latter
19:20:21def-redwyn: both
19:20:25boopbut- yeah
19:20:53def-and it's not necessarily easier to compile to effective C than to simple assembler
19:20:57boopnim also has a javascript backend, and there's some whisperings about a llvm one but i'm not sure what's happening with that
19:21:33OnOdef-: if you have a time you can maybe share some insights on https://github.com/Araq/Nim/pull/2742
19:21:47*yglukhov_____ joined #nim
19:22:08OnOI think making Nim emit __attribute__((pure)) for no side effect procs is important
19:22:19OnObut currently causes Nim compiler to not compile itself anymore
19:22:34OnOprobably some bug in side-effect tracing
19:22:36*Arrrr quit (Quit: Page closed)
19:24:51*yglukhov_____ quit (Client Quit)
19:26:02*OnO quit (Quit: My iMac has gone to sleep. ZZZzzz…)
19:39:51*gsingh93 joined #nim
19:51:16*zahary quit (Ping timeout: 255 seconds)
19:51:16boophttps://github.com/boopcat/Nim/commit/77a2867aae96119769d8b210fdab53a21af5b12e < is this terrible? i'm not sure about the name, or using the verb "open"
20:04:05*d3m1gd quit (Ping timeout: 244 seconds)
20:05:11*Wicked joined #nim
20:09:51WickedI'm trying to connect in SSL to Google via sockets. Here's my code : http://pastebin.com/Xi0ZJNGQ . My problem is that Google doesn't respond me anything. Why ? Could someone help me, please ?
20:09:52vbtt_error when compiling nimsuggest: compiler/commands.nim(58, 16) Error: cannot open 'doc/basicopt.txt'
20:10:37vbtt_trying to compile in master, using instructions here: http://nim-lang.org/0.11.0/nimsuggest.html
20:11:50*Jehan_ quit (Remote host closed the connection)
20:11:55vbtt_same error in 0.11.2
20:12:13*Jehan_ joined #nim
20:15:11WickedNo one ?
20:16:28vbtt_Wicked: looks like you're sending plain text?
20:16:42vbtt_where is the tls negotiation?
20:17:34*brson quit (Quit: leaving)
20:17:39vbtt_I don't know if there's an ssl library for nim, but you should look for one.
20:18:21*brson joined #nim
20:18:34WickedIn fact, I'm making a proxy server. It works great with all methods, but not CONNECT which is more complicated.
20:19:54vbtt_right, first try port 80 to nim-lang.org - see if that works.
20:22:28Wickednim-lang.org doesn't have HTTPS, so, I'll need to modify the CONNECT method to GET too.
20:23:15Wicked400 Bad request, so there's a problem in my code.
20:24:23vbtt_also why \r\n?
20:24:35vbtt_just use one \nn after the CONNECT and two after the Host:
20:24:41vbtt_imean one '\n'
20:25:04Wickedhttps://stackoverflow.com/questions/26189847/python-sending-incomplete-get-requests
20:25:28vbtt_i mean '\r\n', don't need two of them after CONNECT, I'm guessing
20:26:46vbtt_try this: http://pastebin.com/jcX9DmVF
20:27:35WickedIt returns nothing.
20:27:48WickedNo error, just nothing.
20:27:52*brson quit (Ping timeout: 258 seconds)
20:28:47vbtt_hmm ok
20:29:34vbtt_yeah sorry can't help
20:29:45vbtt_maybe someone with actual tls knowledge will chime in
20:29:47*brson joined #nim
20:30:05WickedNo problem, at least you tried to help me :-)
20:32:21*vbtt_ quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
20:36:45*vbtt_ joined #nim
20:43:12*vbtt_ quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
20:43:15boopany feedback? :(
20:51:58*vbtt_ joined #nim
20:52:30*pregressive joined #nim
20:56:17*vbtt_ quit (Client Quit)
20:57:33*pregressive quit (Ping timeout: 276 seconds)
21:00:41WickedI'm still looking for some help if someone is available
21:04:26*vbtt_ joined #nim
21:05:26*vbtt_ quit (Client Quit)
21:08:46*EXetoC quit (Quit: WeeChat 1.1.1)
21:10:16*Varriount quit (Read error: Connection reset by peer)
21:17:11*Trustable quit (Remote host closed the connection)
21:23:04*redwyn quit (Quit: leaving)
21:31:10*brson quit (Ping timeout: 255 seconds)
21:33:00*brson joined #nim
21:33:49*bluenote_ quit (Ping timeout: 246 seconds)
21:33:57*gsingh93 quit (Ping timeout: 276 seconds)
21:35:52*Jesin quit (Quit: Leaving)
21:37:42*pregressive joined #nim
21:37:55*brson quit (Ping timeout: 256 seconds)
21:39:14*brson joined #nim
21:45:44*BlaXpirit quit (Quit: Quit Konversation)
21:49:31*ingsoc quit (Quit: Leaving.)
21:49:59*dom96_ joined #nim
21:50:38dom96_Wicked: You need to use wrapSocket() on your socket before calling connect().
21:51:05dom96_Wicked: Also, don't use "\r\n" use "\c\l"
21:51:35WickedWhat's the point of wrapSocket() ?
21:52:14*gsingh93 joined #nim
21:52:32dom96_Wicked: To turn your socket into an SSL socket
21:54:02WickedI can't find the function description on http://nim-lang.org/docs/net.html . Could you link me the documentation talking about this ?
21:55:29dom96_Wicked: It's unfortunately not in the docs due to a docgen bug.
21:55:39dom96_take a look at the source of net.nim
21:55:42dom96_and you will see it
21:56:22dom96_boop: looks good, but I don't think it's that simple. For example, on Windows the resulting FD must be opened with the FILE_FLAG_OVERLAPPED flag
21:56:29WickedFound it. Thanks!
21:56:44boophmm
21:57:01boopyeah i'll need to test on windows somehow
21:59:05dom96_boop: also, posix needs O_NONBLOCK
21:59:35boophmm hmm
21:59:35dom96_boop: there might be a reopen proc in Posix and a createFile proc taking a FileHandle in the WinAPI that you could use.
21:59:42boopwell, I'm not opening the file...
22:00:18dom96_I know, the name will likely be similar though.
22:02:29boopoh right I was thinking of that the wrong way
22:02:42boopI'm using osproc's outputHandle() stuff
22:02:48boopit seems to work fine
22:04:45*pregressive quit (Remote host closed the connection)
22:05:03*pregressive joined #nim
22:09:16Wickeddom96_ : Now that I've got a sslContext for my socket, how do I use it ? I see no variable for that in connect()...
22:10:16dom96_boop: oh, perhaps you should implement async file handles in osproc then.
22:10:35boopahh that might be a better way of doing it
22:10:36dom96_Wicked: Just call wrapSocket.
22:10:50boopi wonder if i can do that without messing with asyncfile though
22:11:22WickedJust that ? wrapSocket(mySocket) ?
22:13:22dom96_Wicked: context.wrapSocket(socket)
22:13:36dom96_boop: Probably.
22:13:46dom96_boop: Async osproc on Posix should be easy
22:13:52dom96_boop: On Windows, it's another story.
22:14:05boopmm
22:14:15*ddl_smurf joined #nim
22:14:16dom96_boop: Would be brilliant if you could implement it, it's the last missing piece of the async puzzle in the stdlib.
22:14:39Wickeddom96_ : What does context represents ?
22:14:49boopheh. i'm probably not experienced enough, but i'll give it a shot :)
22:14:49dom96_Wicked: ssl settings
22:15:12Wickedrepresent * sorry. Thanks
22:15:25dom96_boop: You can ask me if you get suck, I may be able to help.
22:15:31dom96_boop: I might not always be around though.
22:15:35*boop nods
22:15:36boopthanks!
22:15:45dom96_boop: Just keep asking and I will answer eventually though :)
22:16:02boopheh. will do!
22:21:12dom96_talk to you guys later. Good night.
22:24:07ekarlsogokr: it's where stufl ike Go has gotten tons of attention ;p
22:24:14ekarlsoehm, wrong arrow up :)
22:30:36*Demon_Fox joined #nim
22:35:06*Kingsquee joined #nim
22:36:43*Wicked quit ()
22:37:39*pregressive quit (Remote host closed the connection)
22:45:07*Guest67658 is now known as Quora
22:45:09*Quora quit (Changing host)
22:45:09*Quora joined #nim
22:45:09*Quora quit (Changing host)
22:45:09*Quora joined #nim
22:47:55*pregressive joined #nim
22:52:24*Sembei quit (Quit: WeeChat 1.3-dev)
22:55:50*Demon_Fox quit (Quit: Leaving)
23:22:08*filwit joined #nim
23:26:07*yglukhov_____ joined #nim
23:31:01*yglukhov_____ quit (Ping timeout: 264 seconds)
23:58:47*Jehan_ quit (Quit: Leaving)