<< 24-07-2015 >>

00:06:34*yglukhov quit (Remote host closed the connection)
00:11:45*yglukhov joined #nim
00:13:08filwitit's odd, procs which take typedesc (and maybe all type-classes) don't seem work as "properties".. but only those..
00:13:12filwiteg:
00:13:22filwitproc blah(T:typedesc): int = 2
00:13:47filwitvar x = int.blah # fails
00:13:54filwitproc blah(i:int): int = 2
00:13:59filwitvar y = 2.blah # works
00:14:18filwitnot sure if bug or expected behavior
00:24:36Araqfilwit: int.blah works for me
00:26:18filwiteh, i literally just tried this with the latest devel... one sec
00:26:39*Demos quit (Remote host closed the connection)
00:28:49filwiteh, i literally just tried this with the latest devel... one sec
00:29:08filwitg'damn alt-tab...
00:29:34filwityeah wtf.. int.blah is working for me now...
00:29:55filwitbut typetraits.name does not work as T.name.. which is why tried this
00:33:55AraqT.name works as well
00:34:57filwitnot for me, just tried.. one sec
00:39:00filwitsorry, doing a few different things ATM.. but the error I'm getting is:
00:39:02filwitError: type mismatch: got (Page, T.(macros.name|typetraits.name|...))
00:39:02filwitbut expected one of:
00:39:02filwitevents.defineEnable(item: typed, typeName: static[string])
00:39:23filwit'events.defineEnabled' is a proc in my module
00:39:45filwiterr.. it's macro, not a proc
00:40:24filwitit works if i call it like: `defineEnabled(item, name(T))` but not like `defineEnabled(item, T.name)`
00:41:07filwitwill try to isolate the scenario a bit
00:42:15Araqcontinues to work when I import macros
00:42:19*Demon_Fox joined #nim
00:42:21Araqhas to do with your macro
00:43:30filwitit's being called from a generic proc
00:43:56*brson quit (Quit: leaving)
00:44:42filwit'defineEnable` is a macro, but it gets called from a `proc enable[T](item:T) = defineEnable(item, T.name)`
00:45:33filwiti'm not sure how it could be the `defineEnable` or my `enable` proc since it works just fine with `name(T)`
00:46:31*AckZ quit ()
00:46:41*AckZ joined #nim
00:47:51filwitand what's really odd is that my 'int.blah' test was literally just failing with the same error message.. but now it seems to work.. wtf..
00:49:10filwitand what's really odd is that my 'int.blah' test was literally just failing with the same error message.. but now it seems to work.. wtf..
00:49:16filwitomg..
00:49:49*johnsoft quit (Ping timeout: 246 seconds)
00:50:20filwitokay, nevermind I rolled back to the actual code and the error was from using typetraits.name specifically in the 'blah' function.. my bad
00:50:40filwitit's still odd how that function seems to no want to work as a property for me
00:50:47filwitit's still odd how that function seems to no want to work as a property for me
00:51:52filwittesting again, looks like typetraits.name does in fact work like a property just fine in the simple `blah` example... sorry for the confusion..
00:52:07filwitgoing to try and isolate why it's not working with my other function though
00:52:34Araqnot really. it's tough to translate x.f to f(x) and in general cannot always work
00:52:46Araqthe manual mentions the exceptions
00:53:06*yglukhov quit (Remote host closed the connection)
00:53:20*yglukhov joined #nim
00:56:18*yglukhov quit (Remote host closed the connection)
00:57:44filwityeah.. the only thing I can see is that the actual call to `enable` is being generated by another macro.. and perhaps somehow that messes things up
00:58:41filwitanyways, not a huge deal since it if use the direct call syntax
01:07:33*Jaood joined #nim
01:14:59*elbow_jason quit (Quit: Leaving)
01:21:43*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
01:27:12*jaco60 quit (Ping timeout: 244 seconds)
01:42:07*elbow joined #nim
02:03:47*Jaood quit (Ping timeout: 256 seconds)
02:15:55*biscarch quit ()
02:16:16*biscarch joined #nim
02:27:45*clone1018 quit ()
02:27:57*clone1018 joined #nim
02:49:21*FedeOmoto quit (Quit: Leaving)
02:49:34*Demos joined #nim
03:01:23*Demos quit (Remote host closed the connection)
03:04:08*Demos joined #nim
03:10:39VarriountAraq: Concerning locks, doesn't the predefined numerical ordering complicate lock handling across different libraries?
03:12:16VarriountAraq: Like, if my personal code is using lock levels 34 and 35, and some lower level library code uses lock levels 10 and 11, and yet another library is using levels 35 and 38, things could get rather complicated.
03:12:38*MyMind joined #nim
03:12:42*Sembei quit (Read error: No route to host)
03:12:53VarriountWouldn't an explicit ordering based on names be better?
03:14:23*badsectors joined #nim
03:14:38*badsectors left #nim ("Leaving")
03:16:45*Demos quit (Remote host closed the connection)
03:17:40*Pisuke joined #nim
03:18:22*MyMind quit (Read error: Connection reset by peer)
03:21:34*Pisuke quit (Read error: Connection reset by peer)
03:22:27*Pisuke joined #nim
03:25:55*Sembei joined #nim
03:26:25*Pisuke quit (Read error: Connection reset by peer)
03:27:07*vendethiel joined #nim
03:29:56*Sembei quit (Read error: No route to host)
03:30:00*Demos joined #nim
03:30:08*MyMind joined #nim
03:31:59*Demos quit (Remote host closed the connection)
03:33:32*MyMind quit (Read error: Connection reset by peer)
03:34:24*Demos joined #nim
03:34:25*Pisuke joined #nim
03:38:08*Pisuke quit (Read error: Connection reset by peer)
03:38:24*Sembei joined #nim
03:41:56*Sembei quit (Read error: No route to host)
03:42:33*MyMind joined #nim
03:46:06*MyMind quit (Read error: Connection reset by peer)
03:46:41*Pisuke joined #nim
03:48:10*Demos quit (Remote host closed the connection)
03:50:48*vendethiel quit (Ping timeout: 264 seconds)
03:51:07*Pisuke quit (Read error: Connection reset by peer)
03:51:28*Sembei joined #nim
03:54:40*Sembei quit (Read error: Connection reset by peer)
03:55:01*MyMind joined #nim
03:58:45*MyMind quit (Read error: Connection reset by peer)
03:59:07*Pisuke joined #nim
04:01:29*Demos joined #nim
04:02:47*Pisuke quit (Read error: No route to host)
04:03:51*Pisuke joined #nim
04:05:18*Demos quit (Remote host closed the connection)
04:06:44*Pisuke quit (Read error: No route to host)
04:07:23*Sembei joined #nim
04:09:18*Demos joined #nim
04:10:53*Sembei quit (Read error: Connection reset by peer)
04:12:11*Sembei joined #nim
04:13:15*vegansk joined #nim
04:14:51*Sembei quit (Read error: No route to host)
04:15:39*Sembei joined #nim
04:18:29*Jaood joined #nim
04:19:12*Sembei quit (Read error: No route to host)
04:19:48*MyMind joined #nim
04:19:57*Jaood left #nim (#nim)
04:22:05*Demos quit (Remote host closed the connection)
04:23:31*MyMind quit (Read error: No route to host)
04:23:39*Demos joined #nim
04:23:57*Pisuke joined #nim
04:28:01*Pisuke quit (Read error: No route to host)
04:28:11*Sembei joined #nim
04:29:45*Demos quit (Remote host closed the connection)
04:31:11*Demos joined #nim
04:31:31*Sembei quit (Read error: No route to host)
04:32:12*MyMind joined #nim
04:35:56*Jaood joined #nim
04:36:25*MyMind quit (Read error: No route to host)
04:37:01*Pisuke joined #nim
04:37:02*Demos quit (Remote host closed the connection)
04:39:13*Concept joined #nim
04:39:31*Concept left #nim (#nim)
04:39:36*Pisuke quit (Read error: No route to host)
04:40:22*Conceptualised joined #nim
04:40:31*Pisuke joined #nim
04:43:52*Demos joined #nim
04:43:52*Pisuke quit (Read error: No route to host)
04:44:42*Pisuke joined #nim
04:47:26*sidoaight left #nim ("We need to work as a team. Which means doing what I say.")
04:48:16*Pisuke quit (Read error: Connection reset by peer)
04:48:50*Sembei joined #nim
04:48:58*Demos quit (Remote host closed the connection)
04:52:17*Sembei quit (Read error: No route to host)
04:52:54*darkf joined #nim
04:53:36*Sembei joined #nim
04:56:32*Sembei quit (Read error: No route to host)
04:56:41*^aurora^ joined #nim
04:56:53*Demos joined #nim
04:57:12*MyMind joined #nim
04:59:33*Jaood left #nim ("ERC (IRC client for Emacs 24.5.1)")
05:00:49*MyMind quit (Read error: No route to host)
05:01:27*Pisuke joined #nim
05:04:30*Pisuke quit (Read error: No route to host)
05:05:24*Pisuke joined #nim
05:08:37*Pisuke quit (Read error: No route to host)
05:09:36*Pisuke joined #nim
05:13:33*Pisuke quit (Read error: No route to host)
05:14:21*Sembei joined #nim
05:17:06*Sembei quit (Read error: No route to host)
05:18:06*Conceptualised quit (Remote host closed the connection)
05:18:28*Sembei joined #nim
05:21:26*Sembei quit (Read error: Connection reset by peer)
05:21:44*BitPuffin|osx quit (Ping timeout: 250 seconds)
05:22:01*MyMind joined #nim
05:25:23*MyMind quit (Read error: No route to host)
05:26:44*MyMind joined #nim
05:30:02*MyMind quit (Read error: Connection reset by peer)
05:30:17*Pisuke joined #nim
05:34:30*Sembei joined #nim
05:34:56*Pisuke quit (Read error: Connection reset by peer)
05:38:02*Sembei quit (Read error: Connection reset by peer)
05:38:29*MyMind joined #nim
05:39:47*Demos quit (Remote host closed the connection)
05:41:54*Demos joined #nim
05:42:03*MyMind quit (Read error: Connection reset by peer)
05:43:21*MyMind joined #nim
05:43:37*Demos quit (Remote host closed the connection)
05:44:51*Demos joined #nim
05:46:37*MyMind quit (Read error: Connection reset by peer)
05:46:48*Pisuke joined #nim
05:50:39*Pisuke quit (Read error: Connection reset by peer)
05:51:06*Sembei joined #nim
05:51:52Demosugh. I'm a bad programmer and I feel bad
05:52:16Demoswrote code like
05:52:28Demostype Color = distinct int
05:52:46Demosso that I can define proc `[]=`(t: Color, n: int) = ...
05:53:00Demosand call it using obj.Color[0] = ...
05:53:03Demoswhere obj is an int
05:54:27*Sembei quit (Read error: No route to host)
05:55:47*Sembei joined #nim
05:59:19*MyMind joined #nim
05:59:20*Sembei quit (Read error: No route to host)
06:03:07*MyMind quit (Read error: Connection reset by peer)
06:03:22*Pisuke joined #nim
06:05:12*jszymanski joined #nim
06:07:15*Pisuke quit (Read error: Connection reset by peer)
06:08:13*Pisuke joined #nim
06:09:10*Demos quit (Remote host closed the connection)
06:10:37*Demos joined #nim
06:11:21*Pisuke quit (Read error: No route to host)
06:11:45*Sembei joined #nim
06:15:29*filwit quit (Quit: Leaving)
06:15:48*Sembei quit (Read error: No route to host)
06:16:30*MyMind joined #nim
06:19:27*MyMind quit (Read error: Connection reset by peer)
06:20:00*Pisuke joined #nim
06:23:33*Pisuke quit (Read error: No route to host)
06:24:08*Sembei joined #nim
06:26:16*jszymanski quit (Quit: computer sleeps...)
06:28:13*Sembei quit (Read error: No route to host)
06:28:20*MyMind joined #nim
06:32:03*MyMind quit (Read error: No route to host)
06:32:29*Pisuke joined #nim
06:36:04*Pisuke quit (Read error: No route to host)
06:36:34*Sembei joined #nim
06:40:28*Sembei quit (Read error: No route to host)
06:40:45*Demos quit (Remote host closed the connection)
06:40:58*MyMind joined #nim
06:44:05*MyMind quit (Read error: No route to host)
06:44:52*Pisuke joined #nim
06:48:52*Trustable joined #nim
06:49:00*Sembei joined #nim
06:49:29*Pisuke quit (Read error: Connection reset by peer)
06:55:19*yglukhov joined #nim
07:04:21r-kuvbtt im around \o/
07:25:13*bjz joined #nim
07:40:01*jszymanski joined #nim
07:45:53*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
07:52:44*^aurora^ quit (Quit: My Mac has gone to sleep. ZZZzzz…)
08:10:59*elbow quit (Ping timeout: 256 seconds)
08:20:04*elbow joined #nim
08:24:07*coffeepot joined #nim
08:25:03*elbow quit (Ping timeout: 265 seconds)
08:38:29*elbow joined #nim
08:45:44*Ven joined #nim
08:50:58*gunn quit (Quit: My Mac has gone to sleep. ZZZzzz…)
09:13:05*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:50:06*yglukhov quit (Remote host closed the connection)
09:53:49*jaco60 joined #nim
10:21:36*yglukhov joined #nim
10:26:03*yglukhov quit (Ping timeout: 255 seconds)
10:28:28*gunn joined #nim
10:33:10*Demon_Fox quit (Quit: Leaving)
11:16:56*yglukhov joined #nim
11:21:50*yglukhov quit (Ping timeout: 272 seconds)
11:26:26reactormonkAraq, I'm still taking suggestions on how to write https://gist.github.com/13b9138cf28f2e76ec10 since I can't use Option
11:39:26*infinity0 quit (Remote host closed the connection)
11:41:38*infinity0 joined #nim
11:57:12*elbow quit (Remote host closed the connection)
11:58:03*[CBR]Unspoken quit (Ping timeout: 244 seconds)
12:14:12*[CBR]Unspoken joined #nim
12:21:25*boopsiesisaway is now known as boopsies
12:29:35*TylerE quit ()
12:29:50*TylerE joined #nim
12:38:36*bjz joined #nim
12:45:47*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
13:37:17*jszymanski quit (Ping timeout: 246 seconds)
13:38:30*jszymanski joined #nim
14:13:22*BitPuffin|osx joined #nim
14:13:26*drewsrem joined #nim
14:14:44*pregressive joined #nim
14:18:21*FedeOmoto joined #nim
14:19:29drewsremfowl, I tried to read what you gave me yesterday and couldn't make sense of how I could apply this to my problem, I made a very well commented small example tho of what I'm trying to do, I'd be really thankful if you'd take a look at it and confirm if this is doable or even take a small stab at it: http://ix.io/jTL - if you find the time to do so
14:32:54*yglukhov joined #nim
14:37:36*yglukhov quit (Ping timeout: 264 seconds)
14:38:21*yglukhov joined #nim
14:40:50Araqreactormonk: well please fix the path handling in the compiler ...
14:55:12reactormonkAraq, ah, for including stuff? What would be the proper way to specify which one you want?
14:55:48Araqpaths
14:56:57reactormonkso pure/options ?
14:57:07Araqyeah
14:57:51reactormonksounds like that would make path handling a lot more complex
14:59:02Araqnah you need to do --path:$lib perhaps
15:00:41*yglukhov quit (Remote host closed the connection)
15:09:22*yglukhov joined #nim
15:13:36*yglukhov quit (Ping timeout: 255 seconds)
15:26:13*pregressive quit (Remote host closed the connection)
15:30:16*pregressive joined #nim
15:31:45*pregressive quit (Remote host closed the connection)
15:33:17*DecoPerson quit ()
15:33:36*DecoPerson joined #nim
15:34:01*strcmp1 joined #nim
15:51:33*Jesin quit (Quit: Leaving)
15:52:28*jszymanski quit (Quit: computer sleeps...)
16:10:13*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:11:30*yglukhov joined #nim
16:13:48*yglukhov quit (Read error: Connection reset by peer)
16:14:13*yglukhov joined #nim
16:15:16*yglukhov quit (Read error: Connection reset by peer)
16:15:39*yglukhov joined #nim
16:17:30*yglukhov quit (Remote host closed the connection)
16:17:49*yglukhov joined #nim
16:19:30*Jesin joined #nim
16:23:02*yglukhov quit (Remote host closed the connection)
16:28:53*yglukhov joined #nim
16:33:54*jszymanski joined #nim
16:36:33*elbow joined #nim
16:44:05*yglukhov quit (Remote host closed the connection)
16:48:29*pregressive joined #nim
16:49:55*yglukhov joined #nim
16:51:38*yglukhov quit (Remote host closed the connection)
16:51:51*yglukhov joined #nim
17:01:12vbttr-ku:i'm interested in learning about the coroutine stuff you're doing
17:01:56vbtthow the semantics differ from async/await and how are they implemented etc.
17:02:44*Demos joined #nim
17:03:43*aziz joined #nim
17:06:59*darkf quit (Quit: Leaving)
17:08:18*yglukhov quit (Remote host closed the connection)
17:13:12*yglukhov joined #nim
17:14:12Araqvbtt: it's too early to say. but since these a proper coroutines the current restrictions that a closure iterator cannot be recursive are gone
17:14:12*yglukhov quit (Read error: Connection reset by peer)
17:14:24r-kuvbtt its simply some setjmp/longjmp calls
17:14:43*yglukhov joined #nim
17:14:59*vikaton joined #nim
17:17:26*MyMind joined #nim
17:19:05*Sembei quit (Ping timeout: 240 seconds)
17:19:32reactormonkAraq, so there is no way to abstract over varness?
17:20:40Araqno.
17:20:44reactormonkeven in templates?
17:20:54Araqdunno what that means
17:21:07reactormonkehh, works with immediate ^^
17:21:24Araqbut in general I dislike your varness "abstractions" ideas :P
17:21:42Araqwhether it's var or not is an important distinction
17:21:51Araqnot something you need to "patch over"
17:22:07Araqit's not a deficiency in the language.
17:22:57reactormonkI don't like code duplication. https://gist.github.com/9e3c111eb29f5a238364 so should I just inline getMaybe and be done with it?
17:23:06reactormonkBtw, path:$lib solved it
17:24:17Araqor you can certainly use .immediate templates for the common body
17:24:26*vikaton quit ()
17:24:29reactormonkas I'm doing now?
17:24:40*ChrisMAN quit (Remote host closed the connection)
17:24:59reactormonklib/pure/collections/tables.nim(118, 30) Error: expression has no address - from line 20
17:25:00Araqas the tables module already does it
17:25:11*Jesin quit (Quit: Leaving)
17:25:53reactormonkbtw, I think we should rename "expression has no address" to something like "expression isn't mutable"
17:26:12Araqperhaps
17:26:28Araqor we include a link to some tutorial about varness
17:26:44reactormonkBut still, a non-obscure error message would help
17:26:53reactormonkor both.
17:27:04Araqbut I dunno if people like links in their terminals
17:28:30reactormonkJust gotta be short, and most terminals auto-link anyway
17:28:54reactormonkmac and most linux terminals do, how about that other OS?
17:31:28reactormonkshould I just go for exprs in that template, so it propagates the original types?
17:31:32Araqdepends on the console that you use
17:31:45Araqreactormonk: yeah your template is strange, just make it untyped
17:32:02Araqyour types take away the varness
17:32:12reactormonknope, still bails
17:32:27Araqmaybe your code is really wrong?
17:32:40reactormonkEntirely possible, which approach would you take?
17:34:21*BitPuffin|osx quit (Read error: Connection reset by peer)
17:34:59*BitPuffin|osx joined #nim
17:41:28*boopsies is now known as boopsiesisaway
17:42:35*boopsiesisaway is now known as boopsies
17:43:26*Trustable quit (Remote host closed the connection)
17:43:26*yglukhov quit (Read error: Connection reset by peer)
17:43:43*yglukhov joined #nim
17:43:46*yglukhov quit (Remote host closed the connection)
17:44:33*boopsies is now known as boopsiesisaway
17:44:55*Jesin joined #nim
17:46:40*boopsiesisaway is now known as boopsies
17:52:04*X67r joined #nim
17:52:54*yglukhov joined #nim
17:55:14*yglukhov quit (Read error: Connection reset by peer)
17:55:34*yglukhov joined #nim
18:00:13*yglukhov quit (Ping timeout: 265 seconds)
18:06:34*Jesin quit (Quit: Leaving)
18:07:57*Demos quit (Remote host closed the connection)
18:11:24*Demos joined #nim
18:11:33*Jesin joined #nim
18:21:37*Matthias247 joined #nim
18:23:31*brson joined #nim
18:25:05*^aurora^ joined #nim
18:26:39*xificurC quit (Ping timeout: 255 seconds)
18:34:44*yglukhov joined #nim
18:36:16*yglukhov quit (Remote host closed the connection)
18:38:48*^aurora^ quit (Read error: Connection reset by peer)
18:48:26*yglukhov joined #nim
18:48:50*Demos quit (Remote host closed the connection)
18:52:29*Demos joined #nim
18:53:01*yglukhov quit (Ping timeout: 256 seconds)
18:53:42*Demos quit (Remote host closed the connection)
18:53:44*yglukhov joined #nim
18:54:00*Demos joined #nim
18:54:30*yglukhov quit (Remote host closed the connection)
18:54:44*brson quit (Remote host closed the connection)
18:55:07*bogen-work joined #nim
18:58:45bogen-workwhat would make nim apps compiled on FreeBSD not handle UTF-8 correctly? My locale LANG is set to en_US.UTF-8. Other applications are processing UTF-8 correctly. If I log into a Linux box from FreeBSD and run a nim app their, UTF-8 characters are displayed correctly. If I log into FreeBSD from Linux, other applications handle UTF-8 fine, but not nim applications (compiled on FreeBSD).
18:59:03*Cryptotoad joined #nim
19:01:14*ChrisMAN joined #nim
19:04:23*aziz quit (Remote host closed the connection)
19:06:54*yglukhov joined #nim
19:08:42*xificurC joined #nim
19:09:19*yglukhov_ joined #nim
19:09:20*yglukhov quit (Read error: Connection reset by peer)
19:11:27*Demos quit (Remote host closed the connection)
19:13:42*Varriount_ joined #nim
19:15:28*Varriount quit (Ping timeout: 246 seconds)
19:18:38Cryptotoadhaving some issues with the sqlite library on winbloat, it's saying could not load: sqlite3.dll even when I've compiled a 64 bit version and put it in the folder.
19:23:43bogen-workok, well, got it partially working (UTF-8 stuff), it is likely my configuration...
19:23:49*Varriount|Busy joined #nim
19:24:33*Varriount__ joined #nim
19:24:39dom96Cryptotoad: did you compile your application using a 64bit compiler?
19:25:13Varriount|Busybogen-work: Uh, what part of your application is dealing with strings?
19:26:03Cryptotoadi tried with 32 and 64, afaik it's 32 bit but i did the test with 64 too just for science
19:26:21Cryptotoadwas mostly just wondering if anyone had encountered that issue before
19:27:08*Jesin quit (Quit: Leaving)
19:27:26*Varriount joined #nim
19:27:45*Varriount_ quit (Ping timeout: 252 seconds)
19:30:08*Varriount__ quit (Ping timeout: 272 seconds)
19:33:11dom96Cryptotoad: is the dll in the same folder as the exe?
19:33:26Cryptotoadyeah it is
19:33:39dom96hey Varriount|Busy, how was OSCON?
19:33:57Varriount|Busydom96: Nice, even though I was only there for a day.
19:34:03*yglukhov_ quit (Remote host closed the connection)
19:34:23dom96Cryptotoad: in that case i'm not sure, the most common problem is that you are compiling your app using a 64 bit nim/gcc compiler and then trying to use a 32bit DLL or vice versa.
19:34:51dom96Varriount|Busy: These type of things make me wish I lived in the US
19:35:04Varriount|Busydom96: You get to go to Amsterdam though.
19:35:27Cryptotoadwell i'll prod at it with a stick
19:35:31Cryptotoadhopefully it works eventually
19:35:37dom96Varriount|Busy: Hopefully. It's still not confirmed whether Araq will be speaking there.
19:35:39Varriount|Busydom96: How much would a round-trip flight to the US be?
19:35:59dom96Varriount|Busy: $1000+ likely
19:36:15bogen-workok, nim is not acting consistent. I can compile a small hello world app, and it outputs foreign characters fine, but in a larger app the same echo statement at the top of the file displays garbage.
19:36:54bogen-worksame build options, same login session...
19:36:59dom96Varriount|Busy: yeah, Google is showing me prices around £1300
19:37:00Varriount|Busybogen-work: What compiler version, and what OS?
19:37:08*ChrisMAN quit (Quit: Leaving)
19:37:22*ChrisMAN joined #nim
19:37:28Varriount|Busydom96: Aww.
19:37:34*Varriount_ joined #nim
19:37:34dom96Varriount|Busy: I'm kinda annoyed because one of my colleagues got to go there, and the company funded him, but because I just joined and am an intern...
19:37:43bogen-workFreeBSD, just now built from git (-b devel)
19:38:07dom96bogen-work: can we see the source code of the larger app?
19:38:09bogen-workVarriount|Busy: it was acting this way on an older build
19:38:38Varriount|Busybogen-work: My first assumption would be some sort of memory corruption.
19:39:36bogen-workI will try to narrow it down. Well, out of all the other text it is outputting, it is only the UTF-8 charcters that are getting messed up.
19:39:38dom96If Varriount|Busy's assumption is correct then compilling with --gc:none might give different results.
19:39:59dom96Does the output change when you compile in release mode vs. debug mode?
19:40:16bogen-workI've only been compiling for debug
19:40:18bogen-workeh
19:40:20dom96Lot's of things you can try
19:40:21bogen-workfor release I mean
19:40:25dom96try debug
19:40:54*Varriount quit (Ping timeout: 272 seconds)
19:42:34*Varriount__ joined #nim
19:42:35bogen-workwith debug, same garbage. can't compile with --gc:none Error: system module needs 'initStackBottomWith'
19:43:34dom96huh, that's odd.
19:43:39bogen-workI'm going to compile the same large app on Linux and see if I get the same results.
19:43:45dom96--gc:boehm?
19:44:59bogen-workbuilds, same garbage
19:45:04*filcuc joined #nim
19:45:14Varriount|Busybogen-work: Can I seem your code?
19:45:18Varriount|Busy*see
19:45:43*Varriount_ quit (Ping timeout: 256 seconds)
19:45:44Varriount|BusyAre you using any non-standard C standard library implementation?
19:46:51bogen-worknot this particular code.... I'll try to come up with a use case that has the same symptom. yes, I'm using oither libraries. I'm going to see now if it does the same on Linux.
19:49:56*strcmp1 quit (Ping timeout: 265 seconds)
19:50:07bogen-workok, this is not freebsd specific. I get same garabage on Linux, I'll come up with a use case.
19:50:16bogen-workwell, a repro case
19:51:55*yglukhov joined #nim
19:53:30dom96bogen-work: that would be really helpful, thanks!
19:55:24*Varriount joined #nim
19:58:02*strcmp1 joined #nim
19:58:36*Varriount__ quit (Ping timeout: 264 seconds)
20:01:04bogen-workok, it does not seem to be nim... something seems to be corrupting the files...
20:01:10Varriount|Busy?
20:01:26*shodan45 joined #nim
20:01:31bogen-workwell, I can view a file in an editor, and it is fine
20:01:46wuehlmaussome terminal problems?
20:01:52bogen-workcat it, and the foreign characters are garbage
20:02:03Varriount|Busybogen-work: Check the file encoding.
20:02:04bogen-workthen I can paste the contents into a different editor
20:02:09bogen-workand cat the file
20:02:11bogen-workand it is fine
20:02:33bogen-workwell, same editor, new file
20:02:48*Varriount quit (Ping timeout: 264 seconds)
20:02:51Varriount|Busybogen-work: What editor are you using, and are you saving the file with the correct encoding?
20:03:00bogen-workyeah, it is file issue (joe and scite)
20:07:14FedeOmotobogen-work: what does the 'file' command say about the file?
20:08:05bogen-workok, it is Scite. Joe is file. Scite sames them as ascii when no foreign characters, but as "ISO-8859 text" when UTF-8 characters are pasted in.
20:08:21bogen-workScite save them as....
20:08:48bogen-workFedeOmoto: with joe, UTF-8, with Scite,
20:08:54bogen-workISO-8859 text
20:08:57FedeOmotothat's it
20:09:06*yglukhov quit (Remote host closed the connection)
20:09:51bogen-workoh, my quick examples I was using joe, and my main app I was doing in Scite...
20:10:29FedeOmotonice mix :P
20:12:07*Demos joined #nim
20:15:28bogen-workdom96, Varriount|Busy, FedeOmoto, well, thanks... Got it figured out...
20:16:15FedeOmotonp
20:17:06dom96ahh, the joys of text encoding.
20:17:09*Demos quit (Ping timeout: 244 seconds)
20:20:24*DreadKnight joined #nim
20:24:11*Varriount joined #nim
20:30:08*Trustable joined #nim
20:32:49*tankfeeder joined #nim
20:34:53*Demos joined #nim
20:37:04*titanomachy joined #nim
20:41:25*tankfeeder quit (Quit: Leaving)
20:48:59Cryptotoadfixed my sqlite issue, does nim have any inbuilt filter for sql injection or should I code one?
20:50:26Cryptotoadnevermind i assume the args parameter is filtered?
20:52:32*jszymanski quit (Quit: computer sleeps...)
20:54:46*zielmicha joined #nim
21:09:01*BitPuffin|osx quit (Ping timeout: 256 seconds)
21:10:06federico3Cryptotoad: you might want to look at taint analysis
21:10:13*boopsies is now known as boopsiesisaway
21:10:20*boopsiesisaway is now known as boopsies
21:10:23*boopsies is now known as boopsiesisaway
21:10:30*boopsiesisaway is now known as boopsies
21:12:48*boopsies is now known as boopsiesisaway
21:13:15*boopsiesisaway is now known as boopsies
21:14:09*sparrk joined #nim
21:14:55sparrkFor http://nim-lang.org/docs/db_postgres.html how does one escape the values for a DB insert?
21:15:22sparrkIt seems like args should be the key, but I can't seem to figure out the proc type signature
21:18:19*pregressive quit (Remote host closed the connection)
21:18:29federico3any example of using asyncnet with UDP?
21:19:40*filcuc quit (Ping timeout: 244 seconds)
21:20:03sparrkAh, I figured out the interface
21:20:22sparrkRather than '$1' as shown in the example in the main manual, it is just $1
21:21:35Cryptotoadi used the nimforum source as a usage guide
21:21:41Cryptotoadhttps://github.com/nim-lang/nimforum
21:21:55*X67r quit (Quit: Changing server)
21:22:05dom96federico3: Not supported right now I'm afraid.
21:22:34*X67r joined #nim
21:23:16Cryptotoadanyone done a socks5 server yet?
21:23:22Cryptotoadi may code one if there's none existing
21:34:59federico3dom96: dammit :(
21:35:33dom96federico3: implement it, shouldn't be too difficult
21:36:55federico3I haven't used asyncnet yet - I should probably spend quite some time on it before :)
21:38:20dom96hrm, yeah.
21:39:20*xet7 joined #nim
21:41:12*pregressive joined #nim
21:42:54*FedeOmoto quit (Quit: Leaving)
21:43:32*xet7 quit (Client Quit)
21:43:41*xet7 joined #nim
21:44:33*xet7 quit (Client Quit)
21:44:42*xet7 joined #nim
21:45:30*pregressive quit (Ping timeout: 240 seconds)
21:51:24federico3https://libtins.github.io/ this looks very nice - anybody interested in writing a wrapper for it? :)
21:54:54*shodan45 quit (Quit: Konversation terminated!)
21:55:09*shodan45 joined #nim
21:55:27*saml quit (Quit: Leaving)
22:01:11*Kingsquee joined #nim
22:01:22*shodan45 quit (Quit: Konversation terminated!)
22:09:06sparrkIs it possible to compile a universal binary from Nim?
22:13:18*pregressive joined #nim
22:20:45reactormonksparrk, like for mac?
22:21:13*zaspard quit (Read error: Connection reset by peer)
22:22:27sparrkJust to work on every debian / Ubuntu OS would be fine for my purposes
22:23:14sparrkI have my first in production Nim app for my business, and I just need a way of deploying it
22:23:34sparrkI could rebuild the entire Nim compiler on the production machine
22:23:53sparrkbut I really just want to run it, so I figured there might be a way of doing that
22:24:07sparrkThat didn't involve reinstalling Nim on the production machine
22:24:29def-sparrk: if you can do it with C, same procedure should work with Nim
22:25:01def-sparrk: for C/C++ programs I usually use a VM with an old debian version so that it has an old glibc, then it runs on all my target distributions
22:25:57sparrkThanks def- that is helpful
22:26:39def-I guess one could also statically link another C library, like musl, but haven't tried that in production yet
22:31:36*zaspard joined #nim
22:31:46*sparrk quit (Quit: Leaving)
22:32:02federico3sparrk: the executable should work just fine on both distributions. Are they running on the same architecture? Can you ensure the same runtime dependencies are deployed?
22:33:22*Pisuke joined #nim
22:33:26*MyMind quit (Read error: No route to host)
22:36:40*sparrk joined #nim
22:37:06sparrkfederico3: Yes, I can ensure the runtime deps are the same
22:38:08federico3how can I split "foo:1" into a tuple containing a string "foo" and a number 1?
22:38:21sparrkhttp://nim.community/answers/split_string/
22:39:33sparrk(As I figure stuff out I'm keeping a list since right now it is hard to Google answers and I have a poor memory)
22:40:50federico3that does only the splitting
22:46:23sparrkhttps://gist.github.com/zachaysan/0b6a4eb712e4c385b0c5
22:46:24sparrkno?
22:48:01*def- quit (Ping timeout: 244 seconds)
22:49:03federico3yep, thanks
22:50:29federico3any way to define a tuple in a more concise way? e.g. let foo = tuple(a:1, b:"hi")
22:50:45*def- joined #nim
22:51:30federico3oh I can do let foo:tuple = (a:1, b:"hi")
22:52:20sparrkyou can also do things like
22:52:42federico3nah, I'm still going to need the tuple definition in other places :-/
22:53:16sparrkyeah, I prefer to just define them
22:53:23sparrkbut you *can* do things like this let foo = split("foo:bar", ":")
22:54:04sparrkoops, bad example
22:54:07sparrkthats an array
22:54:19sparrklet foo = splitFile("usr/local/nimc.html")
22:54:23federico3a sequence, afaict
22:54:33sparrkyeah sorry, sequence
22:55:09sparrkI'm still in the first couple weeks of using Nim
22:55:18*boopsies is now known as boopsiesisaway
22:58:02*Trustable quit (Remote host closed the connection)
23:04:43*X67r quit (Quit: leaving)
23:13:18*Varriount quit (Read error: Connection reset by peer)
23:15:24drewsremmeh, nim streams needs some love, there's no SEEK_SET / SEEK_CUR / SEEK_END for seek (which is named setPosition as well)
23:15:35drewsremso it seems I need to roll my own
23:17:47drewsremThis will probably be annoying to change too, as it breaks the Stream interface
23:29:42*BitPuffin|osx joined #nim
23:30:44dom96sparrk: nim.community is really nice, thanks for creating it
23:32:36*Kingsquee quit (Quit: Konversation terminated!)
23:41:14*drewsrem quit (Quit: Leaving)
23:52:57*MatrixBridge1 joined #nim
23:53:13*wuehlmau1 joined #nim
23:53:27*MatrixBridge2 joined #nim
23:54:00*MatrixBridge quit (Ping timeout: 240 seconds)
23:54:00*BitPuffin|osx quit (Ping timeout: 240 seconds)
23:54:00*vbtt quit (Ping timeout: 240 seconds)
23:54:00*renesac quit (Ping timeout: 240 seconds)
23:54:01*wuehlmaus quit (Ping timeout: 240 seconds)
23:54:39sparrkdom96: :3 thanks! Feel free to contribute with pull requests. My goal is to add at least 3 pages per week.
23:55:05dom96nice, will try but I am quite busy nowadays so I can't promise anything.
23:56:54sparrkDon't feel obligated!
23:58:54*BitPuffin|osx joined #nim