00:25:15 | * | jholland quit (Quit: Connection closed for inactivity) |
00:27:29 | * | saml_ joined #nim |
00:29:05 | Varriount | onionhammer: Try now. |
00:29:10 | Senketsu | does anyone know of some newer gtk2 32bit lib for windows ? (the latest i found is 2.24.10 from 2k12) |
00:29:28 | Senketsu | and that one is kinda fu*ed |
00:29:50 | Varriount | Senketsu: 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:12 | Senketsu | actual dlls |
00:31:40 | Varriount | Senketsu: I'm assuming you mean for windows? |
00:33:44 | Varriount | If 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:23 | Varriount | Senketsu: If you're trying to use Aporia, then just download the installer. Building gtk2 from source is no easy task. |
00:36:11 | Senketsu | just 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:47 | anon48102190 | hey everyone |
01:46:04 | anon48102190 | having some trouble with custom types in nim |
01:46:20 | * | mrkishi quit () |
01:47:13 | anon48102190 | this is what I have so far: https://gist.github.com/adelq/436a84546f5d617159b1 |
01:47:34 | anon48102190 | line 10 is giving me a type mismatch error, when it really shouldn't |
01:48:12 | anon48102190 | closest thing I could find is https://github.com/Araq/Nim/issues/2599 |
01:49:10 | def- | anon48102190: proc set(vm: var volumeMap, s:string) = |
01:49:27 | def- | notice the _var_, otherwise you can't modify it, parameters are immutable by default |
01:50:02 | anon48102190 | ah I see, makes sense |
01:50:14 | anon48102190 | my mistake, should've caught that myself |
01:50:49 | def- | The error message could be improved |
01:51:02 | def- | saying that it would work if vm was mutable |
01:52:12 | anon48102190 | yeah, 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:06 | onionhammer | Varriount 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:32 | federico3 | Is there a list of most requested libraries? |
03:52:15 | renesac | aside from a Qt wrapper, usually people do the libraries they request |
03:52:36 | renesac | *they need |
03:54:48 | fowl | Check the forums maybe |
03:55:06 | fowl | Websockets is asked for pretty often |
03:56:37 | * | mrkishi joined #nim |
04:00:49 | federico3 | It 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:08 | dom96 | federico3: write a website that allows people to do that :) |
12:04:42 | * | xcombelle joined #nim |
12:05:17 | * | BitPuffin|osx joined #nim |
12:06:21 | boop | http://hastebin.com/xilopolijo.avrasm |
12:06:23 | * | boop frown. |
12:08:03 | boop | any clue what's going on here? :s it's an ircbot |
12:08:06 | boop | using the irc lib |
12:09:20 | dom96 | I think it's a corruption in the GC or asyncdispatch. |
12:09:34 | boop | is it something i'm doing wrong or a nim issue? |
12:09:54 | dom96 | Nim issue. Report it please. |
12:10:15 | dom96 | when does it happen? |
12:10:43 | boop | overnight :) |
12:11:38 | boop | it was ~60 seconds after the last message was received by the bot.. |
12:12:04 | boop | i got a similar issue with asynchttpserver let me dig that up |
12:12:21 | boop | oh no that's a different one |
12:12:23 | boop | nevermind |
12:12:39 | * | Wicked joined #nim |
12:14:14 | dom96 | boop: 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:39 | dom96 | But I see you've got some GC assert messages in there so perhaps that will help Araq or somebody else diagnose it. |
12:14:53 | boop | oki |
12:15:14 | * | xcombelle quit (Ping timeout: 245 seconds) |
12:15:28 | * | dddddd joined #nim |
12:16:26 | boop | i'd better put the code up too. hmm. |
12:16:47 | Wicked | Hi. 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:11 | boop | https://github.com/Araq/Nim/issues/2735 |
12:21:20 | boop | is there an issue format i've missed actually? |
12:21:22 | * | boop checks |
12:26:25 | Wicked | My 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:29 | boop | is there some lib to handle HTTP query strings? |
13:45:13 | * | kashyap_ joined #nim |
13:46:18 | kashyap_ | 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:14 | kashyap_ | array such as in https://github.com/ckkashyap/nimxv6/blob/master/include/kbd.h - normalmap for example |
13:48:31 | def- | kashyap_: hi. is it a const? |
13:48:40 | kashyap_ | yes |
13:49:09 | def- | weird, they don't seem to be initialized by a function for me |
13:49:17 | kashyap_ | declArray(shiftcode, 256, int, 0x1D, CTL, 0x2A, SHIFT, 0x36, SHIFT, 0x38, ALT, 0x9D, CTL, 0xB8, ALT ) |
13:49:47 | kashyap_ | even var sample:array[5,int] = [ 1 , 2, 3, 4, 5 ] for that matter |
13:49:59 | def- | https://gist.github.com/def-/46c3916d77f838b9002d |
13:50:04 | def- | I tried this and see the resulting C code |
13:50:37 | kashyap_ | oh .. I did not use const .. |
13:50:51 | kashyap_ | Can I use const with declArray? |
13:51:27 | def- | declArray is a proc you call? |
13:51:51 | def- | if so, then yes, then it will be executed at compile time |
13:52:28 | * | Perelandric joined #nim |
13:52:34 | kashyap_ | hmmm .. looks like I will have to expand the full array and declare a const as you have shown |
13:52:59 | kashyap_ | declArray let me set values at certain indices and leave out the rest |
13:53:01 | def- | You're embedding your code into existing C code, right? |
13:53:13 | kashyap_ | yes |
13:53:27 | kashyap_ | my intention is to get rid of the c code |
13:53:28 | def- | Maybe you should just find a way to run the Nim modules' init functions |
13:53:39 | def- | then you can use global lets as well |
13:54:08 | def- | Nim just calls PreMainInner() for that purpose |
13:54:40 | kashyap_ | the init function in my file is HEX00_kbdInit ... |
13:55:35 | kashyap_ | using HEX00_kbdInit may not be the right thing |
13:56:06 | kashyap_ | 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:29 | boop | can 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:27 | boop | hm. |
15:24:49 | boop | rolling 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:53 | Wicked | Hello! 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:49 | Wicked | I found the response to my first question. echo(a[5 .. ^0])... |
15:38:25 | Wicked | second * |
15:39:28 | boop | echo(a[0 .. 4]) |
15:39:34 | boop | for your first. |
15:39:56 | Wicked | Oh. 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:43 | dom96 | boop: you need to use the asyncfile module |
16:00:14 | boop | dom96: asyncfile only lets me open a file from a path, not use an existing File or FileHandle |
16:00:18 | boop | (as far as i can tell) |
16:00:36 | dom96 | yeah, you can't reuse a FileHandle unfortunately. |
16:01:01 | dom96 | you could probably implement a way to do that in the asyncfile module |
16:01:06 | dom96 | bbl |
16:01:19 | boop | yuck, hm. |
16:02:40 | * | bluenote_ joined #nim |
16:02:57 | bluenote_ | anyone familiar with nre? |
16:03:39 | bluenote_ | is this supposed to fail? let test = "+".match(re("\+")) |
16:04:02 | bluenote_ | gives me "invalid character constant" |
16:05:11 | bluenote_ | and I don't know how to escape the "+" instead |
16:09:44 | * | HakanD quit (Read error: Connection reset by peer) |
16:15:01 | dom96 | bluenote_: 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:44 | bluenote_ | dom96: you are right, this works, thanks |
16:31:15 | bluenote_ | I was trying to split a long expression into several parts, concatening them with & |
16:32:01 | bluenote_ | is this this expected to fail? |
16:34:55 | * | dom96_ quit (Ping timeout: 246 seconds) |
16:36:41 | onionhammer | dom96 https://github.com/Araq/Nim/pull/2738 |
16:37:16 | onionhammer | aw crud I got some extra crap in there i think lol |
16:42:00 | gmpreussner|work | how do i initialize unchecked arrays? |
16:42:50 | gmpreussner|work | for example, this works: type Foo = array[0..3, int]; let foo: Foo = [1, 2, 3, 4] |
16:43:00 | gmpreussner|work | but this doesnt: type Bar {.unchecked.} = array[0..0, int]; let bar: Bar = [1, 2, 3, 4] |
16:43:33 | gmpreussner|work | probably because [] is an array constructor |
16:47:52 | def- | gmpreussner|work: i don't understand what that's supposed to do |
16:48:14 | def- | 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:02 | Arrrr | Maybe 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:36 | gmpreussner|work | yeah, this is for variable length arrays |
17:13:40 | gmpreussner|work | im writing some bindings that expect VLA as parameters. first time i ran into this :) |
17:14:33 | def- | the easiest would be seqs |
17:15:29 | gmpreussner|work | can they be passed safely to C? |
17:15:36 | gmpreussner|work | i don't know what their layout is |
17:15:40 | gmpreussner|work | of seqs i mean |
17:16:10 | def- | addr mySeq[0] |
17:16:17 | * | brson joined #nim |
17:16:23 | def- | that's a pointer to the values of a seq |
17:16:33 | gmpreussner|work | ok, i'll try that, thx! |
17:16:55 | def- | if you resize the seq that pointer will not work anymore |
17:19:44 | Arrrr | How 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:48 | def- | Arrrr: a pointer to a heap object with length, reserved and actual contents. that should be all |
17:29:53 | dom96_ | 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:30 | Arrrr | agree! |
17:38:00 | * | ddl_smurf quit (Quit: ddl_smurf) |
17:38:35 | onionhammer | dom96_ ok fixed PR |
17:44:34 | * | EXetoC joined #nim |
17:45:39 | dom96_ | onionhammer: I don't think those toUgly procs need to be exported. |
17:46:12 | dom96_ | onionhammer: Are you sure creating a newStringOfCap(node.len shl 1) will work for all cases? |
17:46:16 | EXetoC | def-: all that is required for static linking? :p |
17:47:27 | * | vikaton joined #nim |
17:47:53 | def- | EXetoC: static linking without needing to have the library installed on your system |
17:48:39 | def- | similar to what go's glfw wrapper and nre do |
17:48:50 | EXetoC | ok |
17:49:56 | Arrrr | Btw, 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:37 | vbtt_ | hello |
18:01:48 | vbtt_ | do you recommend master or 0.11.2 |
18:02:56 | * | vikaton quit () |
18:05:13 | * | dom96_ quit (Ping timeout: 246 seconds) |
18:07:52 | bluenote_ | 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:06 | Arrrr | vbtt_: 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:57 | onionhammer | dom96_ 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:31 | onionhammer | in which case ur gonma run into other issues first |
19:14:03 | * | brson joined #nim |
19:16:23 | boop | https://github.com/Araq/Nim/blob/master/lib/pure/asyncfile.nim#L109 - where is this conversion defined, the TAsyncFD one? |
19:18:27 | redwyn | is 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:46 | boop | probably not |
19:19:35 | redwyn | so the reason for intermediate C code is just portability? |
19:20:05 | redwyn | or is it easier to compile to C than to native and let other optimized compilers to their work |
19:20:19 | boop | probably the latter |
19:20:21 | def- | redwyn: both |
19:20:25 | boop | but- yeah |
19:20:53 | def- | and it's not necessarily easier to compile to effective C than to simple assembler |
19:20:57 | boop | nim 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:33 | OnO | def-: 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:08 | OnO | I think making Nim emit __attribute__((pure)) for no side effect procs is important |
19:22:19 | OnO | but currently causes Nim compiler to not compile itself anymore |
19:22:34 | OnO | probably 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:16 | boop | https://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:51 | Wicked | I'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:52 | vbtt_ | error when compiling nimsuggest: compiler/commands.nim(58, 16) Error: cannot open 'doc/basicopt.txt' |
20:10:37 | vbtt_ | 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:55 | vbtt_ | same error in 0.11.2 |
20:12:13 | * | Jehan_ joined #nim |
20:15:11 | Wicked | No one ? |
20:16:28 | vbtt_ | Wicked: looks like you're sending plain text? |
20:16:42 | vbtt_ | where is the tls negotiation? |
20:17:34 | * | brson quit (Quit: leaving) |
20:17:39 | vbtt_ | 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:34 | Wicked | In fact, I'm making a proxy server. It works great with all methods, but not CONNECT which is more complicated. |
20:19:54 | vbtt_ | right, first try port 80 to nim-lang.org - see if that works. |
20:22:28 | Wicked | nim-lang.org doesn't have HTTPS, so, I'll need to modify the CONNECT method to GET too. |
20:23:15 | Wicked | 400 Bad request, so there's a problem in my code. |
20:24:23 | vbtt_ | also why \r\n? |
20:24:35 | vbtt_ | just use one \nn after the CONNECT and two after the Host: |
20:24:41 | vbtt_ | imean one '\n' |
20:25:04 | Wicked | https://stackoverflow.com/questions/26189847/python-sending-incomplete-get-requests |
20:25:28 | vbtt_ | i mean '\r\n', don't need two of them after CONNECT, I'm guessing |
20:26:46 | vbtt_ | try this: http://pastebin.com/jcX9DmVF |
20:27:35 | Wicked | It returns nothing. |
20:27:48 | Wicked | No error, just nothing. |
20:27:52 | * | brson quit (Ping timeout: 258 seconds) |
20:28:47 | vbtt_ | hmm ok |
20:29:34 | vbtt_ | yeah sorry can't help |
20:29:45 | vbtt_ | maybe someone with actual tls knowledge will chime in |
20:29:47 | * | brson joined #nim |
20:30:05 | Wicked | No 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:15 | boop | any 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:41 | Wicked | I'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:38 | dom96_ | Wicked: You need to use wrapSocket() on your socket before calling connect(). |
21:51:05 | dom96_ | Wicked: Also, don't use "\r\n" use "\c\l" |
21:51:35 | Wicked | What's the point of wrapSocket() ? |
21:52:14 | * | gsingh93 joined #nim |
21:52:32 | dom96_ | Wicked: To turn your socket into an SSL socket |
21:54:02 | Wicked | I 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:29 | dom96_ | Wicked: It's unfortunately not in the docs due to a docgen bug. |
21:55:39 | dom96_ | take a look at the source of net.nim |
21:55:42 | dom96_ | and you will see it |
21:56:22 | dom96_ | 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:29 | Wicked | Found it. Thanks! |
21:56:44 | boop | hmm |
21:57:01 | boop | yeah i'll need to test on windows somehow |
21:59:05 | dom96_ | boop: also, posix needs O_NONBLOCK |
21:59:35 | boop | hmm hmm |
21:59:35 | dom96_ | 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:42 | boop | well, I'm not opening the file... |
22:00:18 | dom96_ | I know, the name will likely be similar though. |
22:02:29 | boop | oh right I was thinking of that the wrong way |
22:02:42 | boop | I'm using osproc's outputHandle() stuff |
22:02:48 | boop | it seems to work fine |
22:04:45 | * | pregressive quit (Remote host closed the connection) |
22:05:03 | * | pregressive joined #nim |
22:09:16 | Wicked | dom96_ : 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:16 | dom96_ | boop: oh, perhaps you should implement async file handles in osproc then. |
22:10:35 | boop | ahh that might be a better way of doing it |
22:10:36 | dom96_ | Wicked: Just call wrapSocket. |
22:10:50 | boop | i wonder if i can do that without messing with asyncfile though |
22:11:22 | Wicked | Just that ? wrapSocket(mySocket) ? |
22:13:22 | dom96_ | Wicked: context.wrapSocket(socket) |
22:13:36 | dom96_ | boop: Probably. |
22:13:46 | dom96_ | boop: Async osproc on Posix should be easy |
22:13:52 | dom96_ | boop: On Windows, it's another story. |
22:14:05 | boop | mm |
22:14:15 | * | ddl_smurf joined #nim |
22:14:16 | dom96_ | boop: Would be brilliant if you could implement it, it's the last missing piece of the async puzzle in the stdlib. |
22:14:39 | Wicked | dom96_ : What does context represents ? |
22:14:49 | boop | heh. i'm probably not experienced enough, but i'll give it a shot :) |
22:14:49 | dom96_ | Wicked: ssl settings |
22:15:12 | Wicked | represent * sorry. Thanks |
22:15:25 | dom96_ | boop: You can ask me if you get suck, I may be able to help. |
22:15:31 | dom96_ | boop: I might not always be around though. |
22:15:35 | * | boop nods |
22:15:36 | boop | thanks! |
22:15:45 | dom96_ | boop: Just keep asking and I will answer eventually though :) |
22:16:02 | boop | heh. will do! |
22:21:12 | dom96_ | talk to you guys later. Good night. |
22:24:07 | ekarlso | gokr: it's where stufl ike Go has gotten tons of attention ;p |
22:24:14 | ekarlso | ehm, 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) |