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:08 | reactormonk | what's the importc syntax for specifying my own method call? |
03:23:31 | reactormonk | # - # 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:50 | Kasprosian | could anybody kindly look into the issue i'm having at this thread? http://forum.nim-lang.org/t/987 |
03:55:07 | Kasprosian | basically, the question is about having python-like dictionaries |
03:56:35 | reactormonk | Kasprosian, how do you statically type your data structure? |
03:57:24 | Kasprosian | well ideally i'd like there to be as little static typing as possible |
03:57:38 | Kasprosian | am i looking at the wrong language here? |
03:58:57 | * | a5i quit (Quit: Connection closed for inactivity) |
03:59:32 | reactormonk | what's your previous programming experience with compiled languages? |
03:59:40 | reactormonk | or rather statically typed languages. |
04:01:52 | * | Kasprosian quit (Ping timeout: 246 seconds) |
04:02:19 | reactormonk | that went well I think |
04:02:55 | * | Kasprosian joined #nim |
04:03:44 | Kasprosian | sorry reaktormonk |
04:03:50 | Kasprosian | i lost connection temporarily |
04:04:03 | Kasprosian | I'm very familiar with statically-typed languages |
04:04:28 | Kasprosian | I code in C++ for my job, and I've taken an OS class where I had to write a kernel in C |
04:04:47 | Kasprosian | and I've taken a distributed computing class which was all golang |
04:04:57 | Kasprosian | so as static typing experience goes, I think I've got it |
04:07:05 | Kasprosian | what i'm looking for here is a malleable data structure |
04:07:24 | Kasprosian | a 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:00 | Kasprosian | hm.....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:05 | reactormonk | Kasprosian, sorry, I figured you left and went watching some game trailers |
04:25:53 | reactormonk | but yes, this is IRC, people tend to just disappear. |
04:26:17 | reactormonk | How would you implement the type in c++? |
04:30:42 | reactormonk | Kasprosian, http://pastie.org/10011376 try this |
04:40:44 | Kasprosian | thanks for that reactormonk |
04:41:07 | reactormonk | Kasprosian, preferably fix the names to be something better |
04:41:16 | Kasprosian | yes |
04:41:32 | Kasprosian | I'll probably tinker with the type as I go along |
04:41:39 | Kasprosian | that should be a good start though |
04:41:42 | reactormonk | but I wonder, what's the use case for the data structure? |
04:42:34 | Kasprosian | well it's a lot easier to do declarative programming |
04:42:39 | * | reem joined #nim |
04:42:58 | Kasprosian | I can just add or delete attributes as I go along, without worrying too much about the static typing |
04:43:31 | Kasprosian | I usually have a huge "table", like a Descriptor Table |
04:43:54 | Kasprosian | for instance, for a webapp I once did, I had a "EDT", short for Event Descriptor Table |
04:44:09 | Kasprosian | there would be a "regexp" field |
04:44:21 | Kasprosian | then a callbacks |
04:44:22 | Kasprosian | parser |
04:44:24 | Kasprosian | etc. |
04:44:53 | Kasprosian | anyway 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:34 | reactormonk | that 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:25 | shalabh | hello |
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:48 | novist | dang 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:01 | gokr | Morning! |
08:05:08 | fowl | good 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:51 | fowl | gokr, how does inheritance work in urhonimo I get errors |
08:16:06 | gokr | Mmmm, good question :) |
08:16:32 | gokr | Unsure, haven't gotten that far |
08:16:53 | fowl | this looks similar enough CircleShape* {.header: graphics_h, importc: "sf::CircleShape".} = object of Shape |
08:17:12 | fowl | i tracked down the root object urobject |
08:18:22 | fowl | oh no its RefCounted |
08:18:49 | gokr | Araq should know more of course. |
08:18:58 | fowl | ok i got it, the type needs importcpp |
08:23:34 | * | reem quit (Remote host closed the connection) |
08:25:47 | gokr | I wrote a modeltester app in Urhonimo, will see if i can push it to github |
08:26:11 | gokr | Its for quick and easy testing model files - for experimenting with content pipeline |
08:26:35 | * | BlaXpirit joined #nim |
08:27:41 | novist | hey gokr let me bug you a bit |
08:27:47 | gokr | sure |
08:27:52 | novist | have you ever bumped into problem where nim complains about missing urhowrap.o? |
08:28:08 | novist | it comes up at times and i cant force it recompile that file |
08:28:09 | gokr | Urhonimo I presume? |
08:28:13 | novist | indeed |
08:29:04 | novist | just yesterday i couldnt make it recompile in any way. deleted nimcache and all. today it magically works |
08:29:14 | novist | i wonder if its me doing something wrong or what |
08:29:24 | gokr | Mmmm, I think Araq removed that thing. |
08:29:26 | * | vince- quit (Ping timeout: 246 seconds) |
08:29:41 | gokr | Its not used anymore... perhaps I need to push up to github |
08:29:58 | novist | yeah that be nice then :p |
08:30:00 | gokr | We have our own gitlab repo - and I need to sync it up with github |
08:30:08 | novist | its not open? |
08:30:13 | gokr | Yeah... but we have some things that don't work with stock Urho3D. |
08:30:19 | gokr | No, not open |
08:30:23 | novist | i see |
08:30:49 | novist | i so would love to stalk progress hehe. c2nim too |
08:30:57 | gokr | Although those changes to Urho3D we ought to try to push upstream |
08:31:02 | novist | virtual func overriding is very interesting topic to me |
08:31:12 | gokr | gitk |
08:31:14 | gokr | Oops |
08:31:15 | gokr | :) |
08:31:37 | * | vinnie joined #nim |
08:31:50 | fowl | gokr, i was fixing up the 2d physics stuff but not that enthusiastic about it |
08:32:42 | fowl | not 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:13 | novist | fowl: you working on Urho2D wrapper part? |
08:46:26 | * | vendethiel joined #nim |
08:49:00 | fowl | novist, no i am playing with it using the lua api atm |
08:49:21 | gokr | Ooops, I think i managed to push lots of changes. Arrgh, git... |
08:49:49 | novist | gokr: nothing force-push cant solve :D (if you do it fast enough :D) |
08:50:06 | novist | fowl: ah i see. just noticed urhonim had 2d part not wrapped (no wonder, they dont need 2d apparently) |
08:51:08 | gokr | I would like to undo one specific commit, advice? |
08:53:25 | fowl | no clue gokr git hates me |
08:53:28 | * | Trustable joined #nim |
08:53:41 | fowl | ask in #git |
08:56:48 | novist | gokr: depends if commit is latest or not |
08:56:58 | novist | if latest you can reset last N commits |
08:57:57 | * | akiradeveloper quit (Remote host closed the connection) |
08:58:26 | gokr | I can start there, and then push again (the ones I want) |
08:59:04 | gokr | So I simply want to "unpush" the latest... 9. Then I will push only 8 of them ;) |
08:59:31 | fowl | i'll light a candle for you gokr |
08:59:31 | novist | if not you need interactive rebase |
08:59:31 | novist | git rebase -i HEAD~5 will let u edit last 5 commits |
08:59:31 | novist | in opened text file delete commit u dont need, save->close |
08:59:31 | novist | should be all you need |
09:00:35 | gokr | Ah, wtf. I will just make a revert commit. Its not like its secret stuff |
09:00:59 | gokr | Problem 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:02 | novist | gokr: 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:10 | novist | and then git push -f .. |
09:06:32 | gokr | But... rebase? I don't want to remove my commits locally |
09:06:46 | gokr | Either way, I think I have it fixed soon |
09:07:01 | novist | what i do in this case is make a patch of commit i want to remove, after fixing history apply it |
09:07:30 | novist | or 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:44 | gokr | Ok, so... I will check stuff still builds :) |
09:09:49 | gokr | brb |
09:18:49 | * | tumult joined #nim |
09:21:44 | * | vendethiel joined #nim |
09:23:38 | novist | thanks for changes gokr |
09:23:56 | novist | i see that cpp was moved to .nim, well that surely will take of this missing obj problem |
09:36:24 | novist | oh sweet and 2d stuff is there |
09:36:45 | novist | gokr: any idea how this works? {.passL: "../lib/libUrho3D.a".}. it doesnt look like it is relative to file directive is in |
09:36:47 | gokr | I think we got some 2D stuff fixed when I made the particles demo |
09:36:55 | gokr | Or perhaps that was something else |
09:37:17 | gokr | How it works? |
09:37:29 | novist | well with full path it works |
09:37:38 | novist | ill try relative to file that imports urholink |
09:38:07 | novist | wha, its how it works |
09:38:19 | novist | thats totally not what one would expect |
09:38:35 | gokr | Well, its probably relative to... where you run nim cpp? |
09:38:40 | gokr | I may be wrong |
09:39:23 | novist | my nim src is in project/nim/<here> and urhonim in project/dep/Urhonim |
09:39:37 | novist | so i had to mod it to {.passL: "../dep/Urhonimo/lib/libUrho3D.a".} |
09:39:42 | gokr | Ah |
09:40:01 | gokr | Well, we try to keep all our git repos in the same checkout dir |
09:40:09 | novist | probably should create issue on compiler repo. it certainly should not work like that |
09:40:42 | gokr | For us it makes things simple - but ideally I gess one could set URHONIMO_HOME or something |
09:41:15 | gokr | But 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:33 | novist | actually 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:00 | novist | now see how i use Urhonimo as dependency. i got cfg set up paths and it works great |
09:42:12 | novist | except i need to modify lib so its not totally sandalone |
09:42:19 | gokr | Problem is - when you start having many different nim.cfgs |
09:42:52 | novist | now if passL worked relative to file that it is in - it would be intuitive and standalone |
09:43:28 | gokr | Problem is that urholink is included. |
09:43:47 | novist | err where? i have not seen it included in urhomain |
09:44:01 | novist | so i imported it myself in my sample |
09:44:08 | gokr | Its a new thing, see sample.nim |
09:44:19 | gokr | And I am just adding it to hello.nim, because... it doesn't use sample.nim |
09:44:45 | novist | i see |
09:45:04 | novist | though in my sample i imported it and it also works (with path modification) |
09:45:50 | gokr | Can you try... |
09:46:03 | gokr | "nim cpp modeltester" in Urhonimo/modeltester ? |
09:46:14 | gokr | And if that works, then run "./run.sh samba" |
09:47:03 | gokr | And if you see a big shoe :) then press Z a couple of times to scale her down. |
09:47:12 | gokr | WASD + mouse works, and a bunch of other keys. |
09:47:33 | novist | well sure that works, but then again lib is relative to modeltester dir as specified in urholink |
09:47:48 | novist | if it was in Urhonim/subdir/modeltester it would no longer work |
09:48:03 | gokr | I just want to know if modeltester works for you :) |
09:48:24 | novist | yeah well, works :D |
09:48:33 | gokr | If you press M she stops dancing, then you can fly close to her face |
09:49:33 | gokr | The only thing that is "odd" is her eye lashes. |
09:49:38 | gokr | I think |
09:50:16 | gokr | I 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:22 | novist | hard to tell when model is moving like a jackass :D |
09:50:26 | gokr | Press M |
09:50:35 | gokr | Or N. (start and stop animation) |
09:50:40 | novist | close up eyes look fine when still |
09:51:04 | gokr | If you look from above - you will see an eye lash in black. But from the front they are not really visible. |
09:51:15 | novist | ohh right, and from bottom too |
09:51:59 | gokr | yeah, not sure. But otherwise I think she is quite ok compared to original. |
09:52:10 | fowl | gokr, hey you know instead of createComponent[T](node) you could use node.createComponent(T) |
09:52:13 | gokr | I created her using the free Mixamo Fuse app. |
09:53:01 | gokr | fowl: Did you mean node.createComponent[T]() ? |
09:53:09 | gokr | And did you actually try it? :) |
09:53:20 | gokr | Because I think there is an issue there. |
09:53:38 | * | bcinman quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
09:53:42 | gokr | Which is the reason for this uncomfy style. But I think Araq intends to fix it. |
09:53:47 | gokr | Or does it work for you? |
09:54:19 | fowl | no i mean definining a createComponent(Node, T:typedesc): auto = createComponent[T](node) |
09:54:45 | gokr | Aha |
09:55:02 | gokr | yeah, that's pretty slick. Tell Araq :) |
09:55:27 | gokr | He is the binding guru, I just use it ;) |
09:55:51 | gokr | Gonna test on OSX now |
09:56:04 | gokr | Let me know if this last flurry of commits broke anything |
09:56:14 | * | novist summons Araq |
09:56:34 | novist | Araq: 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:35 | notajew | i 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:17 | fowl | lol |
13:31:40 | dv- | lots of people do that |
13:42:44 | * | vendethiel quit (Ping timeout: 264 seconds) |
13:43:51 | Araq | ok, guys who is on devel? |
13:44:03 | Araq | please run this and tell me if it works: |
13:44:30 | Araq | nim c -r tests/generics/tunique_type |
13:45:06 | * | jfchevrette joined #nim |
13:53:40 | * | wb joined #nim |
14:02:26 | gokr | worked |
14:03:03 | gokr | Or wait... pulling. |
14:03:13 | Araq | no it's fine |
14:03:50 | Araq | that that ever worked was a bug though :P |
14:04:15 | gokr | It works. |
14:04:32 | Araq | macro map(input, predicate: expr): expr # seriously? bad idea. ;-) |
14:07:35 | Araq | speaking of which ... 'map' really should NOT be in system |
14:07:57 | Araq | since I cannot do 'import system except map' ... |
14:08:12 | * | Roin joined #nim |
14:15:29 | * | matkuki joined #nim |
14:18:42 | matkuki | Can someone help me with an error message: "error: 'HEX3Aenv_130705' undeclared (first use in this function)" |
14:18:43 | matkuki | This appeared when I added a nested procedure to a procedure. Any ideas? |
14:19:11 | Araq | matkuki: it means you fucked up the compiler's lambda lifting pass |
14:19:24 | Araq | happens regularly |
14:19:35 | matkuki | Simple fix? |
14:19:49 | Araq | write your code in a simpler fashion :P |
14:20:01 | matkuki | Will do, thanks! |
14:20:12 | Araq | and don't report it |
14:20:20 | matkuki | OK |
14:20:29 | Araq | we have 10 bugs open about this or something |
14:21:02 | Araq | it's remarkable how bad it still works given that I spent 3 months fulltime by now on this feature |
14:21:27 | matkuki | You'll get there! |
14:22:31 | Araq | but hey at least it's "correct" wrt scoping |
14:23:21 | matkuki | Incidentally, if I make applications using Nim, can I use the name and logo to promote the language? |
14:24:23 | matkuki | "Powered by Nim" for example? |
14:24:30 | * | TEttinger joined #nim |
14:27:23 | Araq | no, you need to write a "success story" for our website :-) |
14:27:27 | Araq | and then you're allowed to do it :-) |
14:28:41 | matkuki | Good to know we have standards :) |
14:39:37 | aleron | Is there a listing somewhere of OS constants? |
14:39:55 | aleron | Or more specifically, is there one for OS X |
14:42:13 | def- | when defined(macosx) |
14:42:21 | aleron | great, tanks |
14:42:23 | aleron | thanks* |
14:42:42 | def- | I haven't seen a list of all available defines |
14:47:18 | * | vendethiel joined #nim |
14:50:46 | ekarlso | newer version deployed with supervisord |
14:50:54 | ekarlso | def-: what was the asyncproc stuff ? |
14:50:57 | ekarlso | I wanna test it out |
14:51:39 | wb | Is there a good nim wrapper around for a cross-platform networking library? Fowl's Enet wrapper is linux-only. |
14:53:26 | BlaXpirit | a networking library should not be done with a wrapper |
14:54:24 | wb | Yeah, just looking for something to slap together a quick prototype |
14:57:10 | matkuki | Araq: 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:06 | matkuki | Hope it helps. |
14:59:08 | fowl | wb, 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:40 | wb | Ah i see now, will give it a try. Thought it was a bigger issue. |
15:04:10 | * | jholland joined #nim |
15:04:19 | aleron | is there a way to get the size of an object type (in bytes)? |
15:05:01 | aleron | er, actually sizeof |
15:05:17 | aleron | how..obvious |
15:07:15 | fowl | :D |
15:08:31 | * | brson joined #nim |
15:11:17 | fowl | wb, i see there is another section that needs to be filled out, i'll work on it today |
15:11:51 | wb | Alright, thanks |
15:13:17 | * | saml quit (Quit: Leaving) |
15:23:03 | * | darkf quit (Quit: Leaving) |
15:29:44 | Araq | reactormonk: so after your tester changes the number of tests went from over 900 to 226 |
15:30:15 | reactormonk | Araq, uh, I diffed the testresults.json, I didn't see any difference |
15:33:13 | Araq | hrm |
15:33:29 | Araq | maybe my fix broke the tester in a subtle way |
15:33:53 | * | sepisoad joined #nim |
15:34:05 | reactormonk | I'm reunning the tests now |
15:34:25 | reactormonk | You think we can poke the tester to be parallel in some way? |
15:36:20 | * | key_ quit (Quit: Konversation terminated!) |
15:39:55 | reactormonk | btw, tdeprecated.nim seems to fail |
15:43:48 | Araq | a couple of tests still fail |
15:45:10 | reactormonk | yup, I'm at 223 total too |
15:45:10 | * | arnetheduck quit (Read error: Connection reset by peer) |
15:46:01 | Araq | ok, so fix it |
15:46:13 | * | kniteli joined #nim |
15:46:52 | sepisoad | where is this function defined: stackTraceAvailable(), |
15:47:01 | reactormonk | sepisoad, grep for it |
15:47:10 | sepisoad | grep wont find it |
15:47:24 | reactormonk | does for me |
15:47:29 | reactormonk | it's in lib/system/excpt.nim |
15:49:28 | sepisoad | let me see |
15:52:08 | Araq | reactormonk: yeah, your compilerOutputTests() is wrong |
15:52:34 | Araq | you need to do r.addResult unconditionally |
15:52:48 | Araq | and you shouldn't do it there |
15:52:51 | Araq | at all |
15:54:08 | * | JusticeFries joined #nim |
15:54:18 | reactormonk | Araq, ah, you're right. :-/ |
15:54:26 | reactormonk | just revert? |
15:54:34 | Araq | fix it |
15:54:36 | reactormonk | And figure out how to do it correctly? |
15:54:37 | sepisoad | Ok, 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:20 | sepisoad | I tried installing c2nim through nimble as well but I get the same error |
15:55:21 | Araq | it's not hard |
15:55:40 | reactormonk | Araq, I have the problem of how to pass two message around |
15:55:43 | Araq | you only need to ensure that for every test 1x r.addResult is called |
15:55:51 | Araq | not 2x |
15:55:53 | Araq | not 0x |
15:55:56 | Araq | but 1x |
15:56:27 | reactormonk | lemme see if I can munch something |
15:57:25 | * | sampwing joined #nim |
15:58:06 | reactormonk | sepisoad, well, fuck |
15:58:23 | reactormonk | sepisoad, I'll fix the tester first and then I'll take a look at it |
16:01:30 | ekarlso | hmm |
16:01:41 | * | sampwing quit (Ping timeout: 252 seconds) |
16:01:50 | ekarlso | is there a easy way to write for i in @[0..<value>]: ... ish + |
16:01:57 | ekarlso | so it goes from range from 0 to x |
16:02:15 | Araq | for i in 0 .. < x # exclusive |
16:02:21 | Araq | for i in 0 .. x # inclusive |
16:02:29 | reactormonk | sepisoad, 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:04 | reactormonk | Araq, 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:08 | reactormonk | sepisoad, works for me |
16:36:23 | reactormonk | might 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:43 | reactormonk | 0.10.3 to be correct |
16:41:15 | * | vendethiel joined #nim |
16:44:53 | wb | Is 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:19 | aleron | ok |
16:46:03 | aleron | so apparently the not operator only works on int types (including cint), but not culong |
16:46:23 | aleron | it works on clong |
16:49:06 | def- | wb: i guess you could add a setBlocking proc to the net module |
16:51:17 | sepisoad | reactormonk, sorry i wasn't around, which version of nim do you use? |
16:51:23 | reactormonk | sepisoad, devel |
16:52:14 | sepisoad | reactormonk, so do i, how come? am i doing something wrong |
16:52:31 | reactormonk | sepisoad, hm. dunno. |
16:54:40 | wb | Yeah 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:44 | reactormonk | sepisoad, can you compile it when you clone it directly? |
16:54:54 | sepisoad | reactormonk, nope |
16:55:52 | reactormonk | sepisoad, got me your lines for reproduction? |
16:56:21 | sepisoad | ok |
16:59:21 | sepisoad | id compile c2nim using => "nim c c2nim.nim" |
16:59:29 | sepisoad | and I get this error: |
17:00:13 | sepisoad | "/home/sepisoad/.nimble/pkgs/compiler-0.10.3/compiler/msgs.nim(727, 9) Error: undeclared identifier: 'stackTraceAvailable'" |
17:02:38 | sepisoad | reactormonk, ^ |
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:46 | reactormonk | you sure your compiler is 0.10.3? |
17:25:08 | aleron | It'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:23 | sepisoad | yes, the version says so, I got it from devel repo |
17:28:58 | ekarlso | how do you determine a odd number in nim ? |
17:29:13 | aleron | x mod 2 == 0? |
17:29:18 | ekarlso | kewl :) |
17:29:48 | reactormonk | ekarlso, one of my first coding questions ever :-) |
17:29:56 | reactormonk | brings back memories |
17:30:17 | Araq | reactormonk: 890 tests are not enough, it has to be over 900 |
17:30:33 | * | bcinman joined #nim |
17:30:58 | reactormonk | Araq, ok |
17:31:06 | ekarlso | .eval 3 mod 2 == 0 |
17:31:14 | ekarlso | that bot... |
17:31:46 | reactormonk | Araq, "total": 899, "passed": 841, "skipped": 29 |
17:32:44 | * | vendethiel quit (Ping timeout: 245 seconds) |
17:32:45 | OderWat | x 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:04 | OderWat | @araq Is there a problem with (n and 1) for some reason? |
17:34:22 | Araq | OderWat: you need the () |
17:35:15 | OderWat | ok thats what i figured. because of precedence of operators I guess? |
17:35:26 | novist | hey 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:54 | Araq | novist: yeah, fix it |
17:36:23 | novist | kk, that much i should be able to do |
17:40:45 | OderWat | So I figured that "$lib" in a config file is "relative to the running nim compiler" is that observation correct? |
17:42:46 | Araq | $lib points to the stdlib |
17:42:59 | Araq | when you override that location via --lib, $lib should reflect that |
17:43:56 | OderWat | but "where" is the stdlib |
17:44:45 | OderWat | what 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:44 | OderWat | after 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:03 | Araq | <location of nim binary>/../lib |
17:55:12 | ekarlso | so u cant write |
17:55:22 | ekarlso | i in @[1,2,3] |
17:55:26 | ekarlso | ehm |
17:55:29 | ekarlso | i not in @[1,2,3] |
17:56:03 | Araq | no, you have to write i notin [1,2,3] |
17:56:20 | ekarlso | ah |
17:56:34 | Araq | because 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:50 | Araq | reactormonk: your PR is not correct |
18:47:05 | reactormonk | Araq, go on |
18:47:08 | Araq | but maybe the old code wasn't correct either |
18:47:27 | Araq | ccodegenCheck 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:58 | reactormonk | I 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:55 | reactormonk | Araq, argh. I'll need to figure out why I make so many mistakes |
19:11:39 | Araq | reactormonk: 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:54 | reactormonk | Araq, good point |
19:11:58 | Araq | but it's criticial and has many features, so it's not simple |
19:12:30 | reactormonk | got the part where I can compare to a previous commit documented somewhere? |
19:12:49 | Araq | git log -p ? |
19:13:27 | reactormonk | eh sorry, tests outputs |
19:14:39 | reactormonk | so compare the output of the tester between commits. |
19:15:35 | Araq | tester html |
19:15:43 | Araq | produces a testresults.json too |
19:15:54 | Araq | last field in it has the 'diff' |
19:16:40 | * | gmpreussner|work joined #nim |
19:17:42 | reactormonk | ok |
19:25:14 | reactormonk | Araq, {"total": 897, "passed": 840, "skipped": 29 currently |
19:25:55 | * | vendethiel quit (Ping timeout: 252 seconds) |
19:26:29 | Araq | ok |
19:28:39 | reactormonk | running with a previous version |
19:28:46 | reactormonk | but that's nto the pushed one |
19:34:58 | reactormonk | Araq, are the tests independent from each other? so would it be possible to parallelize them? |
19:35:04 | * | epichero joined #nim |
19:35:39 | Araq | that's possible per subdirectory since the nimcache is shared |
19:35:50 | Araq | per subdirectory |
19:35:58 | * | brson quit (Ping timeout: 252 seconds) |
19:36:37 | Araq | but since a single test uses more than 1 core, it won't give huge speedups |
19:38:39 | reactormonk | I 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:27 | Araq | reactormonk: ok, parallelize it then. what can go wrong? |
19:47:35 | reactormonk | ^^ |
19:47:50 | Araq | btw we use sqlite in the tester |
19:48:13 | Araq | not sure if that's multiprocess capable out of the box, but it should be |
19:49:11 | reactormonk | sure, 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:47 | reactormonk | Araq, I don't get any more than 899 tests |
19:54:00 | Araq | it's fine, maybe I dreamed |
19:54:01 | reactormonk | ... that's without the nimble-core stuff |
19:54:16 | Araq | yeah 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:42 | dhasenan_ | Are there coroutines in Nim? |
20:17:50 | BlaXpirit | kinda |
20:18:10 | * | vendethiel joined #nim |
20:19:24 | BlaXpirit | the answer is probably yes, but there may be nitpicks |
20:21:01 | * | reem joined #nim |
20:25:24 | Araq | coroutines yes, continuations no. |
20:28:37 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
20:55:32 | ekarlso | Araq: is a coroutine in nim just a thread or ? |
20:56:06 | Araq | no, it's a "closure iterator" |
21:04:17 | reactormonk | dom96, just remove it? |
21:04:47 | * | reem quit (Remote host closed the connection) |
21:06:02 | dom96 | yes |
21:07:08 | * | reem joined #nim |
21:08:06 | reactormonk | dom96, could you do it? My git is currently slightly fucked |
21:10:58 | dom96 | busy right now |
21:11:59 | dom96 | use the github interface |
21:14:42 | * | ^aurora^ quit (Quit: Leaving.) |
21:14:48 | * | ^aurora^ joined #nim |
21:22:58 | reactormonk | dom96, done. |
21:24:18 | * | mpthrapp_ quit (Remote host closed the connection) |
21:27:36 | * | bjz joined #nim |
21:30:21 | ekarlso | dom96: u there ? ^ |
21:30:28 | dom96 | reactormonk: thx |
21:30:34 | dom96 | ekarlso: yes |
21:30:46 | ekarlso | what other features to add ? |
21:32:39 | dom96 | ekarlso: to what? |
21:33:52 | reactormonk | dom96, yeah, with the trimmed repo I can just clone a new one |
21:36:22 | ekarlso | dom96 the play site :P |
21:36:45 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:37:35 | dom96 | ekarlso: can I see the current version? |
21:38:30 | * | bjz joined #nim |
21:38:33 | * | bjz quit (Client Quit) |
21:38:38 | ekarlso | http://185.56.186.94/#/ |
21:41:00 | * | Jehan_ joined #nim |
21:41:55 | onionhammer | ekarlso whats new? |
21:42:32 | ekarlso | onionhammer: cc / more versions for one |
21:42:38 | ekarlso | more options |
21:42:59 | * | jfchevrette quit (Quit: Textual IRC Client: www.textualapp.com) |
21:47:55 | ekarlso | so suggestions onionhammer ? :p |
21:48:52 | Araq | can more than one person use it? |
21:49:08 | ekarlso | good point Araq :P |
21:49:15 | ekarlso | ill 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:59 | flaviu | ekarlso: Clang would also be a good addition. |
22:12:39 | flaviu | Also, v0.10.2 doesn't seem to work. Can you allow arbitrary command line arguments? |
22:15:23 | ekarlso | flaviu: why you want that ? :p |
22:16:31 | flaviu | I might want -d:release, -d:ssl, or -d:xyz, etc. |
22:16:43 | * | pregressive quit (Remote host closed the connection) |
22:17:22 | ekarlso | hmmm k |
22:18:02 | ekarlso | dom96: u tharr ? |
22:18:08 | ekarlso | https://github.com/nim-lang/nimbuild/blob/rewrite/src/builder/asyncproc.nim < im trying to use that |
22:18:28 | ekarlso | but c&p of the code and import asyncproc tells that TThread is not there |
22:19:55 | dom96 | ekarlso: Works well. Same suggestion as flaviu. |
22:19:59 | dom96 | The flags you've chosen are odd |
22:20:19 | dom96 | You should just let us specify them |
22:20:27 | dom96 | what if I want to compile with -d:ssl for example? |
22:20:32 | ekarlso | dom96: .. meh |
22:20:39 | ekarlso | so what, a text box or smth? |
22:20:57 | dom96 | yeah |
22:21:03 | ekarlso | ok.... |
22:21:40 | ekarlso | yeye, guess i'll remove the current way then and just add in "compilerOpts" or smt.. |
22:21:55 | ekarlso | as a string |
22:22:06 | ekarlso | just too bad there's no way to validate it :p |
22:22:27 | ekarlso | dom96: any hints on the asyncproc ? |
22:23:32 | onionhammer | not sure why we should have so many compiler options |
22:23:40 | onionhammer | why not just keep it simple and use tcc |
22:23:59 | flaviu | ekarlso: Be extremely careful accepting arbitrary parameters. If you can pipe the command in stdin, do that. |
22:23:59 | onionhammer | unless you want to use this as a build server or something :p |
22:24:05 | flaviu | onionhammer: tcc doesn't work with threads |
22:24:11 | onionhammer | why does it need threads |
22:24:31 | flaviu | because you might want to run code with threads? |
22:24:40 | onionhammer | heh okay |
22:24:57 | onionhammer | well then use clang only probably, since it has the fastest compile time aside from tcc |
22:25:00 | onionhammer | Im guessing |
22:25:29 | ekarlso | resources isn't a big issue |
22:25:47 | onionhammer | im thinking more about simplicity |
22:26:08 | onionhammer | no reason to expose beginners who want to play around w/ tons of compiler options |
22:26:15 | onionhammer | imo |
22:27:36 | dom96 | ekarlso: You need to compile with --threads:on |
22:27:53 | ekarlso | geh :P |
22:27:59 | * | Demos joined #nim |
22:28:32 | flaviu | Another feature request: http://185.56.186.94/?cc=gcc&threads=true&v=devel&code=echo%201\ |
22:28:49 | flaviu | oops, extra '\' |
22:29:05 | ekarlso | why query string ? |
22:29:17 | flaviu | I want to be able to share a bit of code. |
22:30:04 | flaviu | I think url-encoding it is the best way of doing so |
22:30:14 | onionhammer | flaviu makes more sense to store a guid w/ each run |
22:30:17 | onionhammer | to link to it |
22:30:22 | onionhammer | like pastebin |
22:30:29 | flaviu | sure, sounds fine. |
22:30:34 | ekarlso | I already have it in place :p |
22:30:40 | onionhammer | atta boy |
22:30:45 | ekarlso | just need to fix the frontend code + some small thing in the backend :p |
22:31:00 | ekarlso | https://github.com/ekarlso/nim-playpen/issues |
22:31:07 | ekarlso | feel free to post |
22:31:08 | flaviu | Please no GUID, http://hashids.org/ or similar sounds better |
22:31:34 | ekarlso | i used uuid... |
22:32:07 | * | Mat4 joined #nim |
22:32:14 | Mat4 | hello |
22:32:59 | ekarlso | and patches are always welcome :p |
22:33:05 | onionhammer | thats just an implementation detail :p |
22:33:07 | ekarlso | take OderWat: as an example :P |
22:33:15 | fowl | wb, i pushed support for windows but didnt test |
22:33:33 | fowl | for enet^ |
22:33:36 | wb | cool, will try it |
22:34:06 | ekarlso | flaviu: btw, I think I allmost support arbitrary options today |
22:34:19 | ekarlso | just need a slight change to support passing of any options.. |
22:34:51 | flaviu | ekarlso: Keep security in mind.. |
22:35:18 | ekarlso | flaviu: yeah, it converts stuff like "cc": "foo" |
22:35:27 | ekarlso | to --cc:foo |
22:35:32 | ekarlso | so need to add some checks there |
22:37:21 | ekarlso | private/run.nim(131, 23) Error: undeclared identifier: 'await' |
22:37:23 | ekarlso | hmmms |
22:37:30 | ekarlso | i've imported asyncdispatch |
22:39:50 | flaviu | ekarlso: Really take security seriously. |
22:40:21 | Jehan_ | Hmm, "nimble install c2nim" fails. |
22:40:42 | Jehan_ | Error: undeclared identifier: 'stackTraceAvailable' |
22:41:00 | ekarlso | flaviu: I usually try to .. |
22:42:42 | ekarlso | dom96: u available for some asyncproc help ? |
22:43:13 | Araq | Jehan_: that usually means something uses an outdated stdlib |
22:43:20 | * | vendethiel quit (Ping timeout: 272 seconds) |
22:43:40 | Jehan_ | Araq: Well, it uses the nimble compiler package. |
22:44:01 | Jehan_ | So it's nothing that I can really change. |
22:44:46 | * | vendethiel joined #nim |
22:45:08 | Jehan_ | Hmm, wait, I may have an outdated base Nim installation on this machine. |
22:45:19 | Jehan_ | Too many bloody computers ... |
22:46:03 | flaviu | ekarlso: 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:47 | ekarlso | flaviu: and ? |
22:49:22 | ekarlso | uname a bad thing ? ^ |
22:49:39 | flaviu | ekarlso: Check /home/fedora/ |
22:50:46 | ekarlso | yeh |
22:50:48 | ekarlso | hmm |
22:50:51 | flaviu | Unsandboxed remote code execution is possible, you really shouldn't use join(args, " ") to create your command. |
22:51:10 | ekarlso | flaviu: yeah, wondering what to do instead |
22:51:22 | flaviu | See if you can pipe the command in the sandbox's stdin, that'll solve any escaping problems |
22:52:31 | ekarlso | rust's playsite only allows for a given nr of options |
22:52:46 | ekarlso | and it's executed using a shell script vs the compiler cmd directly |
22:54:06 | ekarlso | flaviu: care to help out with taht bit ? :/ |
22:57:17 | flaviu | well, I think validating user input against [a-zA-Z0-9:= -]* should be sufficent |
22:57:34 | flaviu | It might be a bit over-restrictive, but w/e |
22:57:44 | flaviu | You shouldn't need anything else to pass arguments to nim. |
22:58:49 | ekarlso | meh, tryign to get a grasp on the async stuff :/ |
22:59:31 | * | ^aurora^1 quit (Quit: Leaving.) |
23:00:28 | Araq | ekarlso: 'await' only works in an .async proc |
23:01:09 | ekarlso | Araq: yeah I get that :p |
23:01:35 | Jehan_ | Hmm, still having problems with the newest nim/devel branch and after wiping ~/.nimble |
23:01:46 | Jehan_ | Eh, I'll look into it some other day. |
23:07:24 | * | vendethiel quit (Ping timeout: 272 seconds) |
23:09:14 | BlaXpirit | flaviu, ekarlso, what about http://nim-lang.org/osproc.html#startProcess,string,string,openArray%5Bstring%5D,StringTableRef,set%5BProcessOption%5D |
23:10:26 | ekarlso | BlaXpirit: doesn't that block as well ? |
23:10:39 | flaviu | BlaXpirit: Yeah, but then how do you read stdout? That's the problem I had with it. |
23:10:59 | BlaXpirit | outputStream |
23:11:03 | ekarlso | I was thinking of https://github.com/nim-lang/nimbuild/blob/rewrite/src/builder/asyncproc.nim |
23:12:11 | BlaXpirit | i dont know man... all the stuff in the standard library looks so scary |
23:12:20 | ekarlso | :o |
23:12:24 | BlaXpirit | scary as in horribly wrong |
23:12:31 | BlaXpirit | or maybe i don't understand it |
23:13:12 | ekarlso | anyways, 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:13 | ekarlso | flaviu: allmost tempted to do something like |
23:14:16 | BlaXpirit | ridiculous |
23:14:31 | ekarlso | {"symbols": "+ssl", "-release"} |
23:14:43 | ekarlso | or so that parses into -d -u stuff |
23:15:03 | ekarlso | BlaXpirit: ridiculous to go to bed ? :p |
23:15:07 | BlaXpirit | whenever you pass all the arguments as one string, a kitten dies |
23:15:19 | * | reem joined #nim |
23:15:42 | ekarlso | BlaXpirit: I didn't get that :P |
23:16:08 | flaviu | Yep. But if you can't figure out startProcess, my regex will be adequate, I think. No warranty! |
23:16:11 | BlaXpirit | cmdString = join(playCmd, " ") |
23:16:14 | BlaXpirit | it's goddamn idiotic |
23:16:40 | flaviu | ekarlso: Btw, might be a good idea to take the server down before you go to bed. |
23:16:44 | ekarlso | BlaXpirit: what you saying, my code stinks ? |
23:16:52 | BlaXpirit | it's not even your fault |
23:16:58 | BlaXpirit | bad stdlib made you do it |
23:17:26 | * | sillesta quit (Remote host closed the connection) |
23:17:40 | ekarlso | flaviu: a good thing the server is a cloud instance and takes about 20 mins to setup :P |
23:17:43 | ekarlso | but stopped it yes |
23:17:51 | BlaXpirit | there is execProcess that gives output as string |
23:18:20 | BlaXpirit | there is startProcess with outputStream |
23:18:25 | BlaXpirit | I don't see a problem |
23:18:25 | * | sillesta joined #nim |
23:18:37 | ekarlso | BlaXpirit: are they async / nonblocking ? |
23:19:00 | BlaXpirit | i bet that's the whole point of startProcess |
23:19:12 | BlaXpirit | and maybe standard library is not bad after all |
23:19:19 | ekarlso | BlaXpirit: asyncproc from dom96 uses that |
23:19:24 | ekarlso | https://github.com/nim-lang/nimbuild/blob/rewrite/src/builder/asyncproc.nim |
23:19:41 | BlaXpirit | great then |
23:20:10 | ekarlso | ill give it a shot in the morning if $dayjob$ gives any freetime to hack with it |
23:28:28 | ekarlso | what does |
23:28:30 | ekarlso | lib/pure/asyncdispatch.nim(1082, 7) Error: 'cb' is not GC-safe |
23:28:34 | ekarlso | mean ? |
23:29:00 | dom96 | try --threadAnalysis:off |
23:30:02 | ekarlso | does all calls in a asyncchain need to be async ? |
23:30:15 | ekarlso | like all methods that a method uses needs to have {.async.} ? |
23:31:38 | * | pregressive joined #nim |
23:33:53 | dom96 | not all calls |
23:34:02 | dom96 | only ones that you call with await |
23:34:10 | dom96 | bbl |
23:34:40 | * | randomwalk joined #nim |
23:40:17 | * | Mat4 quit (Ping timeout: 245 seconds) |
23:43:04 | ekarlso | lib/pure/asyncdispatch.nim(1082, 7) Error: 'cb' is not GC-safe |
23:43:09 | ekarlso | still not getting passed that one |
23:45:13 | * | sillesta left #nim ("undefined") |
23:45:25 | * | xificurC quit (Ping timeout: 256 seconds) |
23:46:55 | ekarlso | anyone 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) |