00:00:56 | * | bcinman quit (Ping timeout: 246 seconds) |
00:04:52 | * | vendethiel joined #nim |
00:07:53 | * | fizzbooze quit (Ping timeout: 246 seconds) |
00:08:44 | * | bcinman joined #nim |
00:09:07 | Araq | reactormonk: btw this is wrong |
00:09:15 | * | mwbrown joined #nim |
00:09:18 | Araq | lib\pure\collections\sequtils.nim(328, 6) Waring: Special variable 'result' is shadowed. [ResultShadowed] |
00:09:20 | * | chrisheller quit (Remote host closed the connection) |
00:09:32 | Araq | you need to check that 'result' is not gensym'ed |
00:09:45 | reactormonk | Araq, https://github.com/Araq/Nim/pull/2311 |
00:09:50 | Araq | cause a gensymed result doesn't shadow anything really |
00:10:35 | Araq | yeah that's horrible, let's revert that |
00:10:52 | Araq | injecting warning:off, what a strange solution |
00:11:11 | * | Aszarsha quit (Ping timeout: 250 seconds) |
00:11:24 | Araq | that's what happens when you don't let me do code reviews |
00:13:14 | reactormonk | I found it strange, but a better solution didn't come to mind, so I brushed it off |
00:15:13 | reactormonk | got me a sample file to test if my stuff works? |
00:15:16 | reactormonk | ah right, sequtils |
00:16:03 | Araq | well there is a reason my todo still contains |
00:16:05 | Araq | - 'result' shadowing warning |
00:17:11 | reactormonk | btw, which one gensym? the shadowed one or the shadowing one? |
00:17:40 | * | lnr quit (Read error: Connection reset by peer) |
00:18:37 | Araq | well the shadowed one is skResult, so the other one |
00:18:45 | Araq | the shadowing one |
00:19:50 | Araq | ugh I hate this pegs crap |
00:20:06 | Araq | so some codegen check doesn't trigger |
00:20:29 | Araq | now find the bug in the "declarative" peg |
00:21:38 | reactormonk | - if shadowed.kind == skResult: |
00:21:39 | reactormonk | + if shadowed.kind == skResult and sfGenSym notin v.flags: |
00:21:41 | reactormonk | ^ good enough? |
00:22:00 | reactormonk | Where can I find some code to check it? |
00:23:24 | * | a5i joined #nim |
00:23:30 | Araq | sequtils? |
00:23:33 | * | matkuki quit (Quit: ChatZilla 0.9.91.1 [Firefox 35.0.1/20150122214805]) |
00:23:42 | Araq | lol maybe you should sleep :P |
00:23:59 | reactormonk | nope, sequtils doesn't trigger it |
00:24:12 | reactormonk | asyncdispatch does |
00:24:27 | Araq | it surely triggers it when I bootstrap |
00:24:51 | reactormonk | ah, but not when you compile it directly |
00:25:00 | Araq | possible |
00:25:27 | * | ^aurora^ quit (Quit: Leaving.) |
00:26:28 | reactormonk | ok, my fix gets rid of the warnings from sequtils, but not the ones from asyncdispatach |
00:27:34 | * | vendethiel quit (Ping timeout: 256 seconds) |
00:29:37 | * | vendethiel joined #nim |
00:29:56 | Araq | try v.flags * {sfGenSym, sfFromGeneric} == {} as the condition |
00:30:14 | Araq | but I guess asyncdispatch really is dirty |
00:30:16 | * | filwit joined #nim |
00:32:23 | * | filwit quit (Remote host closed the connection) |
00:32:44 | reactormonk | nope, no sfFromGeneric flag on it |
00:32:53 | reactormonk | according to echo(v.flags) |
00:34:29 | * | BlaXpirit_ quit (Quit: Quit Konversation) |
00:35:52 | Araq | well dom96's macro shouldn't generate 'result' then |
00:36:04 | Araq | but some other name |
00:37:00 | reactormonk | The name is fitting though |
00:38:59 | reactormonk | why doesn't the macro-generated symbol ahve sfFromGeneric? |
00:42:56 | reactormonk | well, it is shadowing result... |
00:43:45 | * | flaviu quit (Remote host closed the connection) |
00:44:24 | * | flaviu joined #nim |
00:45:30 | * | reem quit (Remote host closed the connection) |
00:46:56 | Araq | reactormonk: well it's not really from a generic when it comes from a macro |
00:47:09 | Araq | sfFromGeneric originally had some other purpose |
00:47:35 | reactormonk | Hm. time for a new flag? |
00:47:54 | reactormonk | but it's overwriting result after all |
00:48:00 | Araq | no, just grep for sfFromGeneric and make an analysis |
00:48:11 | Araq | what its semantics are :P |
00:48:11 | * | reem joined #nim |
00:48:33 | reactormonk | sfFromGeneric, # symbol is instantiation of a generic; this is needed |
00:50:47 | * | Jehan_ quit (Quit: Leaving) |
00:51:11 | * | vendethiel quit (Ping timeout: 264 seconds) |
00:58:03 | Araq | good night |
01:00:00 | * | flaviu quit (Remote host closed the connection) |
01:01:52 | * | flaviu joined #nim |
01:11:41 | * | vendethiel joined #nim |
01:21:54 | * | chrisheller joined #nim |
01:31:04 | * | brson quit (Quit: leaving) |
01:31:32 | * | brson joined #nim |
01:35:17 | * | ARCADIVS joined #nim |
01:38:13 | * | vendethiel quit (Ping timeout: 264 seconds) |
01:39:01 | * | girvo quit (Quit: Lost terminal) |
01:43:13 | * | TEttinger quit (Ping timeout: 244 seconds) |
01:45:43 | * | TEttinger joined #nim |
01:47:12 | * | jholland quit (Quit: Connection closed for inactivity) |
02:00:15 | * | saml_ joined #nim |
02:00:41 | * | darkf joined #nim |
02:06:20 | * | Demos joined #nim |
02:10:45 | * | Mimbus joined #nim |
02:13:39 | * | reem quit (Remote host closed the connection) |
02:22:11 | * | brson quit (Quit: leaving) |
02:35:26 | * | reem joined #nim |
02:38:44 | * | TEttinger quit (Ping timeout: 265 seconds) |
02:40:37 | * | Sembei quit (Read error: Connection reset by peer) |
02:41:21 | * | TEttinger joined #nim |
02:44:37 | * | Sembei joined #nim |
02:48:52 | * | kniteli quit (Ping timeout: 255 seconds) |
02:57:53 | * | akiradeveloper joined #nim |
02:59:04 | akiradeveloper | This is my experimental code for recursive unwrapping of msgpack-nim https://gist.github.com/akiradeveloper/6ed7af50e129d4c7fdda but it doesn't compile. What can I do to compile this? |
03:01:27 | akiradeveloper | I added {.closure.} pragma to type Unwrapper but it doesn't still compile |
03:01:37 | * | ChrisMAN quit (Ping timeout: 264 seconds) |
03:06:11 | * | jefus quit (Ping timeout: 264 seconds) |
03:10:00 | * | enquora quit (Quit: enquora) |
03:13:35 | * | kniteli joined #nim |
03:17:46 | * | reem quit (Remote host closed the connection) |
03:20:21 | * | chrisheller quit (Remote host closed the connection) |
03:33:30 | * | kapil___ joined #nim |
03:35:40 | * | Sembei quit (Read error: Connection reset by peer) |
03:36:33 | * | chrisheller joined #nim |
03:40:32 | * | Sembei joined #nim |
03:43:06 | * | bcinman quit (Quit: Textual IRC Client: www.textualapp.com) |
03:43:28 | * | bcinman joined #nim |
03:49:35 | * | Demos_ joined #nim |
03:53:17 | * | Demos quit (Ping timeout: 246 seconds) |
04:00:50 | * | chrisheller quit (Remote host closed the connection) |
04:00:52 | * | Menche quit (Ping timeout: 240 seconds) |
04:02:08 | * | chrisheller joined #nim |
04:07:51 | * | mwbrown quit (Ping timeout: 252 seconds) |
04:22:04 | * | Demos joined #nim |
04:24:15 | * | chrisheller quit (Remote host closed the connection) |
04:24:43 | * | Demos_ quit (Ping timeout: 252 seconds) |
04:35:09 | * | chrisheller joined #nim |
04:46:59 | * | saml_ quit (Quit: Leaving) |
05:05:51 | * | vince- joined #nim |
05:07:26 | * | [exa]_ joined #nim |
05:07:51 | * | lnr joined #nim |
05:08:48 | * | keypusher joined #nim |
05:09:20 | * | Vinnie quit (Ping timeout: 245 seconds) |
05:09:21 | * | [exa] quit (Remote host closed the connection) |
05:09:22 | * | zama quit (Read error: Connection reset by peer) |
05:09:25 | * | dhasenan_ quit (Ping timeout: 240 seconds) |
05:09:25 | * | key_ quit (Remote host closed the connection) |
05:09:37 | * | zama_ joined #nim |
05:10:36 | * | dhasenan_ joined #nim |
05:14:55 | * | nimnoob123 quit (Quit: Page closed) |
05:19:59 | * | vendethiel joined #nim |
05:21:20 | * | Menche joined #nim |
05:42:30 | * | Demos quit (Read error: Connection reset by peer) |
05:44:54 | * | vendethiel quit (Ping timeout: 256 seconds) |
06:23:24 | * | vendethiel joined #nim |
07:25:02 | * | untitaker quit (Ping timeout: 246 seconds) |
07:26:07 | * | vendethiel quit (Ping timeout: 245 seconds) |
07:29:13 | * | kniteli quit (Ping timeout: 264 seconds) |
07:30:58 | * | untitaker joined #nim |
07:34:32 | * | vendethiel joined #nim |
07:35:06 | * | smodo joined #nim |
07:37:00 | * | epichero_ quit () |
07:37:19 | * | epichero joined #nim |
07:40:41 | * | ^aurora^ joined #nim |
08:03:14 | * | Menche quit (Quit: Leaving) |
08:13:14 | * | dumdum joined #nim |
08:14:48 | * | akiradeveloper quit (Quit: Page closed) |
08:17:51 | * | BlaXpirit joined #nim |
08:18:34 | * | vendethiel quit (Ping timeout: 245 seconds) |
08:21:23 | * | dhasenan quit (Ping timeout: 246 seconds) |
08:26:21 | * | dhasenan joined #nim |
08:30:56 | * | reem joined #nim |
08:33:25 | * | dumdum left #nim (#nim) |
08:36:16 | * | darkf quit (Read error: Connection reset by peer) |
08:36:59 | * | darkf joined #nim |
08:37:28 | * | Trustable joined #nim |
08:40:10 | * | Aszarsha joined #nim |
08:41:06 | * | ^aurora^ quit (Quit: Leaving.) |
08:44:09 | * | vendethiel joined #nim |
08:45:06 | * | reem quit (Remote host closed the connection) |
08:45:39 | * | reem joined #nim |
08:49:38 | * | epichero quit () |
09:06:44 | * | tumult joined #nim |
09:08:22 | * | vendethiel quit (Ping timeout: 240 seconds) |
09:12:49 | * | bcinman quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
09:24:42 | * | xificurC joined #nim |
09:26:20 | * | reem quit (Remote host closed the connection) |
09:27:08 | * | zahary quit (Read error: Connection reset by peer) |
09:27:30 | * | zahary joined #nim |
09:28:01 | * | reem joined #nim |
09:36:34 | * | TEttinger quit (Ping timeout: 255 seconds) |
09:38:57 | * | vendethiel joined #nim |
09:39:00 | * | TEttinger joined #nim |
10:02:11 | * | vendethiel quit (Ping timeout: 246 seconds) |
10:10:06 | * | davidhq joined #nim |
10:22:19 | * | vendethiel joined #nim |
10:27:35 | * | reem quit (Remote host closed the connection) |
10:32:16 | * | Aszarsha quit (Ping timeout: 252 seconds) |
10:45:09 | * | chrisheller quit (Remote host closed the connection) |
10:57:07 | * | aleron joined #nim |
10:59:01 | ekarlso | hmm |
10:59:04 | ekarlso | how to get a basename in nim ? |
11:01:20 | fowl | whats a basename |
11:01:37 | LoneTech | ekarlso: middle field from splitFile in os? http://nim-lang.org/os.html |
11:02:04 | fowl | splitfile(f)[1] |
11:02:18 | ekarlso | thnx LoneTech :P |
11:09:10 | ekarlso | adding sharing now to playsite |
11:09:25 | ekarlso | another idea if I get time sometime would be "live collaboration" on snippets |
11:09:42 | ekarlso | like using multiple ace editor cursors to have multiple people at the same time doing stuff |
11:12:47 | * | vendethiel quit (Ping timeout: 264 seconds) |
11:22:05 | * | vendethiel joined #nim |
11:26:10 | BlaXpirit | that would be too good |
11:28:20 | ekarlso | BlaXpirit: should be possible :p |
11:28:24 | ekarlso | ace editor supports it :p |
11:28:31 | bw_ | hmm, i can managed to find the shebang for compile on the fly |
11:30:01 | ekarlso | bw_: ? :p |
11:30:58 | bw_ | like #!/bin/usr/nim c -r $0 or something like that, but maybe i'm mixing up things |
11:39:52 | Trixar_za | * /usr/bin |
11:41:21 | bw_ | yeah, of course :) |
11:45:40 | * | chrisheller joined #nim |
11:47:19 | * | vendethiel quit (Ping timeout: 245 seconds) |
11:50:14 | * | chrisheller quit (Ping timeout: 252 seconds) |
11:58:00 | * | Aszarsha joined #nim |
11:58:51 | * | aleron quit (Quit: leaving) |
12:09:31 | * | chrisheller joined #nim |
12:10:51 | * | chrisheller quit (Remote host closed the connection) |
12:17:50 | fowl | ekarlso, need a domain? im not using skeetskeetskeet.net |
12:18:06 | ekarlso | fowl: sorry ? :p |
12:18:30 | fowl | to point to the web repl |
12:18:48 | ekarlso | webwhat ? |
12:18:55 | fowl | http://185.56.186.94/#/. |
12:19:45 | * | vendethiel joined #nim |
12:20:09 | ekarlso | fowl: dont see why I would need a seperate domain for that :p |
12:23:46 | fowl | easier to remember than an ip address |
12:24:09 | fowl | recommend one of these http://lifehacker.com/the-best-free-alternatives-to-dyndns-1561556205 |
12:24:25 | def- | fowl: maybe it can be play.nim-lang.org when it works properly |
12:25:13 | ekarlso | some of that hinges on dom96 making exc handling working in jester :p |
12:26:54 | fowl | that would be good |
12:28:47 | fowl | Araq is cleaning house today :D |
12:37:23 | ekarlso | http://nim-play.svcs.io < should become live soon |
12:39:48 | * | mwbrown joined #nim |
12:40:14 | ekarlso | there we go |
12:40:45 | fowl | oh cool |
12:47:49 | * | repax joined #nim |
12:53:56 | Araq | fowl: I wish people would implement all these pointless feature requests |
12:54:10 | dom96 | ekarlso: what do you need exception handling for? |
12:54:10 | Araq | feature request: make everyhing *perfect*. |
12:54:32 | fowl | Araq, the compiler is scary |
12:54:50 | Araq | fowl: most requests are about the tooling though |
12:55:19 | ekarlso | dom96: ... if there's a exception like InvalidRun it would be nice to be able to catch it top level vs pr route so that any exceptions are not HTML when going back... |
12:55:59 | ekarlso | dom96: client side tooling that reads json doesn't quite play well with html exceptions... |
12:56:29 | dom96 | ekarlso: Sure, it would be nice, doesn't mean you can't get it working in a slightly more not nice way. |
12:56:39 | dom96 | ekarlso: Client side tooling should check the content-type. |
12:56:50 | dom96 | and the status code |
12:57:03 | ekarlso | dom96: uh, still defaulting to a 502 and html error isn't that good :p |
12:57:12 | ekarlso | not to mention getting the "real" error message out from html is nasty |
12:57:20 | fowl | cant you wrap the parseJson part in try:except: ekarlso |
12:57:30 | dom96 | ekarlso: That is meant as a debugging aid. |
12:57:36 | dom96 | it disappears in release mode |
12:57:41 | dom96 | you shouln |
12:57:46 | dom96 | *shouldn't depend on it |
12:57:55 | ekarlso | dom96: what happens in release mode then ? |
12:58:10 | dom96 | you don't get a traceback |
12:58:22 | dom96 | you still get a 502 though |
12:58:48 | ekarlso | hmmms |
12:59:00 | ekarlso | dom96: still it would be a very nice addition to make api's with :) |
12:59:03 | dom96 | would you prefer if your app crashed when one of your routes raises an exception? |
12:59:49 | ekarlso | dom96: nope :p |
13:00:06 | dom96 | then you should be happy :P |
13:00:35 | ekarlso | dom96: pffft :p |
13:00:55 | ekarlso | dom96: how hard you think it would be to register like a pr route exception function or top level ? |
13:04:04 | * | Aszarsha quit (Ping timeout: 252 seconds) |
13:04:23 | dom96 | it shouldn't be too har |
13:04:24 | dom96 | d |
13:05:31 | ekarlso | wanna do it ? :D |
13:05:54 | * | vendethiel quit (Ping timeout: 252 seconds) |
13:06:00 | fowl | onionhammer, i'm trying to figure out a way to make test::notherName wrapped properly (so you invoke it like test.notherName instead of instance.notherName) |
13:07:09 | fowl | i tried proc staticName(ty: typedesc[test]): int {.importcpp:"test::staticName".} but importcpp doesnt like that very much |
13:08:24 | dom96 | ekarlso: There are far more important things I should implement in Jester, like caching. |
13:11:22 | * | chrisheller joined #nim |
13:11:26 | ekarlso | dom96: tsssk :( |
13:15:39 | * | chrisheller quit (Ping timeout: 252 seconds) |
13:16:08 | * | mwbrown quit (Ping timeout: 246 seconds) |
13:18:45 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
13:19:01 | reactormonk | Araq, gotta do less issue work, my laptop almost crashes when opening them all ^^ |
13:29:58 | * | banister joined #nim |
13:31:55 | * | mpthrapp joined #nim |
13:33:50 | * | banister is now known as banisterfiend |
13:42:40 | * | ramnes left #nim (#nim) |
13:42:57 | Araq | fowl: use importcpp: "namespace::foo(@)" instead |
13:43:03 | Araq | so the compiler knows it's a pattern |
13:43:25 | * | vendethiel joined #nim |
13:45:52 | * | enquora joined #nim |
13:46:13 | ekarlso | flaviu: the only crappy pattern with the mount stuff in playpen is that you need to have the same path's both in the chroot as you do in the host |
13:46:41 | ekarlso | so if you do random tmp folder paths you would need to create the paths in advance in the chroot since you cant do something like -b <src>:<dst> :( |
13:46:59 | ekarlso | any of you guys that know C well enough to make playpen support ^? |
13:48:07 | fowl | Araq, same error |
13:49:22 | fowl | i made an issue for it #2324 |
13:49:31 | Araq | fowl: ok |
13:49:38 | * | mpthrapp quit (Remote host closed the connection) |
13:50:48 | * | gokr quit (Quit: Leaving.) |
13:53:01 | Araq | fowl: well if you want to import a variable, use a variable? |
13:53:27 | Araq | but ok, you want to attach it to the class I guess |
13:53:58 | Araq | so try proc somvar() {.importcpp: "class:somvar@".} |
13:53:59 | fowl | yea sort of a fake namespace |
13:54:15 | Araq | the @ tell it's a pattern |
13:54:19 | Araq | but the arguments are empty |
13:54:22 | Araq | could work |
13:54:57 | fowl | same error |
13:55:04 | Araq | well yeah |
13:55:13 | Araq | typedesc confuses the codegen |
14:00:55 | * | mpthrapp joined #nim |
14:01:35 | onionhammer | fowl hmm i thought i had static stuff working w/ typedesc |
14:02:07 | onionhammer | unless it stopped workin |
14:02:18 | fowl | onionhammer, static function works |
14:02:24 | onionhammer | ah, but not fields? |
14:02:32 | fowl | right |
14:02:35 | * | [exa]_ is now known as [exa] |
14:02:43 | * | [exa] quit (Changing host) |
14:02:43 | * | [exa] joined #nim |
14:02:50 | onionhammer | you shouldnt be accessing static fields anyway :P |
14:03:13 | fowl | thats an araq answer if i ever heard one :x |
14:03:30 | * | [exa] left #nim (#nim) |
14:03:48 | fowl | Araq, will try it in a minute, i messed up my local nim repo and cant fix it |
14:04:29 | onionhammer | haha true |
14:04:33 | onionhammer | i felt like an araq when i said that |
14:06:04 | onionhammer | afk meeting |
14:06:24 | * | smodo quit (Ping timeout: 256 seconds) |
14:07:50 | Araq | well unfortunately the answer "if it doesn't work it's your own fault" is only valid for C. |
14:08:32 | fowl | Araq, that causes this to be generated N_NIMCALL(NI, Foo::x@)(void); |
14:08:47 | fowl | er let me try with a var |
14:08:47 | Araq | nodecl? |
14:08:54 | Araq | .nodecl? |
14:09:27 | fowl | var foo_x {.importc:"Foo::x", nodecl.}: int works |
14:10:04 | Araq | flaviu: despair, I'm using md5 for some checksum again |
14:10:27 | Araq | and if the values are identical I assume everything is fine |
14:12:52 | * | gokr joined #nim |
14:24:27 | * | darkf quit (Quit: Leaving) |
14:27:44 | * | ChrisMAN joined #nim |
14:31:37 | * | vendethiel quit (Ping timeout: 264 seconds) |
14:32:54 | * | chrisheller joined #nim |
14:34:13 | * | chrisheller quit (Remote host closed the connection) |
14:34:31 | OderWat | is there anywhere a "black on white" nim crown logo available which is not just 16x16 ? |
14:39:15 | fowl | OderWat, maybe in nim-lang/assets |
14:43:55 | OderWat | OK got what I wanted. TY |
14:48:46 | * | chrisheller joined #nim |
14:50:40 | * | gokr1 joined #nim |
14:51:28 | * | pr3d4t0r left #nim ("WeeChat 0.3.7") |
14:53:13 | * | gokr quit (Ping timeout: 264 seconds) |
14:54:30 | * | jholland joined #nim |
14:54:54 | * | Trixar_za quit (Quit: ZNC - http://znc.in) |
14:55:46 | Araq | OderWat: still waiting for PRs of you that I can accept :P |
14:56:34 | OderWat | I just spent my night and day with installing GitLab .. but right now I look at that tuple thing |
15:02:42 | * | vendethiel joined #nim |
15:03:52 | * | pregressive joined #nim |
15:04:16 | * | gokr1 quit (Quit: Leaving.) |
15:10:46 | * | chrisheller quit (Remote host closed the connection) |
15:18:53 | * | kniteli joined #nim |
15:34:45 | * | chrisheller joined #nim |
15:36:40 | ekarlso | how should a playpen sharing function work ? |
15:38:12 | Araq | ekarlso: it should work well. |
15:38:29 | Araq | sorry, couldn't resist |
15:42:01 | ekarlso | Araq: .... |
15:42:44 | * | icebattle joined #nim |
15:46:10 | * | Menche joined #nim |
15:54:21 | * | gokr joined #nim |
15:54:27 | * | vezzy joined #nim |
15:54:47 | * | quasinoxen quit (Ping timeout: 265 seconds) |
15:58:02 | reactormonk | ok, bye bye nim serve |
15:58:43 | ekarlso | nim serve ? |
15:59:31 | ekarlso | what's that reactormonk ? :p |
15:59:53 | reactormonk | ekarlso, https://github.com/Araq/Nim/commit/dfc48e76f7bc03f199730ed9a4c8984d5749f602 |
16:01:35 | def- | ekarlso: wouldn't it be more important that the entire thing doesn't hang when someone makes a while loop? |
16:01:45 | ekarlso | def-: shouldnt hang atm :/ |
16:02:00 | def- | ekarlso: go on nim-lang play and try "echo \"hi\"" |
16:02:37 | ekarlso | meh |
16:02:40 | ekarlso | apparantly it does hang.. |
16:02:45 | ekarlso | I thought hte asyncproc fixed it :( |
16:03:31 | Araq | ekarlso: you can even hack this thing together with the old school cgi protocol |
16:03:46 | Araq | more than 1 user at a time is a solved problem |
16:04:37 | ekarlso | Araq: still I wonder why it borks.. |
16:10:42 | ekarlso | other stupid thing is that timeout doesn't seem to be working.. |
16:11:20 | ekarlso | what you meant by cgi protocol Araq ? |
16:13:00 | def- | http://nim-lang.org/cgi.html |
16:13:33 | ekarlso | meh |
16:14:35 | * | brson joined #nim |
16:14:50 | * | ARCADIVS quit (Quit: ARCADIVS) |
16:17:37 | ekarlso | how would you avoid that then ? |
16:20:15 | Araq | ekarlso: juse use a server that can handle cgi |
16:20:18 | Araq | *just |
16:25:35 | dom96 | in what situation does it hang? |
16:29:03 | def- | dom96: if another user does a while-true loop, then no output is returned for any other user |
16:29:41 | dom96 | that should work with async |
16:30:00 | dom96 | perhaps ekarlso is using 'await' when he shouldn't be. |
16:30:58 | def- | ah, it only happens when the while-true-loop echos something constantly |
16:31:13 | def- | so it's probably reading from that process all the time |
16:31:23 | def- | I just did 'while true: echo "hi"' |
16:37:56 | ekarlso | care to take a look dom96 ? |
16:37:58 | ekarlso | :p |
16:38:05 | * | johnsoft quit (Ping timeout: 244 seconds) |
16:38:16 | dom96 | https://github.com/ekarlso/nim-playpen/blob/master/src/nim_playpen.nim#L53 |
16:38:39 | dom96 | probably shouldn't be using await there |
16:38:41 | * | johnsoft joined #nim |
16:38:52 | dom96 | although hrm |
16:39:20 | dom96 | nvm what I said |
16:40:19 | dom96 | definitely should only do this once: https://github.com/ekarlso/nim-playpen/blob/master/src/private/run.nim#L169 |
16:40:33 | dom96 | surprised that doesn't crash in fact |
16:41:52 | dom96 | https://github.com/ekarlso/nim-playpen/blob/master/src/private/asyncproc.nim#L115 |
16:42:00 | dom96 | Change this into a for i in 0..10: |
16:42:40 | dom96 | or remove the while loop altogether |
16:46:09 | ldlework | Any exiciting Nim news? |
16:49:30 | * | icebattle quit (Quit: leaving) |
16:52:15 | fowl | ldlework, macros.getType(), do you know about it? |
16:52:23 | ldlework | nope |
16:52:51 | fowl | it retrieves type info from a symbol |
16:53:44 | fowl | pretty awesome, i use it here for curry() and an `==` for objects that handles variant types https://gist.github.com/fowlmouth/9b9010397ad5fe4b9872 |
16:54:18 | ldlework | fowl: have you been doing any game programming? |
16:54:57 | fowl | playing with urho3d a bit but nothing serious |
16:56:25 | * | tacone joined #nim |
16:56:57 | tacone | hello :) |
16:57:01 | ldlework | fowl: have you played Cataclysm DDA? |
16:57:15 | fowl | hi tacone |
16:57:18 | fowl | no ldlework |
16:57:23 | ldlework | hrm |
16:57:29 | * | wb joined #nim |
16:58:36 | tacone | I've compiled Aporia. It's very nice and feels just right. I can't get the auto-suggestion and "compile" working though. Any pointers? |
16:59:02 | * | vendethiel quit (Ping timeout: 245 seconds) |
16:59:48 | ldlework | tacone: I think those are known to be broken |
16:59:49 | tacone | when I try to compile it says "Unable to determine what action to take for nim" |
17:00:00 | tacone | ah ok |
17:00:31 | * | bcinman joined #nim |
17:00:36 | tacone | fine then, no more time wasted trying to make them work then, I suppose :) |
17:00:46 | def- | and there is work in progress in the new-suggest branch of Aporia |
17:00:56 | * | vendethiel joined #nim |
17:01:20 | tacone | thank you def- i'll take a look to the branches then |
17:01:52 | * | repax quit (Ping timeout: 240 seconds) |
17:03:28 | * | tumult quit (Ping timeout: 246 seconds) |
17:11:15 | ekarlso | dom96: would there be a way to kill a process btw if say output reaches x lines ? |
17:14:59 | dom96 | ekarlso: yeah, you just need to create a proc in asyncproc which sends the KillProcess command on the commandChan. |
17:22:29 | * | UberLambda joined #nim |
17:24:04 | * | vendethiel quit (Ping timeout: 244 seconds) |
17:26:40 | * | smodo joined #nim |
17:31:53 | ekarlso | dom96: but comamndchan then how does it know the pid or smth? |
17:33:48 | dom96 | hrm, there is a bigger problem I only realised now. |
17:33:59 | dom96 | asyncproc can only run one process at a time. |
17:34:04 | ekarlso | :p |
17:34:18 | ekarlso | hard to get fixed ? :P |
17:35:00 | dom96 | yeah.. |
17:35:09 | ekarlso | crap :( |
17:36:29 | ekarlso | dom96: how would one go about to fix it ? |
17:40:13 | * | vendethiel joined #nim |
17:40:39 | dom96 | I guess you would need a thread for each process |
17:40:56 | dom96 | which means you would need 2 channels for each process |
17:41:09 | dom96 | because reading from a process' output stream can block |
17:41:59 | ekarlso | dom96: so what, a threadpool ish then or ? |
17:42:24 | dom96 | I think so |
17:46:14 | * | ^aurora^ joined #nim |
17:47:21 | ekarlso | dom96: wanna give it a go ? :p |
17:50:14 | * | Demon_Fox joined #nim |
17:53:12 | dom96 | i guess... |
17:55:29 | * | EXetoC joined #nim |
18:03:01 | * | alexruf joined #nim |
18:05:18 | ekarlso | dom96: ping when u got something :p |
18:08:14 | ldlework | hmm problems with nimble, https://gist.github.com/dustinlacewell/09643fc4b361475cc9a1 |
18:08:55 | fowl | try nimble#head |
18:09:37 | fowl | nm i thought that error looked familiar, it doesnt |
18:10:30 | dom96 | def-: seems your PR breaks asyncdispatch: https://gist.github.com/dom96/b5bc4cc9aff279e54c51 |
18:11:03 | dom96 | ldlework: ping github.com? |
18:11:28 | ldlework | dom96: I can get there fine |
18:13:28 | * | alexruf quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
18:13:52 | dom96 | def-: oh. I guess I need to bootstrap |
18:23:06 | dom96 | ekarlso: https://gist.github.com/dom96/add4434a23ad3cb5b451 |
18:23:16 | dom96 | no idea if it will work |
18:23:17 | dom96 | :P |
18:23:35 | dom96 | and yes, it's not the best solution |
18:26:30 | * | npnerd joined #nim |
18:26:38 | * | npnerd left #nim ("Textual IRC Client: www.textualapp.com") |
18:26:40 | * | npnerd joined #nim |
18:26:44 | * | npnerd left #nim ("Textual IRC Client: www.textualapp.com") |
18:26:50 | * | banisterfiend quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
18:26:52 | * | vendethiel quit (Ping timeout: 240 seconds) |
18:28:17 | ldlework | nimble just seems totally broken for me :( |
18:28:24 | ldlework | I've updated nim and nimble so I dunno what's wrong here |
18:28:30 | * | chrisheller quit (Remote host closed the connection) |
18:28:40 | ldlework | different erro, https://gist.github.com/dustinlacewell/367ccfcdbfe416f2cbcf |
18:29:44 | * | chrisheller joined #nim |
18:32:59 | ldlework | should I like... just delete everything and reclone from scratch? |
18:33:28 | ldlework | hmm deleting ~/.nimble seems to have worked |
18:33:41 | * | bcinman quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
18:34:20 | * | bcinman joined #nim |
18:36:30 | * | Matthias247 joined #nim |
18:38:10 | * | Matthias247 quit (Read error: Connection reset by peer) |
18:38:35 | * | tacone quit (Quit: Page closed) |
18:39:54 | * | Matthias247 joined #nim |
18:42:02 | def- | Araq: you're aware that a few parallel tests fail now? |
18:43:27 | * | Matthias247 quit (Read error: Connection reset by peer) |
18:44:16 | * | mwbrown joined #nim |
18:44:54 | * | Matthias247 joined #nim |
18:45:15 | * | Matthias247 quit (Read error: Connection reset by peer) |
18:48:52 | * | Matthias247 joined #nim |
18:49:09 | * | vendethiel joined #nim |
18:49:50 | * | fizzbooze joined #nim |
18:53:12 | * | alexruf joined #nim |
19:01:21 | * | ^aurora^ quit (Quit: Leaving.) |
19:01:35 | * | banister joined #nim |
19:01:57 | * | nastavnic joined #nim |
19:10:24 | * | Trixar_za joined #nim |
19:11:41 | fowl | BlaXpirit, did you know csfml 2.2 is released? |
19:14:25 | * | nastavnic quit (Quit: WeeChat 1.1.1) |
19:17:46 | * | nastavnic joined #nim |
19:18:33 | * | Trixar_za quit (Remote host closed the connection) |
19:19:08 | ldlework | how do you install a specific version of a package with Nimble? |
19:19:27 | ldlework | fowl: it looks like nim-csfml has a 2.2.0 version |
19:20:02 | * | Trixar_za joined #nim |
19:21:51 | ldlework | I can't seem to do 'nimble install csfml@#v2.1.3 |
19:22:28 | ldlework | oh I see |
19:22:51 | fowl | howd you get it working |
19:23:19 | def- | ldlework: works for me, you can try "csfml@#v2.1.3" |
19:23:24 | ldlework | yeah that's what I did |
19:23:28 | ldlework | I was typing search instead of install |
19:23:38 | ldlework | so when I try to compile examples from csfml I get, could not load: libcsfml-graphics.so |
19:23:53 | ldlework | oh I'm dumb |
19:24:03 | ldlework | wait no |
19:24:07 | def- | ldlework: csfml and sfml need to be installed, and both in the same version |
19:24:23 | ldlework | def-: yeah I've cloned both, checked both out to 2.1, make and make install them both |
19:24:41 | def- | ldlework: i always had trouble installing them from source |
19:24:50 | ldlework | /home/dlacewell/dev/libs/CSFML-2.1/lib/libcsfml-graphics.so |
19:25:05 | def- | maybe they're not in the LD_LIBRARY_PATH? |
19:25:28 | ldlework | /usr/local/lib/libcsfml-graphics-d.so |
19:25:31 | ldlework | wtf is -d |
19:25:32 | ldlework | oh debug |
19:25:34 | ldlework | I see |
19:25:42 | fowl | ldlework, just copy them to /usr/lib |
19:25:56 | fowl | i doubt ld_library_path has /usr/local/lib in it |
19:35:02 | ldlework | https://gist.github.com/dustinlacewell/77a48536a64faa1114b6 |
19:35:10 | Araq | def-: no, these work for me, but I can check them later on linux |
19:35:25 | def- | Araq: really doesn't look linux specific |
19:35:59 | def- | tests/parallel/tconvexhull.nim(55, 9) Error: (k)..(k) not disjoint from (k)..(k) |
19:36:23 | BlaXpirit | fowl, thanks, so i just switched default branch on github |
19:36:44 | ldlework | BlaXpirit: any idea why I'm getting the error I just gisted? |
19:37:05 | Araq | def-: ugh ... yeah you're right ... |
19:37:08 | BlaXpirit | o_O |
19:37:18 | Araq | was too late yesterday night ... fuck |
19:39:46 | Araq | no wait |
19:39:58 | Araq | that could also be my countup iterator changes |
19:41:20 | * | nastavni1 joined #nim |
19:41:47 | * | nastavnic quit (Ping timeout: 246 seconds) |
19:41:53 | def- | Araq: but good job with all the issues today |
19:42:41 | Araq | ah yeah |
19:42:53 | Araq | disjoint checking cannot deal with the new countup iterators |
19:42:59 | emilsp | NOOOOOOO |
19:43:02 | Araq | when I revert that, they are all green again |
19:43:40 | def- | Araq: we couldn't use gotos instead to do the countup iterators? |
19:44:33 | Araq | def-: I used the implementation that I know has no size/speed regressions |
19:45:14 | * | epichero joined #nim |
19:48:52 | * | Jehan_ joined #nim |
19:50:04 | def- | Araq: so the disjoint checker can be fixed to work again with the new countup/down? |
19:52:04 | * | fizzbooze quit (Ping timeout: 256 seconds) |
19:52:45 | Araq | def-: sure, I think it only needs to skip the nkConv nodes at strategic places |
19:54:09 | def- | alright, great |
20:07:41 | * | bcinman quit (Ping timeout: 246 seconds) |
20:11:12 | * | bcinman joined #nim |
20:13:57 | * | Trustable quit (Remote host closed the connection) |
20:23:03 | * | fizzbooze joined #nim |
20:36:50 | * | nastavni1 quit (Quit: WeeChat 1.1.1) |
20:49:13 | * | banister quit (Quit: Textual IRC Client: www.textualapp.com) |
20:49:29 | * | banister joined #nim |
20:49:34 | * | banister quit (Max SendQ exceeded) |
20:57:00 | * | reem joined #nim |
20:58:03 | * | banister joined #nim |
21:05:24 | * | reem quit (Remote host closed the connection) |
21:06:30 | * | mpthrapp quit (Remote host closed the connection) |
21:08:42 | * | smodo quit (Read error: Connection reset by peer) |
21:10:59 | ekarlso | dom96: you know what a fix would be for the play stuff ? |
21:11:01 | ekarlso | :p |
21:16:59 | Varriount | BlaXpirit: I resent your allegation that I don't know Python string internals. |
21:17:20 | * | reem joined #nim |
21:18:07 | EXetoC | got a realistic ETA? :-) |
21:18:07 | * | tacone joined #nim |
21:18:37 | Varriount | CPython versions before 3.3 did use 16 or 32 bit arrays for string data storage. Versions 3.3+ use 8, 16, or 32 bit arrays, depending on the size of the largest code point |
21:18:42 | tacone | hello :) is there any way to download the documentation as a zip? |
21:19:31 | tacone | (or how to build it for offline reading?) |
21:22:09 | Varriount | tacone: The documentation can be built. |
21:22:28 | Varriount | I believe the compiler documentation points out how to do so. |
21:22:50 | tacone | thank you! |
21:25:35 | tacone | mh, can't seem to find anything useful |
21:26:27 | tacone | i can't even find the repository containing the doc sources |
21:29:22 | * | fizzbooze quit (Ping timeout: 255 seconds) |
21:33:42 | * | UberLambda quit (Quit: Leaving the Matrix) |
21:37:24 | Araq | tacone: http://nim-lang.org/download/docs-0.10.2.zip |
21:38:01 | * | ehaliewicz joined #nim |
21:38:17 | * | alexruf quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
21:41:04 | * | BlaXpirit_ joined #nim |
21:41:42 | flaviu | Araq: md5 is fine, as long as you're not basing the security of the compiler on it. |
21:42:01 | flaviu | using a CRC as a checksum however... |
21:43:04 | Araq | flaviu: a CRC is a tried and proven solution. |
21:43:57 | * | BlaXpirit quit (Ping timeout: 244 seconds) |
21:44:21 | flaviu | ekarlso: I don't see where the problem is. let path = "..."; discard "bind the path here"; "playpen ... sh " + path |
21:44:55 | tacone | Araq: thank you! |
21:45:07 | flaviu | Concatenation like that is fine, since you control the random dir generation. s/+ path/& path & "run.sh"/ |
21:45:37 | Araq | tacone: 0.10.2 is quite outdated though. |
21:46:17 | tacone | doesn't matter, I'm just starting, it'll be enough for now |
21:50:18 | * | fizzbooze joined #nim |
21:55:54 | flaviu | Araq: I hope you're joking about that. |
21:55:59 | flaviu | re "ekarlso: I don't see where the problem is. " |
21:56:01 | flaviu | oops |
21:56:07 | flaviu | re "a CRC is a tried and proven solution" |
21:57:14 | Araq | lol, I'm just making fun of "software engineering" ;-) |
21:59:23 | * | reem quit (Remote host closed the connection) |
21:59:59 | * | chrisheller quit (Ping timeout: 252 seconds) |
22:02:11 | * | chrisheller joined #nim |
22:09:49 | * | fizzbooze quit (Ping timeout: 250 seconds) |
22:10:12 | * | reem joined #nim |
22:10:31 | * | chrisheller quit (Remote host closed the connection) |
22:11:21 | * | fizzbooze joined #nim |
22:11:37 | * | xificurC quit (Ping timeout: 256 seconds) |
22:12:55 | * | reem quit (Remote host closed the connection) |
22:14:49 | Jehan_ | I'm a bit lost, I'm afraid ... |
22:21:20 | ekarlso | flaviu: yeah I got that fixed.. |
22:21:45 | ekarlso | flaviu: another problem that came up was that asyncproc just supported one proc at a time since it only had 1 thread |
22:21:50 | * | ^aurora^ joined #nim |
22:22:02 | * | ehaliewicz quit (Quit: ERC Version 5.3 (IRC client for Emacs)) |
22:27:08 | ekarlso | one process that is |
22:27:26 | ekarlso | flaviu: https://github.com/ekarlso/nim-playpen/commit/3fce5bbc24ae7310550e7df5fc9fcc45ff5d657d |
22:30:58 | * | reem joined #nim |
22:33:42 | flaviu | ekarlso: Looks good. UUID is a bit overkill, but that doesn't really matter. |
22:33:56 | flaviu | Araq's suggestion of CGI is a good idea btw. |
22:36:23 | BlaXpirit_ | is CGI ever a good idea? |
22:36:28 | BlaXpirit_ | what's going on here |
22:36:47 | flaviu | Yes. It's incredibly simple, so it's easy to develop for. |
22:37:13 | Araq | it also kinda fits the problem |
22:37:25 | Araq | he has to start a fresh process for a request anyway |
22:38:38 | * | pregressive quit (Remote host closed the connection) |
22:38:51 | * | pregressive joined #nim |
22:38:55 | * | reem quit (Remote host closed the connection) |
22:39:00 | * | pregressive quit (Client Quit) |
22:40:03 | flaviu | Well, it's 3 processes at this point |
22:40:09 | flaviu | 4 actually |
22:41:50 | * | chrisheller joined #nim |
22:45:03 | * | epichero quit () |
22:45:30 | * | reem joined #nim |
22:47:14 | * | reem quit (Remote host closed the connection) |
22:54:10 | * | tacone quit (Ping timeout: 246 seconds) |
22:55:30 | dom96 | ekarlso: Have you tried the asyncproc I gave you? |
22:56:02 | * | chrisheller quit (Remote host closed the connection) |
22:56:07 | * | reem joined #nim |
22:57:38 | * | OderWat quit (Quit: Textual IRC Client: www.textualapp.com) |
22:58:11 | * | OderWat joined #nim |
22:58:23 | * | reem quit (Remote host closed the connection) |
22:58:46 | * | rzzz joined #nim |
23:01:30 | * | reem joined #nim |
23:07:23 | * | reem quit (Remote host closed the connection) |
23:08:46 | * | filwit joined #nim |
23:09:44 | * | reem joined #nim |
23:10:46 | * | reem quit (Remote host closed the connection) |
23:15:06 | Araq | hey filwit, how's that forum work coming along? |
23:15:10 | * | Jehan_ quit (Quit: Leaving) |
23:17:35 | filwit | i was trying to separate and unify all the CSS before, but it wasn't going well (trying to share a single CSS file between the web and forum isn't worth it if they're in separate repos really). So I scrapped that (got distracted with Aporia) and haven't really worked on making the simple changes to the forums yet (there's only a few places that need to be fixed). |
23:17:59 | filwit | i'll try to get some things done on it tonight though |
23:21:48 | * | reem joined #nim |
23:22:37 | * | fizzbooze quit (Ping timeout: 264 seconds) |
23:23:40 | OderWat | <- is so happy... just created a wxWidgets Window with Nim :) |
23:25:00 | Araq | OderWat: use /me :-) |
23:25:16 | Araq | so .. you wrapped wxWidgets? |
23:25:18 | OderWat | I won't use you :) |
23:25:24 | * | reem quit (Remote host closed the connection) |
23:25:54 | OderWat | I am fooling around with the wxc lib which comes originally from haskell but is used for D and Rust too. |
23:26:12 | Araq | oh yeah that thing |
23:26:14 | OderWat | And I would not say that I wrapped it (yet). It's all handcoded |
23:26:28 | Araq | just c2nim wxc |
23:26:32 | OderWat | most types are "pointer" :) |
23:27:45 | Araq | urho also comes with a widget set |
23:27:48 | OderWat | wxWidgets is C++ so it is probably a worthy target for later but I guess its "over the top" for me to get that beast running fighting with c++ / wxwidgets and the compiler |
23:28:04 | OderWat | I need native widgets on mac and windows |
23:28:22 | Araq | I see |
23:29:27 | OderWat | I used a lot wxPython in the past .. to an extend that their tools where tested with my application definitions. pretty complex apps. |
23:29:37 | BlaXpirit_ | D: |
23:30:12 | * | reem joined #nim |
23:30:39 | OderWat | The cool thing is.. it runs on win95, xp, and now on windows 8.1 acer tables with toughscreens .. software was made 10 years ago |
23:30:52 | OderWat | toughscreens :) |
23:30:57 | BlaXpirit_ | :p |
23:30:59 | OderWat | i should go to sleep |
23:31:04 | BlaXpirit_ | i may be helpful in wrapping wxwidgets depending on circumstances |
23:31:17 | BlaXpirit_ | maybe let's talk tomorrow, OderWat |
23:31:26 | OderWat | Well actually I was thinking about sponsoring that with $$$ |
23:31:40 | BlaXpirit_ | why does it need $$ |
23:31:59 | OderWat | because it needs work and I usually work for money :) |
23:32:06 | BlaXpirit_ | all i can do is look if it's possible to make an automatic wrapper |
23:32:06 | fowl | I want to write something like AbsTK, does anybody want to do the curses portion of it :D |
23:32:15 | BlaXpirit_ | not gonna do manual wrapping for sure |
23:32:41 | fowl | http://www.gobolinux.org/abstk/ |
23:34:16 | OderWat | Well it needs to work. I am not sure if that can be wrapped automagically... I doubt it and if.. one needs to compile everything in c++ but I guess Nim got a lot better about that :) |
23:37:48 | * | gmpreussner|work joined #nim |
23:38:37 | Araq | OderWat: I still have an old wrapper for wxWidgets 2.8 or maybe 2.6 |
23:38:56 | Araq | but it's better to start from scratch I think |
23:39:07 | OderWat | Was that c++ ? |
23:40:10 | Araq | wxc |
23:41:21 | OderWat | I guess that would spoil my fun :) |
23:41:51 | Araq | do yourself a favor and learn how to use c2nim for that |
23:42:47 | Araq | I know, I know, it doesn't work, blablabla. worked for me to translate 250 header files of C++ code though |
23:43:31 | BlaXpirit_ | you made it, you understand it, you can make it work for you |
23:43:34 | OderWat | I may look at it if I understand how I do it by hand |
23:43:49 | * | chrisheller joined #nim |
23:45:32 | Araq | BlaXpirit_: nevertheless it can be learned and saves a ton of work once learned. |
23:45:47 | BlaXpirit_ | in some cases |
23:46:13 | BlaXpirit_ | probably most cases, gotta admit |
23:48:09 | OderWat | Well I bet you know that talk but you are working in and with nim for 7? years. Me since 7 weeks. Its the same with people working for me with code I developed in the last 10 years. They could do everything better... but in reality stuff is complicated. |
23:49:52 | Araq | well of course, but you can also use c2nim to learn how to wrap manually |
23:51:50 | OderWat | ATM it is not about wrapping but about getting "the system running". Doing the right initialisation, creating the right data |
23:54:35 | * | davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:57:57 | dom96 | Any ideas how big wxwidgets is in comparison to GTK? |
23:58:32 | Araq | dom96: it's smaller. much smaller iirc. |
23:58:46 | Araq | perhaps ~6000 lines in Nim |
23:59:12 | dom96 | ooh. Sounds like a fun way to play around with Nim's new C++ support. |