<< 08-04-2015 >>

00:00:30*Menche quit (Read error: Connection reset by peer)
00:00:58*Menche joined #nim
00:05:03*jholland quit (Quit: Connection closed for inactivity)
00:12:42*Jervac joined #nim
00:36:47*endragor joined #nim
00:40:46*endragor quit (Remote host closed the connection)
00:59:07*saml_ quit (Remote host closed the connection)
01:04:24*wb quit (Ping timeout: 245 seconds)
01:04:32*gsingh93 joined #nim
01:20:17*brson quit (Quit: leaving)
01:27:23*brson joined #nim
01:38:43*a5i joined #nim
02:00:22*mnemonikk quit (Ping timeout: 265 seconds)
02:00:34*mnemonikk joined #nim
02:02:18*pipeep quit (Ping timeout: 265 seconds)
02:06:29*BitPuffin quit (Ping timeout: 245 seconds)
02:07:47*pipeep joined #nim
02:09:42*wink-s quit (Quit: Page closed)
02:27:02*TEttinger joined #nim
02:28:07*brson quit (Quit: leaving)
02:41:47*darkf joined #nim
02:43:16*Jervac quit (Ping timeout: 246 seconds)
02:43:17*milosn quit (Ping timeout: 256 seconds)
02:50:47*milosn joined #nim
03:06:55*Demon_Fox joined #nim
03:40:16*endragor joined #nim
03:43:00*dhasenan quit (Read error: Connection reset by peer)
03:44:27*Menche quit (Quit: Leaving)
05:56:07*Menche joined #nim
06:09:42*HakanD joined #nim
06:49:24*endragor quit (Ping timeout: 245 seconds)
06:52:34*endragor joined #nim
06:53:15*a5i quit (Quit: Connection closed for inactivity)
06:54:06*Kingsquee quit (Quit: Konversation terminated!)
07:01:19*vendethiel joined #nim
07:18:01*BlaXpirit joined #nim
07:18:15*endragor quit (Remote host closed the connection)
07:23:24*gsingh93 quit (Ping timeout: 272 seconds)
07:24:39*MyMind joined #nim
07:27:46*Sembei quit (Ping timeout: 250 seconds)
07:36:29*lyrobot joined #nim
07:36:33*lyrobot quit (Remote host closed the connection)
07:53:48*lyro joined #nim
08:06:31*vendethiel quit (Ping timeout: 250 seconds)
08:09:14*Mewtwo joined #nim
08:10:39*Mewtwo quit (Remote host closed the connection)
08:11:00*Mewtwo joined #nim
08:13:37*Mewtwo quit (Remote host closed the connection)
08:13:58*Mewtwo joined #nim
08:17:10*Pisuke joined #nim
08:29:23*Sembei joined #nim
08:29:39*Pisuke quit (Read error: Connection reset by peer)
08:39:09*endragor joined #nim
08:40:00*Trustable joined #nim
08:43:59*Demon_Fox quit (Quit: Leaving)
08:47:05*milosn quit (Ping timeout: 256 seconds)
09:07:54*wb joined #nim
09:09:23*Ven joined #nim
09:18:33federico3Araq: regarding #2490, when I tried to do logging in a multithreaded application I got a number of GcUnsafe warnings around the use of "handlers"
09:21:11*Sembei quit (Max SendQ exceeded)
09:22:35*Sembei joined #nim
09:28:27*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:39:45*milosn joined #nim
09:42:41*milosn quit (Read error: Connection reset by peer)
09:43:22*Sembei quit (Max SendQ exceeded)
09:44:51*milosn joined #nim
09:46:00*pafmaf joined #nim
09:50:49*pafmaf quit (Ping timeout: 264 seconds)
09:55:33*pafmaf joined #nim
09:57:57*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:58:48*Sembei joined #nim
10:04:47*Sembei quit (Max SendQ exceeded)
10:06:47*Sembei joined #nim
10:10:33*Sembei quit (Max SendQ exceeded)
10:12:54*Sembei joined #nim
10:15:58*repax joined #nim
10:16:21*Sembei quit (Max SendQ exceeded)
10:22:03*Sembei joined #nim
10:25:01*milosn quit (Ping timeout: 264 seconds)
10:27:53*Sembei quit (Excess Flood)
10:27:53*HakanD quit (Read error: Connection reset by peer)
10:28:49*pafmaf__ joined #nim
10:29:49*pafmaf quit (Ping timeout: 264 seconds)
10:31:00*Sembei joined #nim
10:31:43*pafmaf joined #nim
10:33:25*pafmaf__ quit (Ping timeout: 264 seconds)
10:33:25*Sembei quit (Max SendQ exceeded)
10:35:27*milosn joined #nim
10:35:57*HakanD joined #nim
10:38:15*milosn quit (Read error: Connection reset by peer)
10:40:32*milosn joined #nim
10:41:25*JinShil joined #nim
10:50:31*Sembei joined #nim
10:53:35*a5i joined #nim
10:54:49*Senketsu_ quit (Quit: Leaving)
10:57:33*Senketsu joined #nim
10:57:50*Sembei quit (Max SendQ exceeded)
11:01:01*lyro_ joined #nim
11:01:04*lyro quit (Remote host closed the connection)
11:01:16*lyro_ is now known as lyro
11:01:43*Sembei joined #nim
11:05:41*Sembei quit (Excess Flood)
11:06:14*pafmaf quit (Quit: This computer has gone to sleep)
11:07:44*untitaker quit (Ping timeout: 276 seconds)
11:07:54*jefus_ joined #nim
11:11:34*Sembei joined #nim
11:11:35*jefus quit (Ping timeout: 256 seconds)
11:13:22*untitaker joined #nim
11:13:51*lyro` joined #nim
11:16:31*emilsp joined #nim
11:17:04*Sembei quit (Max SendQ exceeded)
11:17:13*lyro` quit (Remote host closed the connection)
11:20:41*Sembei joined #nim
11:21:29*milosn quit (Ping timeout: 252 seconds)
11:26:31*Sembei quit (Max SendQ exceeded)
11:27:08*JinShil quit (Quit: Konversation terminated!)
11:27:53*Sembei joined #nim
11:28:52*repax quit (Quit: repax)
11:47:51*TEttinger quit (Ping timeout: 256 seconds)
11:51:17*pafmaf joined #nim
11:54:22*milosn joined #nim
11:55:52*Sembei quit (Ping timeout: 264 seconds)
12:01:24*Sembei joined #nim
12:12:13*milosn quit (Read error: Connection reset by peer)
12:12:50*BlaXpirit quit (Read error: Connection reset by peer)
12:13:37*BlaXpirit joined #nim
12:13:52*milosn joined #nim
12:18:37*Mewtwo quit (Remote host closed the connection)
12:20:14*Sembei quit (Ping timeout: 245 seconds)
12:24:26*Sembei joined #nim
12:28:04*repax joined #nim
12:30:17*Sembei quit (Ping timeout: 276 seconds)
12:30:45*milosn quit (Ping timeout: 248 seconds)
12:34:20*Sembei joined #nim
12:37:04*bjz joined #nim
12:38:22*milosn joined #nim
12:42:15*Sembei quit (Ping timeout: 256 seconds)
12:44:13*Sembei joined #nim
12:51:19*Sembei quit (Ping timeout: 256 seconds)
12:53:12*pafmaf quit (Quit: This computer has gone to sleep)
13:01:25*TEttinger joined #nim
13:03:59*HakanD quit (Read error: Connection reset by peer)
13:07:02*milosn quit (Ping timeout: 256 seconds)
13:07:32*HakanD joined #nim
13:10:02*LoneTech quit (Ping timeout: 250 seconds)
13:11:58*gokr joined #nim
13:12:10Araqfederico3: are you on devel?
13:12:12*Sembei joined #nim
13:16:16*TEttinger quit (Ping timeout: 244 seconds)
13:17:28*milosn joined #nim
13:24:50*milosn quit (Ping timeout: 252 seconds)
13:24:52federico3Araq: the branch of the compiler itself? No, I'm using 0.10.2
13:25:14Araqfederico3: logging is threadsafe in devel
13:25:17*Pisuke joined #nim
13:25:27Araqit still sucks as its thread local
13:25:35Araqbut it's "safe" at least ;-)
13:27:35*Sembei quit (Ping timeout: 256 seconds)
13:28:34federico3oh, speaking of which: are the docpages about the latest release or devel? They should have a version number
13:29:08federico3and possibly keep every doc version around, e.g. http://nim-lang.org/<version>/times.html
13:29:24*pafmaf_ joined #nim
13:32:09federico3I'll open an issue and see if I can contribute a patch
13:32:15*milosn joined #nim
13:34:01*Ven joined #nim
13:34:54*BitPuffin joined #nim
13:35:49*pafmaf_ quit (Ping timeout: 264 seconds)
13:35:51Araqthat would be really awesome!
13:36:05Araq(I agree completely)
13:36:23*pafmaf joined #nim
13:36:30federico3opening issue...
13:36:32Araq0.10.4 is ready whenever varriount shows up here
13:40:30federico3meh I can't use "<" ">" in issues
13:40:38federico3#2492
13:41:10*pafmaf__ joined #nim
13:41:56*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
13:42:25*pafmaf quit (Ping timeout: 264 seconds)
13:43:25*Pisuke quit (Read error: Connection reset by peer)
13:44:37*Pisuke joined #nim
13:47:11renesacAraq: commented on my pull request
13:47:17renesacon a related note
13:48:19renesacif we moved only | below & or & above | in the precedence table, we could fix the issue with bitwise operation precedence regarding comparison operators
13:49:01*mpthrapp_ joined #nim
13:49:35*Pisuke quit (Read error: Connection reset by peer)
13:50:36*mpthrapp quit (Ping timeout: 240 seconds)
13:50:38renesacxor would become an ugly |^, but at least it would be clear, to those who know the rules, that it is the same precedence than |
13:50:43renesac(or)
13:56:23renesacor better, I will open an issue for it
14:02:13Araqrenesac: how so?
14:02:27Araqwhat has | and & to do with anything?
14:02:51renesacif we used them for bitwise operations
14:04:38*milosn quit (Read error: Connection reset by peer)
14:04:43renesacI'm writting a issue on github explaining better
14:04:59*milosn joined #nim
14:05:12*Sembei joined #nim
14:05:53Araqwell you won't like that, but I think |< |> |& || |^ is kind of cute, | then means "bitwise"
14:06:16renesac|| is already used for parallel
14:06:41Araqonly as an iterator though, so there is no clash
14:06:50Araqwell not an important clash anyway
14:07:10renesacand it would be nice if at least & is at an higher priority than the rest
14:07:15renesacbut I do agree that it is cute
14:07:24*Sembei quit (Max SendQ exceeded)
14:07:34renesac|^ won't look as ugly then
14:07:47Araqwhy does & need a higher prio?
14:08:05renesacalmost all languages give it higher priority
14:08:09renesacincluding nim
14:08:30Araqbut in Nim it's not bitwise AND
14:08:56renesacbut of course we can adopt the smalltalk way regarding that and parenthesis can be used in complex operations
14:09:25*Sembei joined #nim
14:10:14renesacwell, it is bitwise AND, at least for now
14:11:14Araqfor whom? for Nim it's concat in general
14:11:41renesacoh, I'm talking about the current relative priority of AND and OR
14:11:44renesacfor bitwise
14:11:58renesacand that most languages adopt that
14:12:17renesacsometimes with XOR in an intermediate priority, sometimes in the same priority as OR
14:12:36*Sembei quit (Max SendQ exceeded)
14:13:45*ChrisMAN joined #nim
14:14:09renesacand |> is at least easier to type on a normal keyboard than *> (not as good as >> though ;) )
14:14:53renesacbut there are some keyboards (laptop ones especially) that likes to hide that key
14:15:23*Sembei joined #nim
14:16:29*milosn quit (Ping timeout: 245 seconds)
14:18:33*Sembei quit (Max SendQ exceeded)
14:21:58Araqwhat is a "normal keyboard"? :P
14:22:15Araqone without my precious äöüß ?
14:22:19renesacan ISO or american one
14:22:29renesacI don't know if your german keyboard moves the |
14:22:44renesacmine has ç
14:23:00renesac| is besides the Z
14:23:04Araqwell actually | and < and > are all on the same key
14:23:40renesacoh
14:23:52*Sembei joined #nim
14:24:10renesacthat is pretty weird
14:24:10renesacXD
14:24:49renesacok, the * is also to the side, easier to reach
14:28:36*Sembei quit (Max SendQ exceeded)
14:29:48samlis juce.com good?
14:39:54renesacgotta go, I will post the issue latter
14:40:08*renesac is now known as renesac|away
14:41:41*Sembei joined #nim
14:45:44federico3asciidoc <3
14:46:07*Sembei quit (Max SendQ exceeded)
14:51:46*Sembei joined #nim
14:55:23*Sembei quit (Quit: WeeChat 1.1.1)
14:56:41fowleasier to type is a suckish reason to do anything
14:57:03fowleuropeans hate typing []s because they have to hit shift
14:58:02repaxor alt+8, alt+9
14:58:23samlare we web yet?
14:58:33samlready for fullstack web development on nim
15:00:00*LoneTech joined #nim
15:04:12*darkf quit (Quit: Leaving)
15:04:22*pafmaf__ quit (Quit: This computer has gone to sleep)
15:05:00emilspcan we websockets ?
15:07:48*jholland joined #nim
15:08:14EXetoCemilsp: there's only an unfinished lib
15:09:23Joe-Tis there a good test file for testing regex split?
15:11:29*endragor quit (Ping timeout: 244 seconds)
15:21:39HakanDfinally figured out the type system and how scoping works in nim
15:22:17repaxAll of it?
15:22:38HakanDprogramming with dynamically typed languages for a long time makes funny things to one's brain
15:22:44HakanDdunno (:
15:23:28federico3HakanD: and viceversa
15:23:48HakanDhah, i guess so
15:24:40*pafmaf__ joined #nim
15:37:35*endragor joined #nim
15:38:45*milosn joined #nim
15:41:05*arnetheduck quit (Ping timeout: 252 seconds)
15:44:41*novist joined #nim
15:50:39*davidhq joined #nim
15:53:15*endragor quit (Remote host closed the connection)
15:54:04*Matthias247 joined #nim
16:01:48*vendethiel joined #nim
16:07:50Joe-Tdoes this look ok? https://github.com/JosephTurner/Nim/commit/13e5a9ea6ca4eee1d2ff0e7fc9b3c1ceff7a31b4
16:08:12Joe-TI still feel it could have been done cleaner though..
16:11:34*drewsrem joined #nim
16:13:15drewsremAny pointers how to translate bitfields in c-headers to nim code? - c2nim fails on them
16:16:26AraqJoe-T: it's better than no patch at all, please make a PR
16:16:44Araqdrewsrem: use --header with c2nim and simply remove "colon bitsize" in the C code
16:16:56drewsremAraq, will do, ty
16:16:57Araqthat's the best you can do for now
16:17:41*repax quit (Quit: repax)
16:31:46*Ven joined #nim
16:35:32drewsremIs there something to translate va_list to?
16:37:01Araqdrewsrem: usually you don't translate the body of a C function
16:37:12Araqfor the prototype ... becomes .varargs
16:37:24drewsremAraq, thanks
16:48:45*endragor joined #nim
16:54:02*endragor quit (Remote host closed the connection)
17:08:42*Mewtwo joined #nim
17:10:39flyxis there a compiler option to show the generated AST after processing of all macros and templates?
17:11:08*Mewtwo quit (Remote host closed the connection)
17:11:15*jefus_ is now known as jefus
17:11:27*Mewtwo joined #nim
17:13:36*gsingh93 joined #nim
17:21:05*Mewtwo quit (Remote host closed the connection)
17:23:26*elbow_jason quit (Remote host closed the connection)
17:24:58*BitPuffin quit (Ping timeout: 245 seconds)
17:29:32Araqflyx: no. it used to do that with --verbosity:2
17:29:52Araqbut the number of expansions is insane and overwhelming
17:30:02flyxI can imagine that
17:30:15Araqyou can output what you want via 'echo repr' inside a macro
17:30:53*brson joined #nim
17:32:24flaviuAraq: I think he's looking for something like a Nim backend for the compiler.
17:33:01flaviuie, use the pretty printer instead of codegen at the end of the process
17:36:35*HakanD quit (Read error: Connection reset by peer)
17:39:51Araqflaviu: that's not particularly hard to do
17:40:28Araqbut it never occured to me it's a useful tool to get into the compiler
17:54:07*pafmaf__ quit (Quit: Verlassend)
18:00:40*shodan45 joined #nim
18:05:17*pregressive joined #nim
18:08:30*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:17:09*drewsrem quit (Quit: Leaving)
18:23:13*pafmaf joined #nim
18:26:58*HakanD joined #nim
18:40:42*Ven joined #nim
18:55:21dom96Araq: I shall fix my PR ASAP
18:56:53*brson quit (Quit: leaving)
18:57:43*brson joined #nim
19:02:54Araqdom96: no worries. I wonder where Varriount is
19:03:06Araqmaybe I need to build the release on my own
19:05:47*johnsoft quit (Read error: Connection reset by peer)
19:06:32*johnsoft joined #nim
19:07:45*repax joined #nim
19:09:22dom96Araq: done
19:09:44Araqwell you also need to update news.txt
19:09:46dom96no need to shadow _
19:10:30ldleworklol
19:11:44dom96Araq: done
19:12:05Araqdom96: how come?
19:12:20Araqthe C codegen should pick the same name then for these _
19:13:19dom96likely because addInterfaceDecl is not called for them?
19:15:41Araqhrm
19:16:09Araqdo you set sfGenSym for them?
19:22:28dom96no
19:25:13*BitPuffin joined #nim
19:26:00*Mewtwo joined #nim
19:28:37*ChrisMAN quit (Ping timeout: 264 seconds)
19:30:06Araqwell find out why it works please
19:32:05dom96ugh, why?
19:32:24dom96I want to work on something else now.
19:34:18*repax quit (Quit: repax)
19:34:22Araqbecause mankind seeks deep knowledge
19:36:12dom96I'm assuming it's because _ never gets added to the resulting AST.
19:37:00pigmejhmm, what's the way to install nimsuggest ?
19:37:37*BitPuffin quit (Ping timeout: 264 seconds)
19:37:40pigmejnimble crashes with weird error about ast in compiler
19:37:57pigmejlike this: http://wklej.to/cpDuD/text
19:38:18pigmejI saw some github issues about that but I havent undertand solution or something
19:38:38dom96yeah, we need to fix that...
19:38:51dom96can't install it via nimble currently
19:39:18pigmejthen how? :-)
19:39:21pigmejclone of nimsuggest ?
19:39:37dom96clone the Nim repo
19:39:44dom96it's in the compiler dir
19:39:46pigmejdone already :)
19:39:49pigmejah
19:39:52dom96or tools can't remember
19:39:56dom96compile it there
19:40:08pigmejright
19:40:22pigmejcompiler/nimsuggest
19:40:41pigmejok works:)
19:40:42pigmejthx ;)
19:40:56pigmejI will try to integrate nimsuggest in emacs :)
19:50:06*Jervac joined #nim
19:51:47*user7181 joined #nim
19:54:23*Jervac quit (Quit: Page closed)
19:56:31*jefus quit (Quit: Leaving)
19:56:56*jefus joined #nim
19:58:04*Mewtwo quit (Remote host closed the connection)
19:58:34*Mewtwo joined #nim
20:01:12*Mewtwo quit (Remote host closed the connection)
20:02:53*Mewtwo joined #nim
20:04:34*Triplefox quit (Quit: No Ping reply in 180 seconds.)
20:04:50*Triplefox joined #nim
20:05:07*Mewtwo quit (Remote host closed the connection)
20:06:04*Mewtwo joined #nim
20:13:15reactormonkpigmej, also, please take a look at company too
20:13:25reactormonkI've had several people suggest using that instead of autocomplete
20:13:45*pafmaf quit (Quit: This computer has gone to sleep)
20:14:32reactormonk... nevermind ^^
20:14:36pigmejreactormonk: sure, company is awesome :)
20:14:42pigmejac is hmm, 'hacky'
20:14:55pigmejac have quite nice features which are non existent in company but... ;-)
20:15:11pigmejI will try to do company backend which uses nimsuggest
20:15:14reactormonkpreferably you'd split the backend vs. the frontend
20:15:19pigmejsure
20:15:51pigmejsimilar like anaconda does for python
20:15:53reactormonkhow exactly do you invoke nimsuggest? I've messed with nim serve before
20:16:08pigmejnimsuggest is client - server
20:16:23pigmejso preferably / probably emacs will open one nimsuggest for project
20:16:33reactormonkyup
20:16:38pigmejor maybe one global if it can handle different files
20:16:43pigmej(haven't checked yet)
20:16:52pigmejthen elisp will talk to nimsuggest directly
20:17:09reactormonkkinda. you make a buffer where you store the communication in
20:17:16pigmejnimsuggest can communicate over stdin
20:17:20reactormonkexactly.
20:17:25reactormonkelisp works via buffers.
20:17:32pigmejyeah
20:17:36pigmejsome hidden some not
20:18:06reactormonkpreferably nimsuggest would talk in sexp ;-)
20:18:29*irrequietus joined #nim
20:18:38*irrequietus quit (Changing host)
20:18:38*irrequietus joined #nim
20:18:59pigmejreactormonk: I will try to base on anaconda mode :)
20:19:25reactormonkneat
20:19:32pigmejand / or / also alchemist for elixir ;)
20:20:10reactormonkchoose one, fork it, go mess with the things that aren't nim
20:20:29pigmejalmost all ;]
20:20:36reactormonkanaconda is only 550 loc
20:21:10pigmejyeah, but it has separate python server + jedi etc
20:21:13reactormonkand the word "python" only appears in the top quadrant
20:21:28reactormonkI don't see any code reference to jedi
20:21:41reactormonkah, but it's required :-(
20:21:45pigmej;-)
20:21:47*Jehan_ joined #nim
20:22:12pigmejjedi for python is completion, so let's say something like nimsuggest :)
20:22:14pigmejstill good path
20:22:23*user7181 quit (Ping timeout: 256 seconds)
20:22:25reactormonkanaconda looks good to me, your pick
20:22:36Jehan_Is there a way to either (1) efficiently set all elements in a set of type set[1..100] or (2) create the complement of such a set?
20:22:41pigmejyeah I use anaconda every day :)
20:22:51reactormonkgo for that one then
20:23:09pigmejhttps://github.com/proofit404/anaconda-mode/blob/master/anaconda_mode.py maybe that would be the easiest way :)
20:23:12reactormonkJehan_, write a literal?
20:23:19AraqJehan_: {1..100} ?
20:23:25Jehan_The problem is that when I use {1..100}, it's interpreted as a set[0..65535] and I don't seem to be able to cast it down to set[1..100].
20:23:34reactormonkpigmej, yeah, but no python dependencies
20:23:45Araqtype R = range[1..100]
20:23:53Araq{1.R .. 100.R} ?
20:24:11Jehan_Hmm, this didn't work, either, but I may have screwed it up, let me try again.
20:24:31Araqmaybe there is a bug in the compiler.
20:24:42*pafmaf joined #nim
20:25:54Jehan_Ah, nevermind, got it. I forgot the range[] around the actual range.
20:28:18Jehan_Still not pretty, but it works.
20:29:24*user7181 joined #nim
20:30:00*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
20:31:32*nande joined #nim
20:33:06*Ven joined #nim
20:43:15*a5i quit (Quit: Connection closed for inactivity)
20:43:57*Matthias247 quit (Read error: Connection reset by peer)
20:46:29Joe-Tto add a test, should I create a new file in tests, and increment a number at the end of the file name?
20:47:36Joe-Tor multiple tests in the existing file, and new lining the output: in the discard at the top of the file
20:47:53reactormonkJoe-T, which issue?
20:48:10Joe-Thttps://github.com/Araq/Nim/pull/2494
20:48:17Joe-Tthe matching error
20:48:37reactormonkyeah, just add it to the bottom of the file in the when isMainModule part.
20:48:56reactormonkthese statements will be executed by the tester as well.
20:49:16Joe-Toh I see, ok thanks
20:53:29*HakanD quit (Quit: Be back later ...)
21:03:08*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:14:21*nulpunkt quit (Read error: Connection reset by peer)
21:14:29*nulpunkt joined #nim
21:15:11*Mewtwo quit (Remote host closed the connection)
21:18:41*dhasenan joined #nim
21:20:33*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:24:26*Mewtwo_ joined #nim
21:24:33*Mewtwo_ quit (Remote host closed the connection)
21:25:33*Mewtwo_ joined #nim
21:26:02*Mewtwo_ quit (Remote host closed the connection)
21:34:44*Mat4 joined #nim
21:34:45Mat4hello
21:36:14*user7181 quit (Ping timeout: 250 seconds)
21:41:59*Jervac joined #nim
21:43:48*user7181 joined #nim
21:48:29*pafmaf quit (Quit: This computer has gone to sleep)
21:51:53*Jervac left #nim ("Leaving")
21:54:46*a5i joined #nim
21:58:23BlaXpiriti'm trying to use nim js and I get https://github.com/Araq/Nim/blob/b48f9c4/lib/pure/os.nim#L862, 10 Error: undeclared identifier: 'File'
21:59:10AraqBlaXpirit: os is not available for JS
21:59:14Araqhi Mat4
21:59:19Mat4hi Araq
21:59:22BlaXpiritAraq, the thing is i'm not importing it
22:00:56BlaXpirithm maybe i am
22:02:25BlaXpiritjust unsigned, intsets, math
22:03:16*brson quit (Quit: leaving)
22:03:51Araqintsets imports os
22:03:55Araqfor some reason
22:04:02AraqI think you can just remove that import
22:04:40BlaXpirit:|
22:05:06Araqbtw the modules which support JS, do say so
22:07:04*brson joined #nim
22:07:06reactormonkAraq, https://github.com/Araq/Nim/pull/2494/files code checks out, tests works, do you like the code?
22:07:36BlaXpiritsigh
22:08:34Araqreactormonk: you need to document re.split changed behaviour
22:08:37*Jervac joined #nim
22:08:49Araqbut apart from that, it's fine
22:09:04a5ihow2 use nimbus again?
22:09:06AraqBlaXpirit: remove "os ," how hard can it be?
22:09:13BlaXpiriti removed it
22:09:31Araqgood
22:09:53*BitPuffin joined #nim
22:10:09*pregressive quit ()
22:10:20reactormonkAraq, how do you want it documented? The proc documentation has been changed.
22:10:28Araqnews.txt
22:10:38Araqaka changelog for the upcoming release
22:10:49EXetoC.eval echo "a5i"
22:10:52MimbusEXetoC: a5i
22:11:46BlaXpiriti assume iterators don't work in js
22:12:29AraqBlaXpirit: inline iterators do
22:12:33reactormonkAraq, make a new section on top and put it there?
22:12:39BlaXpiritnot bad
22:12:51Araqreactormonk: read news.txt please
22:13:11Araq"Changes affecting backwards compatibility"
22:13:11BlaXpiritbut seriously, how many pull requests will it take until `re` is good?
22:13:15a5ithx
22:13:25AraqBlaXpirit: 2-4
22:13:26a5i.eval 1e100
22:13:27Mimbusa5i: eval.nim(3, 0) Error: value of type 'float' has to be discarded
22:13:45BlaXpiritactually is exec
22:13:57a5i.exec 1e100
22:14:07BlaXpirituh sorry, that's not what i meant
22:14:13a5io
22:14:20BlaXpiritanyhow, to try this thing out, you should go to #nim-offtopic
22:15:08reactormonkAraq, into "Changes affecting backwards compatibility" that's under "2015-03-01 Version 0.10.4 released"? Feels kinda wrong to me
22:15:24Araqno no no, ugh
22:15:35Araqthere was no release of 0.10.4
22:15:54Araqthat date was just my wishful thinking
22:15:59reactormonkhttps://github.com/Araq/Nim/blob/devel/web/news.txt#L6
22:16:11BlaXpiritAraq, why is `nre` not in standard library?
22:16:40AraqBlaXpirit: because we like to trim the stdlib, not bloat it
22:16:51a5iglad to see the Rust vs Nim clash from some trolls on both sides done for
22:16:54BlaXpirityou see, the problem we have is
22:17:07EXetoCa5i: echo is part of the code there. it's not an eval argument or anything, so use echo if you want to print something
22:17:07BlaXpiritthe main criteria for stdlib is who got in there first
22:17:12BlaXpiritthat's not wise
22:17:20a5iohhh
22:17:26a5i.eval echo 1e100
22:17:28Mimbusa5i: 1e+100
22:17:35a5isame as Crystal
22:17:43*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
22:17:44a5iin Rust it goes 100000000000000000000000000231934935723875632894
22:20:17AraqBlaXpirit: should we wait until we have 3 implementations until we decide?
22:20:43BlaXpiritwe now have 1 good implementation
22:22:06*egrep quit (Ping timeout: 272 seconds)
22:22:37Araqwe also have lots of projects which already use 're'
22:22:48Araqand nre is not compatible
22:23:37Araqit's not too much effort to fix re, it's just that people have better things to do
22:24:00BlaXpiriti'm being too obnoxious for sure
22:24:13BlaXpirityou're making some good points
22:24:40BlaXpiritthe problem i have is people don't know about nre
22:25:25flaviuAnother option might be to move almost everything out of the stdlib, and allow third parties to make decisions of merit.
22:25:28BlaXpiritif you don't want to include a lib but we know it's better, why not tell people about it
22:28:49AraqBlaXpirit: we have many people still using 0.10.2 and report bugs about it. that's the problem no 1 right now, we need to get 0.10.4 out.
22:28:52federico3hm, koch web is failing to build in devel due to ../doc/exception_hierarchy_fragment.txt
22:29:06BlaXpiritAraq, that's a big problem, another one that i mentioned
22:29:13BlaXpiritbut different than what we were just talking about
22:29:25BlaXpiritfederico3, that's an old one
22:29:55federico3BlaXpirit: an old file? an old version of koch?
22:30:07BlaXpiritan old version of nim had this fault
22:30:12BlaXpiritold, as in latest released version
22:30:14BlaXpirit(speak of the devil)
22:31:19AraqBlaXpirit: he said he is using devel
22:31:43BlaXpiritthat can't be right. could it be an old devel?
22:32:34federico3hm, let me see, ./bin/nim | grep Ver is 0.10.3 (branched today)
22:33:48federico3I'm rebuilding koch making sure it's built with that version, than doing koch boot and koch web
22:35:41federico3same; could it be that koch or nim are picking up stuff from a system-wide installed version?
22:36:27BlaXpirityes
22:36:29BlaXpiritfederico3, yes, it does
22:36:41BlaXpiritthat's exactly the problem, if you don't have devel nim in path
22:36:58BlaXpiriti discovered this just now, should've thought
22:37:49federico3aha
22:38:08federico3and if I set PATH='.' it won't find gcc then :-/
22:38:23*vendethiel quit (Ping timeout: 250 seconds)
22:38:28BlaXpiritwell don't replace your PATH
22:38:30BlaXpiritadd to it
22:39:13BlaXpiritPATH=".:$PATH" ./koch web
22:39:36federico3I'd rather isolate it completely from the system path
22:40:08BlaXpirittough luck
22:40:21BlaXpiritwell of course you could investigate and fix this
22:40:33AraqI think you can call nim /path/to/it/nim too and then things work as long as everything is in /path/to/it
22:40:54Araqwhich shouldn't be /usr/bin then of course
22:41:05Araq /opt comes to mind
22:42:54Mat4or you can simply use a more recent CLI which automatical include the current directory to the search path
22:43:04BlaXpiriti can't seem to emit in nim js?
22:43:06federico3it's building (and taking quite some time)
22:43:07Mat4something other than Bash
22:43:37BlaXpiritMat4, that's nonstandard. you can't present it as an advantage.
22:43:58BlaXpiritby "something other than Bash" you probably mean "that one obscure shell i use"
22:43:58*Joe-T quit (Quit: ZNC - http://znc.in)
22:45:57federico3PATH=".:./bin" ./koch web does the trick, after symlinking gcc and ld locally
22:46:30AraqBlaXpirit: you can use .emit
22:46:32Mat4this feature was only a script away even in the original C shell way back to ... the 70's
22:47:20fowlfederico3, i usually symlink nim into $PATH
22:47:29fowlthe binary
22:50:23dhasenanI wonder if Nim's output is C++11 compatible.
22:51:42*bcinman joined #nim
22:54:58Mat4ciao
22:55:04*Mat4 left #nim ("Verlassend")
22:56:05def-dhasenan: the C++ backend? why not?
22:56:37*banister joined #nim
22:58:30*BitPuffin quit (Ping timeout: 250 seconds)
22:59:32dhasenandef-: there's always the chance of something getting broken with a new C++ standard. I didn't suspect anything bad, though.
23:01:20dhasenanSo, I have in C++: template<typename T, typename U> class Map { struct Iterator {}; };
23:01:24dhasenanHow do I wrap that in Nim?
23:01:34dhasenanI should probably ask this on stackoverflow, actually...
23:02:58fowldhasenan, you want an generic type that holds no data? ;P
23:03:20dhasenanfowl: I don't want to paste 500 lines of code into IRC.
23:04:42dhasenanBut I can if you want!
23:04:55BlaXpirit{.emit: "lol".} nim js - no "lol" to be seen in generated JS
23:05:19def-BlaXpirit: asm "lol" works?
23:05:37Araqoh yeah
23:05:41BlaXpirityes, Araq
23:05:43AraqI confused .emit with asm
23:05:55BlaXpiritwell apparently i confused them too
23:05:59BlaXpiritwhat's the difference?
23:06:15Araqdhasenan: c2nim can wrap that. kind of.
23:07:58*jefus_ joined #nim
23:11:21dhasenanOh, nim has nested types?
23:11:30*jefus quit (Ping timeout: 272 seconds)
23:12:04dhasenanAh, I see. c2nim gives me something that doesn't compile precisely because nim doesn't have nested types.
23:13:47Araqhe yeah
23:14:10fowldhasenan, you can use importcpp
23:14:24*nande quit (Remote host closed the connection)
23:14:33fowlwell im not sure that would work since it would be Map<t,u>::Iterator
23:14:38*Joe-T joined #nim
23:19:46*Trustable quit (Remote host closed the connection)
23:20:13*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
23:20:43*user7181 quit (Quit: leaving)
23:21:20dhasenanAnd I can't do something in C++ like `template<typename T> using Foo = Map<T>::Iterator;` -- that simply doesn't work.
23:21:45*banister joined #nim
23:23:24BlaXpiritdude
23:23:26dhasenanI've got a non-templated base class, and I don't actually need to use this class, so I can use that.
23:23:30BlaXpiritmy lib `random` runs on js now
23:24:17BlaXpiritat least partially, gotta try irt out properly
23:25:20BlaXpiritnvm. gen: unknown node type: nkUInt32Lit
23:30:28AraqBlaXpirit: JS doesn't support unsigned
23:35:26BlaXpirityeah, what was i thinking
23:42:09*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
23:43:12BlaXpiritoh come on
23:45:03*jholland quit (Quit: Connection closed for inactivity)
23:54:08*HakanD joined #nim
23:54:08flaviuIs there a reason for it not to support unsigned?
23:54:30flaviuThere are 53 bits + 1 sign bit to use on the JS backend.
23:54:45BlaXpiritflaviu, it's a lot of work, i assume
23:55:17BlaXpiritoh but... 64 bit integers
23:55:23BlaXpiritloool
23:55:40BlaXpiritok JS is a joke, i should just move on
23:58:31*TEttinger joined #nim
23:58:33*HakanD quit (Ping timeout: 250 seconds)
23:58:44*reactormonk quit (Ping timeout: 250 seconds)
23:59:01*reactormonk joined #nim