<< 07-09-2015 >>

00:13:11*NimBot joined #nim
00:24:51*Jehan_ quit (Quit: Leaving)
00:28:49*Jehan_ joined #nim
00:40:11*BitPuffin|osx joined #nim
00:58:27*jaco60 quit (Ping timeout: 246 seconds)
01:02:00*Jehan_ quit (Read error: Connection reset by peer)
01:49:19*Jehan_ joined #nim
01:51:45*chemist69 joined #nim
01:55:00*chemist69_ quit (Ping timeout: 264 seconds)
01:59:15*keyle joined #nim
02:05:37*Toad_ joined #nim
02:14:02*huonw_ joined #nim
02:14:04*titanomachy_ joined #nim
02:14:05*rinukkusu_ joined #nim
02:15:25*strcmp1 quit (*.net *.split)
02:15:25*CryptoToad quit (*.net *.split)
02:15:25*titanomachy quit (*.net *.split)
02:15:26*nchambers quit (*.net *.split)
02:15:27*huonw quit (*.net *.split)
02:15:27*lyro quit (*.net *.split)
02:15:28*minus quit (*.net *.split)
02:15:28*someplace quit (*.net *.split)
02:15:29*rinukkusu quit (*.net *.split)
02:15:29*Amun_Ra quit (*.net *.split)
02:18:20*umurgdk joined #nim
02:18:24*minus joined #nim
02:20:41*nchambers joined #nim
02:21:56*lyro joined #nim
02:21:56*strcmp1 joined #nim
02:21:59*someplace joined #nim
02:22:37*umurgdk quit (Ping timeout: 246 seconds)
02:22:38*Amun_Ra joined #nim
02:24:43*Jehan_ quit (Read error: Connection reset by peer)
02:34:41*fold quit (Ping timeout: 272 seconds)
02:34:41*Jesin quit (Ping timeout: 272 seconds)
02:36:01*fold1 joined #nim
02:38:05*Jesin joined #nim
02:50:59*yomiel_ joined #nim
02:57:28*yomiel quit (*.net *.split)
02:57:28*Xaseron quit (*.net *.split)
02:57:28*r-ku quit (*.net *.split)
03:02:21*Xaseron joined #nim
03:02:21*r-ku joined #nim
03:06:02*Jehan_ joined #nim
03:07:31*lokulin quit (Ping timeout: 265 seconds)
03:08:30*vegai quit (Ping timeout: 265 seconds)
03:08:31*rektide_ quit (Ping timeout: 265 seconds)
03:09:49*rektide joined #nim
03:10:08*vegai joined #nim
03:10:40*Jehan_ quit (Client Quit)
03:11:35*Jehan_ joined #nim
03:27:40*lokulin joined #nim
03:33:19*Jehan_ quit (Read error: Connection reset by peer)
03:37:42*FedeOmoto joined #nim
03:42:41*vega_nsk joined #nim
03:50:28*Jehan_ joined #nim
04:05:42*NimBot joined #nim
04:27:07*NimBot joined #nim
04:34:11*Jehan_ quit (Quit: Leaving)
04:35:38*Jehan_ joined #nim
04:45:56*darkf joined #nim
05:09:35*Jehan_ quit (Quit: Leaving)
05:12:13*Jehan_ joined #nim
05:18:37*NimBot joined #nim
05:20:57*Jehan_ quit (Quit: Leaving)
05:22:39*xificurC joined #nim
05:22:42*Jehan_ joined #nim
05:23:00*xificurC quit (Client Quit)
05:29:03*kilon quit (Read error: Connection reset by peer)
05:29:49*kilon joined #nim
05:35:17*keyle quit (Quit: http://twitter.com/keyle/)
05:49:05*jszymanski joined #nim
06:05:44*yglukhov joined #nim
06:08:03*vendethiel joined #nim
06:08:54*yglukhov quit (Remote host closed the connection)
06:10:07*yglukhov joined #nim
06:14:51*yglukhov quit (Remote host closed the connection)
06:20:20*xcombelle joined #nim
06:22:30*yglukhov joined #nim
06:23:10*jackv quit (Ping timeout: 240 seconds)
06:24:03*jackv joined #nim
06:29:38*FedeOmoto quit (Ping timeout: 260 seconds)
06:30:51*umurgdk joined #nim
06:31:14*yglukhov quit (Remote host closed the connection)
06:32:53*vendethiel quit (Ping timeout: 244 seconds)
06:38:30*gokr joined #nim
06:39:35*Jehan` joined #nim
06:39:53gokrGood morning Nimsters!
06:40:24*Jehan_ quit (Ping timeout: 246 seconds)
06:41:06strcmp1morning :)
06:41:22reactormonkAll hail Nim
06:43:51*umurgdk quit (Remote host closed the connection)
07:00:00*Jehan` quit (Quit: Leaving)
07:01:16*Jehan_ joined #nim
07:06:18*ofo quit (Ping timeout: 246 seconds)
07:07:34*Ven joined #nim
07:15:36*Jehan_ quit (Quit: Leaving)
07:17:47*Toad_ is now known as Cryptotoad
07:26:58*vegansk quit (Remote host closed the connection)
07:26:58*vega_nsk quit (Remote host closed the connection)
07:30:29*NimBot joined #nim
07:31:16*umurgdk joined #nim
07:31:34*chemist69 quit (Quit: WeeChat 1.3)
07:33:04*chemist69 joined #nim
07:33:24*irrequietus joined #nim
07:33:51*xcombelle quit (Ping timeout: 244 seconds)
07:35:31*umurgdk quit (Ping timeout: 246 seconds)
07:38:09*Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png)
07:50:27*umurgdk joined #nim
07:51:06*umurgdk quit (Remote host closed the connection)
07:51:19*umurgdk joined #nim
07:52:46*Ven quit (Read error: Connection reset by peer)
08:04:17*umurgdk quit (Remote host closed the connection)
08:04:57*yglukhov joined #nim
08:05:00*umurgdk joined #nim
08:05:25*yglukhov quit (Remote host closed the connection)
08:11:45*tja joined #nim
08:12:14tjaHello, anyone on?
08:19:33*yglukhov joined #nim
08:27:32Araqhi tja
08:28:04Araqdom96: any thoughts on my Nimble PR?
08:28:18dom96hello tja and Araq
08:28:30dom96Araq: I don't like that you renamed all 'options' to 'opt'
08:28:36dom96Haven't got much further than that in the review
08:28:44dom96I'll review the rest tonight
08:28:46*umurgdk quit (Remote host closed the connection)
08:29:07*Trustable joined #nim
08:29:10Araqone thing that really sucks IMHO is the inconsistent command line handling between Nim and Nimble
08:29:18Araqnim build # fails
08:29:21Araqnimble build # works
08:29:28Araqnim build project.nim # works
08:29:35Araqnimble build project.nim # fails
08:29:38dom96what?
08:29:42dom96There is no such thing as 'nim build'
08:30:05Araqsurely there is if your nims file has a "build" task
08:30:38*Trustable quit (Remote host closed the connection)
08:30:57tjaHi
08:31:26*Trustable joined #nim
08:31:31tjaI was wondering if it would be possible to ask someone to give a presentation on the technical aspects of Nim.
08:31:46tjaTo a tech audience.
08:32:09tjaFor context: I work in a software lab.
08:32:14gokrtja: Where?
08:32:31tjaBelgium: Leuven. The institute is called Imec (www.imec.be)
08:32:43tjaVia teleconf is also possible
08:32:56tjaWasn't sure where to ask, hence on IRC :-P
08:33:46dom96Araq: If it does then it will work on Nim too
08:33:56dom96because Nim will do the same thing Nimble will do
08:34:01tjaWe're an odd bunch, but some of us are pretty interested in Nim.
08:34:03gokrtja: You can also post on the forum, but most Nimmers do hang here.
08:37:16Araqtja: I guess I can do that ;-)
08:37:30tjaaraq: Bingo :-)
08:38:25Araqdom96: cannot follow
08:40:58dom96The build task will in most cases just be defined as: nimble.buildMe()
08:41:20dom96so the nims file will import nimble's module
08:43:29r-kuAraq you forgot
08:43:39gokrdom96: Off topic, I was reading up on the "latest" web stuff, ReactJS in particular. Have you done anything like that with Jester as backend?
08:43:49gokrr-ku: Hehe
08:45:41*Ven joined #nim
08:47:16*jaco60 joined #nim
08:49:05*BitPuffin|osx quit (Ping timeout: 240 seconds)
08:49:12Araqdom96: er ... I don't think this is realistic with the current NimScript API
08:49:34Araqnor is it desirable really, would start a process (nimble)
08:49:45Araqthat then calls the compiler again
08:50:22dom96gokr: nope, haven't gotten into this new wave of JS frameworks yet :)
08:50:22*umurgdk joined #nim
08:50:40dom96Araq: It wouldn't start a process.
08:51:00gokrdom96: I just skimmed some articles comparing a bunch of them - and ReactJS looks quite nice. Reminds me a fair bit of Seaside actually, nested components etc.
08:51:01dom96At least not the nimble process
08:51:12dom96It would execute the build instructions in the same way that Nimble would
08:53:07Araqnim build -?-> nimble.buildMe() # how does that work? we have a nimble module that works with NimScript?
08:53:24dom96I guess we'll get one
08:53:31dom96how else do you expect nims to work?
08:56:37Araqlike it's done in my PR
08:56:56AraqI'm quite happy with it once we unified command line handling
08:58:08dom96how does it work in your PR/
08:58:11dom96?
08:58:47Araqit executes the project.nims file rather than processing a project.nimble file
08:59:14dom96yeah
08:59:17Araqthe project.nims file sets author, deps etc and nimble retrieves these values with the compiler's API
08:59:51dom96So what if I want to define my own 'build' command?
09:00:09Araqit overrides nimble's build command, I think
09:00:11dom96I obviously program it in the nims file
09:00:31dom96So why not have the default implemented in nims too?
09:01:02Araqsure thing
09:01:24Araqwe can do that
09:01:45Araqthat means "Nimble" doesn't know about a "build" command at all
09:01:55*yglukhov quit (Remote host closed the connection)
09:05:57dom96yeah
09:06:06dom96well, it can have some idea
09:06:18dom96if there is no build command defined then it will give a meaningful error
09:12:50*X67r joined #nim
09:22:27*yglukhov joined #nim
09:26:45*yglukhov quit (Ping timeout: 240 seconds)
09:28:18*vegai left #nim (#nim)
09:37:28*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:55:07*coffeepot joined #nim
09:56:34*NimBot joined #nim
10:04:09*yglukhov joined #nim
10:04:28*NimBot joined #nim
10:04:43Araqyglukhov: can you check what the .base annoation requirement caused to your codebase?
10:06:33*vegansk joined #nim
10:09:07*umurgdk quit (Remote host closed the connection)
10:09:10*yglukhov quit (Ping timeout: 268 seconds)
10:13:02*Ven joined #nim
10:13:41*jszymanski quit (Quit: computer sleeps...)
10:15:39*tja quit (Ping timeout: 246 seconds)
10:18:09*umurgdk joined #nim
10:26:27*yglukhov joined #nim
10:32:48yglukhovAraq: about that nimvm transformation. Nimvm gets constfolded in generic code. And consfold of nimvm is an invalid operation in my code. Preventing constfold of nimvm will require explicit handling of nkWhen generic transformations. Would that be the correct approach?
10:32:57NimBotnim-lang/Nim devel adf3408 Araq [+1 ±5 -0]: documented NimScript
10:32:57NimBotnim-lang/Nim devel a480beb Araq [+0 ±2 -0]: Nimscript: documented; 'exec' now produces output immediately
10:33:18Araqyglukhov: don't make it a 'const'.
10:33:25Araqthen it's not folded
10:33:27Araqbbl
10:37:06*Demon_Fox quit (Quit: Leaving)
10:41:11*umurgdk quit (Remote host closed the connection)
10:46:06*Cryptotoad quit (Ping timeout: 246 seconds)
10:47:47*umurgdk joined #nim
10:52:36*umurgdk quit (Ping timeout: 264 seconds)
11:05:12*NimBot joined #nim
11:05:36*rollo joined #nim
11:06:00*wuehlmaus quit (Quit: Lost terminal)
11:06:20*wuehlmaus joined #nim
11:07:18*yglukhov quit (Remote host closed the connection)
11:11:34*Ven quit (Read error: Connection reset by peer)
11:16:25*yglukhov joined #nim
11:16:32*Ven joined #nim
11:19:32yglukhovCan't find a decent test on arith and bit operations in nim tests. Does anyone know where to find it?
11:23:53*umurgdk joined #nim
11:28:10*yglukhov quit (Remote host closed the connection)
11:28:36*umurgdk quit (Ping timeout: 264 seconds)
11:28:48*Jehan_ joined #nim
11:31:48*umurgdk joined #nim
11:35:12*tja joined #nim
11:35:46*tja quit (Client Quit)
11:37:02*yglukhov joined #nim
11:37:05*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11:38:11reactormonkyglukhov, are they defined in system? Then somewhere in the tests dir.
11:38:47yglukhovreactormonk, "somewhere in tests dir" - that's helpul =)
11:39:01reactormonkyglukhov, that's about as much as I know. git grep might help.
11:41:00yglukhovok, found some in misc/tints.nim
11:44:26*NimBot joined #nim
11:45:33reactormonkFeel free to rename/clean up
11:50:07*Snowie quit (Quit: Page closed)
11:51:14*Ven joined #nim
11:59:24*vegansk quit (Quit: Ухожу я от вас (xchat 2.4.5 или старше))
12:01:42*jaco60 quit (Quit: Leaving)
12:02:07*jaco60 joined #nim
12:07:50*yglukhov_ joined #nim
12:11:35*yglukhov quit (Ping timeout: 264 seconds)
12:12:38*yglukhov_ quit (Ping timeout: 260 seconds)
12:18:07*BitPuffin joined #nim
12:18:21*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:18:23*boopsiesisaway is now known as boopsies
12:32:43*NimBot joined #nim
12:45:45*Ven joined #nim
12:53:11*boopsies is now known as boopsiesisaway
12:58:00*yglukhov joined #nim
12:58:47*yglukhov quit (Remote host closed the connection)
13:04:37*jszymanski joined #nim
13:06:43*yglukhov joined #nim
13:12:19Araqyglukhov: indeed they are all in misc/
13:12:56Araqfeel free to move them to basics/ instead or whatever
13:13:50yglukhovI don't really care where they are now that i've found them ;)
13:16:50*strcmp1 quit (Ping timeout: 240 seconds)
13:19:30*strcmp1 joined #nim
13:20:12reactormonkyglukhov, someone else might look for them
13:20:18reactormonkAraq, shouldn't they go into system/ ?
13:21:02Araqsystem/ is also fine I guess
13:24:30*strcmp1 quit (Ping timeout: 260 seconds)
13:24:47*FedeOmoto joined #nim
13:32:40*johnsoft quit (Read error: Connection reset by peer)
13:34:07*umurgdk quit (Remote host closed the connection)
13:36:47*strcmp1 joined #nim
13:41:50*umurgdk joined #nim
13:41:56*strcmp1 quit (Ping timeout: 272 seconds)
13:43:01*strcmp1 joined #nim
13:47:14*strcmp1 quit (Ping timeout: 250 seconds)
13:48:53*FedeOmoto_ joined #nim
13:50:48*FedeOmoto quit (Ping timeout: 255 seconds)
13:51:11*FedeOmoto joined #nim
13:54:55*FedeOmoto_ quit (Ping timeout: 246 seconds)
13:56:05*Cryptotoad joined #nim
13:59:50*mal`` quit (Ping timeout: 240 seconds)
14:05:43*mal`` joined #nim
14:07:16OnOAraq: one Q about .base annotation, what if we have 3 level hierarchy, should 1, 2 lvl be annotated as base or only 1
14:07:30OnOdoes .base solution prevent problems with 3 lvl hierarchy too?
14:08:31Araqonly 1
14:10:12Araqalso it turned out to not prevent any problem really. I fixed the real problem dfferently
14:10:59Araqhowever it still makes things more obvious, especially the interactions with the effect system. So I want to leave .base in the language.
14:15:50*Ven quit (Ping timeout: 244 seconds)
14:19:38*yglukhov quit (Remote host closed the connection)
14:20:19NimBotnim-lang/Nim devel 4ef4ad3 Yuriy Glukhov [+0 ±3 -0]: Fixed nimvm in generics.
14:20:19NimBotnim-lang/Nim devel 0b51d6d Andreas Rumpf [+0 ±3 -0]: Merge pull request #3291 from yglukhov/nimvm-generic-fix... 2 more lines
14:24:04*umurgdk quit (Remote host closed the connection)
14:28:02*umurgdk joined #nim
14:35:55NimBotnim-lang/Nim devel 167acf4 Adam Strzelecki [+0 ±1 -0]: typeToString: Fix shared/not nil on complex types... 3 more lines
14:35:55NimBotnim-lang/Nim devel 5e5d5b6 Andreas Rumpf [+0 ±1 -0]: Merge pull request #3295 from nanoant/patch/fix-type-to-string-flags... 2 more lines
14:36:48NimBotnim-lang/Nim devel caf0cd9 Matt Sullivan [+0 ±1 -0]: Replace incorrect warning string.
14:36:48NimBotnim-lang/Nim devel 217a30a Andreas Rumpf [+0 ±1 -0]: Merge pull request #3293 from Matt14916/usebase-msg-fix... 2 more lines
14:40:11*yglukhov joined #nim
14:40:24*yglukhov quit (Remote host closed the connection)
14:40:37*yglukhov joined #nim
14:45:27AraqJehan_: OpenMP can create threads behind our back. For Nim's GC we have setupForeignThreadGc, what does Boehm offer?
14:50:30yglukhovAraq: i suspect i'll break bootstrap if i use nimvm in seq.insert.
14:51:01Araqwhy? it defaults to 'false'
14:51:14yglukhovit is 'let', not const
14:51:23Araqah bah
14:51:34Araqwhen defined(booting):
14:51:41Araq const nimvm = false
14:51:43Araqelse:
14:52:08Araq let nimvm {.magic: "nimvm".} = false
14:52:20yglukhovah... ill do it in the same pr, ok?
14:52:27Araqsure
14:52:33Araqbut please test it well
14:57:24Araqmore robust is this:
14:57:43Araqwhen defined(nimKnowsNimVm):
14:57:55Araq let nimvm {.magic: "nimvm".} = false
14:57:56Araqelse:
14:57:57*yglukhov quit (Remote host closed the connection)
14:58:02Araq const nimvm = false
14:58:04Jehan_Araq: You can use GC_allow_register_threads() and then GC_register_my_thread()/GC_unregister_my_thread() using GC_call_with_stackbase() in a wrapper.
14:58:20Araqand then in condsysm.nim, add defineSymbol"nimKnowsnimVm"
14:58:41*yglukhov joined #nim
14:59:11Jehan_I'd have to look at the existing thread code to figure out how much hacking is necessary to put the wrapper in.
14:59:12Araqor maybe we can make 'defined' check for known magics
15:05:01*Jehan_ quit (Quit: Leaving)
15:16:47*yglukhov quit (Ping timeout: 244 seconds)
15:19:50Araqsomebody should write a Nim wrapper for this: http://mathgl.sourceforge.net/doc_en/Main.html
15:33:49*Pisuke joined #nim
15:35:33*MyMind quit (Ping timeout: 252 seconds)
15:54:36*jszymanski quit (Quit: computer sleeps...)
15:55:23*cyraxjoe joined #nim
15:55:43*Pisuke quit (Read error: Connection reset by peer)
15:58:17AmrykidAraq, would there be any prolems with me updating my name in some of the files? A couple of libs (such as sequtils) don't have my full name on it.
16:02:47*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:04:21Amrykidnot mission critical or anything
16:07:16*umurgdk quit ()
16:07:45r-kuAraq regarding wrapping of cpp classes.. have you considered something like pragma on type to make it emit actual c++ class? you know.. so virtual methods can be overridden.
16:11:11onionhammeryep cpp backend is still failing for me
16:11:36onionhammersigsegv
16:12:06onionhammerim gonna try to get this to reproduce w/ a smaller example and submit an issue
16:18:26*Kingsquee joined #nim
16:24:38onionhammerhttps://github.com/nim-lang/Nim/issues/3299
16:25:02*Ven joined #nim
16:28:05*yglukhov joined #nim
16:30:06*yglukhov quit (Remote host closed the connection)
16:30:26*yglukhov joined #nim
16:44:09*yglukhov quit (Remote host closed the connection)
16:44:51*yglukhov joined #nim
16:45:24*jszymanski joined #nim
16:54:31*darkf quit (Quit: Leaving)
16:56:43*yglukhov quit (Remote host closed the connection)
16:58:38*boopsiesisaway is now known as boopsies
17:03:51*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
17:06:42*yglukhov joined #nim
17:14:54*yglukhov quit (Remote host closed the connection)
17:17:59*Ven joined #nim
17:20:41*yglukhov joined #nim
17:25:22*yglukhov quit (Remote host closed the connection)
17:41:14*bendiken joined #nim
17:42:29*Miruya joined #nim
17:48:10*BitPuffin quit (Ping timeout: 240 seconds)
17:54:53*tankfeeder joined #nim
17:59:34*yglukhov joined #nim
18:03:32*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:06:12*BitPuffin joined #nim
18:13:01*gokr_ joined #nim
18:13:19*yglukhov quit (Remote host closed the connection)
18:24:02*yglukhov joined #nim
18:25:43*kilon quit (Read error: Connection reset by peer)
18:26:13*kilon joined #nim
18:29:43*yglukhov quit (Remote host closed the connection)
18:31:19*vendethiel joined #nim
18:41:30*gsingh93_ joined #nim
19:05:14*Mat4 joined #nim
19:07:39*BitPuffin quit (Ping timeout: 246 seconds)
19:14:19*HaCk3D joined #nim
19:14:30HaCk3Dping
19:15:46HaCk3Dhow can i represent an int in a binary format?
19:15:48*Varriount joined #nim
19:16:09Mat4what binary format ?
19:16:14HaCk3D00101
19:16:39HaCk3Dshould i code my own proc it has a built-in one?
19:18:47Mat4it's some time I had take a look at the documentation, however left to right shifting and outmasking would all be needed
19:22:01FedeOmotoHaCk3D: import strutils and use toBin()
19:26:29*rollo quit (Ping timeout: 256 seconds)
19:28:54HaCk3DFedeOmoto: thnx a lot
19:29:00*NimrodBot joined #nim
19:29:03*HaCk3D left #nim (#nim)
19:29:13*NimrodBot quit (Remote host closed the connection)
19:37:08FedeOmotonp
19:41:56*Jehan_ joined #nim
19:42:26*Jehan_ quit (Client Quit)
19:49:02*Matthias247 joined #nim
19:54:14*Jesin quit (Quit: Leaving)
19:56:06*Jehan_ joined #nim
19:56:42*Jehan_ quit (Client Quit)
19:57:15*Jesin joined #nim
19:58:09*tankfeeder quit (Quit: Leaving)
19:58:37*Jehan_ joined #nim
20:00:32*Jehan_ quit (Client Quit)
20:02:45*Demos joined #nim
20:04:56*unclechu joined #nim
20:13:49*chemist69 quit (Quit: WeeChat 1.3)
20:18:32*BitPuffin|osx joined #nim
20:19:00*Jehan_ joined #nim
20:20:14*Jehan_ quit (Client Quit)
20:32:10*yomiel_ is now known as yomiel
20:41:34*yglukhov joined #nim
20:44:46federico3Can nimscripts be turn into proper executable scripts using a shebang?
20:46:23*yglukhov quit (Ping timeout: 264 seconds)
20:46:54*unclechu quit (Quit: Leaving.)
20:52:44*Jehan_ joined #nim
20:54:15*Jehan` joined #nim
20:54:15*Jehan_ quit (Read error: Connection reset by peer)
21:02:39*NimBot joined #nim
21:04:04*redwyn joined #nim
21:04:34redwynhi. is adding to a seq O(1)?
21:07:04*chernozem joined #nim
21:07:19chernozemhi people
21:07:58chernozemvar s: seq[seq[int]]; s.add(@[]): SIGSEGV: Illegal storage access. (Attempt to read from nil?)
21:07:59redwyni'm solving ODEs numerically and i'm wondering wether using a seq accumulate the resulting values is sensible
21:08:10chernozemis this a bug?
21:11:28baabelfishredwyn: adding to the end of a seq is yeah
21:11:44baabelfishredwyn: it will map to c++ std::vector in the future
21:12:16dom96chernozem: hello. You need to initialise the sequence.
21:12:30dom96var s: seq[seq[int]] = @[]
21:12:58*enamex joined #nim
21:13:00redwynbaabelfish: so would there be another reason to use arrays instead, performance wise
21:13:13chernozemoh, thank you!
21:13:50dom96redwyn: arrays are stored on the stack and cannot grow
21:13:58dom96sequences are stored on the heap and can grow
21:16:14redwynyes but it's possible to know how large an array i'd need beforehand. so i could use it. but theres now real benefit when adding to seqs is already O(1), right?
21:16:22*Jehan_ joined #nim
21:16:28redwyni dont understand about heap/stack stuff :/
21:20:58*Jehan_ quit (Ping timeout: 260 seconds)
21:22:58baabelfishredwyn: everything depends on the operations and it's all about tradeoffs
21:23:32baabelfishredwyn: yeah when adding/removing to/from the end
21:23:50baabelfishand if you don't care about the order you can use those and swap to do that in the middle
21:24:09*enamex quit (Ping timeout: 246 seconds)
21:24:19*gsingh93_ quit (Quit: Connection closed for inactivity)
21:24:46*boopsies is now known as boopsiesisaway
21:26:39*Mat4 quit (Quit: Konversation terminated!)
21:27:23redwynbaabelfish: alright. thanks!
21:30:47baabelfishredwyn: https://en.wikipedia.org/wiki/Data_structure didn't read but I think the basics are covered here and in the linked examples
21:36:07*redwyn left #nim (#nim)
21:39:27AraqAmrykid: just make a PR
21:40:21Araqfederico3: not yet, we need to use a different syntax for source code filters asap
21:40:52AraqOnO: PRs welcome but we need a deprecation path for this
21:46:58chernozemi think compiler should warn about use of uninitialized variable in that case.
21:47:39Araqchernozem: yeah it's a very common gotcha
21:47:53onionhammeraraq, nim-templates :P
21:47:58Araqthere is work ongoing to fix exactly that
21:48:10Araqonionhammer: lexim :P
21:48:20onionhammerhttps://github.com/onionhammer/nim-templates
21:48:35Araqoh now I get it :P
21:49:10AraqI still love my source code filters and I don't want to rewrite my perfectly fine code
21:49:39Araqreplacing #! with #? is acceptable, rewriting it to use your nim-templates is not
21:50:11onionhammersyntax filters ugly :P
21:50:19dom96Agreed
21:50:25dom96syntax filters need to be prettier
21:50:34dom96Time to paint that bikeshed pink! ;)
21:51:45Araqdom96: reviewed my nimble pr?
21:51:48Araq:P
21:51:56dom96I've got bigger fish to fry
21:52:15*gmpreussner|work joined #nim
21:56:00Araqwell i can always merge it on my own
21:56:23dom96No, you can't.
21:56:35dom96Because I will be angry if you do.
21:56:39*Sembei joined #nim
21:58:39Araqthe nimscript-nimble interaction has already been documented
21:59:52*chernozem quit (Quit: Page closed)
22:03:51*Sembei quit (Ping timeout: 252 seconds)
22:04:26*FedeOmoto quit (Quit: Leaving)
22:25:29AmrykidAraq, already working on it. thank you
22:25:52NimBotnim-lang/Nim devel f405876 Andrey Sobolev [+0 ±1 -0]: add text modification proc
22:25:52NimBotnim-lang/Nim devel a534434 Andrey Sobolev [+0 ±1 -0]: allow to delete xmlnode childs
22:25:52NimBotnim-lang/Nim devel 4e57ea9 Andrey Sobolev [+1 ±12 -0]: Merge remote-tracking branch 'upstream/devel' into improve-xmltree
22:25:52NimBotnim-lang/Nim devel 7ff87df Dominik Picheta [+0 ±1 -0]: Merge pull request #3298 from haiodo/improve-xmltree... 2 more lines
22:26:12dom96hey Amrykid
22:26:17dom96You back in Nim land?
22:33:16Amrykiddom96, I lurk
22:33:30Amrykidwatch from the shadows
22:33:49VarriountAraq, dom96: I think syntax filters are fine they way they are.
22:34:40VarriountIt's familier to the ones I've encountered in Python, anyway (not that I've encountered a huge number)
22:41:30*vendethiel quit (Ping timeout: 240 seconds)
22:43:23AraqVarriount: it's just about replacing #! by #? so that unix guys can continue to think they matter ;-)
22:43:59*Demon_Fox joined #nim
22:44:48VarriountAraq: Well, if we're going to make minor syntactic changes, I vote for changing the pragma syntax to `[/pragmas/]`
22:44:59dom96I don't like the usage of #
22:44:59VarriountThat way I don't have to push the shift key.
22:46:14AraqVarriount: [/ /] is much harder to type on german keyboards
22:46:42VarriountOh?
22:47:18*Matthias247 quit (Read error: Connection reset by peer)
22:47:21Varriountdom96: Would you prefer '<% code %>'?
22:47:55dom96just something that isn't #
22:48:01Varriountdom96: https://wiki.python.org/moin/Cheetah
22:58:17VarriountAraq: Ever considered using something xpath-like for term-rewriting macros?
22:59:06*keyle joined #nim
23:01:04AraqVarriount: not really. "xpath-like" screams "slow"
23:02:37*bendiken quit ()
23:08:54Araqbut thinking about it #! is fine, it's a nim shebang unless a / follows, then it's a unix shebang
23:17:34*gokr_ quit (Quit: IRC for Sailfish 0.9)
23:18:06*rollo joined #nim
23:23:12*Varriount quit (Ping timeout: 264 seconds)
23:31:41*jaco60 quit (Quit: Leaving)
23:34:09keyleMorning
23:42:09*yglukhov joined #nim
23:46:32*yglukhov quit (Ping timeout: 250 seconds)
23:50:47*X67r quit (Quit: leaving)
23:54:13*Varriount joined #nim
23:57:00*keyle quit (Quit: http://twitter.com/keyle/)
23:58:35*irrequietus quit ()