<< 09-03-2015 >>

00:13:17*vendethiel quit (Ping timeout: 256 seconds)
00:20:53*Matthias247 quit (Read error: Connection reset by peer)
00:27:15*JusticeFries quit (Quit: My Mac has gone to sleep. ZZZzzz…)
00:30:20*Jehan_ joined #nim
00:38:57*vendethiel joined #nim
00:46:55*milosn quit (Ping timeout: 255 seconds)
00:51:27*dhasenan joined #nim
00:53:31*QuailChaser joined #nim
00:54:24*milosn joined #nim
00:54:26*Menche quit (Ping timeout: 246 seconds)
00:55:35*lnr joined #nim
01:00:35*smodo quit (Remote host closed the connection)
01:02:23*reem quit (Remote host closed the connection)
01:04:49*BlaXpirit quit (Quit: Quit Konversation)
01:05:03*reem joined #nim
01:26:14*bcinman joined #nim
01:26:38*vendethiel quit (Ping timeout: 246 seconds)
01:33:46*reem quit (Read error: No route to host)
01:34:18*reem joined #nim
01:40:38*reem quit (Remote host closed the connection)
01:45:42*reem joined #nim
01:45:55*vendethiel joined #nim
01:50:06*reem quit (Remote host closed the connection)
01:50:41*reem joined #nim
01:52:55*reem quit (Remote host closed the connection)
02:05:34*darkf joined #nim
02:06:57*vendethiel quit (Ping timeout: 244 seconds)
02:12:29*vendethiel joined #nim
02:29:04*Jehan_ quit (Quit: Leaving)
02:29:25*saml_ quit (Quit: Leaving)
02:34:01*vendethiel quit (Ping timeout: 264 seconds)
02:34:20*banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
02:40:51*betawaffle quit (Excess Flood)
02:41:07*betawaffle joined #nim
02:50:48*chemist69 joined #nim
02:54:10*chemist69_ quit (Ping timeout: 265 seconds)
03:09:12*Sembei quit (Read error: Connection reset by peer)
03:10:16*Sembei joined #nim
03:12:11*reem joined #nim
03:23:08reactormonkwhat's the importc syntax for specifying my own method call?
03:23:31reactormonk# - # doesn't seem to get replaced, and $1 - $2 bails with invalid format string
03:24:33*vendethiel joined #nim
03:40:32*Trixar_za quit (Ping timeout: 256 seconds)
03:44:44*QuailChaser is now known as Menche
03:46:09*Trixar_za joined #nim
03:53:28*Kasprosian joined #nim
03:54:50Kasprosiancould anybody kindly look into the issue i'm having at this thread? http://forum.nim-lang.org/t/987
03:55:07Kasprosianbasically, the question is about having python-like dictionaries
03:56:35reactormonkKasprosian, how do you statically type your data structure?
03:57:24Kasprosianwell ideally i'd like there to be as little static typing as possible
03:57:38Kasprosianam i looking at the wrong language here?
03:58:57*a5i quit (Quit: Connection closed for inactivity)
03:59:32reactormonkwhat's your previous programming experience with compiled languages?
03:59:40reactormonkor rather statically typed languages.
04:01:52*Kasprosian quit (Ping timeout: 246 seconds)
04:02:19reactormonkthat went well I think
04:02:55*Kasprosian joined #nim
04:03:44Kasprosiansorry reaktormonk
04:03:50Kasprosiani lost connection temporarily
04:04:03KasprosianI'm very familiar with statically-typed languages
04:04:28KasprosianI code in C++ for my job, and I've taken an OS class where I had to write a kernel in C
04:04:47Kasprosianand I've taken a distributed computing class which was all golang
04:04:57Kasprosianso as static typing experience goes, I think I've got it
04:07:05Kasprosianwhat i'm looking for here is a malleable data structure
04:07:24Kasprosiana lot like Python's dictionaries, or Javascript's JSON objects
04:07:53*vendethiel quit (Ping timeout: 256 seconds)
04:08:38*randomwalk joined #nim
04:10:28*epichero quit (Read error: Connection reset by peer)
04:12:00Kasprosianhm.....a little surprised at the lack of interest
04:20:16*reem quit (Remote host closed the connection)
04:22:22*vendethiel joined #nim
04:25:05reactormonkKasprosian, sorry, I figured you left and went watching some game trailers
04:25:53reactormonkbut yes, this is IRC, people tend to just disappear.
04:26:17reactormonkHow would you implement the type in c++?
04:30:42reactormonkKasprosian, http://pastie.org/10011376 try this
04:40:44Kasprosianthanks for that reactormonk
04:41:07reactormonkKasprosian, preferably fix the names to be something better
04:41:16Kasprosianyes
04:41:32KasprosianI'll probably tinker with the type as I go along
04:41:39Kasprosianthat should be a good start though
04:41:42reactormonkbut I wonder, what's the use case for the data structure?
04:42:34Kasprosianwell it's a lot easier to do declarative programming
04:42:39*reem joined #nim
04:42:58KasprosianI can just add or delete attributes as I go along, without worrying too much about the static typing
04:43:31KasprosianI usually have a huge "table", like a Descriptor Table
04:43:54Kasprosianfor instance, for a webapp I once did, I had a "EDT", short for Event Descriptor Table
04:44:09Kasprosianthere would be a "regexp" field
04:44:21Kasprosianthen a callbacks
04:44:22Kasprosianparser
04:44:24Kasprosianetc.
04:44:53Kasprosiananyway it's just a lot more malleable than having to mess with a type system every time I wanted to add a field/delete one
04:47:18*vendethiel quit (Ping timeout: 272 seconds)
04:56:16*Kasprosian quit (Quit: Page closed)
05:00:34reactormonkthat sounds like messy code to me
05:14:45*vendethiel joined #nim
05:25:12*reem quit (Remote host closed the connection)
05:29:11*wb quit (Ping timeout: 246 seconds)
05:29:12*reem joined #nim
05:46:22*shalabh joined #nim
05:47:25shalabhhello
06:00:34*shalabh quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
06:10:33*Demon_Fox quit (Quit: Leaving)
06:15:17*vendethiel quit (Ping timeout: 250 seconds)
06:30:22*fizzbooze quit (Ping timeout: 240 seconds)
06:45:17*Menche quit (Quit: Leaving)
06:59:52*vendethiel joined #nim
07:03:30*reem quit (Remote host closed the connection)
07:04:35*reem joined #nim
07:10:43*randomwalk_ joined #nim
07:11:09*randomwalk_ quit (Client Quit)
07:11:10*randomwalk quit (Quit: Leaving)
07:11:27*randomwalk joined #nim
07:13:48novistdang play site is broken
07:17:04*xificurC joined #nim
07:23:31*vendethiel quit (Ping timeout: 264 seconds)
07:23:48*untitaker quit (Ping timeout: 256 seconds)
07:30:22*untitaker joined #nim
07:33:10*gokr_ joined #nim
07:40:21*akiradeveloper joined #nim
07:42:25*gokr_ quit (Ping timeout: 264 seconds)
07:44:13*gokr_ joined #nim
07:53:50*akiradeveloper quit (Remote host closed the connection)
07:56:39*akiradeveloper joined #nim
08:03:01gokrMorning!
08:05:08fowlgood morning
08:07:30*reem quit (Remote host closed the connection)
08:09:30*reem joined #nim
08:09:37*vendethiel joined #nim
08:15:51fowlgokr, how does inheritance work in urhonimo I get errors
08:16:06gokrMmmm, good question :)
08:16:32gokrUnsure, haven't gotten that far
08:16:53fowlthis looks similar enough CircleShape* {.header: graphics_h, importc: "sf::CircleShape".} = object of Shape
08:17:12fowli tracked down the root object urobject
08:18:22fowloh no its RefCounted
08:18:49gokrAraq should know more of course.
08:18:58fowlok i got it, the type needs importcpp
08:23:34*reem quit (Remote host closed the connection)
08:25:47gokrI wrote a modeltester app in Urhonimo, will see if i can push it to github
08:26:11gokrIts for quick and easy testing model files - for experimenting with content pipeline
08:26:35*BlaXpirit joined #nim
08:27:41novisthey gokr let me bug you a bit
08:27:47gokrsure
08:27:52novisthave you ever bumped into problem where nim complains about missing urhowrap.o?
08:28:08novistit comes up at times and i cant force it recompile that file
08:28:09gokrUrhonimo I presume?
08:28:13novistindeed
08:29:04novistjust yesterday i couldnt make it recompile in any way. deleted nimcache and all. today it magically works
08:29:14novisti wonder if its me doing something wrong or what
08:29:24gokrMmmm, I think Araq removed that thing.
08:29:26*vince- quit (Ping timeout: 246 seconds)
08:29:41gokrIts not used anymore... perhaps I need to push up to github
08:29:58novistyeah that be nice then :p
08:30:00gokrWe have our own gitlab repo - and I need to sync it up with github
08:30:08novistits not open?
08:30:13gokrYeah... but we have some things that don't work with stock Urho3D.
08:30:19gokrNo, not open
08:30:23novisti see
08:30:49novisti so would love to stalk progress hehe. c2nim too
08:30:57gokrAlthough those changes to Urho3D we ought to try to push upstream
08:31:02novistvirtual func overriding is very interesting topic to me
08:31:12gokrgitk
08:31:14gokrOops
08:31:15gokr:)
08:31:37*vinnie joined #nim
08:31:50fowlgokr, i was fixing up the 2d physics stuff but not that enthusiastic about it
08:32:42fowlnot very*
08:33:46*vendethiel quit (Ping timeout: 252 seconds)
08:34:50*reem joined #nim
08:42:54*reem quit (Remote host closed the connection)
08:45:13novistfowl: you working on Urho2D wrapper part?
08:46:26*vendethiel joined #nim
08:49:00fowlnovist, no i am playing with it using the lua api atm
08:49:21gokrOoops, I think i managed to push lots of changes. Arrgh, git...
08:49:49novistgokr: nothing force-push cant solve :D (if you do it fast enough :D)
08:50:06novistfowl: ah i see. just noticed urhonim had 2d part not wrapped (no wonder, they dont need 2d apparently)
08:51:08gokrI would like to undo one specific commit, advice?
08:53:25fowlno clue gokr git hates me
08:53:28*Trustable joined #nim
08:53:41fowlask in #git
08:56:48novistgokr: depends if commit is latest or not
08:56:58novistif latest you can reset last N commits
08:57:57*akiradeveloper quit (Remote host closed the connection)
08:58:26gokrI can start there, and then push again (the ones I want)
08:59:04gokrSo I simply want to "unpush" the latest... 9. Then I will push only 8 of them ;)
08:59:31fowli'll light a candle for you gokr
08:59:31novistif not you need interactive rebase
08:59:31novistgit rebase -i HEAD~5 will let u edit last 5 commits
08:59:31novistin opened text file delete commit u dont need, save->close
08:59:31novistshould be all you need
09:00:35gokrAh, wtf. I will just make a revert commit. Its not like its secret stuff
09:00:59gokrProblem with git is that when you start googling you get overwhelmed with info.
09:04:02*mal`` quit (*.net *.split)
09:04:02*pipeep quit (*.net *.split)
09:06:02novistgokr: i just told you what to do, you just had to use 8 instead of 5 :D
09:06:07*mal`` joined #nim
09:06:07*pipeep joined #nim
09:06:10novistand then git push -f ..
09:06:32gokrBut... rebase? I don't want to remove my commits locally
09:06:46gokrEither way, I think I have it fixed soon
09:07:01novistwhat i do in this case is make a patch of commit i want to remove, after fixing history apply it
09:07:30novistor w/ rebase you can push it to the back, rewind history one commit back, push, go forward. im pretty sure it should be possible, never tried though :D
09:09:27*vendethiel quit (Ping timeout: 245 seconds)
09:09:44gokrOk, so... I will check stuff still builds :)
09:09:49gokrbrb
09:18:49*tumult joined #nim
09:21:44*vendethiel joined #nim
09:23:38novistthanks for changes gokr
09:23:56novisti see that cpp was moved to .nim, well that surely will take of this missing obj problem
09:36:24novistoh sweet and 2d stuff is there
09:36:45novistgokr: any idea how this works? {.passL: "../lib/libUrho3D.a".}. it doesnt look like it is relative to file directive is in
09:36:47gokrI think we got some 2D stuff fixed when I made the particles demo
09:36:55gokrOr perhaps that was something else
09:37:17gokrHow it works?
09:37:29novistwell with full path it works
09:37:38novistill try relative to file that imports urholink
09:38:07novistwha, its how it works
09:38:19novistthats totally not what one would expect
09:38:35gokrWell, its probably relative to... where you run nim cpp?
09:38:40gokrI may be wrong
09:39:23novistmy nim src is in project/nim/<here> and urhonim in project/dep/Urhonim
09:39:37novistso i had to mod it to {.passL: "../dep/Urhonimo/lib/libUrho3D.a".}
09:39:42gokrAh
09:40:01gokrWell, we try to keep all our git repos in the same checkout dir
09:40:09novistprobably should create issue on compiler repo. it certainly should not work like that
09:40:42gokrFor us it makes things simple - but ideally I gess one could set URHONIMO_HOME or something
09:41:15gokrBut I am unsure how to use env vars in nim.cfg files etc, was trying to look that up last night, but... dunno.
09:41:33novistactually i think the way you have project set up is actually a lucky coincidence that it works
09:41:59*Zuchto left #nim ("WeeChat 1.0.1")
09:42:00novistnow see how i use Urhonimo as dependency. i got cfg set up paths and it works great
09:42:12novistexcept i need to modify lib so its not totally sandalone
09:42:19gokrProblem is - when you start having many different nim.cfgs
09:42:52novistnow if passL worked relative to file that it is in - it would be intuitive and standalone
09:43:28gokrProblem is that urholink is included.
09:43:47novisterr where? i have not seen it included in urhomain
09:44:01novistso i imported it myself in my sample
09:44:08gokrIts a new thing, see sample.nim
09:44:19gokrAnd I am just adding it to hello.nim, because... it doesn't use sample.nim
09:44:45novisti see
09:45:04novistthough in my sample i imported it and it also works (with path modification)
09:45:50gokrCan you try...
09:46:03gokr"nim cpp modeltester" in Urhonimo/modeltester ?
09:46:14gokrAnd if that works, then run "./run.sh samba"
09:47:03gokrAnd if you see a big shoe :) then press Z a couple of times to scale her down.
09:47:12gokrWASD + mouse works, and a bunch of other keys.
09:47:33novistwell sure that works, but then again lib is relative to modeltester dir as specified in urholink
09:47:48novistif it was in Urhonim/subdir/modeltester it would no longer work
09:48:03gokrI just want to know if modeltester works for you :)
09:48:24novistyeah well, works :D
09:48:33gokrIf you press M she stops dancing, then you can fly close to her face
09:49:33gokrThe only thing that is "odd" is her eye lashes.
09:49:38gokrI think
09:50:16gokrI wrote modeltester because we need to create avatars with animations and make sure they work etc, and its a bit fiddly testing it out from the editor
09:50:22novisthard to tell when model is moving like a jackass :D
09:50:26gokrPress M
09:50:35gokrOr N. (start and stop animation)
09:50:40novistclose up eyes look fine when still
09:51:04gokrIf you look from above - you will see an eye lash in black. But from the front they are not really visible.
09:51:15novistohh right, and from bottom too
09:51:59gokryeah, not sure. But otherwise I think she is quite ok compared to original.
09:52:10fowlgokr, hey you know instead of createComponent[T](node) you could use node.createComponent(T)
09:52:13gokrI created her using the free Mixamo Fuse app.
09:53:01gokrfowl: Did you mean node.createComponent[T]() ?
09:53:09gokrAnd did you actually try it? :)
09:53:20gokrBecause I think there is an issue there.
09:53:38*bcinman quit (Quit: My Mac has gone to sleep. ZZZzzz…)
09:53:42gokrWhich is the reason for this uncomfy style. But I think Araq intends to fix it.
09:53:47gokrOr does it work for you?
09:54:19fowlno i mean definining a createComponent(Node, T:typedesc): auto = createComponent[T](node)
09:54:45gokrAha
09:55:02gokryeah, that's pretty slick. Tell Araq :)
09:55:27gokrHe is the binding guru, I just use it ;)
09:55:51gokrGonna test on OSX now
09:56:04gokrLet me know if this last flurry of commits broke anything
09:56:14*novist summons Araq
09:56:34novistAraq: do you agree that {.passL: "../lib/libUrho3D.a".} path should be relative to file pragma is in?
10:05:54*vendethiel quit (Ping timeout: 244 seconds)
10:17:40*akiradeveloper joined #nim
10:18:55*akiradeveloper quit (Remote host closed the connection)
10:22:31*vendethiel joined #nim
10:28:05*akiradeveloper joined #nim
10:29:25*emilsp-home joined #nim
10:31:51*filwit joined #nim
10:34:55*TEttinger quit (Ping timeout: 256 seconds)
10:45:07*vendethiel quit (Ping timeout: 256 seconds)
10:52:57*vendethiel joined #nim
10:57:03*betawaffle quit (Quit: Oh Noes! My ZNC!)
10:57:25*betawaffle joined #nim
11:10:03*emilsp-home quit (Remote host closed the connection)
11:16:00*vendethiel quit (Ping timeout: 246 seconds)
11:19:21*vendethiel joined #nim
11:25:54*aleron joined #nim
11:27:58*akiradeveloper quit (Remote host closed the connection)
11:28:20*akiradeveloper joined #nim
11:28:40*davidhq joined #nim
11:29:28*arnetheduck joined #nim
11:32:19*goobles quit (Ping timeout: 246 seconds)
11:38:22*zahary quit (Quit: Leaving.)
11:39:50*zahary joined #nim
11:41:13*akiradeveloper quit (Remote host closed the connection)
11:44:40*vendethiel quit (Ping timeout: 272 seconds)
12:03:14*randomwalk quit (Read error: Connection reset by peer)
12:03:39*randomwalk joined #nim
12:04:05*vendethiel joined #nim
12:27:56*akiradeveloper joined #nim
12:42:04*aleron quit (Quit: leaving)
12:42:24*aleron joined #nim
12:43:34*mohammed__ joined #nim
12:45:53*akiradeveloper quit ()
12:49:18*mohammed__ left #nim ("Leaving")
13:08:22*randomwalk quit (Quit: Leaving)
13:08:51*Jolly_Rodger joined #nim
13:09:15*notajew joined #nim
13:09:35notajewi touch myself on webcam
13:09:38*littlelight joined #nim
13:09:44*Jolly_Rodger quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
13:09:50*notajew left #nim (#nim)
13:09:54*littlelight left #nim (#nim)
13:10:56*vendethiel quit (Ping timeout: 264 seconds)
13:11:12*My_Spuds_m8 joined #nim
13:11:53*My_Spuds_m8 left #nim (#nim)
13:18:37*vendethiel joined #nim
13:22:21*gokr_ quit (Read error: Connection reset by peer)
13:24:11*mpthrapp_ joined #nim
13:26:02*vinnie is now known as Vinnie
13:30:26*banister joined #nim
13:31:17fowllol
13:31:40dv-lots of people do that
13:42:44*vendethiel quit (Ping timeout: 264 seconds)
13:43:51Araqok, guys who is on devel?
13:44:03Araqplease run this and tell me if it works:
13:44:30Araqnim c -r tests/generics/tunique_type
13:45:06*jfchevrette joined #nim
13:53:40*wb joined #nim
14:02:26gokrworked
14:03:03gokrOr wait... pulling.
14:03:13Araqno it's fine
14:03:50Araqthat that ever worked was a bug though :P
14:04:15gokrIt works.
14:04:32Araqmacro map(input, predicate: expr): expr # seriously? bad idea. ;-)
14:07:35Araqspeaking of which ... 'map' really should NOT be in system
14:07:57Araqsince I cannot do 'import system except map' ...
14:08:12*Roin joined #nim
14:15:29*matkuki joined #nim
14:18:42matkukiCan someone help me with an error message: "error: 'HEX3Aenv_130705' undeclared (first use in this function)"
14:18:43matkukiThis appeared when I added a nested procedure to a procedure. Any ideas?
14:19:11Araqmatkuki: it means you fucked up the compiler's lambda lifting pass
14:19:24Araqhappens regularly
14:19:35matkukiSimple fix?
14:19:49Araqwrite your code in a simpler fashion :P
14:20:01matkukiWill do, thanks!
14:20:12Araqand don't report it
14:20:20matkukiOK
14:20:29Araqwe have 10 bugs open about this or something
14:21:02Araqit's remarkable how bad it still works given that I spent 3 months fulltime by now on this feature
14:21:27matkukiYou'll get there!
14:22:31Araqbut hey at least it's "correct" wrt scoping
14:23:21matkukiIncidentally, if I make applications using Nim, can I use the name and logo to promote the language?
14:24:23matkuki"Powered by Nim" for example?
14:24:30*TEttinger joined #nim
14:27:23Araqno, you need to write a "success story" for our website :-)
14:27:27Araqand then you're allowed to do it :-)
14:28:41matkukiGood to know we have standards :)
14:39:37aleronIs there a listing somewhere of OS constants?
14:39:55aleronOr more specifically, is there one for OS X
14:42:13def-when defined(macosx)
14:42:21alerongreat, tanks
14:42:23aleronthanks*
14:42:42def-I haven't seen a list of all available defines
14:47:18*vendethiel joined #nim
14:50:46ekarlsonewer version deployed with supervisord
14:50:54ekarlsodef-: what was the asyncproc stuff ?
14:50:57ekarlsoI wanna test it out
14:51:39wbIs there a good nim wrapper around for a cross-platform networking library? Fowl's Enet wrapper is linux-only.
14:53:26BlaXpirita networking library should not be done with a wrapper
14:54:24wbYeah, just looking for something to slap together a quick prototype
14:57:10matkukiAraq: A hint about the nested procedure error. If no parameters are used the error is thrown. If I add some parameters, it works.
14:58:06matkukiHope it helps.
14:59:08fowlwb, does enet run on windows? the wrapper would only need one section to be fixed thats the dllName section
15:01:32*kjo1 joined #nim
15:01:40wbAh i see now, will give it a try. Thought it was a bigger issue.
15:04:10*jholland joined #nim
15:04:19aleronis there a way to get the size of an object type (in bytes)?
15:05:01aleroner, actually sizeof
15:05:17aleronhow..obvious
15:07:15fowl:D
15:08:31*brson joined #nim
15:11:17fowlwb, i see there is another section that needs to be filled out, i'll work on it today
15:11:51wbAlright, thanks
15:13:17*saml quit (Quit: Leaving)
15:23:03*darkf quit (Quit: Leaving)
15:29:44Araqreactormonk: so after your tester changes the number of tests went from over 900 to 226
15:30:15reactormonkAraq, uh, I diffed the testresults.json, I didn't see any difference
15:33:13Araqhrm
15:33:29Araqmaybe my fix broke the tester in a subtle way
15:33:53*sepisoad joined #nim
15:34:05reactormonkI'm reunning the tests now
15:34:25reactormonkYou think we can poke the tester to be parallel in some way?
15:36:20*key_ quit (Quit: Konversation terminated!)
15:39:55reactormonkbtw, tdeprecated.nim seems to fail
15:43:48Araqa couple of tests still fail
15:45:10reactormonkyup, I'm at 223 total too
15:45:10*arnetheduck quit (Read error: Connection reset by peer)
15:46:01Araqok, so fix it
15:46:13*kniteli joined #nim
15:46:52sepisoadwhere is this function defined: stackTraceAvailable(),
15:47:01reactormonksepisoad, grep for it
15:47:10sepisoadgrep wont find it
15:47:24reactormonkdoes for me
15:47:29reactormonkit's in lib/system/excpt.nim
15:49:28sepisoadlet me see
15:52:08Araqreactormonk: yeah, your compilerOutputTests() is wrong
15:52:34Araqyou need to do r.addResult unconditionally
15:52:48Araqand you shouldn't do it there
15:52:51Araqat all
15:54:08*JusticeFries joined #nim
15:54:18reactormonkAraq, ah, you're right. :-/
15:54:26reactormonkjust revert?
15:54:34Araqfix it
15:54:36reactormonkAnd figure out how to do it correctly?
15:54:37sepisoadOk, the problem is that the compiler fails to compile c2nim source because stackTraceAvailable() definition cannot be found
15:54:58*saml joined #nim
15:55:20sepisoadI tried installing c2nim through nimble as well but I get the same error
15:55:21Araqit's not hard
15:55:40reactormonkAraq, I have the problem of how to pass two message around
15:55:43Araqyou only need to ensure that for every test 1x r.addResult is called
15:55:51Araqnot 2x
15:55:53Araqnot 0x
15:55:56Araqbut 1x
15:56:27reactormonklemme see if I can munch something
15:57:25*sampwing joined #nim
15:58:06reactormonksepisoad, well, fuck
15:58:23reactormonksepisoad, I'll fix the tester first and then I'll take a look at it
16:01:30ekarlsohmm
16:01:41*sampwing quit (Ping timeout: 252 seconds)
16:01:50ekarlsois there a easy way to write for i in @[0..<value>]: ... ish +
16:01:57ekarlsoso it goes from range from 0 to x
16:02:15Araqfor i in 0 .. < x # exclusive
16:02:21Araqfor i in 0 .. x # inclusive
16:02:29reactormonksepisoad, could you open an issue on the nim repo?
16:05:11*JusticeFries left #nim ("Textual IRC Client: www.textualapp.com")
16:22:04*vendethiel quit (Ping timeout: 272 seconds)
16:23:26*ChrisMAN quit (Read error: Connection reset by peer)
16:24:39*matkuki quit (Quit: ChatZilla 0.9.91.1 [Firefox 35.0.1/20150122214805])
16:31:04reactormonkAraq, wanna take a look or should I just push it? I'm back up to 890 tests
16:32:06*sampwing joined #nim
16:35:08reactormonksepisoad, works for me
16:36:23reactormonkmight be that you have some mixup with dependencies where some parts of the code look for the active devel compiler and others for 10.3
16:36:43reactormonk0.10.3 to be correct
16:41:15*vendethiel joined #nim
16:44:53wbIs there a way to set non-blocking mode in the net module? Since it doesn't export SockImpl.fd it can't be done with the setBlocking() proc from the rawsockets module.
16:45:19aleronok
16:46:03aleronso apparently the not operator only works on int types (including cint), but not culong
16:46:23aleronit works on clong
16:49:06def-wb: i guess you could add a setBlocking proc to the net module
16:51:17sepisoadreactormonk, sorry i wasn't around, which version of nim do you use?
16:51:23reactormonksepisoad, devel
16:52:14sepisoadreactormonk, so do i, how come? am i doing something wrong
16:52:31reactormonksepisoad, hm. dunno.
16:54:40wbYeah i guess. What's the intended role of the net module, anyway? Is it supposed to be basically a collection of helpers for rawsockets or an abstraction layer on top? (ie should it be possible to write networking code without importing rawsockets at some point?)
16:54:44reactormonksepisoad, can you compile it when you clone it directly?
16:54:54sepisoadreactormonk, nope
16:55:52reactormonksepisoad, got me your lines for reproduction?
16:56:21sepisoadok
16:59:21sepisoadid compile c2nim using => "nim c c2nim.nim"
16:59:29sepisoadand I get this error:
17:00:13sepisoad"/home/sepisoad/.nimble/pkgs/compiler-0.10.3/compiler/msgs.nim(727, 9) Error: undeclared identifier: 'stackTraceAvailable'"
17:02:38sepisoadreactormonk, ^
17:04:04*vendethiel quit (Ping timeout: 256 seconds)
17:04:12*gsingh93 joined #nim
17:06:07*n0x0ff left #nim (#nim)
17:11:07*tumult quit (Ping timeout: 246 seconds)
17:11:41*vendethiel joined #nim
17:13:23*OderWat joined #nim
17:19:02*ChrisMAN joined #nim
17:21:01*pregressive joined #nim
17:21:46reactormonkyou sure your compiler is 0.10.3?
17:25:08aleronIt's really annoying how the mac os x termios.h has completely different constant values from what I think they are on linux
17:26:23sepisoadyes, the version says so, I got it from devel repo
17:28:58ekarlsohow do you determine a odd number in nim ?
17:29:13aleronx mod 2 == 0?
17:29:18ekarlsokewl :)
17:29:48reactormonkekarlso, one of my first coding questions ever :-)
17:29:56reactormonkbrings back memories
17:30:17Araqreactormonk: 890 tests are not enough, it has to be over 900
17:30:33*bcinman joined #nim
17:30:58reactormonkAraq, ok
17:31:06ekarlso.eval 3 mod 2 == 0
17:31:14ekarlsothat bot...
17:31:46reactormonkAraq, "total": 899, "passed": 841, "skipped": 29
17:32:44*vendethiel quit (Ping timeout: 245 seconds)
17:32:45OderWatx mod 2 == 0 is for even numbers and x mod 2 == 1 fails for negative ints... I'd go with n and 1 == 1
17:34:04OderWat@araq Is there a problem with (n and 1) for some reason?
17:34:22AraqOderWat: you need the ()
17:35:15OderWatok thats what i figured. because of precedence of operators I guess?
17:35:26novisthey Araq, shouldnt {.passL: "../lib/libUrho3D.a".} be relative to file that pragma is in? atm its relative to either wherever compiler executes or main project dir
17:35:54Araqnovist: yeah, fix it
17:36:23novistkk, that much i should be able to do
17:40:45OderWatSo I figured that "$lib" in a config file is "relative to the running nim compiler" is that observation correct?
17:42:46Araq$lib points to the stdlib
17:42:59Araqwhen you override that location via --lib, $lib should reflect that
17:43:56OderWatbut "where" is the stdlib
17:44:45OderWatwhat defines this. I worked on that nim-vm and stdlib changes with the binary I call (which is cool) but I originally had nim installed in usr/local/bin and the libs in /usr/local/lib/nim/
17:46:44OderWatafter me deleting all /etc/ ... /usr/local/bin & lib stuff related to nim it got much easier to know whats where. cause it seems to use "its" stuff.
17:50:22*vendethiel joined #nim
17:53:03Araq<location of nim binary>/../lib
17:55:12ekarlsoso u cant write
17:55:22ekarlsoi in @[1,2,3]
17:55:26ekarlsoehm
17:55:29ekarlsoi not in @[1,2,3]
17:56:03Araqno, you have to write i notin [1,2,3]
17:56:20ekarlsoah
17:56:34Araqbecause Nim has no notion of "doubled keyword operators"
17:58:18*sepisoad quit (Quit: Leaving)
18:12:11*filwit quit (Quit: Leaving)
18:16:25*key_ joined #nim
18:19:12*bw_ joined #nim
18:19:27*MagusOTB quit (Remote host closed the connection)
18:20:39*Matthias247 joined #nim
18:21:41*Matthias247 quit (Read error: Connection reset by peer)
18:30:10*Menche joined #nim
18:32:57*Matthias247 joined #nim
18:35:19*fizzbooze joined #nim
18:43:48*shodan45 joined #nim
18:45:58*elbow joined #nim
18:46:28*elbow_ joined #nim
18:46:33*elbow quit (Client Quit)
18:46:50Araqreactormonk: your PR is not correct
18:47:05reactormonkAraq, go on
18:47:08Araqbut maybe the old code wasn't correct either
18:47:27AraqccodegenCheck shouldn't add a result, I think
18:52:56*aleron quit (Quit: leaving)
18:56:13*vendethiel quit (Ping timeout: 250 seconds)
18:58:58reactormonkI moved some stuff around
19:03:21*saml quit (Quit: Leaving)
19:03:37*saml joined #nim
19:03:58*vendethiel joined #nim
19:10:55reactormonkAraq, argh. I'll need to figure out why I make so many mistakes
19:11:39Araqreactormonk: you think the tester is simple and not a critical piece of software. ;-)
19:11:54*elbow_ quit (Read error: Connection reset by peer)
19:11:54reactormonkAraq, good point
19:11:58Araqbut it's criticial and has many features, so it's not simple
19:12:30reactormonkgot the part where I can compare to a previous commit documented somewhere?
19:12:49Araqgit log -p ?
19:13:27reactormonkeh sorry, tests outputs
19:14:39reactormonkso compare the output of the tester between commits.
19:15:35Araqtester html
19:15:43Araqproduces a testresults.json too
19:15:54Araqlast field in it has the 'diff'
19:16:40*gmpreussner|work joined #nim
19:17:42reactormonkok
19:25:14reactormonkAraq, {"total": 897, "passed": 840, "skipped": 29 currently
19:25:55*vendethiel quit (Ping timeout: 252 seconds)
19:26:29Araqok
19:28:39reactormonkrunning with a previous version
19:28:46reactormonkbut that's nto the pushed one
19:34:58reactormonkAraq, are the tests independent from each other? so would it be possible to parallelize them?
19:35:04*epichero joined #nim
19:35:39Araqthat's possible per subdirectory since the nimcache is shared
19:35:50Araqper subdirectory
19:35:58*brson quit (Ping timeout: 252 seconds)
19:36:37Araqbut since a single test uses more than 1 core, it won't give huge speedups
19:38:39reactormonkI don't have a huge CPU usage
19:40:13*sampwing quit (Ping timeout: 252 seconds)
19:40:59*key_ quit (Quit: Konversation terminated!)
19:46:09*tmtcc joined #nim
19:47:27Araqreactormonk: ok, parallelize it then. what can go wrong?
19:47:35reactormonk^^
19:47:50Araqbtw we use sqlite in the tester
19:48:13Araqnot sure if that's multiprocess capable out of the box, but it should be
19:49:11reactormonksure, just go for serialized. It's not gonna run more than one command at a time
19:50:52*a5i joined #nim
19:52:58*vendethiel joined #nim
19:53:47reactormonkAraq, I don't get any more than 899 tests
19:54:00Araqit's fine, maybe I dreamed
19:54:01reactormonk... that's without the nimble-core stuff
19:54:16Araqyeah plus I have some uncommitted tests
19:57:29*Trustable quit (Remote host closed the connection)
19:57:36*TEttinger quit (Ping timeout: 252 seconds)
19:57:48*brson joined #nim
19:58:19*tmtcc quit (Quit: Page closed)
20:00:54*^aurora^ joined #nim
20:05:43*sampwing joined #nim
20:16:02*vendethiel quit (Ping timeout: 246 seconds)
20:16:31*dhasenan_ joined #nim
20:17:42dhasenan_Are there coroutines in Nim?
20:17:50BlaXpiritkinda
20:18:10*vendethiel joined #nim
20:19:24BlaXpiritthe answer is probably yes, but there may be nitpicks
20:21:01*reem joined #nim
20:25:24Araqcoroutines yes, continuations no.
20:28:37*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
20:55:32ekarlsoAraq: is a coroutine in nim just a thread or ?
20:56:06Araqno, it's a "closure iterator"
21:04:17reactormonkdom96, just remove it?
21:04:47*reem quit (Remote host closed the connection)
21:06:02dom96yes
21:07:08*reem joined #nim
21:08:06reactormonkdom96, could you do it? My git is currently slightly fucked
21:10:58dom96busy right now
21:11:59dom96use the github interface
21:14:42*^aurora^ quit (Quit: Leaving.)
21:14:48*^aurora^ joined #nim
21:22:58reactormonkdom96, done.
21:24:18*mpthrapp_ quit (Remote host closed the connection)
21:27:36*bjz joined #nim
21:30:21ekarlsodom96: u there ? ^
21:30:28dom96reactormonk: thx
21:30:34dom96ekarlso: yes
21:30:46ekarlsowhat other features to add ?
21:32:39dom96ekarlso: to what?
21:33:52reactormonkdom96, yeah, with the trimmed repo I can just clone a new one
21:36:22ekarlso dom96 the play site :P
21:36:45*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:37:35dom96ekarlso: can I see the current version?
21:38:30*bjz joined #nim
21:38:33*bjz quit (Client Quit)
21:38:38ekarlsohttp://185.56.186.94/#/
21:41:00*Jehan_ joined #nim
21:41:55onionhammerekarlso whats new?
21:42:32ekarlsoonionhammer: cc / more versions for one
21:42:38ekarlsomore options
21:42:59*jfchevrette quit (Quit: Textual IRC Client: www.textualapp.com)
21:47:55ekarlsoso suggestions onionhammer ? :p
21:48:52Araqcan more than one person use it?
21:49:08ekarlsogood point Araq :P
21:49:15ekarlsoill go fix that first :P
21:49:36*^aurora^ quit (Quit: Leaving.)
21:50:22*sillesta joined #nim
21:55:50*^aurora^ joined #nim
21:58:59*^aurora^1 joined #nim
22:00:25*^aurora^ quit (Ping timeout: 264 seconds)
22:00:43*key_ joined #nim
22:02:14*reem quit (Remote host closed the connection)
22:10:59flaviuekarlso: Clang would also be a good addition.
22:12:39flaviuAlso, v0.10.2 doesn't seem to work. Can you allow arbitrary command line arguments?
22:15:23ekarlsoflaviu: why you want that ? :p
22:16:31flaviuI might want -d:release, -d:ssl, or -d:xyz, etc.
22:16:43*pregressive quit (Remote host closed the connection)
22:17:22ekarlsohmmm k
22:18:02ekarlsodom96: u tharr ?
22:18:08ekarlsohttps://github.com/nim-lang/nimbuild/blob/rewrite/src/builder/asyncproc.nim < im trying to use that
22:18:28ekarlsobut c&p of the code and import asyncproc tells that TThread is not there
22:19:55dom96ekarlso: Works well. Same suggestion as flaviu.
22:19:59dom96The flags you've chosen are odd
22:20:19dom96You should just let us specify them
22:20:27dom96what if I want to compile with -d:ssl for example?
22:20:32ekarlsodom96: .. meh
22:20:39ekarlsoso what, a text box or smth?
22:20:57dom96yeah
22:21:03ekarlsook....
22:21:40ekarlsoyeye, guess i'll remove the current way then and just add in "compilerOpts" or smt..
22:21:55ekarlsoas a string
22:22:06ekarlsojust too bad there's no way to validate it :p
22:22:27ekarlsodom96: any hints on the asyncproc ?
22:23:32onionhammernot sure why we should have so many compiler options
22:23:40onionhammerwhy not just keep it simple and use tcc
22:23:59flaviuekarlso: Be extremely careful accepting arbitrary parameters. If you can pipe the command in stdin, do that.
22:23:59onionhammerunless you want to use this as a build server or something :p
22:24:05flaviuonionhammer: tcc doesn't work with threads
22:24:11onionhammerwhy does it need threads
22:24:31flaviubecause you might want to run code with threads?
22:24:40onionhammerheh okay
22:24:57onionhammerwell then use clang only probably, since it has the fastest compile time aside from tcc
22:25:00onionhammerIm guessing
22:25:29ekarlsoresources isn't a big issue
22:25:47onionhammerim thinking more about simplicity
22:26:08onionhammerno reason to expose beginners who want to play around w/ tons of compiler options
22:26:15onionhammerimo
22:27:36dom96ekarlso: You need to compile with --threads:on
22:27:53ekarlsogeh :P
22:27:59*Demos joined #nim
22:28:32flaviuAnother feature request: http://185.56.186.94/?cc=gcc&threads=true&v=devel&code=echo%201\
22:28:49flaviuoops, extra '\'
22:29:05ekarlsowhy query string ?
22:29:17flaviuI want to be able to share a bit of code.
22:30:04flaviuI think url-encoding it is the best way of doing so
22:30:14onionhammerflaviu makes more sense to store a guid w/ each run
22:30:17onionhammerto link to it
22:30:22onionhammerlike pastebin
22:30:29flaviusure, sounds fine.
22:30:34ekarlsoI already have it in place :p
22:30:40onionhammeratta boy
22:30:45ekarlsojust need to fix the frontend code + some small thing in the backend :p
22:31:00ekarlsohttps://github.com/ekarlso/nim-playpen/issues
22:31:07ekarlsofeel free to post
22:31:08flaviuPlease no GUID, http://hashids.org/ or similar sounds better
22:31:34ekarlsoi used uuid...
22:32:07*Mat4 joined #nim
22:32:14Mat4hello
22:32:59ekarlsoand patches are always welcome :p
22:33:05onionhammerthats just an implementation detail :p
22:33:07ekarlsotake OderWat: as an example :P
22:33:15fowlwb, i pushed support for windows but didnt test
22:33:33fowlfor enet^
22:33:36wbcool, will try it
22:34:06ekarlsoflaviu: btw, I think I allmost support arbitrary options today
22:34:19ekarlsojust need a slight change to support passing of any options..
22:34:51flaviuekarlso: Keep security in mind..
22:35:18ekarlsoflaviu: yeah, it converts stuff like "cc": "foo"
22:35:27ekarlsoto --cc:foo
22:35:32ekarlsoso need to add some checks there
22:37:21ekarlsoprivate/run.nim(131, 23) Error: undeclared identifier: 'await'
22:37:23ekarlsohmmms
22:37:30ekarlsoi've imported asyncdispatch
22:39:50flaviuekarlso: Really take security seriously.
22:40:21Jehan_Hmm, "nimble install c2nim" fails.
22:40:42Jehan_Error: undeclared identifier: 'stackTraceAvailable'
22:41:00ekarlsoflaviu: I usually try to ..
22:42:42ekarlsodom96: u available for some asyncproc help ?
22:43:13AraqJehan_: that usually means something uses an outdated stdlib
22:43:20*vendethiel quit (Ping timeout: 272 seconds)
22:43:40Jehan_Araq: Well, it uses the nimble compiler package.
22:44:01Jehan_So it's nothing that I can really change.
22:44:46*vendethiel joined #nim
22:45:08Jehan_Hmm, wait, I may have an outdated base Nim installation on this machine.
22:45:19Jehan_Too many bloody computers ...
22:46:03flaviuekarlso: Linux play.c.no-osl1.zetta.io 3.18.5-201.fc21.x86_64 #1 SMP Mon Feb 2 21:00:58 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
22:46:47ekarlsoflaviu: and ?
22:49:22ekarlsouname a bad thing ? ^
22:49:39flaviuekarlso: Check /home/fedora/
22:50:46ekarlsoyeh
22:50:48ekarlsohmm
22:50:51flaviuUnsandboxed remote code execution is possible, you really shouldn't use join(args, " ") to create your command.
22:51:10ekarlsoflaviu: yeah, wondering what to do instead
22:51:22flaviuSee if you can pipe the command in the sandbox's stdin, that'll solve any escaping problems
22:52:31ekarlsorust's playsite only allows for a given nr of options
22:52:46ekarlsoand it's executed using a shell script vs the compiler cmd directly
22:54:06ekarlsoflaviu: care to help out with taht bit ? :/
22:57:17flaviuwell, I think validating user input against [a-zA-Z0-9:= -]* should be sufficent
22:57:34flaviuIt might be a bit over-restrictive, but w/e
22:57:44flaviuYou shouldn't need anything else to pass arguments to nim.
22:58:49ekarlsomeh, tryign to get a grasp on the async stuff :/
22:59:31*^aurora^1 quit (Quit: Leaving.)
23:00:28Araqekarlso: 'await' only works in an .async proc
23:01:09ekarlsoAraq: yeah I get that :p
23:01:35Jehan_Hmm, still having problems with the newest nim/devel branch and after wiping ~/.nimble
23:01:46Jehan_Eh, I'll look into it some other day.
23:07:24*vendethiel quit (Ping timeout: 272 seconds)
23:09:14BlaXpiritflaviu, ekarlso, what about http://nim-lang.org/osproc.html#startProcess,string,string,openArray%5Bstring%5D,StringTableRef,set%5BProcessOption%5D
23:10:26ekarlsoBlaXpirit: doesn't that block as well ?
23:10:39flaviuBlaXpirit: Yeah, but then how do you read stdout? That's the problem I had with it.
23:10:59BlaXpiritoutputStream
23:11:03ekarlsoI was thinking of https://github.com/nim-lang/nimbuild/blob/rewrite/src/builder/asyncproc.nim
23:12:11BlaXpiriti dont know man... all the stuff in the standard library looks so scary
23:12:20ekarlso:o
23:12:24BlaXpiritscary as in horribly wrong
23:12:31BlaXpiritor maybe i don't understand it
23:13:12ekarlsoanyways, i'm gonna hit the sack and come up with a way tmrw with checks flaviu like using regex or smth for opts
23:13:44*davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:14:13ekarlsoflaviu: allmost tempted to do something like
23:14:16BlaXpiritridiculous
23:14:31ekarlso{"symbols": "+ssl", "-release"}
23:14:43ekarlsoor so that parses into -d -u stuff
23:15:03ekarlsoBlaXpirit: ridiculous to go to bed ? :p
23:15:07BlaXpiritwhenever you pass all the arguments as one string, a kitten dies
23:15:19*reem joined #nim
23:15:42ekarlsoBlaXpirit: I didn't get that :P
23:16:08flaviuYep. But if you can't figure out startProcess, my regex will be adequate, I think. No warranty!
23:16:11BlaXpiritcmdString = join(playCmd, " ")
23:16:14BlaXpiritit's goddamn idiotic
23:16:40flaviuekarlso: Btw, might be a good idea to take the server down before you go to bed.
23:16:44ekarlsoBlaXpirit: what you saying, my code stinks ?
23:16:52BlaXpiritit's not even your fault
23:16:58BlaXpiritbad stdlib made you do it
23:17:26*sillesta quit (Remote host closed the connection)
23:17:40ekarlsoflaviu: a good thing the server is a cloud instance and takes about 20 mins to setup :P
23:17:43ekarlsobut stopped it yes
23:17:51BlaXpiritthere is execProcess that gives output as string
23:18:20BlaXpiritthere is startProcess with outputStream
23:18:25BlaXpiritI don't see a problem
23:18:25*sillesta joined #nim
23:18:37ekarlsoBlaXpirit: are they async / nonblocking ?
23:19:00BlaXpiriti bet that's the whole point of startProcess
23:19:12BlaXpiritand maybe standard library is not bad after all
23:19:19ekarlsoBlaXpirit: asyncproc from dom96 uses that
23:19:24ekarlsohttps://github.com/nim-lang/nimbuild/blob/rewrite/src/builder/asyncproc.nim
23:19:41BlaXpiritgreat then
23:20:10ekarlsoill give it a shot in the morning if $dayjob$ gives any freetime to hack with it
23:28:28ekarlsowhat does
23:28:30ekarlsolib/pure/asyncdispatch.nim(1082, 7) Error: 'cb' is not GC-safe
23:28:34ekarlsomean ?
23:29:00dom96try --threadAnalysis:off
23:30:02ekarlsodoes all calls in a asyncchain need to be async ?
23:30:15ekarlsolike all methods that a method uses needs to have {.async.} ?
23:31:38*pregressive joined #nim
23:33:53dom96not all calls
23:34:02dom96only ones that you call with await
23:34:10dom96bbl
23:34:40*randomwalk joined #nim
23:40:17*Mat4 quit (Ping timeout: 245 seconds)
23:43:04ekarlso lib/pure/asyncdispatch.nim(1082, 7) Error: 'cb' is not GC-safe
23:43:09ekarlsostill not getting passed that one
23:45:13*sillesta left #nim ("undefined")
23:45:25*xificurC quit (Ping timeout: 256 seconds)
23:46:55ekarlsoanyone got a clue ?
23:48:20*vendethiel joined #nim
23:48:45*pregressive quit ()
23:54:14*randomwalk quit (Quit: Leaving)
23:57:11*jholland quit (Quit: Connection closed for inactivity)