<< 22-02-2015 >>

00:01:30ekarlsodom96: which method there is it one should use ?
00:09:04*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
00:17:22BlaXpiritso I'm using unittest
00:17:30BlaXpiritassert(expr) works
00:17:57BlaXpiritcheck(the same expr) Error: expression 'missingItems' cannot be called
00:18:12flaviuBlaXpirit: Can you post code?
00:18:39BlaXpiritit's easily reproducible, now that I think about it
00:20:56flaviuIt may be easy to reproduce, but I don't know how to reproduce it.
00:21:02flaviuI'd like to fix it
00:21:21BlaXpiritflaviu, https://bpaste.net/show/3655ca17068c
00:22:05BlaXpiritdoes not need to be a generic actually
00:33:50Cykacykacykawhy does nim complain about not being able to identify dbFormat when I've imported db_sqlite ?
00:36:13*nimnoob123 joined #nim
00:37:17reactormonkCykacykacyka, exact error?
00:37:34Cykacykacyka db_acts.nim|14 col 23 error| undeclared identifier: 'dbFormat'
00:37:41Cykacykacykadb_acts.nim|14 col 31 error| expression 'dbFormat(unform_str, user_id)' cannot be called
00:38:44nimnoob123fowl was it you who told me that my error was a bug regarding the ref object use in this snippet https://gist.github.com/G4MR/43718393b67128450dcf, because now I'm using 0.10.3 and if I try to change both obj's to a ref I get this error http://pastie.org/9970147
00:39:29fowlnimnoob123, thats the same error you were getting on 0.10.2
00:39:38nimnoob123yeah
00:40:47fowlnimnoob123, try this https://gist.github.com/fowlmouth/74bd31089c0cd3545f26
00:41:24nimnoob123worked
00:42:16fowlnimnoob123, your example compiles and runs for me
00:42:27fowli believe you're still on 0.10.2
00:42:28nimnoob123that example was the working code
00:42:40nimnoob123i said when i changed them to ref obj
00:42:48nimnoob123sec let me show you the errored code
00:42:51fowlnimnoob123, you just said ref obj (my example) worked
00:43:16nimnoob123your example worked yes, let me show you the code that didn't compile for me
00:43:30fowlyes that would help..
00:44:22nimnoob123thought it was clear when I said when I used "ref's on the object type in my working snippet that it broke: https://gist.github.com/G4MR/372747924cc26927f089
00:44:57fowlthis is not really what you want
00:45:07fowloutput() takes ref ref T
00:47:51nimnoob123yeah I'm still not fairly sure how to properly use references and pointers in nim tbh, just went based on examples and went for the best
00:48:25Cykacykacykaerm, am I not allowed to exec dbFormat ?
00:48:53nimnoob123all I know is i couldn't get my objects to live along enough in my other project so I started testing to try figuring out what's going on, which I'm still fairly left confused on the syntax in general
00:49:11fowlnimnoob123, there does seem to be a codegen error when using double refs
00:50:42nimnoob123i found a bug on accident, yay? lol
00:51:11Cykacykacykaam I right in saying that at the moment, the best way to format strings for sql queries is to do it manually ?
00:52:45fowlCykacykacyka, no clue what "dbFormat" is, the db_ modules have exec() functions that will escape for you
00:53:36CykacykacykaI just understood the problem, I was reading the code, but I was ignoring the fact that I could pass extra arguments to exec and that would do everything I ever needed
00:54:24*reem joined #nim
00:54:28nimnoob123guess I'll wait on that Effective Nim or Nim Primer book because everything I read on references/pointers aren't that clear
00:57:27fowlnimnoob123, you know what a pointer is
00:57:31fowl?
00:57:44nimnoob123yes
00:57:54fowla ref is a pointer that you dont have to cleanup
00:59:06fowlso if you say type MyObj = ref object and then proc somefunc(foo: ref MyObj) somefunc acts on a pointer to a pointer to some data
01:00:10flaviufowl: That shouldn't be `ref object`
01:00:29nimnoob123yeah I get that, what I don't get is what's going on with the ref object
01:00:40Cykacykacykaerm, what would be a datatype to store date ?
01:01:00def-Cykacykacyka: see the times module
01:01:01fowlright no *Obj type should be a ref
01:02:29nimnoob123type myobject = ref object of RootObj - RootObj is built in right?, I see this all the time when reading source yet I'm not sure why you do that
01:03:02fowlroot obj is just a base object type you can inherit from
01:03:13fowlby default if you had type foo = object foo would not be inheritable
01:03:39nimnoob123so ref indicates that you can inherit from that object
01:03:53fowlno
01:04:02nimnoob123then you lost me
01:04:03fowlref means garbage collected
01:05:07*saml_ joined #nim
01:05:26fowl"MyObj = object of rootobj" - this object descends from RootObj
01:05:56fowl"MyRef = ref MyObj" - this is a garbage collected reference to a MyObj
01:06:37flaviunimnoob123: You can have inheritance without garbage collection and garbage collection without inheritance.
01:06:41*Trustable quit (Remote host closed the connection)
01:06:46fowl"MyRef = ref object of RootObj" - this is the same as the last two except there is no MyObj plain data type, only reference semantics
01:07:13fowlhopefully that made sense
01:09:24nimnoob123somewhat more so than the tutorial
01:10:31*fowlmouth joined #nim
01:11:13*fowl quit (Disconnected by services)
01:11:18*fowlmouth is now known as fowl
01:19:57*infinity0_ joined #nim
01:19:57*infinity0 quit (Killed (cameron.freenode.net (Nickname regained by services)))
01:19:57*infinity0_ is now known as infinity0
01:19:57*infinity0 quit (Changing host)
01:19:57*infinity0 joined #nim
01:21:29*fizzbooze quit (Quit: WeeChat 1.1.1)
01:21:52*nimnoob123 quit (Quit: Page closed)
01:31:59*BlaXpirit quit (Quit: Quit Konversation)
01:36:48*reem quit (Remote host closed the connection)
01:38:40*sillesta quit (Ping timeout: 255 seconds)
01:39:24*reem joined #nim
01:40:28*miko_ quit (Ping timeout: 255 seconds)
01:42:08*banister joined #nim
01:42:18*banister quit (Max SendQ exceeded)
01:42:29*banister joined #nim
01:42:38*banister quit (Max SendQ exceeded)
01:43:46*banister joined #nim
01:44:10*banister quit (Max SendQ exceeded)
01:46:50*Schala joined #nim
01:47:00*reem quit (Remote host closed the connection)
01:47:12SchalaForum doesn't have a "forgot password" function, does it?
01:47:29*darkf joined #nim
01:47:40*reem joined #nim
01:48:39*BitPuffin joined #nim
01:54:49flaviuSchala: Nope, just make a new account.
01:55:18Schaladarn... that neweds to be fixed
01:55:21Schalaneeds*
01:56:14flaviuPreventing emails from getting caught in spam filters is a major PITA apparently, so I don't see it being fixed soon.
01:57:15SchalaI see
01:58:44Schalaooo I got my codec to work
02:05:58*Schala quit (Quit: Page closed)
02:09:47*reem quit (Remote host closed the connection)
02:09:52*chemist69 quit (Read error: Connection reset by peer)
02:10:53*chemist69 joined #nim
02:24:30*RayoGundead joined #nim
02:35:05*BitPuffin quit (Ping timeout: 244 seconds)
02:43:00reactormonkAraq, what should be the behaviour of "split"?
02:48:03*banister joined #nim
02:48:08*banister quit (Max SendQ exceeded)
02:52:07*banister joined #nim
02:52:10*banister quit (Max SendQ exceeded)
03:27:55Cykacykacykaoh god, how do I calculate the distance between two points on earth expressed as latitude/longitude ?
03:29:45flaviuCykacykacyka: slightly offtopic, but http://docs.mongodb.org/manual/reference/operator/query-geospatial/
03:35:15*ob_ quit ()
03:39:25*DecoPerson joined #nim
03:41:51*banister joined #nim
03:42:12*banister quit (Max SendQ exceeded)
04:02:29*Outlander quit (Ping timeout: 246 seconds)
04:15:01*banister joined #nim
04:34:34*NimBot joined #nim
04:58:01Cykacykacykaerm, I am having trouble converting degrees to radians
05:10:23*reem joined #nim
05:15:01*gsingh93 joined #nim
05:15:25*reem quit (Ping timeout: 264 seconds)
05:27:49fowlCykacykacyka, http://www.electronics-tutorials.ws/accircuits/acp21.gif
05:48:53*TEttinger joined #nim
05:56:07*johnsoft quit (Ping timeout: 245 seconds)
05:56:25*johnsoft joined #nim
05:59:09*vendethiel quit (Ping timeout: 250 seconds)
06:02:59*vendethiel joined #nim
06:22:18*nande quit (Remote host closed the connection)
06:26:37*gsingh93 quit (Ping timeout: 250 seconds)
06:30:12*saml_ quit (Remote host closed the connection)
07:21:26*sillesta joined #nim
07:30:05*gokr quit (Quit: Leaving.)
07:30:17*vendethiel quit (Ping timeout: 245 seconds)
07:32:25*vendethiel joined #nim
07:38:59Cykacykacykafowl, it was a problem with me being sleep deprived and checking against garbage data... oh well.
07:50:20*davidhq joined #nim
07:52:00*davidhq quit (Max SendQ exceeded)
07:53:06*davidhq joined #nim
07:54:16*davidhq quit (Max SendQ exceeded)
07:55:38*ChrisMAN quit (Ping timeout: 264 seconds)
07:55:53*davidhq joined #nim
07:59:28*BlaXpirit joined #nim
08:17:49*vendethiel quit (Ping timeout: 250 seconds)
08:18:29*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
08:25:52*vendethiel joined #nim
08:28:26*reem joined #nim
08:29:37*panzone joined #nim
08:32:22*banister quit (Read error: Connection reset by peer)
08:33:08*panzone_ joined #nim
08:33:17*panzone quit (Read error: Connection reset by peer)
08:34:02*panzone_ quit (Remote host closed the connection)
08:35:21*panzone joined #nim
08:40:04Cykacykacykais there a nice way to unpack a jsonified array of strings ?
08:46:07BlaXpiritCykacykacyka, explain
08:46:51BlaXpirityou have a json-node-array that contains json-node-strings and you want seq-of-strings ?
08:46:52*panzone quit (Quit: Leaving...)
08:50:25Cykacykacykayes
08:50:29CykacykacykaI want exactly that
08:53:03BlaXpirit.give Cykacykacyka import json, sequtils;echo(parseJson("""["a", "b", "cd"]""").mapIt(string, it.str))
08:53:07MimbusCykacykacyka: @[a, b, cd]
08:55:52Cykacykacykawait, so to go from a JsonNode object holding an array, I have to pass it's string representation to a jsonParserer ?
08:58:16BlaXpiritno
09:02:00*gmpreussner|work quit (Read error: Connection reset by peer)
09:04:15*reem quit (Remote host closed the connection)
09:05:07*reem joined #nim
09:09:17Cykacykacykaok, that I understood. How do I get a non string value out of a JsonNode ?
09:11:46*Matthias247 joined #nim
09:12:22*vendethiel quit (Ping timeout: 245 seconds)
09:13:33*vendethiel joined #nim
09:14:11*brson quit (Quit: leaving)
09:32:08*akiradeveloper joined #nim
09:34:04akiradeveloperI think I will implement msgpack binding for nim
09:34:47*kuzy000_ joined #nim
09:35:03akiradeveloperI almost finished fuse binding. If there is no msgpack binding, that will be my next work.
09:35:40akiradeveloperIs someone else already working on msgpack?
09:51:01*reem quit (Remote host closed the connection)
09:57:54*reem joined #nim
09:57:54*reem quit (Remote host closed the connection)
10:01:16*miko_ joined #nim
10:02:04*dumdum joined #nim
10:17:03*Outlander joined #nim
10:19:05*vendethiel quit (Ping timeout: 246 seconds)
10:21:03*Boscop joined #nim
10:21:17*vendethiel joined #nim
10:41:41*reem joined #nim
10:45:28TEttingerakiradeveloper: I'm in the same channel as one of the developers of conspack, is there any relation to msgpack?
10:47:30TEttingerwow, msgpack looks nice
10:49:36TEttingerinteresting, apparently the lispers weren't happy with some of msgpack https://github.com/conspack/cl-conspack#cl-conspack
10:50:00*akiradeveloper quit (Remote host closed the connection)
10:52:29*kapil___ quit (Quit: Connection closed for inactivity)
10:52:50*infinity0 quit (Remote host closed the connection)
10:53:03*infinity0 joined #nim
10:55:37*davidhq joined #nim
10:57:53*reem quit (Remote host closed the connection)
10:59:22*davidhq quit (Client Quit)
11:02:52*reem joined #nim
11:03:34*sillesta quit (Ping timeout: 245 seconds)
11:10:11*reem quit (Remote host closed the connection)
11:14:47*reem joined #nim
11:14:49*reem quit (Remote host closed the connection)
11:23:42dom96Cykacykacyka: JsonNode is documented here: http://nim-lang.org/json.html#JsonNode
11:23:50*sillesta joined #nim
11:40:55*RayoGundead quit (Quit: Page closed)
11:41:02CykacykacykaI found a way to do it, but the lack of documentation on jsonnode.fnum and .num was confusing.
11:42:32*banister joined #nim
11:45:06dom96Yeah. I think we need proper getters for those.
11:47:07*Outlander quit (Ping timeout: 265 seconds)
11:47:15*miko_ quit (Ping timeout: 256 seconds)
11:48:00*miko_ joined #nim
11:48:01*akiradeveloper joined #nim
11:49:02*Trustable joined #nim
11:49:14*akiradeveloper quit (Remote host closed the connection)
11:50:11*akiradeveloper joined #nim
11:53:03akiradeveloperI heard conspack for the first time. I think they are different. I've just created the repo https://github.com/akiradeveloper/msgpack-nim and now reading the spec doc
11:56:35def-akiradeveloper: nice, I could really use msgpack-nim to port some of my slow python scripts
12:05:09akiradeveloperok. I will do my best to quickly release it.
12:05:13*akiradeveloper quit ()
12:13:30Cykacykacykais there a nice way of creating a circular linked list ?
12:13:40def-Cykacykacyka: lists module
12:13:56def-DoublyLinkedRing
12:15:12Cykacykacykadef-, thank you very much. Even though over the last 24 hours I've become rather skeptic towards nim, you guys have been wonderful in aiding my adventure with nim.
12:16:19def-how comes you're skeptical now?
12:17:19ekarlsohmm
12:18:10Cykacykacykait's the little things that don't make sense, Then again, I believe my outlook could be a lot different had I read the tutorials before I just dived head deep and tried to solve a not as trivial of a problem as it turned out to be.
12:18:17ekarlsocan nim compile from stdin ?
12:18:31ekarlsolooking at https://github.com/rust-lang/rust-playpen/blob/master/bin/evaluate.sh that's what they do
12:18:52*kapil___ joined #nim
12:20:19def-ekarlso: haven't found a way. shouldn't hurt to make a temporary file, right?
12:20:34ekarlsodef-: yeh
12:31:03*keyle joined #nim
12:36:18*Varriount|Mobile joined #nim
12:37:31Varriount|Mobileonionhammer: Ugh, I just ran into a ST2 bug
12:48:30ekarlsowhere is a mkdir call in nim ?
12:49:35ekarlsoah, createDir
12:53:24*koz_ quit (Ping timeout: 252 seconds)
13:04:13*Swend joined #nim
13:19:04*Cykacykacyka left #nim (#nim)
13:19:20*davidhq joined #nim
13:19:23*pafmaf joined #nim
13:22:33def-Nim landed on HN again, here's the link if anyone wants to participate in the discussion: https://news.ycombinator.com/item?id=9088640
13:32:44*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
13:33:29*davidhq joined #nim
13:33:37*davidhq quit (Client Quit)
13:39:11*antrix joined #nim
13:46:20Varriount|Mobiledef-: Is it good, or bad?
13:46:34Varriount|MobileI don't want to read bad news.
13:46:51dv-it's neither i guess
13:47:37def-Varriount|Mobile: it's an old article, pretty nice on Nim I'd say
13:49:02def-the comments seem fair too
13:51:16*antrix quit (Ping timeout: 255 seconds)
13:55:23*TEttinger quit (Ping timeout: 250 seconds)
13:55:52*BlaXpirit quit (Quit: Quit Konversation)
13:58:31*Boscop_ joined #nim
14:01:04*Boscop quit (Ping timeout: 245 seconds)
14:05:03*darkf quit (Quit: Leaving)
14:08:03*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
14:10:16*Boscop joined #nim
14:10:16*Boscop quit (Changing host)
14:10:16*Boscop joined #nim
14:10:16*Boscop quit (Changing host)
14:10:16*Boscop joined #nim
14:11:14*Boscop_ quit (Ping timeout: 264 seconds)
14:15:25*reem joined #nim
14:18:05*banister joined #nim
14:18:38*banister quit (Max SendQ exceeded)
14:19:53*reem quit (Ping timeout: 246 seconds)
14:24:08*keyle quit (Quit: <Morbo> Chitchat achieved!)
14:25:21*Boscop quit (Ping timeout: 256 seconds)
14:28:45*Boscop joined #nim
14:42:29*kapil___ quit (Quit: Connection closed for inactivity)
14:56:06*Var|Mobile joined #nim
14:58:02*Var|Mobile quit (Client Quit)
14:58:52*Varriount|Mobile quit (Ping timeout: 240 seconds)
15:20:16*Matthias247 quit (Read error: Connection reset by peer)
15:23:57*polde quit (*.net *.split)
15:23:57*ekarlso quit (*.net *.split)
15:23:58*Araq quit (*.net *.split)
15:23:58*mtj quit (*.net *.split)
15:23:58*fold quit (*.net *.split)
15:24:36*Araq joined #nim
15:24:39*polde joined #nim
15:25:08*mtj joined #nim
15:25:33*fold joined #nim
15:26:13*ekarlso joined #nim
15:36:35*BlaXpirit joined #nim
15:38:11*BitPuffin joined #nim
15:38:57*BitPuffin quit (Remote host closed the connection)
15:40:00*BitPuffin joined #nim
15:45:44*novist joined #nim
15:52:18*BitPuffin quit (Ping timeout: 244 seconds)
15:54:13*Swend quit (Ping timeout: 246 seconds)
16:02:49*ChrisMAN joined #nim
16:04:56*banister joined #nim
16:05:00*banister quit (Max SendQ exceeded)
16:07:42*ekarlso quit (Changing host)
16:07:42*ekarlso joined #nim
16:08:01ekarlsohow do you specify that a return is a tuple ?
16:08:12ekarlsoproc foo(): tuple[string, string] = ?
16:13:07*thilp joined #nim
16:19:15*dumdum quit (Ping timeout: 256 seconds)
16:26:01*aidanh joined #nim
16:27:04aidanhHello, quick question; is it possible to import a module from a different directory? (something like import ../../modulename)
16:28:57aidanhNever mind; found out how to do it
16:29:24federico3Meanwhile, Nim is on HN again: https://news.ycombinator.com/item?id=9088640
16:30:15*koz_ joined #nim
16:42:12aidanhThat article is what prompted me to start with Nim actually
16:51:05federico3heh
16:58:39*miko_ quit (Ping timeout: 264 seconds)
16:59:15*miko_ joined #nim
17:17:43*deXtoRious joined #nim
17:19:05*Varriount|Mobile joined #nim
17:21:17*davidhq joined #nim
17:27:20*nande joined #nim
17:29:17*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
17:31:23*elbow joined #nim
17:31:44*elbow waves
17:33:43*Varriount|Mobile quit (Read error: Connection reset by peer)
17:33:49*Var|Mobile joined #nim
17:38:50*stef____ joined #nim
17:39:45def-welcome elbow
17:41:14ekarlsohow can you check if a nr is even in nim
17:41:29Varriountekarlso: You mean, an integer?
17:41:39ekarlsoVarriount: ya
17:42:14*stef____ quit (Client Quit)
17:42:15Varriountekarlso: Um, well you could do the obvious way: '(n mod 2) == 0)
17:42:23Varriount'
17:42:29ekarlsoah
17:42:33ekarlsoI was thinking % op
17:42:54Varriountekarlso: I think there's a way to do it with bit twiddling that might be faster.
17:43:56def-Varriount: compiler should be intelligent enough to do that (I hope)
17:44:23def-(n and 1) == 0
17:44:39Varriountdef-: Yeah, that's what I thought
17:46:23*davidhq joined #nim
17:53:30*nimnoob123 joined #nim
17:55:44nimnoob123Araq any plans on adding a :visited css option to forum links? Trying to see which forum threads I've read is pretty difficult right now lol
17:57:02def-nimnoob123: you could do it yourself and make a PR
17:57:11def-nimnoob123: sounds like something useful to have
17:57:24nimnoob123didn't know the forum was on gh
17:57:37def-https://github.com/nim-lang/nimforum
17:58:21nimnoob123alright cool
17:59:39nimnoob123Going to use: #1a1a1a, looks the best and you're already using that color on the new user/post/thread count bar
18:02:16*dumdum joined #nim
18:13:49nimnoob123def- already I sent a pull request
18:13:56nimnoob123alright*, man it's early
18:14:36elbownimnoob123: You in Asia?
18:14:42nimnoob123and by early I mean I just woke up
18:14:47elbowlolol
18:15:05nimnoob123noon here, central us
18:15:18elbow11 Arizona
18:16:01nimnoob123Missouri here
18:16:31*aidanh left #nim (#nim)
18:18:34*bhishma joined #nim
18:26:04elbowWOW. Jester is a beauty
18:27:46nimnoob123elbow, huh?
18:28:04elbownimnoob123: https://github.com/dom96/jester
18:28:41nimnoob123ah
18:31:00onionhammerVarriount|Mobile what bug?
18:36:27*Matthias247 joined #nim
19:00:24*rkj-b joined #nim
19:01:18*gokr_ joined #nim
19:01:55*DecoPerson quit (Quit: Connection closed for inactivity)
19:04:09*wan_ quit (Quit: WeeChat 1.1.1)
19:09:17*Boscop quit (Ping timeout: 250 seconds)
19:12:42*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
19:12:53*davidhq joined #nim
19:12:56*davidhq quit (Client Quit)
19:18:02*n0x0ff joined #nim
19:26:31*BitPuffin joined #nim
19:31:36*bhishma quit (Ping timeout: 265 seconds)
19:32:52*rkj-b quit (Quit: ChatZilla 0.9.91.1 [Firefox 35.0.1/20150122214805])
19:43:16*pafmaf quit (Quit: This computer has gone to sleep)
19:50:46*AckZ quit (Read error: Connection reset by peer)
19:50:56*clone1018 quit (Ping timeout: 265 seconds)
19:51:08*biscarch quit (Read error: Connection reset by peer)
19:51:09*endou________ quit (Read error: Connection reset by peer)
19:51:18*CARAM__ quit (Read error: Connection reset by peer)
19:56:03*endou________ joined #nim
19:57:06*CARAM__ joined #nim
20:01:18*AckZ joined #nim
20:03:43*johnsoft quit (Ping timeout: 250 seconds)
20:04:13*biscarch joined #nim
20:06:37*BlaXpirit quit (Remote host closed the connection)
20:07:29*clone1018 joined #nim
20:08:20*BlaXpirit joined #nim
20:11:11BlaXpiritso I just had an idea
20:11:19BlaXpiritif we have anonymous procs
20:11:31BlaXpiritand if someone wants to use a non-procvar proc as an argument
20:11:41BlaXpiritthey're just gonna wrap it in an anonymous proc anyway
20:11:52BlaXpiritso why not make this (almost?) automatic?
20:13:24*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
20:20:04*johnsoft joined #nim
20:22:40*reem joined #nim
20:23:31*bhishma joined #nim
20:28:12*bhishma quit (Ping timeout: 244 seconds)
20:28:42*pafmaf joined #nim
20:30:18def-BlaXpirit: how would this be different from the solution to make everything implicitly procvar?
20:30:36BlaXpiritdef-, I assume procvar has downsides
20:30:40BlaXpiritsuch as performance
20:30:58BlaXpiritotherwise people wouldn't even consider leaving non-procvar in
20:31:02def-i hope when something is set as procvar it's only used as procvar when really necessary
20:31:13def-and not for every proc call
20:31:18BlaXpiritone can hope, yes
20:31:32BlaXpiritI had that thought earlier but it was before sleeping so i forgot
20:31:51def-i assume so because in your own module everything is implicitly procvar, isn't it?
20:32:01BlaXpirityeah...
20:32:07BlaXpiritso then really
20:32:19BlaXpiritwhat IS the point of leaving non-procvar
20:32:51def-it had to do with adding default parameters to a proc later on
20:33:07def-that would destroy backwards-compatibility when the proc was used as procvar
20:33:33ekarlsodef pondering the temp file thing though with playpen
20:33:37ekarlsohow and where to insert it
20:34:08def-ekarlso: we could also add - as stdin as most programs do
20:34:09ekarlsoit's supposed to have support for a -b <folder> to mount <folder> but it seems to not be able to mount it to a destination path
20:34:21ekarlsodef-: how hard would that be ? :D
20:35:06def-ekarlso: not hard i believe, since - is already forbidden in *.nim filenames
20:35:17def-ekarlso: do you want to try it or should I?
20:41:14nimnoob123where can i see a list of things left before 1.0?
20:41:17*bhishma joined #nim
20:43:52BlaXpirithttp://google.com#q=site:nim-lang.org+roadmap
20:44:28BlaXpiritwhich gives, among other things, https://github.com/Araq/Nim/blob/devel/todo.txt https://github.com/Araq/Nim/wiki/Roadmap
20:45:02BlaXpiritbut I don't think there is a list that is comprehensive and up to date
20:45:57def-that todo sounds like there's a lot missing
20:46:06def-I like that nimble will become part of the distribution
20:47:17*dumdum quit (Ping timeout: 256 seconds)
20:48:20nimnoob123thanks
20:50:32ekarlsodef-: if you could it would be awesomes
20:50:52*elbow quit (Ping timeout: 240 seconds)
20:51:15def-ekarlso: ok, let me take a look
20:52:34ekarlso:)
20:55:27*gsingh93 joined #nim
20:57:17*bhishma quit (Quit: ChatZilla 0.9.91.1 [Iceweasel 31.4.0/20150113100542])
21:00:37*Mat4 joined #nim
21:00:42Mat4hi all
21:04:04*bjz joined #nim
21:06:55*elbow joined #nim
21:10:41*reem quit (Remote host closed the connection)
21:15:02*reem joined #nim
21:19:29*reem quit (Remote host closed the connection)
21:24:17*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:33:02*bjz joined #nim
21:35:50*bjz quit (Client Quit)
21:39:34*gmpreussner|work joined #nim
21:40:23*[CBR]Unspoken1 joined #nim
21:41:14*[CBR]Unspoken quit (Ping timeout: 246 seconds)
21:41:31*pafmaf quit (Quit: This computer has gone to sleep)
21:42:35*[CBR]Unspoken joined #nim
21:44:49*[CBR]Unspoken1 quit (Ping timeout: 245 seconds)
21:48:58federico3hi Mat4
21:50:01Mat4hello federico3
22:00:07ekarlsodef-: did you get to it ? :)
22:01:01def-ekarlso: I'm close!
22:07:13*reem joined #nim
22:08:03ekarlsodef-: :P
22:08:32nimnoob123quick question: As I'm messing around more with sdl2 bindings and notice that any proc that returns SDL_Return must be discarded, but some of the methods don't use the discardable pragma yet you can still discard the methods. Why is that?
22:08:58def-not sure how useful this is though, nimcache still gets created, and if two compiler instances run on the same nimcache at the same time things will go wrong
22:09:29def-nimnoob123: probably a {.push: disardable.} pragma before?
22:09:50nimnoob123let me check
22:09:56Araqnimnoob123: if it is as you say, that's a bug, unless def-'s idea is true
22:10:20*n0x0ff quit (Quit: leaving)
22:10:32def-I see {.discardable.} on every proc returning SDL_Return
22:10:52nimnoob123https://github.com/nim-lang/sdl2/blob/master/src/sdl2/ttf.nim
22:10:55def-ah, not quite all. which one did you test, nimnoob123 ?
22:11:02nimnoob123ttfInit
22:11:42ekarlsodef-: is it possible to specify the nimcache dir of the compiler ? :D
22:11:47def-ekarlso: yes
22:11:52ekarlsoproblem solved :p
22:12:01*Boscop joined #nim
22:12:13def-ekarlso: then you could also just create a temp dir for every uploaded file and make a file there, but ok
22:12:41def-nimnoob123: for me it fails to compile with "value of type 'SDL_Return' has to be discarded"
22:13:07ekarlsodef-: yeah, that was what I was thinking but I thought to store each run in a central folder and use play's mount ability
22:13:08nimnoob123yeah when i call discard on it it compiles, but there's no pragma set for that method
22:13:22def-nimnoob123: you can discard anything
22:13:23ekarlsobut for some reason you can't say -B <src folder> <dst inside chroot>
22:13:30ekarlsodef-: are you ok at C ?
22:13:31def-{.discardable.} just means you don't even have to use "discard"
22:13:40def-ekarlso: i guess so
22:13:41nimnoob123ah okay
22:13:57ekarlsodef-: would you care to look at it quickly ? :p
22:14:03ekarlsoprobably a little fix
22:14:05ekarlso:p
22:14:23def-ekarlso: link?
22:14:27nimnoob123guess i should add one to the ttfquit then
22:14:58ekarlsofiguring it's this https://github.com/thestinger/playpen/blob/master/playpen.c#L82 def-
22:15:08ekarlsothat does the actual mounting
22:15:32def-ekarlso: and what's wrong with it?
22:15:55ekarlsodef-: if you specify -b /tmp/fooo it assumes you want to mount that directory as /tmp/fooo inside the jail as well
22:16:53def-ekarlso: i don't understand
22:17:32ekarlsodef-: if you specify playpen -b <path to mount> like /mnt/foo/bar it will assume you want to mount it as /mnt/foo/bar inside the jail as well
22:18:07ekarlsovs allowing smthing like playpen -b <src>:<dst> or smth like it
22:18:19def-ekarlso: no idea, sorry
22:18:28ekarlsodef-: it should be rly simple :P
22:18:30ekarlsobut ok
22:18:39ekarlsoi'll create the file inside the chroot then instead :p
22:21:28*Outlander joined #nim
22:22:42*pafmaf joined #nim
22:24:00def-ekarlso: there you go: https://github.com/Araq/Nim/pull/2202
22:25:21def-nim -r c - < hello.nim
22:29:12nimnoob123https://github.com/nim-lang/sdl2/pull/29 there we go
22:32:17fowlnimnoob123, do the other init functions have discardable
22:32:28nimnoob123iirc they all do except that one
22:32:38nimnoob123the ones that return SDL_Return
22:32:51fowlok
22:32:52fowlthanks
22:39:43def-Hm, there is another sdl2 wrapper still in development: https://github.com/Vladar4/sdl2-nim
22:41:04*miko_ quit (Ping timeout: 245 seconds)
22:41:19*miko_ joined #nim
22:41:54*Boscop quit (Ping timeout: 245 seconds)
22:45:04nimnoob123yeah he actively updates it too
22:45:04BlaXpirit:|
22:45:38*Boscop joined #nim
22:45:38*Boscop quit (Changing host)
22:45:38*Boscop joined #nim
22:45:59BlaXpiritwell certainly looks better
22:46:05*Matthias247 quit (Read error: Connection reset by peer)
22:46:18nimnoob123curious if it's just him wanting to understand nim or if he doesn't know about the officially supported one ;o, going to create an issue to ask ;)
22:46:41nimnoob123yeah it is clean
22:46:43BlaXpiritnimnoob123, he's been here for a very long time
22:47:08BlaXpirithttps://github.com/Vladar4/nimgame/commit/4471ef8c2a929bbd1e3b14bf840f83f6c96faeb2 "2 Jun 2012" nuff said
22:47:11nimnoob123ah
22:47:46BlaXpiritprobably just really tired of the typical half-assed wrappers
22:49:54nimnoob123i do like how he kept it as close to the original source as possible
23:05:38*pafmaf quit (Quit: This computer has gone to sleep)
23:13:46*reem quit (Remote host closed the connection)
23:15:26*reem joined #nim
23:20:09*Mat4 quit (Quit: Verlassend)
23:21:26*pafmaf joined #nim
23:22:05*pafmaf quit (Client Quit)
23:25:52*sillesta quit (Ping timeout: 240 seconds)
23:28:54*BlaXpirit quit (Quit: Quit Konversation)
23:40:39*azkaban joined #nim
23:42:42azkabanhow to send html with smtp.nim?
23:45:03*azkaban quit (Client Quit)
23:47:31fowl^ set content-type to text/html
23:48:22*fizzbooze joined #nim
23:48:40*kuzy000_ quit (Ping timeout: 244 seconds)