00:01:30 | ekarlso | dom96: which method there is it one should use ? |
00:09:04 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
00:17:22 | BlaXpirit | so I'm using unittest |
00:17:30 | BlaXpirit | assert(expr) works |
00:17:57 | BlaXpirit | check(the same expr) Error: expression 'missingItems' cannot be called |
00:18:12 | flaviu | BlaXpirit: Can you post code? |
00:18:39 | BlaXpirit | it's easily reproducible, now that I think about it |
00:20:56 | flaviu | It may be easy to reproduce, but I don't know how to reproduce it. |
00:21:02 | flaviu | I'd like to fix it |
00:21:21 | BlaXpirit | flaviu, https://bpaste.net/show/3655ca17068c |
00:22:05 | BlaXpirit | does not need to be a generic actually |
00:33:50 | Cykacykacyka | why does nim complain about not being able to identify dbFormat when I've imported db_sqlite ? |
00:36:13 | * | nimnoob123 joined #nim |
00:37:17 | reactormonk | Cykacykacyka, exact error? |
00:37:34 | Cykacykacyka | db_acts.nim|14 col 23 error| undeclared identifier: 'dbFormat' |
00:37:41 | Cykacykacyka | db_acts.nim|14 col 31 error| expression 'dbFormat(unform_str, user_id)' cannot be called |
00:38:44 | nimnoob123 | fowl 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:29 | fowl | nimnoob123, thats the same error you were getting on 0.10.2 |
00:39:38 | nimnoob123 | yeah |
00:40:47 | fowl | nimnoob123, try this https://gist.github.com/fowlmouth/74bd31089c0cd3545f26 |
00:41:24 | nimnoob123 | worked |
00:42:16 | fowl | nimnoob123, your example compiles and runs for me |
00:42:27 | fowl | i believe you're still on 0.10.2 |
00:42:28 | nimnoob123 | that example was the working code |
00:42:40 | nimnoob123 | i said when i changed them to ref obj |
00:42:48 | nimnoob123 | sec let me show you the errored code |
00:42:51 | fowl | nimnoob123, you just said ref obj (my example) worked |
00:43:16 | nimnoob123 | your example worked yes, let me show you the code that didn't compile for me |
00:43:30 | fowl | yes that would help.. |
00:44:22 | nimnoob123 | thought 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:57 | fowl | this is not really what you want |
00:45:07 | fowl | output() takes ref ref T |
00:47:51 | nimnoob123 | yeah 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:25 | Cykacykacyka | erm, am I not allowed to exec dbFormat ? |
00:48:53 | nimnoob123 | all 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:11 | fowl | nimnoob123, there does seem to be a codegen error when using double refs |
00:50:42 | nimnoob123 | i found a bug on accident, yay? lol |
00:51:11 | Cykacykacyka | am I right in saying that at the moment, the best way to format strings for sql queries is to do it manually ? |
00:52:45 | fowl | Cykacykacyka, no clue what "dbFormat" is, the db_ modules have exec() functions that will escape for you |
00:53:36 | Cykacykacyka | I 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:28 | nimnoob123 | guess I'll wait on that Effective Nim or Nim Primer book because everything I read on references/pointers aren't that clear |
00:57:27 | fowl | nimnoob123, you know what a pointer is |
00:57:31 | fowl | ? |
00:57:44 | nimnoob123 | yes |
00:57:54 | fowl | a ref is a pointer that you dont have to cleanup |
00:59:06 | fowl | so 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:10 | flaviu | fowl: That shouldn't be `ref object` |
01:00:29 | nimnoob123 | yeah I get that, what I don't get is what's going on with the ref object |
01:00:40 | Cykacykacyka | erm, what would be a datatype to store date ? |
01:01:00 | def- | Cykacykacyka: see the times module |
01:01:01 | fowl | right no *Obj type should be a ref |
01:02:29 | nimnoob123 | type 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:02 | fowl | root obj is just a base object type you can inherit from |
01:03:13 | fowl | by default if you had type foo = object foo would not be inheritable |
01:03:39 | nimnoob123 | so ref indicates that you can inherit from that object |
01:03:53 | fowl | no |
01:04:02 | nimnoob123 | then you lost me |
01:04:03 | fowl | ref means garbage collected |
01:05:07 | * | saml_ joined #nim |
01:05:26 | fowl | "MyObj = object of rootobj" - this object descends from RootObj |
01:05:56 | fowl | "MyRef = ref MyObj" - this is a garbage collected reference to a MyObj |
01:06:37 | flaviu | nimnoob123: You can have inheritance without garbage collection and garbage collection without inheritance. |
01:06:41 | * | Trustable quit (Remote host closed the connection) |
01:06:46 | fowl | "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:13 | fowl | hopefully that made sense |
01:09:24 | nimnoob123 | somewhat 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:12 | Schala | Forum 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:49 | flaviu | Schala: Nope, just make a new account. |
01:55:18 | Schala | darn... that neweds to be fixed |
01:55:21 | Schala | needs* |
01:56:14 | flaviu | Preventing emails from getting caught in spam filters is a major PITA apparently, so I don't see it being fixed soon. |
01:57:15 | Schala | I see |
01:58:44 | Schala | ooo 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:00 | reactormonk | Araq, 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:55 | Cykacykacyka | oh god, how do I calculate the distance between two points on earth expressed as latitude/longitude ? |
03:29:45 | flaviu | Cykacykacyka: 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:01 | Cykacykacyka | erm, 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:49 | fowl | Cykacykacyka, 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:59 | Cykacykacyka | fowl, 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:04 | Cykacykacyka | is there a nice way to unpack a jsonified array of strings ? |
08:46:07 | BlaXpirit | Cykacykacyka, explain |
08:46:51 | BlaXpirit | you 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:25 | Cykacykacyka | yes |
08:50:29 | Cykacykacyka | I want exactly that |
08:53:03 | BlaXpirit | .give Cykacykacyka import json, sequtils;echo(parseJson("""["a", "b", "cd"]""").mapIt(string, it.str)) |
08:53:07 | Mimbus | Cykacykacyka: @[a, b, cd] |
08:55:52 | Cykacykacyka | wait, so to go from a JsonNode object holding an array, I have to pass it's string representation to a jsonParserer ? |
08:58:16 | BlaXpirit | no |
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:17 | Cykacykacyka | ok, 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:04 | akiradeveloper | I think I will implement msgpack binding for nim |
09:34:47 | * | kuzy000_ joined #nim |
09:35:03 | akiradeveloper | I almost finished fuse binding. If there is no msgpack binding, that will be my next work. |
09:35:40 | akiradeveloper | Is 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:28 | TEttinger | akiradeveloper: I'm in the same channel as one of the developers of conspack, is there any relation to msgpack? |
10:47:30 | TEttinger | wow, msgpack looks nice |
10:49:36 | TEttinger | interesting, 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:42 | dom96 | Cykacykacyka: 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:02 | Cykacykacyka | I 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:06 | dom96 | Yeah. 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:03 | akiradeveloper | I 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:35 | def- | akiradeveloper: nice, I could really use msgpack-nim to port some of my slow python scripts |
12:05:09 | akiradeveloper | ok. I will do my best to quickly release it. |
12:05:13 | * | akiradeveloper quit () |
12:13:30 | Cykacykacyka | is there a nice way of creating a circular linked list ? |
12:13:40 | def- | Cykacykacyka: lists module |
12:13:56 | def- | DoublyLinkedRing |
12:15:12 | Cykacykacyka | def-, 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:19 | def- | how comes you're skeptical now? |
12:17:19 | ekarlso | hmm |
12:18:10 | Cykacykacyka | it'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:17 | ekarlso | can nim compile from stdin ? |
12:18:31 | ekarlso | looking 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:19 | def- | ekarlso: haven't found a way. shouldn't hurt to make a temporary file, right? |
12:20:34 | ekarlso | def-: yeh |
12:31:03 | * | keyle joined #nim |
12:36:18 | * | Varriount|Mobile joined #nim |
12:37:31 | Varriount|Mobile | onionhammer: Ugh, I just ran into a ST2 bug |
12:48:30 | ekarlso | where is a mkdir call in nim ? |
12:49:35 | ekarlso | ah, 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:33 | def- | 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:20 | Varriount|Mobile | def-: Is it good, or bad? |
13:46:34 | Varriount|Mobile | I don't want to read bad news. |
13:46:51 | dv- | it's neither i guess |
13:47:37 | def- | Varriount|Mobile: it's an old article, pretty nice on Nim I'd say |
13:49:02 | def- | 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:01 | ekarlso | how do you specify that a return is a tuple ? |
16:08:12 | ekarlso | proc 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:04 | aidanh | Hello, quick question; is it possible to import a module from a different directory? (something like import ../../modulename) |
16:28:57 | aidanh | Never mind; found out how to do it |
16:29:24 | federico3 | Meanwhile, Nim is on HN again: https://news.ycombinator.com/item?id=9088640 |
16:30:15 | * | koz_ joined #nim |
16:42:12 | aidanh | That article is what prompted me to start with Nim actually |
16:51:05 | federico3 | heh |
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:45 | def- | welcome elbow |
17:41:14 | ekarlso | how can you check if a nr is even in nim |
17:41:29 | Varriount | ekarlso: You mean, an integer? |
17:41:39 | ekarlso | Varriount: ya |
17:42:14 | * | stef____ quit (Client Quit) |
17:42:15 | Varriount | ekarlso: Um, well you could do the obvious way: '(n mod 2) == 0) |
17:42:23 | Varriount | ' |
17:42:29 | ekarlso | ah |
17:42:33 | ekarlso | I was thinking % op |
17:42:54 | Varriount | ekarlso: I think there's a way to do it with bit twiddling that might be faster. |
17:43:56 | def- | Varriount: compiler should be intelligent enough to do that (I hope) |
17:44:23 | def- | (n and 1) == 0 |
17:44:39 | Varriount | def-: Yeah, that's what I thought |
17:46:23 | * | davidhq joined #nim |
17:53:30 | * | nimnoob123 joined #nim |
17:55:44 | nimnoob123 | Araq 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:02 | def- | nimnoob123: you could do it yourself and make a PR |
17:57:11 | def- | nimnoob123: sounds like something useful to have |
17:57:24 | nimnoob123 | didn't know the forum was on gh |
17:57:37 | def- | https://github.com/nim-lang/nimforum |
17:58:21 | nimnoob123 | alright cool |
17:59:39 | nimnoob123 | Going 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:49 | nimnoob123 | def- already I sent a pull request |
18:13:56 | nimnoob123 | alright*, man it's early |
18:14:36 | elbow | nimnoob123: You in Asia? |
18:14:42 | nimnoob123 | and by early I mean I just woke up |
18:14:47 | elbow | lolol |
18:15:05 | nimnoob123 | noon here, central us |
18:15:18 | elbow | 11 Arizona |
18:16:01 | nimnoob123 | Missouri here |
18:16:31 | * | aidanh left #nim (#nim) |
18:18:34 | * | bhishma joined #nim |
18:26:04 | elbow | WOW. Jester is a beauty |
18:27:46 | nimnoob123 | elbow, huh? |
18:28:04 | elbow | nimnoob123: https://github.com/dom96/jester |
18:28:41 | nimnoob123 | ah |
18:31:00 | onionhammer | Varriount|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:11 | BlaXpirit | so I just had an idea |
20:11:19 | BlaXpirit | if we have anonymous procs |
20:11:31 | BlaXpirit | and if someone wants to use a non-procvar proc as an argument |
20:11:41 | BlaXpirit | they're just gonna wrap it in an anonymous proc anyway |
20:11:52 | BlaXpirit | so 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:18 | def- | BlaXpirit: how would this be different from the solution to make everything implicitly procvar? |
20:30:36 | BlaXpirit | def-, I assume procvar has downsides |
20:30:40 | BlaXpirit | such as performance |
20:30:58 | BlaXpirit | otherwise people wouldn't even consider leaving non-procvar in |
20:31:02 | def- | i hope when something is set as procvar it's only used as procvar when really necessary |
20:31:13 | def- | and not for every proc call |
20:31:18 | BlaXpirit | one can hope, yes |
20:31:32 | BlaXpirit | I had that thought earlier but it was before sleeping so i forgot |
20:31:51 | def- | i assume so because in your own module everything is implicitly procvar, isn't it? |
20:32:01 | BlaXpirit | yeah... |
20:32:07 | BlaXpirit | so then really |
20:32:19 | BlaXpirit | what IS the point of leaving non-procvar |
20:32:51 | def- | it had to do with adding default parameters to a proc later on |
20:33:07 | def- | that would destroy backwards-compatibility when the proc was used as procvar |
20:33:33 | ekarlso | def pondering the temp file thing though with playpen |
20:33:37 | ekarlso | how and where to insert it |
20:34:08 | def- | ekarlso: we could also add - as stdin as most programs do |
20:34:09 | ekarlso | it'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:21 | ekarlso | def-: how hard would that be ? :D |
20:35:06 | def- | ekarlso: not hard i believe, since - is already forbidden in *.nim filenames |
20:35:17 | def- | ekarlso: do you want to try it or should I? |
20:41:14 | nimnoob123 | where can i see a list of things left before 1.0? |
20:41:17 | * | bhishma joined #nim |
20:43:52 | BlaXpirit | http://google.com#q=site:nim-lang.org+roadmap |
20:44:28 | BlaXpirit | which gives, among other things, https://github.com/Araq/Nim/blob/devel/todo.txt https://github.com/Araq/Nim/wiki/Roadmap |
20:45:02 | BlaXpirit | but I don't think there is a list that is comprehensive and up to date |
20:45:57 | def- | that todo sounds like there's a lot missing |
20:46:06 | def- | I like that nimble will become part of the distribution |
20:47:17 | * | dumdum quit (Ping timeout: 256 seconds) |
20:48:20 | nimnoob123 | thanks |
20:50:32 | ekarlso | def-: if you could it would be awesomes |
20:50:52 | * | elbow quit (Ping timeout: 240 seconds) |
20:51:15 | def- | ekarlso: ok, let me take a look |
20:52:34 | ekarlso | :) |
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:42 | Mat4 | hi 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:58 | federico3 | hi Mat4 |
21:50:01 | Mat4 | hello federico3 |
22:00:07 | ekarlso | def-: did you get to it ? :) |
22:01:01 | def- | ekarlso: I'm close! |
22:07:13 | * | reem joined #nim |
22:08:03 | ekarlso | def-: :P |
22:08:32 | nimnoob123 | quick 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:58 | def- | 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:29 | def- | nimnoob123: probably a {.push: disardable.} pragma before? |
22:09:50 | nimnoob123 | let me check |
22:09:56 | Araq | nimnoob123: 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:32 | def- | I see {.discardable.} on every proc returning SDL_Return |
22:10:52 | nimnoob123 | https://github.com/nim-lang/sdl2/blob/master/src/sdl2/ttf.nim |
22:10:55 | def- | ah, not quite all. which one did you test, nimnoob123 ? |
22:11:02 | nimnoob123 | ttfInit |
22:11:42 | ekarlso | def-: is it possible to specify the nimcache dir of the compiler ? :D |
22:11:47 | def- | ekarlso: yes |
22:11:52 | ekarlso | problem solved :p |
22:12:01 | * | Boscop joined #nim |
22:12:13 | def- | ekarlso: then you could also just create a temp dir for every uploaded file and make a file there, but ok |
22:12:41 | def- | nimnoob123: for me it fails to compile with "value of type 'SDL_Return' has to be discarded" |
22:13:07 | ekarlso | def-: 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:08 | nimnoob123 | yeah when i call discard on it it compiles, but there's no pragma set for that method |
22:13:22 | def- | nimnoob123: you can discard anything |
22:13:23 | ekarlso | but for some reason you can't say -B <src folder> <dst inside chroot> |
22:13:30 | ekarlso | def-: are you ok at C ? |
22:13:31 | def- | {.discardable.} just means you don't even have to use "discard" |
22:13:40 | def- | ekarlso: i guess so |
22:13:41 | nimnoob123 | ah okay |
22:13:57 | ekarlso | def-: would you care to look at it quickly ? :p |
22:14:03 | ekarlso | probably a little fix |
22:14:05 | ekarlso | :p |
22:14:23 | def- | ekarlso: link? |
22:14:27 | nimnoob123 | guess i should add one to the ttfquit then |
22:14:58 | ekarlso | figuring it's this https://github.com/thestinger/playpen/blob/master/playpen.c#L82 def- |
22:15:08 | ekarlso | that does the actual mounting |
22:15:32 | def- | ekarlso: and what's wrong with it? |
22:15:55 | ekarlso | def-: if you specify -b /tmp/fooo it assumes you want to mount that directory as /tmp/fooo inside the jail as well |
22:16:53 | def- | ekarlso: i don't understand |
22:17:32 | ekarlso | def-: 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:07 | ekarlso | vs allowing smthing like playpen -b <src>:<dst> or smth like it |
22:18:19 | def- | ekarlso: no idea, sorry |
22:18:28 | ekarlso | def-: it should be rly simple :P |
22:18:30 | ekarlso | but ok |
22:18:39 | ekarlso | i'll create the file inside the chroot then instead :p |
22:21:28 | * | Outlander joined #nim |
22:22:42 | * | pafmaf joined #nim |
22:24:00 | def- | ekarlso: there you go: https://github.com/Araq/Nim/pull/2202 |
22:25:21 | def- | nim -r c - < hello.nim |
22:29:12 | nimnoob123 | https://github.com/nim-lang/sdl2/pull/29 there we go |
22:32:17 | fowl | nimnoob123, do the other init functions have discardable |
22:32:28 | nimnoob123 | iirc they all do except that one |
22:32:38 | nimnoob123 | the ones that return SDL_Return |
22:32:51 | fowl | ok |
22:32:52 | fowl | thanks |
22:39:43 | def- | 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:04 | nimnoob123 | yeah he actively updates it too |
22:45:04 | BlaXpirit | :| |
22:45:38 | * | Boscop joined #nim |
22:45:38 | * | Boscop quit (Changing host) |
22:45:38 | * | Boscop joined #nim |
22:45:59 | BlaXpirit | well certainly looks better |
22:46:05 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:46:18 | nimnoob123 | curious 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:41 | nimnoob123 | yeah it is clean |
22:46:43 | BlaXpirit | nimnoob123, he's been here for a very long time |
22:47:08 | BlaXpirit | https://github.com/Vladar4/nimgame/commit/4471ef8c2a929bbd1e3b14bf840f83f6c96faeb2 "2 Jun 2012" nuff said |
22:47:11 | nimnoob123 | ah |
22:47:46 | BlaXpirit | probably just really tired of the typical half-assed wrappers |
22:49:54 | nimnoob123 | i 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:42 | azkaban | how to send html with smtp.nim? |
23:45:03 | * | azkaban quit (Client Quit) |
23:47:31 | fowl | ^ set content-type to text/html |
23:48:22 | * | fizzbooze joined #nim |
23:48:40 | * | kuzy000_ quit (Ping timeout: 244 seconds) |