<< 17-03-2016 >>

00:22:30*gunn quit (Max SendQ exceeded)
00:23:14*gunn joined #nim
00:26:19*toaoMgeorge joined #nim
00:27:45*Matthias247 quit (Read error: Connection reset by peer)
00:28:39*gokr quit (Ping timeout: 246 seconds)
00:29:02*Riviera- joined #nim
00:40:44*Demon_Fox joined #nim
00:44:49*toaoMgeorge quit (Quit: Bye)
00:46:09*freddy92 joined #nim
00:50:29*desophos quit (Ping timeout: 268 seconds)
01:17:45*jaco60 quit (Ping timeout: 244 seconds)
01:18:12*brson quit (Ping timeout: 276 seconds)
01:46:13*desophos joined #nim
01:52:14*brson joined #nim
02:04:46*brson quit (Ping timeout: 244 seconds)
02:06:35*francisl joined #nim
02:10:42*francisl quit (Client Quit)
02:19:39*alexsystemf_ quit (*.net *.split)
02:19:39*Jesin quit (*.net *.split)
02:19:39*mnemonikk quit (*.net *.split)
02:19:39*baabelfish quit (*.net *.split)
02:19:40*asdf quit (*.net *.split)
02:19:40*zxtx quit (*.net *.split)
02:25:14*alexsystemf_ joined #nim
02:25:14*Jesin joined #nim
02:25:14*mnemonikk joined #nim
02:25:14*baabelfish joined #nim
02:25:14*asdf joined #nim
02:25:14*zxtx joined #nim
02:57:24*PMunch quit (Ping timeout: 246 seconds)
02:58:11*desophos_ joined #nim
03:02:45*desophos_ quit (Ping timeout: 250 seconds)
03:39:53*dthrvr quit (Ping timeout: 244 seconds)
03:41:37*dthrvr joined #nim
03:48:28*Kerp_ joined #nim
03:49:26Kerp_Hello out there
03:50:07*Kerp_ quit (Client Quit)
04:02:58*brson joined #nim
04:05:24*freddy92 quit (Quit: Exiting)
04:15:11*endragor joined #nim
04:19:17*MyMind quit (Ping timeout: 260 seconds)
04:19:22*Pisuke joined #nim
04:25:39*drewkett joined #nim
04:30:13*drewkett quit (Client Quit)
04:33:12*bjz_ quit (Ping timeout: 276 seconds)
04:46:44*bjz joined #nim
05:14:30*rkeene joined #nim
05:14:58rkeeneHas anyone created an SSH server in Nim ?
05:15:21perturbationthat's a cool idea :)
05:16:05perturbationI'd have to read the spec to do it, though, which doesn't sound fun
05:16:52rkeeneI wrote (mostly generated) some bindings for libssh for Crystal before discovering Crystal can't compile to all the platforms I want to support, and I'd rather avoid libssh if possible for this
05:19:37cheatfaterkeene, its a nice idea, but when i have started my own project (for production) i fall to update nim's standard library
05:20:08cheatfatebecause some things are not enough and some things are slow and some things are not so secure/reliable as must be
05:21:20cheatfatebut adopting crypto staff must be easy because of strict typing
05:23:36rkeeneRight, I would like it if the crypto stuff were all safe (hence avoiding libssh)
05:24:12cheatfatemain problem will be network staff, if you prefer singlethreaded blocking networking - you are find, but if you like asynchronous single/multi threaded, then you are in trouble
05:24:28cheatfate*you are find = you are fine
05:24:48rkeeneI just don't feel like writing it, but RSA is fairly easy -- generating keys is the only "tricky" part, the rest is in details. PKCS#1 v1.5 is straight-forward if tedious, X.509v3 is similar
05:25:46rkeeneAnd I don't know much about SSH or DH
05:26:02rkeeneOr the symmetric ciphers
05:26:20cheatfatefor RSA/DH you need library for bignumbers
05:27:05cheatfateso you can start with adopting some bignumber's library for nim
05:27:32cheatfatewill be good if you build one without any dependencies to other big libraries
05:28:05rkeeneI wrote one in QBasic ( http://www.rkeene.org/viewer/devel/archive/quickbasic/vmpu2.bas.htm ) so...
05:28:23*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
05:28:27rkeeneBut, for this I really just want to build my app -- I have other things to do this week
05:30:01cheatfateits not a very fast library when you are using strings
05:30:14cheatfatei will prefer to use something like http://philzimmermann.com/EN/bnlib/index.html
05:31:44rkeeneWell, true, but I wrote that ~20 years ago
05:32:12rkeeneTcl uses libtommath, FWIW
05:36:31cheatfaterkeene, remember that you need more crypto applicable library for working with your keys and key operations because of "timing" attacks
05:37:13cheatfatebut i dont know where you want to use your ssh server, so all my advices for "production" ssh
05:38:11*bjz joined #nim
05:46:04*bjz quit (Ping timeout: 264 seconds)
05:47:32*Sembei joined #nim
05:49:04*Pisuke quit (Ping timeout: 244 seconds)
05:52:14*bjz joined #nim
05:57:01*bjz quit (Client Quit)
05:58:38cheatfateIs it possible to make forward declaration of object?
06:02:39*gokr joined #nim
06:03:13*gokr quit (Client Quit)
06:03:24*gokr joined #nim
06:03:38cheatfateahh nm
06:04:11*bjz joined #nim
06:11:45*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
06:21:14*endragor_ joined #nim
06:24:41*endragor quit (Ping timeout: 244 seconds)
06:43:18*desophos quit (Read error: Connection reset by peer)
06:45:00*endragor_ quit (Remote host closed the connection)
06:45:29*endragor joined #nim
07:21:53*toaoMgeorge joined #nim
07:26:12*toaoMgeorge quit (Ping timeout: 246 seconds)
07:29:54*toaoMgeorge joined #nim
07:31:18*brson quit (Ping timeout: 276 seconds)
07:35:58*yglukhov joined #nim
07:47:24cheatfateVarriount, i found interesting project in your repo https://github.com/Varriount/Filemon
07:48:12cheatfateyou declare "Cross-platform file & directory event monitoring module", are you goind to add posix systems?
07:48:20cheatfatein near future i mean
08:02:17*bjz joined #nim
08:03:52*endragor quit (Remote host closed the connection)
08:19:46*endragor joined #nim
08:25:36*desophos joined #nim
08:29:41*desophos quit (Ping timeout: 244 seconds)
08:30:39*dorei joined #nim
08:34:29*endragor quit (Remote host closed the connection)
08:35:50*bjz_ joined #nim
08:36:28*bjz quit (Ping timeout: 264 seconds)
08:39:00*endragor joined #nim
08:48:15*Arrrr joined #nim
08:51:51*MyMind joined #nim
08:52:16*jaco60 joined #nim
08:54:22*Sembei quit (Ping timeout: 248 seconds)
08:55:07cheatfateAraq, i cant find any information about processing posix signals in nim, as i can see all signals have been processed by nim's stub, and there only way to block it is to use sigprocmask, am i wrong?
09:06:05Varriountcheatfate: At this rate, probably when someone does it for me.
09:07:23cheatfateVarriount, ahh i'm sad
09:08:08cheatfateVarriount, you have already done most complex part ;)
09:08:23Varriountcheatfate: One windows, yes.
09:08:31Varriount*On
09:09:04VarriountEmulating individual file changes was a pain, as was following the file when it moves.
09:09:33cheatfatewe already have inotify.nim in standard library, you just need to glue them all )
09:09:39*Demon_Fox quit (Quit: Leaving)
09:10:09VarriountI guess. What about kqueue though?
09:10:44cheatfateon bsd you can use inotify as well
09:11:48cheatfateor i'm wrong
09:11:53VarriountAnd Mac?
09:13:17cheatfatei'm wrong, we can't use inotify on bsd/mac, we need kqueue
09:14:18VarriountStill, I guess Linux support wouldn't be too bad.
09:14:33cheatfateok, then i will add this to my todo
09:14:36VarriountThat project still requires a modified standard library though.
09:14:53VarriountIt uses some async internals.
09:16:07cheatfateyou mean register/unregister?
09:16:20VarriountI think, yeah.
09:20:17*arnetheduck joined #nim
09:22:00*endragor quit (Remote host closed the connection)
09:28:35*toaoMgeorge quit (Ping timeout: 248 seconds)
09:31:52*toaoMgeorge joined #nim
09:38:40*endragor joined #nim
09:39:41cheatfatebsd kqueue = linux epoll + linux signalfd + linux timerfd + linux inotify
09:39:53cheatfatei hate linux now
09:44:35*Demon_Fox joined #nim
09:47:19*darkf quit (Quit: Leaving)
10:01:39*toaoMgeorge quit (Ping timeout: 248 seconds)
10:11:00Varriountcheatfate: :3
10:11:29*boopsiesisaway is now known as boopsies
10:12:34cheatfatei think my equation is not so true, it needs to be like bsd kqueue = linux epoll + linux signalfd + linux timerfd + linux inotify + linux eventfd
10:29:54Varriountcheatfate: Yeesh. How many event systems does Linux have?
10:30:16*endragor quit (Remote host closed the connection)
10:31:03cheatfateVarriount, i dont know but i think many
10:33:10*endragor joined #nim
10:33:35Varriountcheatfate: Windows is marginally better, in that there's WaitForMultipleObjects()
10:34:58cheatfatei like WaitForMultipleObjects() but i dont like that windows has some objects for WaitForMultipleObjects and some objects for IO completion ports and when you want to glue them all you go to darkness
10:35:18cheatfatebut i have already done this glue
10:35:47cheatfateand it calls RegisterWaitForSingleObject
11:25:56*krux02 joined #nim
11:26:50*filcuc joined #nim
11:28:05*gunn_ joined #nim
11:31:09*gunn quit (Ping timeout: 276 seconds)
11:42:51*vonh quit (Ping timeout: 276 seconds)
11:53:42*qaz joined #nim
11:55:17*qaz quit (Client Quit)
11:55:47*apotheon quit (Read error: Connection reset by peer)
11:58:02*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
11:58:47*boopsies is now known as boopsiesisaway
12:01:13*apotheon joined #nim
12:13:13*jaco60 quit (Ping timeout: 240 seconds)
12:13:26*Guest48 joined #nim
12:15:42*qaz joined #nim
12:15:56*Guest48 quit (Client Quit)
12:16:05*qaz quit (Client Quit)
12:16:47*qaz joined #nim
12:16:58*qaz quit (Client Quit)
12:17:37*Varriount quit (Ping timeout: 260 seconds)
12:20:41*qaz joined #nim
12:23:58*Varriount joined #nim
12:24:19*qaz quit (Client Quit)
12:28:37*jaco60 joined #nim
12:29:04*francisl joined #nim
12:32:34*Varriount quit (Ping timeout: 240 seconds)
12:36:25*Varriount joined #nim
12:44:48*BitPuffin|osx joined #nim
13:10:14*boopsiesisaway is now known as boopsies
13:12:04*francisl quit (Quit: francisl)
13:13:02*krux02 quit (Ping timeout: 260 seconds)
13:17:45*vonh joined #nim
13:41:07*francisl joined #nim
13:45:25*jaco60 quit (Quit: Leaving)
13:47:15*krux02 joined #nim
14:02:36*xet7_ joined #nim
14:07:17*xet7_ left #nim (#nim)
14:08:39*jaco60 joined #nim
14:22:01*BitPuffin|osx quit (Ping timeout: 268 seconds)
14:22:22*krux02 quit (Ping timeout: 252 seconds)
14:22:38*krux02 joined #nim
14:32:47*exebook joined #nim
14:36:32*endragor_ joined #nim
14:40:04*endragor quit (Ping timeout: 264 seconds)
14:40:39*endragor_ quit (Ping timeout: 244 seconds)
14:53:33gmpreussner_Varriount: is there a way to have NimLime pass the path to the project's nim.cfg to the compiler when compiling individual modules?
14:54:32gmpreussner_i'm trying to have a single per-project nim.cfg that configures nimcache to be in the project's root directory, and that also specifies the root include directory for imports
14:57:42*krux02 quit (Ping timeout: 246 seconds)
14:57:58*krux02 joined #nim
15:18:15*Demon_Fox quit (Quit: Leaving)
15:23:16cheatfatedoes anybody has mac here?
15:33:15Araqcheatfate: yes
15:34:33cheatfateAraq, could you gist or something some include files? i want to check kqueue definitions
15:34:47cheatfatebecause online help is not enough
15:34:56Araqsure
15:35:06Araq#define __FOO _FOO
15:35:16Araq#define _FOO __intern_FOO
15:35:55Araq#define __intern_FOO /* hidden in /usr/include/bananajoe */
15:36:09Araq /usr/include/bananajoe:
15:36:21*Trustable joined #nim
15:36:53Araq#define __intern_FOO __X##F
15:44:53*samdoran joined #nim
15:47:32*Demon_Fox joined #nim
15:54:13*arnetheduck quit (Ping timeout: 252 seconds)
16:00:37*dorei quit (Quit: Page closed)
16:15:12*BitPuffin joined #nim
16:39:41*ent_ joined #nim
16:40:13*pregressive joined #nim
16:41:25*pregressive quit (Read error: Connection reset by peer)
16:41:39*ent_ is now known as enthus1ast
16:41:54*pregressive joined #nim
16:58:10enthus1astFun fact: KFC/Pizza Hut Germany and KFC Netherlands, are useing nim : )
16:59:17ArrrrNow i want pizza, and nim ...
16:59:46ArrrrHow do you now?
17:00:31enthus1astI know because im useing it there ;=)
17:03:18enthus1astI've written some small sales processing scripts. And now they are in 'production'. Makeing my life a lot easier.
17:04:06ArrrrDo you feel more productive thanks to nim?
17:05:09federico3enthus1ast: why the quotes? :)
17:05:50enthus1astKFC is spezial...
17:07:15enthus1astArrrr: a lot. I was like: "batch, no" "cscript, no way" "powershell, does anybody use that crap?" "nim!" : )
17:08:03ldleworkpowershell has its own world that you have to enter and learn things from scratch
17:08:11ldleworkbut it really does have some great insights
17:08:16ldleworkbut don't tell anyone I said that
17:08:26ArrrrAre you using vanilla nim? or nimscripts?
17:09:50*thotypous quit (Changing host)
17:09:50*thotypous joined #nim
17:10:33enthus1astvanilla nim
17:11:49enthus1astldlework: i tried to get my head around powershell but to me it looks like they are always breaking backward compatibility
17:12:02ldleworkI somehow doubt that
17:12:08ldleworkBut we don't have to argue about it
17:13:46enthus1astits always a bad sign when simple hello worlds fail when copied from an example page... But maybe its just me ; )
17:14:36enthus1astjah i know powershell 1/2 whatever
17:17:48*pregressive quit (Remote host closed the connection)
17:20:01*BitPuffin quit (Ping timeout: 252 seconds)
17:25:21*desophos joined #nim
17:25:41*desophos_ joined #nim
17:25:49*desophos quit (Read error: Connection reset by peer)
17:28:11*jaco60 quit (Quit: Leaving)
17:28:29*pregressive joined #nim
17:28:34*jaco60 joined #nim
17:34:25*yglukhov quit (Ping timeout: 268 seconds)
17:37:11*desophos_ is now known as desophos
17:40:25*Demon_Fox quit (Quit: Leaving)
17:40:33Varriountenthus1ast: Now we can have giant KFC & Pizza Hut logos on the website.
17:41:02Varriountenthus1ast: "Proudly used by the world's leading fast-food chains" is always a good statement.
17:41:57enthus1ast; )
17:42:14federico3s/used/sponsored/
17:42:27federico3free pizza for Nim contributors!
17:42:57enthus1astim not shure if the managers know about it :P
17:43:08enthus1astbut as long it works, nobody asks
17:50:49enthus1asthow you are useing nim? Do you use nim for profit?
17:51:26*filcuc quit (Read error: Connection reset by peer)
17:55:42federico3some toys, some little projects on GH - too early for production use
17:55:53*pregressive quit (Remote host closed the connection)
17:59:42*pregressive joined #nim
18:03:38cheatfateVarriount, do you remember my morning equation? forget it i hate OpenBSD/NetBSD/MacOS now because of their kqueue implementation
18:07:59*enthus1ast quit (Quit: Page closed)
18:21:11*pregressive quit (Remote host closed the connection)
18:22:30*yglukhov joined #nim
18:26:25*yglukhov quit (Ping timeout: 240 seconds)
18:31:55*pregressive joined #nim
18:37:24*darkf joined #nim
18:48:46*yglukhov joined #nim
18:59:34*krux02 quit (Ping timeout: 244 seconds)
19:04:34*brson joined #nim
19:07:26*BitPuffin joined #nim
19:13:36*BitPuffin quit (Read error: Connection reset by peer)
19:13:51*BitPuffin joined #nim
19:22:14*BitPuffin quit (Ping timeout: 244 seconds)
19:29:15*pregressive quit (Remote host closed the connection)
19:35:47*Matthias247 joined #nim
19:41:06*Ven joined #nim
19:43:08*vendethiel joined #nim
19:44:04*pregressive joined #nim
19:50:15Varriountcheatfate: Why is that?
19:50:43cheatfatejust look at that https://gist.github.com/cheatfate/d483ae1a3f39951368eb
19:50:57cheatfateits modified kqueue.nim to satisfy all BSD systems
19:54:03cheatfatemacos with netbsd likes to change constants to their own values
19:55:43VarriountEh, could be worse. The structs could be significantly different.
19:55:54dom96hello guys
19:56:02Varriountdom96: Hi
19:57:34dom96what's up?
19:57:56cheatfatehi dom96
19:58:32cheatfatejust realised that kqueue declarations very different in bsd systems
19:59:37dom96cheatfate: that's annoying. Guess we'll just need to bite the bullet and use many `when defined(netbsd)`/`when defined(freebsd)` etc.
20:00:40cheatfateyour proposal?
20:01:04*vonh quit (Ping timeout: 264 seconds)
20:02:38dom96cheatfate: I guess you already solved it that way?
20:08:48cheatfateright now i'm installing openbsd and netbsd to check all this values... because if i'm right our kqueue.nim is not very reliable
20:09:08cheatfatebut the only problem its missing EVFILT_USER in openbsd/netbsd
20:09:40cheatfatei have already implement it for linux/windows/bsd and now i see it dont work for all bsd
20:11:56cheatfatelatest nim devel on openbsd 5.8 - build success
20:12:15*vonh joined #nim
20:13:00*GangstaCat quit (Quit: Leaving)
20:14:44*jaco60 quit (Quit: Leaving)
20:15:12*jaco60 joined #nim
20:15:44*vendethiel quit (Ping timeout: 260 seconds)
20:17:21*yglukhov quit (Remote host closed the connection)
20:19:32*jaco60 quit (Client Quit)
20:24:23*vendethiel joined #nim
20:26:08*krux02 joined #nim
20:34:32*GangstaCat joined #nim
20:34:54*GangstaCat quit (Client Quit)
20:36:08*jeffc quit (Read error: Connection reset by peer)
20:36:29*Arrrr quit (Quit: WeeChat 1.4)
20:39:29*GangstaCat joined #nim
20:41:17*vonh quit (Ping timeout: 244 seconds)
20:44:18*jaco60 joined #nim
20:55:19*yglukhov joined #nim
21:00:08*enthus1ast joined #nim
21:00:35*rok joined #nim
21:17:02*krux02 quit (Remote host closed the connection)
21:20:07*krux02 joined #nim
21:24:38*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:26:41*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:35:32*samdoran quit (Ping timeout: 244 seconds)
21:36:37*francisl quit (Quit: francisl)
21:38:08*pregressive quit (Remote host closed the connection)
21:45:11*PMunch joined #nim
21:48:59*bjz joined #nim
21:56:30*bjz quit (Ping timeout: 268 seconds)
21:58:46*krux02 quit (Remote host closed the connection)
22:00:36*francisl joined #nim
22:03:32*yglukhov quit (Read error: Connection reset by peer)
22:03:58*yglukhov joined #nim
22:23:45*vendethiel quit (Ping timeout: 276 seconds)
22:28:50*chrisheller joined #nim
22:31:39*jaco60 quit (Ping timeout: 268 seconds)
22:32:13*jaco60 joined #nim
22:32:18*vonh joined #nim
22:42:28*CARAM__ quit (Ping timeout: 264 seconds)
22:43:09*francisl quit (Quit: francisl)
22:43:27*CARAM__ joined #nim
22:46:15*Varriount quit (Disconnected by services)
22:46:15*Varriount_ joined #nim
22:48:23*vendethiel joined #nim
22:51:40*yglukhov quit (Remote host closed the connection)
22:51:58*rok quit (Quit: rok)
22:58:43*Kingsquee joined #nim
23:05:32cheatfategot this https://gist.github.com/cheatfate/58e02d1c93e07fb6b6e6 trying to compile selectors.nim in openbsd
23:06:31cheatfateand its annoying
23:10:22*vendethiel quit (Ping timeout: 252 seconds)
23:10:30*Trustable quit (Remote host closed the connection)
23:33:57*gokr quit (Quit: Leaving.)
23:40:04*CARAM__ quit (Ping timeout: 264 seconds)
23:40:28*CARAM__ joined #nim
23:42:52cheatfateAraq, i know you already answered this question but how properly import many include files with .header. pragma
23:44:22Araq.header: """#include <one.h>
23:44:35Araq#include <two.h>"""
23:48:17*toaoMgeorge joined #nim
23:50:17cheatfateAraq, BIG THANKS it helps openbsd
23:53:54*desophos quit (Remote host closed the connection)
23:56:41*Demos joined #nim