<< 12-02-2015 >>

00:00:35flaviudom96: ping, see the irclogs
00:01:25flaviuekarlso: Sorry, lots of stuff has come up recently. I won't be able to do those CSS changes I promised, but I've made some minor modifications on my branch already.
00:01:34flaviuFeel free to pull if you'd like.
00:02:59*Demos joined #nim
00:09:22*sillesta quit (Ping timeout: 244 seconds)
00:09:52*yonson quit (Quit: Leaving)
00:12:29*vendethiel quit (Ping timeout: 252 seconds)
00:13:32*bretthart joined #nim
00:13:54brettharti'm getting an error when trying to compile my nim program as a staticlib
00:14:28bretthartbuild.nim.a(stdlib_system.o): In function `nimUnloadLibrary':stdlib_system.c:(.text+0xffd6): undefined reference to `dlclose'
00:15:36bretthartthe final exe that libmybuild.nim.a is linked to is linked to dl with `-ldl`, so i'm confused, seems like nim when it made the staticlib forgot to link to dl?
00:16:51*flaviu quit (Read error: Connection reset by peer)
00:19:31*flaviu joined #nim
00:25:31*vendethiel joined #nim
00:29:22brettharti'm using nim from git
00:29:30bretthartshould i try a release instead?
00:29:57*superfunc|lab quit (Ping timeout: 256 seconds)
00:30:31*superfun1|lab quit (Ping timeout: 256 seconds)
00:30:42reactormonkbretthart, nah, git usually works better
00:31:37bretthartreactormonk, any idea why nimUnloadLibrary is missing dlclose? even when i use --passL:-ldl to nim
00:31:52reactormonkbretthart, elmme see
00:32:21brettharti'm compiling a staticlib with --app:staticlib
00:33:20reactormonkbretthart, could you check if the generated c source corectly include <dlfcn.h>?
00:34:40flaviuMissing includes won't cause problems in the linking step.
00:35:06reactormonkflaviu, oh, it's during the linking step
00:36:12reactormonkbretthart, you got /usr/lib/libdl.so and libdl.a?
00:38:13reactormonkbretthart, maybe add --no-as-needed to passL
00:46:48*vendethiel quit (Ping timeout: 246 seconds)
00:46:57*superfunc|lab joined #nim
00:47:08*superfun1|lab joined #nim
00:49:26*vendethiel joined #nim
00:52:01*johnsoft quit (Ping timeout: 264 seconds)
00:52:37bretthartreactormonk, i tried --no-as-needed to passL but no luck. maybe i can bypass making a staticlib, how do i get the c output from nim?
00:52:57*johnsoft joined #nim
00:53:37reactormonkbretthart, hum. try a github issue.
00:56:38*MyMind joined #nim
00:58:27*Sembei quit (Ping timeout: 244 seconds)
01:02:10flaviuWow, wildcard ssl certificates are incredibly expensive!
01:02:22flaviu$475.00 USD / year :O
01:03:21*gokr quit (Quit: Leaving.)
01:03:47flaviuWell, some only charge $348.00/2 years
01:10:26bretthartis the code generated in stdlib_system.c always the same for linux?
01:10:31bretthartif my nim program imports some modules, those end up as their own .c files in /tmp/nimcache ?
01:13:25flaviubretthart: Use --compile_only --gen_script, and investigate the script that's outputted in nimcache.
01:13:49flaviuThat should get you unstuck at least: You can manually play with the linking command.
01:17:42bretthartflaviu, thanks.
01:35:33*vendethiel quit (Ping timeout: 252 seconds)
01:47:53*OnwardEuler quit (Ping timeout: 245 seconds)
02:08:10*federico3 joined #nim
02:23:14*vendethiel joined #nim
02:23:15*superfunc|lab quit (Read error: Connection reset by peer)
02:23:30*superfun1|lab quit (Read error: Connection reset by peer)
02:28:54*darkf joined #nim
02:42:50*jm116_ joined #nim
02:44:51*vendethiel quit (Ping timeout: 265 seconds)
02:51:03*leonlee joined #nim
02:52:17*MajorWork quit (*.net *.split)
02:52:17*comex quit (*.net *.split)
02:57:15*comex joined #nim
03:01:59*vendethiel joined #nim
03:18:56*VinceAddons quit (Read error: Connection reset by peer)
03:22:38*AMorpork joined #nim
03:27:23*vendethiel quit (Ping timeout: 246 seconds)
03:27:33*brson quit (Quit: leaving)
03:35:33*vendethiel joined #nim
03:44:36*saml_ joined #nim
03:45:33*Demon_Fox quit (Quit: Leaving)
03:57:21*vendethiel quit (Ping timeout: 265 seconds)
04:10:19*vendethiel joined #nim
04:29:08*bretthart quit (Ping timeout: 245 seconds)
04:32:26*vendethiel quit (Ping timeout: 252 seconds)
04:33:40*vendethiel joined #nim
04:34:39*kashyap_ joined #nim
04:52:27*nande quit (Remote host closed the connection)
04:54:49*vendethiel quit (Ping timeout: 245 seconds)
05:02:50*vendethiel joined #nim
05:10:06*Demos quit (Read error: Connection reset by peer)
05:23:37*vendethiel quit (Ping timeout: 245 seconds)
05:26:57*AMorpork is now known as ZzZMorpork
05:34:02*ZzZMorpork left #nim ("Leaving")
05:38:48*saml_ quit (Quit: Leaving)
05:40:26*jefus_ joined #nim
05:43:47*jefus quit (Ping timeout: 252 seconds)
05:55:16*vendethiel joined #nim
06:04:24*dvdplm joined #nim
06:17:03*vendethiel quit (Ping timeout: 264 seconds)
06:20:02*bretthart joined #nim
06:20:28*bjz joined #nim
06:22:49*vendethiel joined #nim
06:28:28*bjz quit (Ping timeout: 255 seconds)
06:54:48*bjz joined #nim
07:10:01*vendethiel quit (Ping timeout: 256 seconds)
07:11:36*vendethiel joined #nim
07:13:34*jefus_ quit (Quit: Leaving)
07:13:49*jefus_ joined #nim
07:13:54*jefus_ is now known as jefus
07:15:09*dvdplm quit (Quit: dvdplm)
07:20:55*DecoPerson joined #nim
07:22:03*bretthart quit (Ping timeout: 245 seconds)
07:23:14*chemist69 joined #nim
07:32:47*vendethiel quit (Ping timeout: 245 seconds)
07:36:06*vendethiel joined #nim
07:36:12DecoPersonHow do you handle a low-level array, allocated using alloc0?
07:36:40fowlmouthcast it to ptr array
07:36:53Triplefoxafter you cast, it works like any other array
07:37:10DecoPersoneven though it has no header?
07:37:29Triplefoxit'll be unchecked
07:37:51Triplefoxbut you can wrap it in a type with array[0..0] {.unchecked.} and then add accessors that do checks
07:38:10Triplefoxis {.unchecked.} right?
07:38:14Triplefox(now i have to check)
07:38:19fowlmouthyes Triplefox
07:38:27Triplefoxthanks
07:38:51DecoPersonis it {.unchecked.} by default, if you cast?
07:39:41fowlmouth.eval var x = cast[ptr array[5,int]](alloc0(sizeof(int)*5)); x[0] = 42; echo repr(x[])
07:39:44Triplefoxi'm not sure, it might just complain
07:39:49Triplefoxand not compile if you force it
07:40:00fowlmouthno bot :(
07:40:03Triplefoxwrapping it in a type is what i've done in the past
07:40:24*bretthart joined #nim
07:41:35*dumdum joined #nim
07:43:49DecoPersonhmm, what its size is variable? `array[size, int]` complains that `size` cannot be evaluated at compile-time
07:44:14DecoPerson**what if its size is variable?
07:44:31Triplefoxvariable size is 0..0 and it forces you to declare unchecked in that instance
07:46:24DecoPerson{.unchecked} data {.unchecked}: {.unchecked} ptr array {.unchecked} [0..0, ElementT] {.unchecked}
07:46:26DecoPersonaaaaahhhhh
07:46:40DecoPerson`data: ptr array[0..0, ElementT]`
07:46:46Triplefoxthat's...more than you need i think
07:46:58DecoPersonIn an object type definition, where do I put {.unchecked.}?
07:47:13Triplefoxlet me post example
07:47:30DecoPersonthanks :)
07:47:36fowlmouthtry type UncheckedArray[T] {.uncheckedArray.} = array[1, T]
07:47:45Triplefoxhttps://gist.github.com/triplefox/6385d0b64904780f8692
07:47:48fowlmouther {.unchecked.}
07:48:43*kashyap_ quit (Changing host)
07:48:43*kashyap_ joined #nim
07:49:19*DecoPerson quit (Changing host)
07:49:19*DecoPerson joined #nim
07:49:25fowlmouthTriplefox, why do you use a ref type here
07:49:55Triplefoxuh, now that you mention it...i probably wasn't paying attention since i was just struggling to make it work
07:50:02fowlmouthoh nm i thought you were calling dealloc on the Buffer32
07:50:18DecoPersonThat example is perfect, thank you :D
07:50:38Triplefoxi don't think it needs to be a ref from a perf standpoint, since it doesn't actually contain the array data
07:51:10fowlmouthTriplefox, no a ref is perfect here but instead of having a deallocbuffer32 function use a finalizer
07:51:31Triplefoxah, a feature i didn't try yet
07:51:37DecoPersonhmm... https://gist.github.com/Deco/9b249f8de80d07dfe4c6
07:51:52DecoPersonerror on line 3: impementation of arrayUnchecked expected
07:52:10fowlmouthDecoPerson, i think the pragma on the type has to be before the generic parameters
07:52:29fowlmouthafter array[..] should work too
07:53:42DecoPersonnope, complains about indentation when doing `type aU[R, T] = array[R, T] {.unchecked.}`
07:54:00DecoPersonhttps://gist.github.com/Deco/9b249f8de80d07dfe4c6
07:54:09DecoPersonnow that's a weird error
07:55:55fowlmouthDecoPerson, what do you need the range parameter for? its meaningless with unchecked
07:56:08DecoPersonah, good point
07:57:11DecoPersonworks, thanks :D https://gist.github.com/Deco/9b249f8de80d07dfe4c6
07:57:30Triplefoxare you doing a matrix math lib DecoPerson
07:57:58DecoPersontrying
07:58:34Triplefoxwell, good luck with it...i decided i wanted to port the three.js math library a week or so ago and am gradually chipping away at that
07:59:00DecoPersonDirect translation, or just an inspiration? either way, good choice
07:59:36Triplefoxinterpreted translation, mostly i'm trying to make something that can follow ~same test suite
07:59:54Triplefoxbut a lot of the idioms don't make sense with nim features so i am messing with those
08:00:21*vendethiel quit (Ping timeout: 252 seconds)
08:02:52DecoPersonCompile-time evaluation of constant matrices is awesome. I love how easily it's done with Nim
08:05:58Triplefoxthe standout for me has been the combination of ufcs syntax and overloading
08:06:10Triplefoxit removes a lot of friction around organizing stuff
08:06:10reactormonkDecoPerson, don't get too crazy with it, not sure if the VM is close to native speed
08:07:20DecoPersonVM? I thought Nim translated to C which compiled to native asm
08:07:50Triplefoxat compile time it'd run in a vm
08:08:19DecoPersonAh, right
08:11:57fowlmouththis library uses recursive templates, pretty cool https://github.com/MasonMcGill/tuples
08:14:13DecoPersonHow are the functional procs in Nim?
08:14:21*vendethiel joined #nim
08:14:25DecoPersone.g: var x = reduce(`*`, [3, 4, 5])
08:15:18reactormonkDecoPerson, kinda meh
08:15:56DecoPersonAh, just found sequtils
08:21:59DecoPersonHmm, if I allocate memory like this: "a_a_a_b___b___b___b___"
08:22:17DecoPersonhow can make an array refer to the b___ section?
08:24:27Araquse fowlmouth's lib to do pointer arithmetic or do it by hand: cast to int, plus, cast back to ptr array
08:24:54DecoPersonhttps://gist.github.com/Deco/850e3e8f05cb0495588a
08:25:36Triplefoxyou could define another array with addr() at the start of b
08:25:43fowlmouthDecoPerson, the float section would start at byte intcount*sizeof(int)
08:27:19fowlmouthhttps://gist.github.com/fowlmouth/4060626621d10b71392f
08:27:54DecoPersonyour pointer_arithm lib is handy, thanks :)
08:28:37DecoPersonhmm, why do you cast memoryBlockPtr to a cstring?
08:29:31fowlmouthcstring is char* and can be indexed
08:32:25*gokr joined #nim
08:35:49*vendethiel quit (Ping timeout: 264 seconds)
08:37:40*vendethiel joined #nim
08:38:42reactormonkAraq, https://github.com/Araq/Nim/pull/2053 doesn't break anything that I know of.
08:40:00Araqok
08:41:06reactormonkAraq, got any more edge cases for https://github.com/Araq/Nim/pull/2052 to test?
08:43:11Araqreactormonk: don't use 2 yields in an inline iterator ...
08:43:22reactormonkAraq, ok
08:43:25Araqand why is your version faster?
08:43:40Araqyou simply moved around a few checks?
08:43:56reactormonkI have no idea.
08:43:59fowlmouthhaha "There are two types of programming languages: the ones people bitch about, and the ones that nobody uses." —Bjarne Stroustrup (creator C++)
08:44:08reactormonkI'll benchmark it up for you
08:44:45Araqreactormonk: just move the 'len(s)' out of the loop
08:44:49Araqin the old version
08:44:53Araqlike so:
08:45:00Araqlet L = s.len
08:45:06Araqwhile last < L: ...
08:45:09Araqyou get the idea
08:45:20reactormonkyup
08:45:31reactormonkI'll benchmark it up, but sleep for now.
08:45:49Araqok
09:00:48*vendethiel quit (Ping timeout: 245 seconds)
09:05:22*vendethiel joined #nim
09:05:48*bretthart quit (Ping timeout: 245 seconds)
09:07:23*Trustable joined #nim
09:13:16*lv381 joined #nim
09:13:43*BlaXpirit joined #nim
09:20:04*lv381 quit (Ping timeout: 246 seconds)
09:31:26*sepisoad joined #nim
09:33:08sepisoadis there a good unit test library for nim?
09:35:21fowlmouthsepisoad, unittest module in the std lib
09:36:20Araqfowlmouth: he asked for *good* unit test module :P
09:36:45Araqsepisoad: I simply use isMainModule and doAssert
09:37:08fowlmouthsepisoad, if you're looking for examples its common to have an example usage or test at the bottom of a module
09:39:43Triplefoxi made a slightly fancier thing that reports which line failed, continues testing and reports passes/fails after https://gist.github.com/triplefox/aa9c185b00342a04fd7b
09:40:09Triplefoxnot really a "library" though, just something i added
09:41:54*kuzy000_ joined #nim
09:49:02DecoPersonis `pointer` just `ptr char`?
09:50:16fowlmouthno pointer is void*
09:51:32*davidhq joined #nim
09:51:34DecoPersoneek, so implementing `+` for `pointer` isn't advisable...
09:56:30*sillesta joined #nim
09:56:33fowlmouthnot really possible
10:06:33*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
10:11:50*pafmaf joined #nim
10:13:48ekarlsoflaviu: heh, busy with school stuff ?
10:14:50*davidhq joined #nim
10:28:16*telos joined #nim
10:43:00*telos quit (Quit: Page closed)
10:49:38DecoPersonIs this possible? mat[1,2,3] = 5
10:50:57BlaXpiritwhat is "this"?
10:51:06BlaXpiritit's possible if you define it
10:51:14*kuzy000_ quit (Remote host closed the connection)
10:52:59BlaXpiritthere you go, a stupid example: https://bpaste.net/show/324307591a46
10:53:16DecoPersonjust discovered how: https://gist.github.com/Deco/8de65dfde6fba26e74ee
10:53:23DecoPersonthanks!
10:53:34*jm116_ quit (Changing host)
10:53:34*jm116_ joined #nim
10:53:41Araqthe varargs is not necessary
10:53:49Araqfixed arity works just as well:
10:54:23Araqproc `[]`(x: Matrix; a, b: int): x.type = ...
10:55:17*kuzy000_ joined #nim
10:55:26*gsingh93 quit (Quit: Connection closed for inactivity)
11:06:56*milosn quit (Ping timeout: 246 seconds)
11:07:06DecoPersonproc `[]=`(x: Matrix; indexList: varargs[int], value: atype) =
11:07:17DecoPersonhow do you use varargs for `[]=`?
11:14:29Araqhe, I don't think that's possible
11:15:44*VinceAddons joined #nim
11:20:19DecoPersonHa, that's unfortunate
11:21:05DecoPersonlooks like it'll be Mathematica-like matrix syntax: mat[[1,2]] = v
11:21:47Araqjust looked at the implementation, it's amazingly hard to support ...
11:21:53DecoPersonunless, would you change the order of the index and the value?
11:22:12DecoPerson`[]=`(x: Matrix, value: atype, indexList: varargs[int])
11:22:17Araqyeah, great idea
11:22:25Araqbut not backwards compatible
11:22:26DecoPersonit'd break existing code, though :S
11:22:33Araqyup
11:22:36DecoPersonpainful
11:23:17Araqyou can hack around with a `[]=` macro, I think
11:23:47*vendethiel quit (Ping timeout: 250 seconds)
11:24:15DecoPersonwhat if the compiler matched on the argument list types?
11:24:53DecoPersone.g: proc expects (string, vararg[int], float)
11:25:15DecoPersonbetter example
11:25:20DecoPersone.g: proc expects (string, vararg[float], int)
11:25:33DecoPersoncallsite provides (string, float, float, float, int)
11:26:01DecoPersonthe vararg is not greedy (just like regex)
11:26:31Araqwell yes
11:27:25*mal`` quit (Read error: Connection reset by peer)
11:29:32Araqok, I think I can make it work
11:30:01*vendethiel joined #nim
11:30:02fowlmouththat should work already shouldnt it
11:34:59*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
11:36:12*mal`` joined #nim
11:38:09*Mimbus joined #nim
11:39:28flaviuekarlso: Yep. fowlmouth: The bot is back
11:40:43*OnwardEuler joined #nim
11:45:28*chemist69 quit (Quit: leaving)
11:47:54*chemist69 joined #nim
11:48:30ekarlsoflaviu: boo :(
11:48:40ekarlsoflaviu: let's hope someone else got time to style it :p
12:11:27*vendethiel quit (Ping timeout: 250 seconds)
12:13:22*vendethiel joined #nim
12:31:30*sepisoad quit (Quit: Leaving)
12:34:27*vendethiel quit (Ping timeout: 245 seconds)
12:36:27*zahary joined #nim
12:43:43Araqhey zahary, are you available as mentor for Google summer of code?
12:44:27zaharyI'd take it seriously if we get accepted
12:49:49*vendethiel joined #nim
12:50:38Araqok, good
13:09:51*dumdum quit (Ping timeout: 256 seconds)
13:26:21*Stefan____ joined #nim
13:43:52*nickles joined #nim
13:47:01*hackerkid joined #nim
13:47:13*nickles quit (Client Quit)
13:47:17AraqDecoPerson: ok, got it to work
13:48:58*irrequietus joined #nim
13:55:14*Stefan____ quit (Quit: Page closed)
14:03:34*BlaXpirit quit (Read error: Connection reset by peer)
14:04:14*BlaXpirit joined #nim
14:05:55*dumdum joined #nim
14:07:46*kashyap_ quit (Ping timeout: 246 seconds)
14:13:49*davidhq joined #nim
14:15:15*davidhq quit (Client Quit)
14:19:08*vendethiel quit (Ping timeout: 250 seconds)
14:19:54AraqDecoPerson: pushed
14:31:16*sillesta quit (Remote host closed the connection)
14:32:44*sillesta joined #nim
14:34:23*vendethiel joined #nim
14:37:19*hackerkid quit (Ping timeout: 245 seconds)
14:38:56*hackerkid joined #nim
14:39:10*ibeex joined #nim
14:50:07*hackerkid quit (Ping timeout: 252 seconds)
14:55:29*vendethiel quit (Ping timeout: 246 seconds)
14:58:25*davidhq joined #nim
14:58:53*jasondotstar quit (Quit: Leaving)
15:09:39*vendethiel joined #nim
15:12:28*perturbation joined #nim
15:24:38onionhammerAraq around?
15:25:58onionhammerso does the arrowlike thing not work quite yet?
15:26:00onionhammerhttps://gist.github.com/onionhammer/5bb2b0d2f7944cab06a5#file-pubsub-nim-L39
15:26:45Araqonionhammer: use more ()
15:27:00onionhammerAraq Error: ')' expected
15:27:22onionhammera.onSpeak &= ((s: string) => (echo s))
15:33:52*vendethiel quit (Ping timeout: 264 seconds)
15:34:37*hackerkid joined #nim
15:35:01Araqonionhammer: yeah it's weird
15:35:12Araqdunno what's happening here
15:35:47onionhammerah ok. I guess arrowlike isnt working as intended?
15:36:38Araqwell recently I changed how it's parsed again
15:36:58Araqnot sure if that's the reason why it breaks
15:39:10AraqI feel like removing this piece of crap. I have real bugs to fix here. so what if 'proc ...' is slightly longer than C#.
15:39:38onionhammer:(
15:45:02Araqit's the &= btw
15:45:05Araqwith = it works
15:45:24*vendethiel joined #nim
15:45:29onionhammerhm
15:52:54Araqand so does:
15:52:56AraqonSpeak &= ((s: string) => echo(s))
15:53:49onionhammerhm
15:53:52onionhammerim getting 'Error: cannot infer the return type of the proc'
15:54:57Araqyeah but that's a different issue :P
15:55:02onionhammer;)
15:55:10AraqonSpeak &= ((s: string)->void => echo(s))
15:55:23onionhammerahh there we go
15:57:20federico3is Nim planned to transcompile to C forever or will it evolve its own compiler? Are there plans to support LLVM as well?
16:00:04AraqThere is no such thing as a "transcompiler".
16:00:30Araq"transpile" is a verb created by people who have no idea about compilers.
16:00:55*panzone joined #nim
16:01:00federico3"translate to C and than compile"
16:01:14Araq"translation to C" is a compilation step.
16:01:33Araqand it's as complex as compiling to other intermediate languages such as LLVM
16:02:05federico3it's just a naming convention https://en.wikipedia.org/wiki/Source-to-source_compiler
16:02:22Araqso does GCC "transpile" to asm then?
16:02:32Araqit makes no sense.
16:03:02federico3I'm not implying that translating to C is less good or wrong or anything
16:03:23Araqthen name it as what it is: compilation. :P
16:05:22*darkf quit (Quit: Leaving)
16:05:29Araqand it's not a source-to-source compiler.
16:05:53Araqc2nim is a source-to-source compiler as the resulting Nim code doesn't have to run.
16:06:05pafmafit's a source-to-source transpiler :P ?
16:06:23*ibeex quit (Quit: Textual IRC Client: www.textualapp.com)
16:06:49Araqfederico3: but to answer your question: native codegen is being worked on.
16:07:18AraqLLVM codegen has been abandoned.
16:07:23*vendethiel quit (Ping timeout: 240 seconds)
16:07:31federico3thanks
16:13:10Araq"Translation to C has been removed from LLVM since version 3.1. It had numerous problems, to the point of not being able to compile any nontrivial program"
16:13:39AraqBtw I predicted this.
16:17:20*hackerkid quit (Ping timeout: 265 seconds)
16:19:53*wb quit (Ping timeout: 240 seconds)
16:28:41*NimBot joined #nim
16:29:55*skroll3 quit (Ping timeout: 265 seconds)
16:30:13*skroll3 joined #nim
16:34:35*hackerkid joined #nim
16:45:38*panzone quit (Quit: Leaving...)
16:47:31reactormonkAraq, 'result' shadowing warning <- didn't I do this somehow?
16:49:35*Jehan_ joined #nim
16:54:35ekarlsoyay, working play for nim! :D
16:54:41ekarlsoincluding isolation
16:54:54def-ekarlso: with webinterface?
16:54:57def-want to try it out
16:55:35ekarlsodef-: yeah, gotta deploy it first :p
17:00:44ekarlso def- i'll get it up later today
17:00:48ekarlso2-3 hours ish
17:01:33*Jehan_ quit (Read error: Connection reset by peer)
17:03:09ldleworkekarlso: what sandboxing did you use?
17:04:54*Jehan_ joined #nim
17:07:04ekarlsoldlework: playpen
17:07:10ekarlsofedora 21
17:07:18ldleworkcool
17:09:10ekarlsocreated a little shell util also to manage nim versions
17:09:22ekarlsoa'la nvm for node
17:09:33*leonlee quit (Ping timeout: 265 seconds)
17:09:56*perturbation quit (Quit: Leaving)
17:19:40*jm116_ quit (Quit: Leaving)
17:40:31*jefus_ joined #nim
17:44:07*jefus quit (Ping timeout: 256 seconds)
17:46:19*nande joined #nim
17:47:46*panzone joined #nim
17:48:52*vendethiel quit (Ping timeout: 255 seconds)
17:51:14*Jehan_ quit (Ping timeout: 246 seconds)
17:53:35*milosn_ joined #nim
17:55:12*Jehan_ joined #nim
17:56:04*milosn_ is now known as milosn
18:00:24*vendethiel joined #nim
18:03:36*Matthias247 joined #nim
18:05:27*jefus_ quit (Quit: Leaving)
18:17:11*Jehan_ quit (Read error: Connection reset by peer)
18:22:39*dumdum quit (Ping timeout: 256 seconds)
18:23:09*vendethiel quit (Ping timeout: 244 seconds)
18:26:48*vendethiel joined #nim
18:31:49Araqreactormonk: you made no PR
18:33:54*wb joined #nim
18:35:33*dumdum joined #nim
18:41:39*panzone quit (Remote host closed the connection)
18:42:03*panzone joined #nim
18:45:53*dumdum quit (Ping timeout: 256 seconds)
18:50:49*vendethiel quit (Ping timeout: 264 seconds)
18:53:45*hackerkid quit (Quit: Going out for a walk)
18:55:33*vendethiel joined #nim
18:58:39*gsingh93 joined #nim
19:01:58*ehaliewicz joined #nim
19:02:14*MyMind quit (Read error: No route to host)
19:08:18*shodan45 quit (Quit: Konversation terminated!)
19:09:09*brson joined #nim
19:14:15*nande quit (Read error: Connection reset by peer)
19:19:34*vendethiel quit (Ping timeout: 265 seconds)
19:21:24*vendethiel joined #nim
19:23:55*milosn quit (Read error: Connection reset by peer)
19:28:04*milosn joined #nim
19:38:44*dumdum joined #nim
19:54:52*vendethiel quit (Ping timeout: 264 seconds)
19:55:23VarriountSo... I just wrote my first program in assembly.
19:55:36VarriountI think I prefer Nim. :/
19:55:56dom96I for one love Assembly
19:57:44*vendethiel joined #nim
19:58:48panzonedom96: depends what assembly
20:00:18VarriountI'm using whatever dialect of assembly is supported by Microsofts MASM
20:00:43Varriount(Is there actually any strict specification of 'assembly language'?)
20:02:50AraqVarriount: Intel's manuals do count as such
20:07:45*jfokkan quit (Read error: Connection reset by peer)
20:09:21*CARAM__ quit (Ping timeout: 265 seconds)
20:12:53*panzone quit (Quit: Leaving...)
20:16:53*jfokkan joined #nim
20:18:06*CARAM__ joined #nim
20:38:52*jwecker joined #nim
20:39:17ekarlsohttps://github.com/ekarlso/nim-vm < for those who care about such things
20:40:21*ARCADIVS joined #nim
20:40:28*jwecker quit (Client Quit)
20:41:58*jwecker joined #nim
20:43:59jweckerHi all- I just pulled in the last week or so worth of changes into my local devel branch and suddenly `./koch boot` is saying:
20:43:59*alexruf joined #nim
20:44:02jweckercompiler/options.nim(299, 13) Info: instantiation from here
20:44:04jweckerlib/system.nim(2453, 52) Error: invalid pragma: benign
20:44:07jweckerFAILURE
20:44:18jweckerI can dig further- just wanted to check here first to see if it was a known issue or something
20:44:35Araqjwecker: hrm
20:44:43Araqdo you compile from 0.10.2?
20:44:51jweckerchecking...
20:45:46jweckerjust using the "build.sh" looks like ./bin/nim is 0.10.0
20:45:52jweckeram I bootstrapping wrong?
20:46:40jweckerI'll try git-clean and removing csources...
20:47:14Araq0.10.0 cannot compile 0.10.3
20:47:28*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
20:49:24jweckerok. trying full fresh bootstrap based on 'devel' head
20:50:25jweckerall good now. just cruft from old build. thanks Araq (:
20:51:17ekarlsojwecker: try nimvm on ;P
20:52:02Araqthere is not a single release that can compile the following release
20:55:23*alexruf quit (Quit: Textual IRC Client: www.textualapp.com)
20:55:31BlaXpiritekarlso, i think there is a mistake in your LICENSE D:
20:55:52jweckerthat's fair. I didn't realize the build script was trying to use such an old binary. Now I know to `git clean -xfd && rm -rf csources && /bin/bash build.sh` if I want a true fresh build.
20:56:04*UberLambda joined #nim
20:56:08def-BlaXpirit: he just decided to give you copyright
20:57:43Araqer what?
20:57:56Araqwhat is this?
20:58:10Araqif [ ! -d "csources" ]; then
20:58:12Araq git clone --depth 1 https://github.com/nim-lang/csources.git
20:58:13Araqfi
20:58:15Araqcd "csources"
20:58:16Araqsh build.sh
20:58:42Araqthat's not how building works
20:59:06ekarlsohaha, indeed BlaXpirit :p
21:00:42AraqVarriount: did you pull that?
21:02:09Araqcp -f install.sh.template install.sh # wtf
21:02:34Araqwho wrote this script?!
21:03:45jweckerhah, was just wondering what the point of install.sh.template was also
21:05:10jweckerI suppose it might be so someone doesn't try to activate install before build.sh has done it's job.
21:05:11BlaXpiritAraq, blame?
21:05:15BlaXpiritwhere is it
21:05:44jweckerit all came in this commit: 6b08893 - Philip
21:05:59BlaXpirithttps://github.com/Araq/Nim/blame/7e7a448cf11a4dd7d293209082e6b2e2a7d0c261/build.sh
21:06:21BlaXpiritumm i'm pretty sure i've been using this
21:06:25BlaXpiritand it works well
21:08:06AraqBlaXpirit: well it didnt for jwecker
21:08:41Araqand how many ways of building and installing Nim do we need?
21:08:56BlaXpiritone that is known
21:09:07jweckerI've been using it successfully also until the binary sitting in ./bin/ got too stale. Also, build.sh does a bunch of manual recompilation of c files that is unnecessary most of the time
21:09:09BlaXpiritand this has been indeed "one that is known" for me
21:11:28jweckerIt's basically just a wrapper to make sure koch is built and then it calls out to the 'correct' koch method, right?
21:12:26jweckerwould be cool if koch could bootstrap itself... starts life as a shell script that replaces itself with a binary on first instantiation... maybe too much magic.
21:22:40*nande joined #nim
21:28:37*kuzy000_ quit (Ping timeout: 265 seconds)
21:34:11*dumdum quit (Ping timeout: 256 seconds)
21:35:40*Matthias247 quit (Quit: Matthias247)
21:42:00*Matthias247 joined #nim
21:49:04*jwecker quit (Quit: leaving)
22:01:16onionhammeraraq does setlen on seq reset the capacity back to 0 or just the length
22:05:00Araqonionhammer: just the length
22:09:55*chewbranca joined #nim
22:12:43*Sembei joined #nim
22:13:09onionhammerAraq is events.nim used in the std lib?
22:13:35AraqI don't think so
22:13:43onionhammerlooks like a good candidate for splitting out
22:13:48onionhammerinto a separate package
22:14:06Araqyup, but Amrykid was so happy to be in the stdlib ;-)
22:14:48onionhammerlol
22:15:53*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
22:16:52*UberLambda quit (Ping timeout: 252 seconds)
22:18:22*wb quit (Read error: Connection reset by peer)
22:19:58*Sornaensis quit (Ping timeout: 245 seconds)
22:21:31*davidhq joined #nim
22:23:52*Sornaensis joined #nim
22:24:24*vendethiel quit (Ping timeout: 245 seconds)
22:25:52*vendethiel joined #nim
22:45:35*pafmaf quit (Quit: Verlassend)
22:46:51ekarlsoyou're all awesome at debugging low level stuff: playpen: clone: Operation not permitted
22:46:56ekarlsowhat does that mean ?
22:49:37*vendethiel quit (Ping timeout: 264 seconds)
22:59:02*BlaXpirit quit (Quit: Quit Konversation)
22:59:49Araqekarlso: Unix hates you?
23:00:15*vendethiel joined #nim
23:01:21ekarlsoAraq: :'(
23:01:59ekarlsoseems it only works with sudo -,,-
23:02:07ekarlsoso fedora 21 is borked too, great
23:03:18*Boscop_ joined #nim
23:04:01ekarlsowonder what's the diff in archlinux that it works there :|
23:05:41ekarlsowhat else to use then ...
23:05:45ekarlsoallmost falling to docker instead :p
23:05:52ekarlsodom96: / ldlework suggestions ?
23:06:57*Boscop quit (Ping timeout: 252 seconds)
23:07:09def-ekarlso: why not just install sudo then?
23:07:22def-maybe I'm misunderstanding
23:07:33ekarlsodef-: ... playpen for isolating processes for nim-play
23:13:28*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:13:41flaviuAraq: Some guy/university is adding the C backend to llvm, I can't give links atm tho.
23:22:05flaviuhttps://github.com/draperlaboratory/llvm-cbe
23:25:01*vendethiel quit (Ping timeout: 255 seconds)
23:25:28fowlmouthwhy would llvm need a c backend
23:26:04*sillesta quit (Ping timeout: 245 seconds)
23:26:23flaviufowlmouth: Microcontrollers are the big thing
23:27:17flaviuThey often have their own proprietary toolkit, but you want to use your favorite compile-to-llvm language or you want to take advantage of llvm's optimization.
23:28:04fowlmouthoh
23:31:30Araqthere are not that many proprietary toolkits left that are not based on GCC though
23:31:48Araqso you tend to get a decent optimizer
23:32:29Araqand so you should pick your favorite compile-to-C language. Nim. ;-)
23:34:38ekarlsonoone got a clue ? ;P
23:35:51def-ekarlso: you could ask the other guys using playpen what they use
23:44:19*Matthias247 quit (Read error: Connection reset by peer)
23:58:40ekarlsowonder what alternatives there are..
23:58:46ekarlsoallmost tempted to just containers..